Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java47 int mForegroundUid = -1; // The UID of the fg app, or -1 if fg app didn't request field in EnabledNfcFServices
102 mForegroundUid = -1; in onServicesUpdated()
132 mForegroundUid = callingUid; in registerEnabledForegroundService()
148 if (mForegroundUid == uid) { in unregisterForegroundService()
150 mForegroundUid = -1; in unregisterForegroundService()
205 mForegroundUid = -1; in onNfcDisabled()
215 mForegroundUid = -1; in onUserSwitched()
240 proto.write(EnabledNfcFServicesProto.FOREGROUND_UID, mForegroundUid); in dumpDebug()
DPreferredServices.java83 int mForegroundUid; // The UID of the fg app, or -1 if fg app didn't request field in PreferredServices
213 mForegroundUid = -1; in onServicesUpdated()
283 mForegroundUid = callingUid; in registerPreferredForegroundService()
302 if (mForegroundUid == uid) { in unregisterForegroundService()
304 mForegroundUid = -1; in unregisterForegroundService()
383 pw.println(" Default for foreground app (UID: " + mForegroundUid + in dump()
410 proto.write(PreferredServicesProto.FOREGROUND_UID, mForegroundUid); in dumpDebug()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeSystemActivityMonitoringService.java34 private int mForegroundUid = DEFAULT_FOREGROUND_ID; field in FakeSystemActivityMonitoringService
43 && (mForegroundUid == DEFAULT_FOREGROUND_ID || mForegroundUid == uid); in isInForeground()
51 mForegroundUid = uid; in setForegroundUid()
59 mForegroundUid = DEFAULT_FOREGROUND_ID; in resetForegroundUid()