Home
last modified time | relevance | path

Searched refs:mWalletRoleObserver (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DWalletRoleObserverTest.java57 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()
DRegisteredAidCacheTest.java96 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 …]
DCardEmulationManagerTest.java97 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 …]
DPreferredServicesTest.java183 assertThat(services.mWalletRoleObserver).isEqualTo(mObserver); in testConstructorWhenWalletRoleFeatureIsNotEnabled()
200 assertThat(services.mWalletRoleObserver).isEqualTo(mObserver); in testConstructorWhenWalletRoleFeatureIsEnabled()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java75 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 …]
DCardEmulationManager.java111 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 …]
DRegisteredAidCache.java154 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/
DRegisteredAidCacheTest.java52 private WalletRoleObserver mWalletRoleObserver; field in RegisteredAidCacheTest
75 mockContext, mWalletRoleObserver, routingManager)); in setUp()