Home
last modified time | relevance | path

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

1234567

/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DRoleBehavior.java37 default void onRoleAddedAsUser(@NonNull Role role, @NonNull UserHandle user, in onRoleAddedAsUser()
43 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
52 default List<String> getDefaultHoldersAsUser(@NonNull Role role, @NonNull UserHandle user, in getDefaultHoldersAsUser()
61 default String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
70 default Boolean shouldAllowBypassingQualification(@NonNull Role role, in shouldAllowBypassingQualification()
79 default Boolean isPackageQualifiedAsUser(@NonNull Role role, @NonNull String packageName, in isPackageQualifiedAsUser()
88 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
96 default void grantAsUser(@NonNull Role role, @NonNull String packageName, in grantAsUser()
102 default void revokeAsUser(@NonNull Role role, @NonNull String packageName, in revokeAsUser()
108 default void onHolderSelectedAsUser(@NonNull Role role, @NonNull String packageName, in onHolderSelectedAsUser()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/domain/interactor/
DUserInteractor.kt25 import com.android.intentresolver.shared.model.User.Role in <lambda>()
45 Role.PERSONAL -> { in <lambda>()
46 Profile(Type.PERSONAL, user, users.firstOrNull { it.role == Role.CLONE }) in <lambda>()
48 Role.CLONE -> { in <lambda>()
85 private fun profileFromRole(role: Role): Type = in <lambda>()
87 Role.PERSONAL -> Type.PERSONAL in <lambda>()
88 Role.CLONE -> Type.PERSONAL /* CLONE maps to PERSONAL */ in <lambda>()
89 Role.PRIVATE -> Type.PRIVATE in <lambda>()
90 Role.WORK -> Type.WORK in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserInfoExt.kt21 import com.android.intentresolver.shared.model.User.Role in <lambda>()
24 fun UserInfo.getSupportedUserRole(): Role? = in <lambda>()
26 isFull -> Role.PERSONAL in <lambda>()
27 isManagedProfile -> Role.WORK in <lambda>()
28 isCloneProfile -> Role.CLONE in <lambda>()
29 isPrivateProfile -> Role.PRIVATE in <lambda>()
/packages/services/Car/service/src/com/android/car/
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 …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt28 import com.android.intentresolver.shared.model.User.Role
51 .containsExactly(User(userState.primaryUserHandle.identifier, Role.PERSONAL)) in <lambda>()
64 assertThat(users).contains(User(profile.identifier, Role.WORK)) in <lambda>()
74 assertThat(users).contains(User(work.identifier, Role.WORK)) in <lambda>()
77 assertThat(users).doesNotContain(User(work.identifier, Role.WORK)) in <lambda>()
84 val workUser = User(work.identifier, Role.WORK) in <lambda>()
100 val privateUser = User(private.identifier, Role.PRIVATE) in <lambda>()
118 val workUser = User(work.identifier, Role.WORK) in <lambda>()
151 assertThat(users).containsExactly(User(USER_SYSTEM, Role.PERSONAL)) in <lambda>()
170 assertThat(users).containsExactly(User(USER_SYSTEM, Role.PERSONAL)) in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/behavior/
DRoleUiBehavior.java30 import com.android.role.controller.model.Role;
48 default void prepareRequestRoleItemViewAsUser(@NonNull Role role, in prepareRequestRoleItemViewAsUser()
62 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
76 default void preparePreferenceAsUser(@NonNull Role role, in preparePreferenceAsUser()
90 default void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
104 default CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/service/
DRoleControllerServiceImpl.java32 import com.android.role.controller.model.Role;
85 ArrayMap<String, Role> roleMap = Roles.get(mContext); in onGrantDefaultRoles()
86 List<Role> roles = new ArrayList<>(); in onGrantDefaultRoles()
91 Role role = roleMap.valueAt(i); in onGrantDefaultRoles()
113 Role role = roleMap.get(roleName); in onGrantDefaultRoles()
120 Role role = roles.get(rolesIndex); in onGrantDefaultRoles()
217 Role role = Roles.get(mContext).get(roleName); in onAddRoleHolder()
276 Role role = Roles.get(mContext).get(roleName); in onRemoveRoleHolder()
310 Role role = Roles.get(mContext).get(roleName); in onClearRoleHolders()
338 private boolean addRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in addRoleHolderInternal()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DRoleUiBehaviorUtils.java32 import com.android.role.controller.model.Role;
47 private static RoleUiBehavior getUiBehavior(@NonNull Role role) { in getUiBehavior()
67 public static void prepareRequestRoleItemViewAsUser(@NonNull Role role, in prepareRequestRoleItemViewAsUser()
81 public static Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
93 public static void preparePreferenceAsUser(@NonNull Role role, in preparePreferenceAsUser()
106 public static void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
123 public static CharSequence getConfirmationMessage(@NonNull Role role, in getConfirmationMessage()
/packages/modules/adb/pairing_connection/
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_;
153 PairingConnectionCtx::PairingConnectionCtx(Role role, const Data& pswd, const PeerInfo& peer_info, in PairingConnectionCtx()
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()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantAwarenessUtilsTest.java194 android.hardware.automotive.occupant_awareness.Role.INVALID)) in testConvertToRole_returnsNoneWithRoleInvalid()
201 android.hardware.automotive.occupant_awareness.Role.UNKNOWN)) in testConvertToRole_returnsNoneWithRoleUnknown()
208 android.hardware.automotive.occupant_awareness.Role.ALL_OCCUPANTS)) in testConvertToRole_returnsAllOccupants()
215 android.hardware.automotive.occupant_awareness.Role.DRIVER)) in testConvertToRole_returnsDriver()
222 android.hardware.automotive.occupant_awareness.Role.FRONT_PASSENGER)) in testConvertToRole_returnsFrontPassenger()
229 android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_LEFT)) in testConvertToRole_returnsRow2PassengerLeft()
236 android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_CENTER)) in testConvertToRole_returnsRow2PassengerCenter()
243 android.hardware.automotive.occupant_awareness.Role.ROW_2_PASSENGER_RIGHT)) in testConvertToRole_returnsRow2PassengerRight()
250 android.hardware.automotive.occupant_awareness.Role.ROW_3_PASSENGER_LEFT)) in testConvertToRole_returnsRow3PassengerLeft()
257 android.hardware.automotive.occupant_awareness.Role.ROW_3_PASSENGER_CENTER)) in testConvertToRole_returnsRow3PassengerCenter()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRoleItem.java23 import com.android.role.controller.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()
DRequestRoleViewModel.java26 import com.android.role.controller.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()
DDefaultAppViewModel.java33 import com.android.role.controller.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()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DDialerRoleBehavior.java27 import com.android.role.controller.model.Role;
53 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
63 public void grantAsUser(@NonNull Role role, @NonNull String packageName, in grantAsUser()
74 public void revokeAsUser(@NonNull Role role, @NonNull String packageName, in revokeAsUser()
83 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DSmsRoleBehavior.java31 import com.android.role.controller.model.Role;
59 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
102 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
117 public void grantAsUser(@NonNull Role role, @NonNull String packageName, in grantAsUser()
127 public void revokeAsUser(@NonNull Role role, @NonNull String packageName, in revokeAsUser()
136 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DBrowserRoleBehavior.java32 import com.android.role.controller.model.Role;
64 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
91 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
98 public Boolean isPackageQualifiedAsUser(@NonNull Role role, @NonNull String packageName, in isPackageQualifiedAsUser()
136 public void grantAsUser(@NonNull Role role, @NonNull String packageName, in grantAsUser()
149 public void revokeAsUser(@NonNull Role role, @NonNull String packageName, in revokeAsUser()
160 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DHomeRoleBehavior.java35 import com.android.role.controller.model.Role;
71 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
81 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
132 public void onHolderSelectedAsUser(@NonNull Role role, @NonNull String packageName, in onHolderSelectedAsUser()
143 public void grantAsUser(@NonNull Role role, @NonNull String packageName, in grantAsUser()
166 public void revokeAsUser(@NonNull Role role, @NonNull String packageName, in revokeAsUser()
189 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
195 public boolean isApplicationVisibleAsUser(@NonNull Role role, in isApplicationVisibleAsUser()
DEmergencyRoleBehavior.java27 import com.android.role.controller.model.Role;
44 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
52 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
74 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DAssistantRoleBehavior.java39 import com.android.role.controller.model.Role;
59 public void onRoleAddedAsUser(@NonNull Role role, @NonNull UserHandle user, in onRoleAddedAsUser()
74 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
81 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
88 public Boolean isPackageQualifiedAsUser(@NonNull Role role, @NonNull String packageName, in isPackageQualifiedAsUser()
199 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dacl_connection.h41 bluetooth::hci::Role role);
64 bluetooth::hci::Role GetRole() const;
65 void SetRole(bluetooth::hci::Role role);
99 bluetooth::hci::Role role_{bluetooth::hci::Role::CENTRAL};
/packages/modules/adb/pairing_auth/
Dpairing_auth.cpp45 enum class Role { enum
50 explicit PairingAuthCtx(Role role, const Data& pswd);
85 Role role_;
90 PairingAuthCtx::PairingAuthCtx(Role role, const Data& pswd) : role_(role) { in PairingAuthCtx()
101 case Role::Client: in PairingAuthCtx()
108 case Role::Server: in PairingAuthCtx()
213 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Server, std::move(p)); in pairing_auth_server_new()
222 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Client, std::move(p)); in pairing_auth_client_new()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/llcp/
Diso.rs234 pub role: hci::Role,
246 hci::Role::Central => parameters.max_sdu_c_to_p, in max_sdu_tx()
247 hci::Role::Peripheral => parameters.max_sdu_p_to_c, in max_sdu_tx()
259 acl_connections: HashMap<u16, hci::Role>,
285 pub fn add_acl_connection(&mut self, acl_connection_handle: u16, role: hci::Role) { in add_acl_connection() argument
300 fn new_cis_connection(&mut self, cig_id: u8, cis_id: u8, role: hci::Role) -> u16 { in new_cis_connection()
442 cis.cis_id == cis_id && cis.cig_id == cig_id && cis.role == hci::Role::Central in hci_le_set_cig_parameters()
591 self.new_cis_connection(cig_id, cis_config.cis_id, hci::Role::Central); in hci_le_set_cig_parameters()
631 cis.cis_id == cis_id && cis.cig_id == cig_id && cis.role == hci::Role::Central in hci_le_set_cig_parameters_test()
756 self.new_cis_connection(cig_id, cis_config.cis_id, hci::Role::Central); in hci_le_set_cig_parameters_test()
[all …]
/packages/modules/adb/tls/
Dtls_connection.cpp40 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key,
66 const char* RoleToString() { return role_ == Role::Server ? kServerRoleStr : kClientRoleStr; } in RoleToString()
68 Role role_;
85 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl()
175 CHECK(role_ == Role::Server); in SetClientCAList()
274 case Role::Server: in DoHandshake()
277 case Role::Client: in DoHandshake()
289 if (client_verify_post_handshake_ && role_ == Role::Client) { in DoHandshake()
363 std::unique_ptr<TlsConnection> TlsConnection::Create(TlsConnection::Role role, in Create()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
DSpecialAppAccessViewModel.java39 import com.android.role.controller.model.Role;
51 private final Role mRole;
60 public SpecialAppAccessViewModel(@NonNull Role role, @NonNull Application application) { in SpecialAppAccessViewModel()
167 private Role mRole;
172 public Factory(@NonNull Role role, @NonNull Application application) { in Factory()

1234567