Searched refs:mForegroundCurrent (Results 1 – 2 of 2) sorted by relevance
100 ComponentName mForegroundCurrent; // The currently computed foreground component field in PreferredServices291 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()330 if (mForegroundCurrent != null) { in onServicesUpdated()331 if (!isForegroundAllowedLocked(mForegroundCurrent, mForegroundCurrentUid)) { in onServicesUpdated()501 return (mForegroundCurrent != null in packageHasPreferredService()502 && packageName.equals(mForegroundCurrent.getPackageName())); in packageHasPreferredService()509 pw.println(" *** Current preferred foreground service: " + mForegroundCurrent in dump()[all …]
285 assertThat(services.mForegroundCurrent).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()298 services.mForegroundCurrent = null; in testSetDefaultForNextTapWithNullService_NoChange()305 assertThat(services.mForegroundCurrent).isEqualTo(null); in testSetDefaultForNextTapWithNullService_NoChange()313 services.mForegroundCurrent = TEST_COMPONENT; in testSetDefaultForNextTapWithNonNullService_NoChange()320 assertThat(services.mForegroundCurrent).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NoChange()330 services.mForegroundCurrent = TEST_COMPONENT; in testSetDefaultForNextTapWithNullService_NotifyChange()337 assertThat(services.mForegroundCurrent).isEqualTo(null); in testSetDefaultForNextTapWithNullService_NotifyChange()348 services.mForegroundCurrent = null; in testOnServicesUpdatedWithNullForeground_NoChange()365 services.mForegroundCurrent = TEST_COMPONENT; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()388 services.mForegroundCurrent = TEST_COMPONENT; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()[all …]