Searched refs:ROLE_WALLET (Results 1 – 11 of 11) sorted by relevance
99 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 …]
54 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()
17 …roid.permission.flags.wallet_role_enabled") public static final String ROLE_WALLET = "android.app.…
49 intent = DefaultAppActivity.createIntent(RoleManager.ROLE_WALLET, in onCreate()
73 if (roleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in handlePreferenceTreeClick()
122 assertThat(roleTypeCaptor.getValue()).isEqualTo(RoleManager.ROLE_WALLET); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()
276 return mRoleManager.isRoleHeld(RoleManager.ROLE_WALLET); in isWalletRoleHeld()
370 RoleManager.ROLE_WALLET, in setDefaultWalletRoleHolder()
155 public static final String ROLE_WALLET = "android.app.role.WALLET"; field in RoleManager
115 defaultApplicationRoles.add(RoleManager.ROLE_WALLET);
1825 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in getWalletRoleHolder()