summaryrefslogtreecommitdiff
path: root/PermissionController/src/com/android/permissioncontroller/role
diff options
context:
space:
mode:
authorJohn Patterson <jdp@google.com>2022-01-11 16:24:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-01-11 16:24:38 +0000
commit2c48bf066e94a2834119965b337fab9cd65eef87 (patch)
tree9f495ab40eaa58618cf3e88ad2f40fcc13a359a3 /PermissionController/src/com/android/permissioncontroller/role
parent09f9571146de28b6b81d090272b54cec232a2865 (diff)
parent92a58a1fc5fdaf9acff90f42d0196c003bd2d9ec (diff)
downloadPermission-2c48bf066e94a2834119965b337fab9cd65eef87.tar.gz
Merge "Add calendar sync manager role."
Diffstat (limited to 'PermissionController/src/com/android/permissioncontroller/role')
-rw-r--r--PermissionController/src/com/android/permissioncontroller/role/model/AutomotiveRoleBehavior.java (renamed from PermissionController/src/com/android/permissioncontroller/role/model/SystemAutomotiveClusterRoleBehavior.java)5
1 files changed, 2 insertions, 3 deletions
diff --git a/PermissionController/src/com/android/permissioncontroller/role/model/SystemAutomotiveClusterRoleBehavior.java b/PermissionController/src/com/android/permissioncontroller/role/model/AutomotiveRoleBehavior.java
index f7115bb66..3596c7d91 100644
--- a/PermissionController/src/com/android/permissioncontroller/role/model/SystemAutomotiveClusterRoleBehavior.java
+++ b/PermissionController/src/com/android/permissioncontroller/role/model/AutomotiveRoleBehavior.java
@@ -23,14 +23,13 @@ import android.os.UserHandle;
import androidx.annotation.NonNull;
/**
- * Class for behavior of the Automotive Cluster role.
+ * Class for behavior of the Automotive role.
*/
-public class SystemAutomotiveClusterRoleBehavior implements RoleBehavior {
+public class AutomotiveRoleBehavior implements RoleBehavior {
@Override
public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user,
@NonNull Context context) {
- // Cluster role is only available on Automotive
return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE);
}
}