Home
last modified time | relevance | path

Searched refs:PROCESS_STATE_FOREGROUND_SERVICE (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java141 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS()
152 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
163 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
175 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
DActivityManagerServiceTest.java22 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
164 PROCESS_STATE_FOREGROUND_SERVICE, // prevState in incrementProcStateSeqAndNotifyAppsLocked()
197 PROCESS_STATE_FOREGROUND_SERVICE, // prevState in incrementProcStateSeqAndNotifyAppsLocked()
233 PROCESS_STATE_FOREGROUND_SERVICE, // curState in incrementProcStateSeqAndNotifyAppsLocked()
443 uidRec.setProcState = PROCESS_STATE_FOREGROUND_SERVICE; in testBlockStateForUid()
465 uidRec.setCurProcState(PROCESS_STATE_FOREGROUND_SERVICE); in testBlockStateForUid()
513 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testDispatchUids_dispatchNeededChanges()
640 changeItem.processState = ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in testDispatchUidChanges_procStateCutpoint()
677 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testDispatchUidChanges_validateUidsUpdated()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java18 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
377 mAppOpsService.updateUidProcState(mMyUid, PROCESS_STATE_FOREGROUND_SERVICE); in testUidProcStateChange_cachedToFgs()
408 mAppOpsService.updateUidProcState(mMyUid, PROCESS_STATE_FOREGROUND_SERVICE); in testUidProcStateChange_topToFgs()
411 mAppOpsService.updateUidProcState(mMyUid, PROCESS_STATE_FOREGROUND_SERVICE); in testUidProcStateChange_topToFgs()
435 mAppOpsService.updateUidProcState(mMyUid, PROCESS_STATE_FOREGROUND_SERVICE); in testUidProcStateChange_topToFgsLocationToFgs()
438 mAppOpsService.updateUidProcState(mMyUid, PROCESS_STATE_FOREGROUND_SERVICE); in testUidProcStateChange_topToFgsLocationToFgs()
/frameworks/native/libs/binder/include/binder/
DActivityManager.h51 PROCESS_STATE_FOREGROUND_SERVICE = 5, enumerator
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java128 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 2468); in testNoteUidProcessStateLocked()
161 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE, in testNoteUidProcessStateLocked()
163 expectedRunTimeMs = stateRuntimeMap.get(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testNoteUidProcessStateLocked()
197 expectedRunTimeMs = stateRuntimeMap.get(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testNoteUidProcessStateLocked()
DBatteryStatsImplTest.java23 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE;
83 PROCESS_STATE_FOREGROUND_SERVICE, in testUpdateProcStateCpuTimes()
240 PROCESS_STATE_FOREGROUND_SERVICE, in testCopyFromAllUidsCpuTimes()
DBstatsCpuTimesValidationTest.java24 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE;
391 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND_SERVICE)); in testCpuFreqTimes_stateFgService()
393 doSomeWork(PROCESS_STATE_FOREGROUND_SERVICE); in testCpuFreqTimes_stateFgService()
396 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND_SERVICE); in testCpuFreqTimes_stateFgService()
673 case PROCESS_STATE_FOREGROUND_SERVICE: in doSomeWork()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java23 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
884 procState = PROCESS_STATE_FOREGROUND_SERVICE; in computeOomAdjLocked()
972 procState = PROCESS_STATE_FOREGROUND_SERVICE; in computeOomAdjLocked()
1338 <= PROCESS_STATE_FOREGROUND_SERVICE) { in computeOomAdjLocked()
1340 clientProcState = PROCESS_STATE_FOREGROUND_SERVICE; in computeOomAdjLocked()
1470 if (clientProcState <= PROCESS_STATE_FOREGROUND_SERVICE) { in computeOomAdjLocked()
2013 } else if (app.getCurProcState() <= PROCESS_STATE_FOREGROUND_SERVICE) { in maybeUpdateUsageStatsLocked()
DHealthStatsBatteryStatsWriter.java259 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE)); in writeUid()
DProcessList.java906 case ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE: in makeProcStateString()
973 return AppProtoEnums.PROCESS_STATE_FOREGROUND_SERVICE; in makeProcStateProtoEnum()
976 case ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE: in makeProcStateProtoEnum()
977 return AppProtoEnums.PROCESS_STATE_FOREGROUND_SERVICE; in makeProcStateProtoEnum()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java193 eq(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE), in setUp()
239 if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in setProcessState()
2117 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerTracking_AllForeground()
2161 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerTracking_ForegroundAndBackground()
2184 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerTracking_ForegroundAndBackground()
2218 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerTracking_JobCount_Foreground()
2327 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerTracking_TopAndNonTop()
2409 setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testTracking_OutOfQuota_ForegroundAndBackground()
/frameworks/base/core/proto/android/app/
Denums.proto63 PROCESS_STATE_FOREGROUND_SERVICE = 1003; enumerator
/frameworks/base/core/java/android/app/
DActivityManager.java529 public static final int PROCESS_STATE_FOREGROUND_SERVICE = 5; field in ActivityManager
619 case PROCESS_STATE_FOREGROUND_SERVICE: in processStateAmToProto()
620 return AppProtoEnums.PROCESS_STATE_FOREGROUND_SERVICE; in processStateAmToProto()
674 || procState == PROCESS_STATE_FOREGROUND_SERVICE; in isForegroundService()
3039 return PROCESS_STATE_FOREGROUND_SERVICE;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java1674 CALLING_UID_1, ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0); in testThrottling_foreground()
1701 CALLING_UID_2, ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0); in testThrottling_foreground()
1734 CALLING_UID_2, ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0); in testThrottling_foreground()
1763 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0); in testThrottling_foreground()
DBaseShortcutManagerTest.java2225 uid, ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0);
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java592 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, null); in QuotaController()
1921 if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in handleMessage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java533 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 0); in testUidStateForeground()
/frameworks/base/core/proto/android/os/
Dbatterystats.proto745 PROCESS_STATE_FOREGROUND_SERVICE = 1; enumerator
/frameworks/base/core/java/android/os/
DBatteryStats.java626 return Uid.PROCESS_STATE_FOREGROUND_SERVICE; in mapToInternalProcessState()
830 public static final int PROCESS_STATE_FOREGROUND_SERVICE = 1; field in BatteryStats.Uid
888 PROCESS_STATE_BOUND_TOP, PROCESS_STATE_FOREGROUND_SERVICE,
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java1219 } else if (procState <= ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in updateUidState()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt3850 Landroid/app/AppProtoEnums;->PROCESS_STATE_FOREGROUND_SERVICE:I
48933 Landroid/os/BatteryStats$Uid;->PROCESS_STATE_FOREGROUND_SERVICE:I
53831 Landroid/os/UidProto$StateTime;->PROCESS_STATE_FOREGROUND_SERVICE:I