Home
last modified time | relevance | path

Searched refs:mForegroundUid (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java51 int mForegroundUid = -1; // The UID of the fg app, or -1 if fg app didn't request field in EnabledNfcFServices
99 int userId = UserHandle.getUserHandleForUid(mForegroundUid).getIdentifier(); in computeEnabledForegroundService()
112 mForegroundUid = -1; in onServicesUpdated()
137 if (service.equals(mForegroundRequested) && mForegroundUid == callingUid) { in registerEnabledForegroundService()
143 mForegroundUid = callingUid; in registerEnabledForegroundService()
159 if (mForegroundUid == uid) { in unregisterForegroundService()
161 mForegroundUid = -1; in unregisterForegroundService()
216 mForegroundUid = -1; in onNfcDisabled()
226 mForegroundUid = -1; in onUserSwitched()
254 proto.write(EnabledNfcFServicesProto.FOREGROUND_UID, mForegroundUid); in dumpDebug()
[all …]
DPreferredServices.java94 int mForegroundUid; // The UID of the fg app, or -1 if fg app didn't request field in PreferredServices
289 UserHandle.getUserHandleForUid(mForegroundUid).getIdentifier(); in computePreferredForegroundService()
295 mForegroundCurrentUid = mForegroundUid; in computePreferredForegroundService()
299 mForegroundCurrentUid = mForegroundUid; in computePreferredForegroundService()
334 mForegroundUid = -1; in onServicesUpdated()
413 mForegroundUid = callingUid; in registerPreferredForegroundService()
432 if (mForegroundUid == uid) { in unregisterForegroundService()
434 mForegroundUid = -1; in unregisterForegroundService()
524 pw.println(" Default for foreground app (UID: " + mForegroundUid in dump()
579 proto.write(PreferredServicesProto.FOREGROUND_UID, mForegroundUid); in dumpDebug()
DCardEmulationManager.java120 private int mForegroundUid; field in CardEmulationManager
190 mForegroundUid = Process.INVALID_UID; in initialize()
866 mForegroundUid = callingUid; in overrideRoutingTable()
890 mForegroundUid = Process.INVALID_UID; in recoverRoutingTable()
906 if (mForegroundUid == uid) { in onUidToBackground()
908 mForegroundUid = Process.INVALID_UID; in onUidToBackground()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeSystemActivityMonitoringService.java34 private int mForegroundUid = DEFAULT_FOREGROUND_ID; field in FakeSystemActivityMonitoringService
47 && (mForegroundUid == DEFAULT_FOREGROUND_ID || mForegroundUid == uid); in isInForeground()
55 mForegroundUid = uid; in setForegroundUid()
63 mForegroundUid = DEFAULT_FOREGROUND_ID; in resetForegroundUid()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java278 services.mForegroundUid = FOREGROUND_UID; in testSetDefaultForNextTapWithNonNullService_NotifyChange()
296 services.mForegroundUid = FOREGROUND_UID; in testSetDefaultForNextTapWithNullService_NoChange()
328 services.mForegroundUid = FOREGROUND_UID; in testSetDefaultForNextTapWithNullService_NotifyChange()
353 assertThat(services.mForegroundUid).isEqualTo(0); in testOnServicesUpdatedWithNullForeground_NoChange()
373 assertThat(services.mForegroundUid).isEqualTo(-1); in testOnServicesUpdatedWithNonNullForegroundAndPaymentServiceInfo_CommitsChange()
397 assertThat(services.mForegroundUid).isEqualTo(-1); in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_CommitsChange()
421 assertThat(services.mForegroundUid).isEqualTo(0); in testOnServicesUpdatedWithNonNullForegroundAndNonPaymentServiceInfo_NoChange()
436 assertThat(services.mForegroundUid).isEqualTo(USER_ID); in testRegisterPreferredForegroundServiceWithSuccess()
449 assertThat(services.mForegroundUid).isEqualTo(0); in testRegisterPreferredForegroundServiceWithFailure()
456 services.mForegroundUid = FOREGROUND_UID; in testUnregisteredPreferredForegroundServiceInForeground_ReturnsSuccess()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAppFocusManagerTest.java55 private int mForegroundUid = DEFAULT_FOREGROUND_ID; field in CarAppFocusManagerTest
94 && (mForegroundUid == DEFAULT_FOREGROUND_ID || mForegroundUid == uid); in setUp()
151 mForegroundUid = APP1_UID; in app2GainsFocus_app1BroughtToForeground()
192 mForegroundUid = APP2_UID; in requestNavFocus_currentOwnerInForeground_requestFails()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java110 private int mForegroundUid; field in NfcDispatcher
127 mForegroundUid = Process.INVALID_UID; in NfcDispatcher()
170 if (mForegroundUid != callingUid) { in setForegroundDispatch()
172 mForegroundUid = callingUid; in setForegroundDispatch()
183 if (mForegroundUid == uid) { in onUidToBackground()
185 mForegroundUid = Process.INVALID_UID; in onUidToBackground()
574 mForegroundUid, in dispatchTag()