Searched refs:preferredService (Results 1 – 4 of 4) sorted by relevance
278 ComponentName preferredService = null; in computePreferredForegroundService() local283 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()
251 Pair<Integer, ComponentName> preferredService = mAidCache.getPreferredService(); in getForegroundServiceAndNameOrDefault() local252 int preferredServiceUserId = preferredService.first != null ? in getForegroundServiceAndNameOrDefault()253 preferredService.first : -1; in getForegroundServiceAndNameOrDefault()254 ComponentName preferredServiceName = preferredService.second; in getForegroundServiceAndNameOrDefault()
1092 ComponentName preferredService = mAidCache.getPreferredService().second; in updateForShouldDefaultToObserveMode() local1094 preferredService); in updateForShouldDefaultToObserveMode()
95 ComponentName preferredService = mRegisteredAidCache.getPreferredService().second; in testOnPreferredForegroundServiceChanged() local97 Assert.assertNotNull(preferredService); in testOnPreferredForegroundServiceChanged()98 Assert.assertEquals(componentName.getClassName(), preferredService.getClassName()); in testOnPreferredForegroundServiceChanged()