Home
last modified time | relevance | path

Searched refs:isRoleAvailable (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DWalletRoleObserverTest.java99 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(true); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
105 verify(mRoleManager).isRoleAvailable(mRoleNameCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
115 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(false); in testGetDefaultWalletRoleHolder_roleNotAvailable_returnsNull()
146 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(true); in testOnUserSwitched_callsCallback()
151 verify(mRoleManager).isRoleAvailable(mRoleNameCaptor.capture()); in testOnUserSwitched_callsCallback()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java270 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in requestRoleThenBlockRequestRoleDialogByRestrictedSettingDialog()
508 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetCurrentSdkAndChangeDefaultDialerThenDeniedAutomatically()
522 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetCurrentSdkAndChangeDefaultSmsThenDeniedAutomatically()
537 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer()
558 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms()
576 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerForAnotherAppThenDeniedAutomatically()
592 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppThenDeniedAutomatically()
609 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultDialer()
632 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in testHoldDialerRoleRequirementWithInCallServiceAndSdk()
655 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultSms()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceControllerTest.java114 when(mRoleManager.isRoleAvailable(anyString())).thenReturn(true); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()
120 verify(mRoleManager).isRoleAvailable(roleTypeCaptor.capture()); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()
/packages/modules/Permission/framework-s/api/
Dcurrent.txt6 method public boolean isRoleAvailable(@NonNull String);
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceController.java73 if (roleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in handlePreferenceTreeClick()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DWalletRoleObserver.java77 if (!mRoleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in getDefaultWalletRoleHolder()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DApiWrapper.java150 if (roleManager.isRoleAvailable(RoleManager.ROLE_HOME) in assignDefaultHomeRole()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DSystemApiWrapper.kt149 (roleManager!!.isRoleAvailable(RoleManager.ROLE_HOME) && in <lambda>()
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java265 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() method in RoleUserState
DRoleService.java476 return getOrCreateUserState(userId).isRoleAvailable(roleName); in isRoleAvailableAsUser()
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesController.java110 if (rm == null || !rm.isRoleAvailable(RoleManager.ROLE_NOTES)) { in createOrUpdateDefaultNotesPreference()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/service/
DRoleControllerServiceImpl.java99 if (!mUserRoleManager.isRoleAvailable(roleName)) { in onGrantDefaultRoles()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleManager.java317 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() method in RoleManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesControllerTest.java148 when(mRm.isRoleAvailable(RoleManager.ROLE_NOTES)).thenReturn(true); in setUp()