Searched refs:currentPreferred (Results 1 – 2 of 2) sorted by relevance
85 ComponentName currentPreferred; // The computed preferred component field in PreferredServices.PaymentDefaults255 if (newDefault != null && (!newDefault.equals(mPaymentDefaults.currentPreferred) in loadDefaultsFromSettings()258 mPaymentDefaults.currentPreferred = newDefault; in loadDefaultsFromSettings()260 } else if (newDefault == null && mPaymentDefaults.currentPreferred != null) { in loadDefaultsFromSettings()262 mPaymentDefaults.currentPreferred = newDefault; in loadDefaultsFromSettings()356 if (service.equals(mPaymentDefaults.currentPreferred)) { in isForegroundAllowedLocked()384 mPaymentDefaults.currentPreferred); in isForegroundAllowedLocked()497 if (mPaymentDefaults.currentPreferred != null in packageHasPreferredService()498 && packageName.equals(mPaymentDefaults.currentPreferred.getPackageName())) { in packageHasPreferredService()520 + mPaymentDefaults.currentPreferred + "(" in dump()[all …]
367 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()390 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()414 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()430 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testRegisterPreferredForegroundServiceWithSuccess()443 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testRegisterPreferredForegroundServiceWithFailure()537 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testOnUserSwitchedWithChange()543 assertThat(services.mPaymentDefaults.currentPreferred).isEqualTo(null); in testOnUserSwitchedWithChange()556 services.mPaymentDefaults.currentPreferred = null; in testOnUserSwitchedWithNoChange()563 assertThat(services.mPaymentDefaults.currentPreferred).isEqualTo(null); in testOnUserSwitchedWithNoChange()580 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testPackageHasPreferredServiceWithMatchingPackageName_ReturnsTrue()