Home
last modified time | relevance | path

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

/packages/modules/Nfc/NfcNci/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java50 ComponentName mForegroundComponent = null; // The computed enabled foreground component field in EnabledNfcFServices
90 (mForegroundComponent == null || in computeEnabledForegroundService()
91 !mForegroundRequested.equals(mForegroundComponent))) { in computeEnabledForegroundService()
92 mForegroundComponent = mForegroundRequested; in computeEnabledForegroundService()
94 } else if (mForegroundRequested == null && mForegroundComponent != null) { in computeEnabledForegroundService()
95 mForegroundComponent = mForegroundRequested; in computeEnabledForegroundService()
111 if (mForegroundComponent != null) { in onServicesUpdated()
218 mForegroundComponent = null; in onNfcDisabled()
228 mForegroundComponent = null; in onUserSwitched()
250 if (mForegroundComponent != null) { in dumpDebug()
[all …]
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/
DEnableNfcFServiceTest.java164 ComponentName mForegroundComponent = mock(ComponentName.class); in testDumpDebug() local
169 fieldForegroundComp.set(mEnabledNfcFServices, mForegroundComponent); in testDumpDebug()
186 ComponentName mForegroundComponent = mock(ComponentName.class); in testUnRegisterForegroundService() local
196 fieldForegroundComp.set(mEnabledNfcFServices, mForegroundComponent); in testUnRegisterForegroundService()
215 ComponentName mForegroundComponent = mock(ComponentName.class); in testUnregisteredEnabledForegroundService() local
225 fieldForegroundComp.set(mEnabledNfcFServices, mForegroundComponent); in testUnregisteredEnabledForegroundService()
251 ComponentName mForegroundComponent = mock(ComponentName.class); in testOnServiceUpdate() local
257 fieldForegroundComp.set(mEnabledNfcFServices, mForegroundComponent); in testOnServiceUpdate()