Home
last modified time | relevance | path

Searched refs:Role (Results 1 – 25 of 117) sorted by relevance

12345

/aosp12/hardware/interfaces/automotive/occupant_awareness/aidl/vts/functional/
H A DVtsHalOccupantAwarenessV1_0TargetTest.cpp88 std::vector<Role> rolesToTest = {Role::FRONT_PASSENGER, Role::DRIVER, in TEST_P()
89 Role::ROW_2_PASSENGER_LEFT, Role::ROW_2_PASSENGER_CENTER, in TEST_P()
90 Role::ROW_2_PASSENGER_RIGHT, Role::ROW_3_PASSENGER_LEFT, in TEST_P()
91 Role::ROW_3_PASSENGER_CENTER, Role::ROW_3_PASSENGER_RIGHT, in TEST_P()
92 Role::FRONT_OCCUPANTS, Role::ROW_2_OCCUPANTS, in TEST_P()
93 Role::ROW_3_OCCUPANTS, Role::ALL_OCCUPANTS}; in TEST_P()
107 Role invalidRole = static_cast<Role>(static_cast<int>(Role::ALL_OCCUPANTS) + 1); in TEST_P()
115 std::vector<Role> rolesToTest = {Role::FRONT_PASSENGER, Role::DRIVER, in TEST_P()
117 Role::ROW_2_PASSENGER_RIGHT, Role::ROW_3_PASSENGER_LEFT, in TEST_P()
119 Role::FRONT_OCCUPANTS, Role::ROW_2_OCCUPANTS, in TEST_P()
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
H A DRoleBehavior.java41 default void onRoleAdded(@NonNull Role role, @NonNull Context context) {} in onRoleAdded()
46 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
63 default String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
70 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
79 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
87 default void preparePreferenceAsUser(@NonNull Role role, in preparePreferenceAsUser()
94 default boolean isApplicationVisibleAsUser(@NonNull Role role, in isApplicationVisibleAsUser()
104 default void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
130 default Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
143 default void revoke(@NonNull Role role, @NonNull String packageName, in revoke()
[all …]
H A DDialerRoleBehavior.java54 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
61 public void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
75 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
82 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
88 public void grant(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in grant()
98 public void revoke(@NonNull Role role, @NonNull String packageName, in revoke()
H A DSmsRoleBehavior.java55 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
75 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
91 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
98 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
104 public void grant(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in grant()
112 public void revoke(@NonNull Role role, @NonNull String packageName, in revoke()
H A DHomeRoleBehavior.java61 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
71 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
101 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
107 public void preparePreferenceAsUser(@NonNull Role role, @NonNull TwoTargetPreference preference, in preparePreferenceAsUser()
135 public boolean isApplicationVisibleAsUser(@NonNull Role role, in isApplicationVisibleAsUser()
143 public void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
177 public void onHolderSelectedAsUser(@NonNull Role role, @NonNull String packageName, in onHolderSelectedAsUser()
188 public void grant(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in grant()
196 public void revoke(@NonNull Role role, @NonNull String packageName, in revoke()
H A DAssistantRoleBehavior.java62 public void onRoleAdded(@NonNull Role role, @NonNull Context context) { in onRoleAdded()
76 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
82 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
89 public Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
103 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
110 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
146 public Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
182 public void grant(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in grant()
186 public void revoke(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in revoke()
H A DEmergencyRoleBehavior.java42 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
50 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
71 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
78 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
H A DBrowserRoleBehavior.java62 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
89 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
96 public Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
134 public void grant(@NonNull Role role, @NonNull String packageName, @NonNull Context context) { in grant()
146 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DOccupantAwarenessUtils.java132 if (inputRole == android.hardware.automotive.occupant_awareness.Role.INVALID in convertToRole()
133 || inputRole == android.hardware.automotive.occupant_awareness.Role.UNKNOWN) { in convertToRole()
135 } else if (inputRole == android.hardware.automotive.occupant_awareness.Role.ALL_OCCUPANTS) { in convertToRole()
141 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.DRIVER) > 0) { in convertToRole()
145 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.FRONT_PASSENGER) > 0) { in convertToRole()
149 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_LEFT) in convertToRole()
154 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_CENTER) in convertToRole()
159 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_RIGHT) in convertToRole()
164 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.ROW_3_PASSENGER_LEFT) in convertToRole()
169 if ((inputRole & android.hardware.automotive.occupant_awareness.Role.ROW_3_PASSENGER_CENTER) in convertToRole()
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/service/
H A DRoleControllerServiceImpl.java32 import com.android.permissioncontroller.role.model.Role;
66 ArrayMap<String, Role> roleMap = Roles.get(this); in onGrantDefaultRoles()
67 List<Role> roles = new ArrayList<>(); in onGrantDefaultRoles()
72 Role role = roleMap.valueAt(i); in onGrantDefaultRoles()
94 Role role = roleMap.get(roleName); in onGrantDefaultRoles()
101 Role role = roles.get(rolesIndex); in onGrantDefaultRoles()
196 Role role = Roles.get(this).get(roleName); in onAddRoleHolder()
255 Role role = Roles.get(this).get(roleName); in onRemoveRoleHolder()
289 Role role = Roles.get(this).get(roleName); in onClearRoleHolders()
421 Role role = Roles.get(this).get(roleName); in onIsApplicationVisibleForRole()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DActiveModeManager.java65 interface Role {} interface
68 interface SoftApRole extends Role {}
85 interface ClientRole extends Role {}
147 @Nullable Role getRole(); in getRole()
152 @Nullable Role getPreviousRole(); in getPreviousRole()
/aosp12/packages/modules/adb/pairing_connection/
H A Dpairing_connection.cpp73 enum class Role { enum
78 explicit PairingConnectionCtx(Role role, const Data& pswd, const PeerInfo& peer_info,
125 static PairingAuthPtr CreatePairingAuthPtr(Role role, const Data& pswd);
135 Role role_;
169 role_ == Role::Server ? tls::TlsConnection::Role::Server in SetupTlsConnection()
170 : tls::TlsConnection::Role::Client, in SetupTlsConnection()
439 PairingAuthPtr PairingConnectionCtx::CreatePairingAuthPtr(Role role, const Data& pswd) { in CreatePairingAuthPtr()
441 case Role::Client: in CreatePairingAuthPtr()
444 case Role::Server: in CreatePairingAuthPtr()
471 return CreateConnection(PairingConnectionCtx::Role::Client, pswd, pswd_len, peer_info, in pairing_connection_client_new()
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
H A DRoleItem.java23 import com.android.permissioncontroller.role.model.Role;
36 private final Role mRole;
44 public RoleItem(@NonNull Role role, @NonNull List<ApplicationInfo> holderApplicationInfos) { in RoleItem()
50 public Role getRole() { in getRole()
H A DRequestRoleViewModel.java26 import com.android.permissioncontroller.role.model.Role;
33 public RequestRoleViewModel(@NonNull Role role, @NonNull Application application) { in RequestRoleViewModel()
43 private Role mRole;
48 public Factory(@NonNull Role role, @NonNull Application application) { in Factory()
H A DDefaultAppViewModel.java33 import com.android.permissioncontroller.role.model.Role;
45 private final Role mRole;
56 public DefaultAppViewModel(@NonNull Role role, @NonNull UserHandle user, in DefaultAppViewModel()
110 private Role mRole;
118 public Factory(@NonNull Role role, @NonNull UserHandle user, in Factory()
/aosp12/hardware/interfaces/automotive/occupant_awareness/aidl/default/
H A DOccupantAwareness.cpp58 ScopedAStatus OccupantAwareness::getCapabilityForRole(Role occupantRole, int32_t* capabilities) { in getCapabilityForRole()
68 ScopedAStatus OccupantAwareness::getState(Role occupantRole, int detectionCapability, in getState()
101 bool OccupantAwareness::isValidRole(Role occupantRole) { in isValidRole()
103 int allOccupants = static_cast<int>(Role::ALL_OCCUPANTS); in isValidRole()
104 return (occupantRole != Role::INVALID) && ((intVal & (~allOccupants)) == 0); in isValidRole()
H A DOccupantAwareness.h33 using ::aidl::android::hardware::automotive::occupant_awareness::Role;
45 ndk::ScopedAStatus getCapabilityForRole(Role occupantRole, int32_t* capabilities) override;
46 ndk::ScopedAStatus getState(Role occupantRole, int detectionCapability,
53 bool isValidRole(Role occupantRole);
/aosp12/hardware/interfaces/automotive/occupant_awareness/aidl/mock/
H A DOccupantAwareness.cpp68 ScopedAStatus OccupantAwareness::getCapabilityForRole(Role occupantRole, int32_t* capabilities) { in getCapabilityForRole()
76 if (occupantRole != Role::DRIVER) { in getCapabilityForRole()
87 ScopedAStatus OccupantAwareness::getState(Role occupantRole, int detectionCapability, in getState()
134 bool OccupantAwareness::isValidRole(Role occupantRole) { in isValidRole()
136 int allOccupants = static_cast<int>(Role::ALL_OCCUPANTS); in isValidRole()
137 return (occupantRole != Role::INVALID) && ((intVal & (~allOccupants)) == 0); in isValidRole()
H A DOccupantAwareness.h38 using ::aidl::android::hardware::automotive::occupant_awareness::Role;
50 ndk::ScopedAStatus getCapabilityForRole(Role occupantRole, int32_t* capabilities) override;
51 ndk::ScopedAStatus getState(Role occupantRole, int detectionCapability,
58 bool isValidRole(Role occupantRole);
H A DDetectionGenerator.h30 using ::aidl::android::hardware::automotive::occupant_awareness::Role;
35 return static_cast<int>(Role::DRIVER) | static_cast<int>(Role::FRONT_PASSENGER); in getSupportedRoles()
/aosp12/packages/services/Car/tests/OccupantAwareness/src/com/android/car/test/
H A DOccupantAwarenessUtilsTest.java107 android.hardware.automotive.occupant_awareness.Role.INVALID)) in test_convertToRole()
112 android.hardware.automotive.occupant_awareness.Role.UNKNOWN)) in test_convertToRole()
117 android.hardware.automotive.occupant_awareness.Role.DRIVER in test_convertToRole()
118 | android.hardware.automotive.occupant_awareness.Role in test_convertToRole()
120 | android.hardware.automotive.occupant_awareness.Role in test_convertToRole()
130 android.hardware.automotive.occupant_awareness.Role.ALL_OCCUPANTS)) in test_convertToRole()
/aosp12/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/media/
H A DAudioDeviceAttributes.java59 public @interface Role {} annotation in AudioDeviceAttributes
73 private final @AudioDeviceAttributes.Role
98 public AudioDeviceAttributes(@AudioDeviceAttributes.Role int role, in AudioDeviceAttributes()
123 public @AudioDeviceAttributes.Role
165 public static String roleToString(@AudioDeviceAttributes.Role int role) { in roleToString()
/aosp12/packages/modules/adb/pairing_auth/
H A Dpairing_auth.cpp43 enum class Role { enum
48 explicit PairingAuthCtx(Role role, const Data& pswd);
83 Role role_;
88 PairingAuthCtx::PairingAuthCtx(Role role, const Data& pswd) : role_(role) { in PairingAuthCtx()
99 case Role::Client: in PairingAuthCtx()
106 case Role::Server: in PairingAuthCtx()
211 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Server, std::move(p)); in pairing_auth_server_new()
220 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Client, std::move(p)); in pairing_auth_client_new()
/aosp12/hardware/interfaces/automotive/occupant_awareness/aidl/android/hardware/automotive/occupant_awareness/
H A DIOccupantAwareness.aidl20 import android.hardware.automotive.occupant_awareness.Role;
64 int getCapabilityForRole(in Role occupantRole); in getCapabilityForRole()
73 OccupantAwarenessStatus getState(in Role occupantRole, in int detectionCapability); in getState()
/aosp12/frameworks/base/media/java/android/media/
H A DAudioDeviceAttributes.java58 public @interface Role {} annotation in AudioDeviceAttributes
72 private final @Role int mRole;
102 public AudioDeviceAttributes(@Role int role, @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAttributes()
142 public @Role int getRole() { in getRole()
192 public static String roleToString(@Role int role) { in roleToString()

12345