/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | WalletRoleObserverTest.java | 57 WalletRoleObserver mWalletRoleObserver; field in WalletRoleObserverTest 83 mWalletRoleObserver = in setUp() 103 String roleHolder = mWalletRoleObserver.getDefaultWalletRoleHolder(USER_ID); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder() 117 String roleHolder = mWalletRoleObserver.getDefaultWalletRoleHolder(USER_ID); in testGetDefaultWalletRoleHolder_roleNotAvailable_returnsNull() 126 mWalletRoleObserver.mOnRoleHoldersChangedListener in testCallbackFiringOnRoleChange_roleWallet() 137 mWalletRoleObserver.mOnRoleHoldersChangedListener in testCallbackNotFiringOnRoleChange_roleNonWallet() 150 mWalletRoleObserver.onUserSwitched(USER_ID); in testOnUserSwitched_callsCallback()
|
D | RegisteredAidCacheTest.java | 96 private WalletRoleObserver mWalletRoleObserver; field in RegisteredAidCacheTest 135 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testConstructor_supportsPrefixAndSubset() 147 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testConstructor_doesNotSupportsPrefixAndSubset() 172 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testAidConflictResolution_walletRoleEnabledNfcDisabled_foregroundWins() 225 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testAidConflictResolution_walletRoleEnabledNfcEnabled_walletWins() 291 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testAidConflictResolution_walletRoleEnabledNfcEnabledPreFixAid_walletWins() 346 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testAidConflictResolution_walletRoleEnabled_twoServicesOnWallet_firstServiceWins() 392 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testOnServicesUpdated_walletRoleEnabled() 451 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testOnNfcEnabled() 498 mRegisteredAidCache = new RegisteredAidCache(mContext, mWalletRoleObserver, in testOnNfcDisabled() [all …]
|
D | CardEmulationManagerTest.java | 97 private WalletRoleObserver mWalletRoleObserver; field in CardEmulationManagerTest 173 verify(mWalletRoleObserver).isWalletRoleFeatureEnabled(); in assertConstructorMethodCalls() 174 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls() 312 verify(mWalletRoleObserver).onUserSwitched(eq(USER_ID)); in testOnUserSwitched() 361 when(mWalletRoleObserver.isWalletRoleFeatureEnabled()).thenReturn(true); in testOnServicesUpdated_walletEnabledPollingLoopDisabled() 366 verify(mWalletRoleObserver, times(2)).isWalletRoleFeatureEnabled(); in testOnServicesUpdated_walletEnabledPollingLoopDisabled() 376 when(mWalletRoleObserver.isWalletRoleFeatureEnabled()).thenReturn(true); in testOnServicesUpdated_walletEnabledPollingLoopEnabled() 381 verify(mWalletRoleObserver, times(2)).isWalletRoleFeatureEnabled(); in testOnServicesUpdated_walletEnabledPollingLoopEnabled() 461 when(mWalletRoleObserver.isWalletRoleFeatureEnabled()).thenReturn(true); in testCardEmulationIsDefaultServiceForCategory_serviceExistsWalletEnabled() 462 when(mWalletRoleObserver.getDefaultWalletRoleHolder(eq(USER_ID))) in testCardEmulationIsDefaultServiceForCategory_serviceExistsWalletEnabled() [all …]
|
D | PreferredServicesTest.java | 183 assertThat(services.mWalletRoleObserver).isEqualTo(mObserver); in testConstructorWhenWalletRoleFeatureIsNotEnabled() 200 assertThat(services.mWalletRoleObserver).isEqualTo(mObserver); in testConstructorWhenWalletRoleFeatureIsEnabled()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | PreferredServices.java | 75 final WalletRoleObserver mWalletRoleObserver; field in PreferredServices 122 mWalletRoleObserver = walletRoleObserver; in PreferredServices() 142 if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in PreferredServices() 143 String holder = mWalletRoleObserver.getDefaultWalletRoleHolder(currentUserId); in PreferredServices() 244 preferForeground = mWalletRoleObserver.isWalletRoleFeatureEnabled() in loadDefaultsFromSettings() 269 if (!mWalletRoleObserver.isWalletRoleFeatureEnabled() && (paymentDefaultChanged || force)) { in loadDefaultsFromSettings() 346 if(mWalletRoleObserver.isWalletRoleFeatureEnabled() in onServicesUpdated() 348 onWalletRoleHolderChanged(mWalletRoleObserver in onServicesUpdated() 511 if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in dump() 526 if (!mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in dump() [all …]
|
D | CardEmulationManager.java | 111 final WalletRoleObserver mWalletRoleObserver; field in CardEmulationManager 133 mWalletRoleObserver = new WalletRoleObserver(context, in CardEmulationManager() 135 mAidCache = new RegisteredAidCache(context, mWalletRoleObserver); in CardEmulationManager() 143 mWalletRoleObserver, this); in CardEmulationManager() 171 mWalletRoleObserver = walletRoleObserver; in CardEmulationManager() 191 if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in initialize() 194 mWalletRoleObserver.getDefaultWalletRoleHolder(currentUser), currentUser); in initialize() 264 mWalletRoleObserver.onUserSwitched(userId); in onUserSwitched() 361 if (!mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in onServicesUpdated() 593 if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in isDefaultServiceForCategory() [all …]
|
D | RegisteredAidCache.java | 154 final WalletRoleObserver mWalletRoleObserver; field in RegisteredAidCache 181 mWalletRoleObserver = walletRoleObserver; in RegisteredAidCache() 295 } else if(mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in resolvePollingLoopFilterConflict() 308 if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in resolvePollingLoopFilterConflict() 391 } else if(mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in resolveAidConflictLocked() 425 } else if (mWalletRoleObserver.isWalletRoleFeatureEnabled() && in resolveAidConflictLocked() 469 } else if(mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in findDefaultServices() 532 } else if (mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in resolveAidConflictLocked() 1233 } else if(mWalletRoleObserver.isWalletRoleFeatureEnabled()) { in isPreferredServicePackageNameForUser()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | RegisteredAidCacheTest.java | 52 private WalletRoleObserver mWalletRoleObserver; field in RegisteredAidCacheTest 75 mockContext, mWalletRoleObserver, routingManager)); in setUp()
|