Searched refs:mForegroundUid (Results 1 – 7 of 7) sorted by relevance
51 int mForegroundUid = -1; // The UID of the fg app, or -1 if fg app didn't request field in EnabledNfcFServices99 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 …]
94 int mForegroundUid; // The UID of the fg app, or -1 if fg app didn't request field in PreferredServices289 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()
120 private int mForegroundUid; field in CardEmulationManager190 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()
34 private int mForegroundUid = DEFAULT_FOREGROUND_ID; field in FakeSystemActivityMonitoringService47 && (mForegroundUid == DEFAULT_FOREGROUND_ID || mForegroundUid == uid); in isInForeground()55 mForegroundUid = uid; in setForegroundUid()63 mForegroundUid = DEFAULT_FOREGROUND_ID; in resetForegroundUid()
278 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 …]
55 private int mForegroundUid = DEFAULT_FOREGROUND_ID; field in CarAppFocusManagerTest94 && (mForegroundUid == DEFAULT_FOREGROUND_ID || mForegroundUid == uid); in setUp()151 mForegroundUid = APP1_UID; in app2GainsFocus_app1BroughtToForeground()192 mForegroundUid = APP2_UID; in requestNavFocus_currentOwnerInForeground_requestFails()
110 private int mForegroundUid; field in NfcDispatcher127 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()