Searched refs:mForegroundCurrent (Results 1 – 2 of 2) sorted by relevance
100 ComponentName mForegroundCurrent; // The currently computed foreground component field in PreferredServices297 if (preferredService != null && (!preferredService.equals(mForegroundCurrent) in computePreferredForegroundService()300 mForegroundCurrent = preferredService; in computePreferredForegroundService()303 } else if (preferredService == null && mForegroundCurrent != null) { in computePreferredForegroundService()304 mForegroundCurrent = preferredService; in computePreferredForegroundService()337 if (mForegroundCurrent != null) { in onServicesUpdated()338 if (!isForegroundAllowedLocked(mForegroundCurrent, mForegroundCurrentUid)) { in onServicesUpdated()516 return (mForegroundCurrent != null in packageHasPreferredService()517 && packageName.equals(mForegroundCurrent.getPackageName())); in packageHasPreferredService()524 pw.println(" *** Current preferred foreground service: " + mForegroundCurrent in dump()[all …]
314 assertThat(services.mForegroundCurrent).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()326 services.mForegroundCurrent = null; in testSetDefaultForNextTapWithNullService_NoChange()333 assertThat(services.mForegroundCurrent).isEqualTo(null); in testSetDefaultForNextTapWithNullService_NoChange()341 services.mForegroundCurrent = TEST_COMPONENT; in testSetDefaultForNextTapWithNonNullService_NoChange()348 assertThat(services.mForegroundCurrent).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NoChange()358 services.mForegroundCurrent = TEST_COMPONENT; in testSetDefaultForNextTapWithNullService_NotifyChange()365 assertThat(services.mForegroundCurrent).isEqualTo(null); in testSetDefaultForNextTapWithNullService_NotifyChange()375 services.mForegroundCurrent = null; in testOnServicesUpdatedWithNullForeground_NoChange()393 services.mForegroundCurrent = TEST_COMPONENT; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()417 services.mForegroundCurrent = TEST_COMPONENT; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()[all …]