Home
last modified time | relevance | path

Searched refs:mForegroundRequested (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java50 ComponentName mForegroundRequested = null; // The component requested to be enabled by fg app field in EnabledNfcFServices
86 foregroundRequested = mForegroundRequested; in computeEnabledForegroundService()
87 if (mForegroundRequested != null && in computeEnabledForegroundService()
89 !mForegroundRequested.equals(mForegroundComponent))) { in computeEnabledForegroundService()
90 mForegroundComponent = mForegroundRequested; in computeEnabledForegroundService()
92 } else if (mForegroundRequested == null && mForegroundComponent != null){ in computeEnabledForegroundService()
93 mForegroundComponent = mForegroundRequested; in computeEnabledForegroundService()
111 mForegroundRequested = null; in onServicesUpdated()
137 if (service.equals(mForegroundRequested) && mForegroundUid == callingUid) { in registerEnabledForegroundService()
142 mForegroundRequested = service; in registerEnabledForegroundService()
[all …]
DPreferredServices.java93 ComponentName mForegroundRequested; // The component preferred by fg app field in PreferredServices
287 preferredService = mForegroundRequested; in computePreferredForegroundService()
333 mForegroundRequested = null; in onServicesUpdated()
412 mForegroundRequested = service; in registerPreferredForegroundService()
433 mForegroundRequested = null; in unregisterForegroundService()
525 + "): " + mForegroundRequested); in dump()
580 if (mForegroundRequested != null) { in dumpDebug()
582 mForegroundRequested, proto, PreferredServicesProto.FOREGROUND_REQUESTED); in dumpDebug()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java297 services.mForegroundRequested = null; in testSetDefaultForNextTapWithNullService_NoChange()
329 services.mForegroundRequested = null; in testSetDefaultForNextTapWithNullService_NotifyChange()
352 assertThat(services.mForegroundRequested).isNull(); in testOnServicesUpdatedWithNullForeground_NoChange()
372 assertThat(services.mForegroundRequested).isNull(); in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()
396 assertThat(services.mForegroundRequested).isNull(); in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
420 assertThat(services.mForegroundRequested).isNull(); in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
435 assertThat(services.mForegroundRequested).isEqualTo(TEST_COMPONENT); in testRegisterPreferredForegroundServiceWithSuccess()
448 assertThat(services.mForegroundRequested).isNull(); in testRegisterPreferredForegroundServiceWithFailure()
461 assertThat(services.mForegroundRequested).isNull(); in testUnregisteredPreferredForegroundServiceInForeground_ReturnsSuccess()
474 assertThat(services.mForegroundRequested).isNull(); in testUnregisteredPreferredForegroundServiceInForeground_ReturnsFailure()
[all …]