Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java91 PaymentDefaults mPaymentDefaults = new PaymentDefaults(); field in PreferredServices
251 … paymentPreferForegroundChanged = (preferForeground != mPaymentDefaults.preferForeground); in loadDefaultsFromSettings()
252 mPaymentDefaults.preferForeground = preferForeground; in loadDefaultsFromSettings()
254 mPaymentDefaults.settingsDefault = newDefault; in loadDefaultsFromSettings()
255 if (newDefault != null && (!newDefault.equals(mPaymentDefaults.currentPreferred) in loadDefaultsFromSettings()
256 || mPaymentDefaults.mUserHandle.getIdentifier() != newUser.getIdentifier())) { in loadDefaultsFromSettings()
258 mPaymentDefaults.currentPreferred = newDefault; in loadDefaultsFromSettings()
259 mPaymentDefaults.mUserHandle = newUser; in loadDefaultsFromSettings()
260 } else if (newDefault == null && mPaymentDefaults.currentPreferred != null) { in loadDefaultsFromSettings()
262 mPaymentDefaults.currentPreferred = newDefault; in loadDefaultsFromSettings()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java367 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()
368 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()
390 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
391 services.mPaymentDefaults.mUserHandle = mUserHandle; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
392 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
414 services.mPaymentDefaults.currentPreferred = null; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
415 services.mPaymentDefaults.mUserHandle = mUserHandle; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
416 services.mPaymentDefaults.preferForeground = false; in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
430 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testRegisterPreferredForegroundServiceWithSuccess()
443 services.mPaymentDefaults.currentPreferred = TEST_COMPONENT; in testRegisterPreferredForegroundServiceWithFailure()
[all …]