Home
last modified time | relevance | path

Searched refs:ROLE_WALLET (Results 1 – 11 of 11) 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()
100 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_WALLET), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
109 Assert.assertEquals(RoleManager.ROLE_WALLET, mRoleNameCaptor.getAllValues().get(0)); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
110 Assert.assertEquals(RoleManager.ROLE_WALLET, mRoleNameCaptor.getAllValues().get(1)); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
115 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(false); in testGetDefaultWalletRoleHolder_roleNotAvailable_returnsNull()
125 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_WALLET))).thenReturn(roleHolders); in testCallbackFiringOnRoleChange_roleWallet()
127 .onRoleHoldersChanged(RoleManager.ROLE_WALLET, USER_HANDLE); in testCallbackFiringOnRoleChange_roleWallet()
131 Assert.assertEquals(RoleManager.ROLE_WALLET, mRoleNameCaptor.getValue()); in testCallbackFiringOnRoleChange_roleWallet()
146 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(true); in testOnUserSwitched_callsCallback()
147 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_WALLET), in testOnUserSwitched_callsCallback()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DWalletRoleObserver.java54 if (!roleName.equals(RoleManager.ROLE_WALLET)) { in WalletRoleObserver()
57 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in WalletRoleObserver()
77 if (!mRoleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in getDefaultWalletRoleHolder()
80 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_WALLET, in getDefaultWalletRoleHolder()
/packages/modules/Permission/framework-s/api/
Dcurrent.txt17 …roid.permission.flags.wallet_role_enabled") public static final String ROLE_WALLET = "android.app.…
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/v35/
DChangeDefaultCardEmulationActivity.java49 intent = DefaultAppActivity.createIntent(RoleManager.ROLE_WALLET, in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceController.java73 if (roleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in handlePreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceControllerTest.java122 assertThat(roleTypeCaptor.getValue()).isEqualTo(RoleManager.ROLE_WALLET); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()
/packages/apps/Nfc/testutils/src/com/android/nfc/emulator/
DBaseEmulatorActivity.java276 return mRoleManager.isRoleHeld(RoleManager.ROLE_WALLET); in isWalletRoleHeld()
/packages/apps/Nfc/testutils/src/com/android/nfc/utils/
DHceUtils.java370 RoleManager.ROLE_WALLET, in setDefaultWalletRoleHolder()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleManager.java155 public static final String ROLE_WALLET = "android.app.role.WALLET"; field in RoleManager
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java115 defaultApplicationRoles.add(RoleManager.ROLE_WALLET);
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java1825 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in getWalletRoleHolder()