Home
last modified time | relevance | path

Searched refs:preferredService (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java278 ComponentName preferredService = null; in computePreferredForegroundService() local
283 preferredService = mNextTapDefault; in computePreferredForegroundService()
285 if (preferredService == null) { in computePreferredForegroundService()
287 preferredService = mForegroundRequested; in computePreferredForegroundService()
291 if (preferredService != null && (!preferredService.equals(mForegroundCurrent) in computePreferredForegroundService()
294 mForegroundCurrent = preferredService; in computePreferredForegroundService()
297 } else if (preferredService == null && mForegroundCurrent != null){ in computePreferredForegroundService()
298 mForegroundCurrent = preferredService; in computePreferredForegroundService()
305 mCallback.onPreferredForegroundServiceChanged(preferredServiceUserId, preferredService); in computePreferredForegroundService()
DHostEmulationManager.java251 Pair<Integer, ComponentName> preferredService = mAidCache.getPreferredService(); in getForegroundServiceAndNameOrDefault() local
252 int preferredServiceUserId = preferredService.first != null ? in getForegroundServiceAndNameOrDefault()
253 preferredService.first : -1; in getForegroundServiceAndNameOrDefault()
254 ComponentName preferredServiceName = preferredService.second; in getForegroundServiceAndNameOrDefault()
DCardEmulationManager.java1092 ComponentName preferredService = mAidCache.getPreferredService().second; in updateForShouldDefaultToObserveMode() local
1094 preferredService); in updateForShouldDefaultToObserveMode()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DRegisteredAidCacheTest.java95 ComponentName preferredService = mRegisteredAidCache.getPreferredService().second; in testOnPreferredForegroundServiceChanged() local
97 Assert.assertNotNull(preferredService); in testOnPreferredForegroundServiceChanged()
98 Assert.assertEquals(componentName.getClassName(), preferredService.getClassName()); in testOnPreferredForegroundServiceChanged()