Home
last modified time | relevance | path

Searched refs:mAidCache (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java79 private RegisteredAidCache mAidCache; field in PreferredServicesTest
165 when(mAidCache.resolveAid(anyString())).thenReturn(mResolveInfo); in setUp()
180 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testConstructorWhenWalletRoleFeatureIsNotEnabled()
186 assertThat(services.mAidCache).isEqualTo(mAidCache); in testConstructorWhenWalletRoleFeatureIsNotEnabled()
197 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testConstructorWhenWalletRoleFeatureIsEnabled()
203 assertThat(services.mAidCache).isEqualTo(mAidCache); in testConstructorWhenWalletRoleFeatureIsEnabled()
216 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testOnWalletRoleHolderChangedWithNullPackageName()
234 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos()
254 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testOnWalletRoleHolderChangedWithExistingPackageNameAndNoServiceInfo()
266 services = new PreferredServices(mContext, mServicesCache, mAidCache, mObserver, mCallback); in testOnWalletRoleHolderChangedWithIncorrectPackageName()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java103 final RegisteredAidCache mAidCache; field in CardEmulationManager
135 mAidCache = new RegisteredAidCache(context, mWalletRoleObserver); in CardEmulationManager()
138 new HostEmulationManager(context, Looper.getMainLooper(), mAidCache); in CardEmulationManager()
142 mPreferredServices = new PreferredServices(context, mServiceCache, mAidCache, in CardEmulationManager()
172 mAidCache = registeredAidCache; in CardEmulationManager()
284 mAidCache.onNfcEnabled(); in onNfcEnabled()
291 mAidCache.onNfcDisabled(); in onNfcDisabled()
300 mAidCache.onSecureNfcToggled(); in onSecureNfcToggled()
309 mAidCache.dump(fd, pw, args); in dump()
342 mAidCache.dumpDebug(proto); in dumpDebug()
[all …]
DRegisteredAidCache.java87 final TreeMap<String, AidResolveInfo> mAidCache = new TreeMap<String, AidResolveInfo>(); field in RegisteredAidCache
216 mAidCache.subMap(shortestAidMatch, true, longestAidMatch, true); in resolveAid()
245 resolveInfo = mAidCache.get(aid); in resolveAid()
814 mAidCache.clear(); in generateAidCacheLocked()
944 mAidCache.put(aidToResolve, resolveInfo); in generateAidCacheLocked()
957 mAidCache.put(resolveInfo.prefixInfo.prefixAid, childResolveInfo); in generateAidCacheLocked()
979 mAidCache.put(entry.getKey(),childResolveInfo); in generateAidCacheLocked()
989 mAidCache.put(resolveInfo.prefixInfo.prefixAid, childResolveInfo); in generateAidCacheLocked()
1009 mAidCache.put(aidToResolve, aidCache.get(aidToResolve)); in generateAidCacheLocked()
1019 for (String key : mAidCache.keySet()) { in generateAidCacheLocked()
[all …]
DHostEmulationManager.java113 final RegisteredAidCache mAidCache; field in HostEmulationManager
213 mAidCache = aidCache; in HostEmulationManager()
251 Pair<Integer, ComponentName> preferredService = mAidCache.getPreferredService(); in getForegroundServiceAndNameOrDefault()
461 serviceInfo = mAidCache.resolvePollingLoopFilterConflict(serviceInfos); in onPollingLoopDetected()
648 resolveInfo = mAidCache.resolveAid(selectAid); in onHostEmulationData()
886 mAidCache.getPreferredPaymentService(); in bindServiceIfNeededLocked()
1216 AidResolveInfo resolveInfo = mAidCache.resolveAid(mLastSelectedAid); in handleMessage()
DPreferredServices.java77 final RegisteredAidCache mAidCache; field in PreferredServices
126 mAidCache = aidCache; in PreferredServices()
387 RegisteredAidCache.AidResolveInfo resolveInfo = mAidCache.resolveAid(aid); in isForegroundAllowedLocked()