Home
last modified time | relevance | path

Searched refs:preferForeground (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java83 boolean preferForeground; // The current selection mode for this category field in PreferredServices.PaymentDefaults
241 boolean preferForeground = false; in loadDefaultsFromSettings()
244 preferForeground = mWalletRoleObserver.isWalletRoleFeatureEnabled() in loadDefaultsFromSettings()
251 … paymentPreferForegroundChanged = (preferForeground != mPaymentDefaults.preferForeground); in loadDefaultsFromSettings()
252 mPaymentDefaults.preferForeground = preferForeground; in loadDefaultsFromSettings()
368 if (!mPaymentDefaults.preferForeground) { in isForegroundAllowedLocked()
530 + mPaymentDefaults.preferForeground); in dump()
591 mPaymentDefaults.preferForeground); in dumpDebug()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java368 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()
392 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
416 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
536 services.mPaymentDefaults.preferForeground = false; in testOnUserSwitchedWithChange()
541 assertThat(services.mPaymentDefaults.preferForeground).isTrue(); in testOnUserSwitchedWithChange()
555 services.mPaymentDefaults.preferForeground = false; in testOnUserSwitchedWithNoChange()
561 assertThat(services.mPaymentDefaults.preferForeground).isTrue(); in testOnUserSwitchedWithNoChange()