Home
last modified time | relevance | path

Searched refs:isUidActive (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java437 assertFalse(instance.isUidActive(UID_1)); in testAll()
438 assertFalse(instance.isUidActive(UID_2)); in testAll()
439 assertTrue(instance.isUidActive(Process.SYSTEM_UID)); in testAll()
455 assertTrue(instance.isUidActive(UID_1)); in testAll()
456 assertFalse(instance.isUidActive(UID_2)); in testAll()
472 assertFalse(instance.isUidActive(UID_1)); in testAll()
473 assertFalse(instance.isUidActive(UID_2)); in testAll()
503 assertFalse(instance.isUidActive(UID_1)); in testAll()
504 assertFalse(instance.isUidActive(UID_2)); in testAll()
750 assertTrue(instance.isUidActive(UID_1)); in testUidStateForeground()
[all …]
/frameworks/native/libs/binder/
DActivityManager.cpp132 bool ActivityManager::isUidActive(const uid_t uid, const String16& callingPackage) in isUidActive() function in android::ActivityManager
136 return service->isUidActive(uid, callingPackage); in isUidActive()
DIActivityManager.cpp144 virtual bool isUidActive(const uid_t uid, const String16& callingPackage) in isUidActive() function in android::BpActivityManager
/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java60 return (ami != null) ? ami.isUidActive(uid) : false; in isAppActive()
DContentService.java1575 final boolean isUidActive = ami.isUidActive(callingUid); in getSyncExemptionAndCleanUpExtrasForCaller()
1582 if (procState <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND || isUidActive) { in getSyncExemptionAndCleanUpExtrasForCaller()
1584 callingUid, getProcStateForStatsd(procState), isUidActive, in getSyncExemptionAndCleanUpExtrasForCaller()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java274 updateJobsForUidPackage(uid, packageName, sender.isUidActive(uid)); in onRunAnyAppOpsChanged()
295 final boolean isActive = sender.isUidActive(uid); in onUidActiveStateChanged()
1122 if (isUidActive(uid)) { in areAlarmsRestricted()
1142 if (isUidActive(uid)) { in areAlarmsRestrictedByBatterySaver()
1166 if (isUidActive(uid)) { in areJobsRestricted()
1201 public boolean isUidActive(int uid) { in isUidActive() method in AppStateTrackerImpl
1216 if (isUidActive(uid)) { // Use the cached one first. in isUidActiveSynced()
1221 final boolean ret = mActivityManagerInternal.isUidActive(uid); in isUidActiveSynced()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBackgroundJobsController.java215 pw.print(mAppStateTracker.isUidActive(uid) ? " active" : " idle"); in dumpControllerStateLocked()
256 proto.write(TrackedJob.IS_IN_FOREGROUND, mAppStateTracker.isUidActive(sourceUid)); in dumpControllerStateLocked()
380 isActive = mAppStateTracker.isUidActive(uid); in updateSingleJobRestrictionLocked()
/frameworks/native/libs/binder/include_activitymanager/binder/
DIActivityManager.h48 virtual bool isUidActive(const uid_t uid, const String16& callingPackage) = 0;
DActivityManager.h94 bool isUidActive(const uid_t uid, const String16& callingPackage);
/frameworks/base/native/android/
Dactivity_manager.cpp223 return gAm.isUidActive(uid, getTag()); in AActivityManager_isUidActive()
/frameworks/native/services/sensorservice/
DSensorService.h298 bool isUidActive(uid_t uid);
320 bool isUidActive(uid_t uid);
DSensorService.cpp535 && isUidActive(uid) && !isOperationRestrictedLocked(opPackageName); in hasSensorAccessLocked()
1026 if (mUidPolicy->isUidActive(uid)) { in handleGetUidState()
2607 bool SensorService::UidPolicy::isUidActive(uid_t uid) { in isUidActive() function in android::SensorService::UidPolicy
2628 bool SensorService::isUidActive(uid_t uid) { in isUidActive() function in android::SensorService
2629 return mUidPolicy->isUidActive(uid); in isUidActive()
DSensorEventConnection.cpp444 return mService->isUidActive(mUid) in hasSensorAccess()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp1793 if (!mUidPolicy->isUidActive(callingUid, clientName)) { in validateClientPermissionsLocked()
4272 bool isUidActive = sCameraService->mUidPolicy->isUidActive(mClientUid, in handleAppOpMode() local
4288 if (!isUidActive || !isCameraPrivacyEnabled) { in handleAppOpMode()
4291 mClientPackageName.c_str(), isUidActive ? "true" : "false", in handleAppOpMode()
4477 bool isUidActive = sCameraService->mUidPolicy->isUidActive(mClientUid, mClientPackageName); in opChanged() local
4495 mClientPackageName.c_str(), mUidIsTrusted, isUidActive, isUidVisible, in opChanged()
4508 if (isUidActive && isCameraPrivacyEnabled && supportsCameraMute()) { in opChanged()
4510 } else if (!isUidActive in opChanged()
4760 bool CameraService::UidPolicy::isUidActive(uid_t uid, const std::string &callingPackage) { in isUidActive() function in android::CameraService::UidPolicy
4795 if (!active) active = am.isUidActive(uid, toString16(callingPackage)); in isUidActiveLocked()
[all …]
DCameraService.h836 bool isUidActive(uid_t uid, const std::string &callingPackage);
/frameworks/base/services/tests/servicestests/src/com/android/server/
DPinnerServiceTest.java107 doReturn(true).when(mockActivityManagerInternal).isUidActive(anyInt()); in setUp()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1524 bool AudioPolicyService::UidPolicy::isUidActive(uid_t uid) { in isUidActive() function in android::AudioPolicyService::UidPolicy
1537 bool active = am.isUidActive(uid, String16("audioserver")); in isUidActive()
1568 bool active = am.isUidActive(uid, String16("audioserver")); in getUidState()
1622 bool wasActive = isUidActive(uid); in updateUid()
1628 if (wasActive != isUidActive(uid) || state != previousState) { in updateUid()
DAudioPolicyService.h497 bool isUidActive(uid_t uid);
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java299 public abstract boolean isUidActive(int uid); in isUidActive() method in ActivityManagerInternal
DIActivityManager.aidl142 boolean isUidActive(int uid, String callingPackage); in isUidActive() method
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java1546 active = mAmInternal.isUidActive(uid); in PinnedApp()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java1680 private boolean isUidActive(int uid) {
1684 private final Predicate<Integer> mIsUidActivePredicate = this::isUidActive;
/frameworks/base/services/
Dart-profile61 HSPLcom/android/server/AppStateTrackerImpl;->isUidActive(I)Z+]Landroid/util/SparseBooleanArray;Land…
381 HSPLcom/android/server/am/ActivityManagerService$LocalService;->isUidActive(I)Z+]Lcom/android/serve…
Dart-wear-profile1862 HPLcom/android/server/AppStateTrackerImpl;->isUidActive(I)Z
4476 HPLcom/android/server/am/ActivityManagerService$LocalService;->isUidActive(I)Z
4708 HPLcom/android/server/am/ActivityManagerService;->isUidActive(ILjava/lang/String;)Z
12860 PLcom/android/server/job/JobSchedulerService;->isUidActive(I)Z
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt1659 Landroid/app/ActivityManagerInternal;->isUidActive(I)Z
5398 Landroid/app/IActivityManager$Stub$Proxy;->isUidActive(ILjava/lang/String;)Z
6001 Landroid/app/IActivityManager;->isUidActive(ILjava/lang/String;)Z