/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStarterTests.java | 19 import static android.app.ActivityManager.PROCESS_STATE_TOP; 554 UNIMPORTANT_UID, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsAllowed_noStartsAborted() 555 UNIMPORTANT_UID2, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsAllowed_noStartsAborted() 569 UNIMPORTANT_UID, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 570 UNIMPORTANT_UID2, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 574 UNIMPORTANT_UID, false, PROCESS_STATE_TOP, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 575 UNIMPORTANT_UID2, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 579 UNIMPORTANT_UID, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 580 UNIMPORTANT_UID2, false, PROCESS_STATE_TOP, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() 584 UNIMPORTANT_UID, false, PROCESS_STATE_TOP + 1, in testBackgroundActivityStartsDisallowed_unsupportedStartsAborted() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 63 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked() 97 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteStartWakeLocked() 126 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_TOP, 1111); in testNoteUidProcessStateLocked() 156 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_TOP, elapsedTimeUs, in testNoteUidProcessStateLocked() 158 expectedRunTimeMs = stateRuntimeMap.get(ActivityManager.PROCESS_STATE_TOP); in testNoteUidProcessStateLocked() 303 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testAlarmStartAndFinishLocked() 340 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testAlarmStartAndFinishLocked_workSource() 385 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteWakupAlarmLocked() 403 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteWakupAlarmLocked_workSource_uid() 436 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteWakupAlarmLocked_workSource_workChain() [all …]
|
D | BstatsCpuTimesValidationTest.java | 25 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 284 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP)); in testCpuFreqTimes_stateTop() 286 doSomeWork(PROCESS_STATE_TOP); in testCpuFreqTimes_stateTop() 289 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP); in testCpuFreqTimes_stateTop() 317 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP)); in testIsolatedCpuFreqTimes_stateService() 322 assertProcState(PROCESS_STATE_TOP); in testIsolatedCpuFreqTimes_stateService() 330 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP); in testIsolatedCpuFreqTimes_stateService() 526 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP)); in testCpuFreqTimes_trackingDisabled() 528 doSomeWork(PROCESS_STATE_TOP); in testCpuFreqTimes_trackingDisabled() 531 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP); in testCpuFreqTimes_trackingDisabled() [all …]
|
D | BatteryStatsImplTest.java | 24 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 84 PROCESS_STATE_TOP, in testUpdateProcStateCpuTimes() 241 PROCESS_STATE_TOP, in testCopyFromAllUidsCpuTimes() 434 u.setProcessStateForTest(PROCESS_STATE_TOP); in updateProcessStates()
|
D | BatteryStatsHelperTest.java | 20 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 253 doReturn(TIME_STATE_FOREGROUND_US).when(mUid).getProcessStateTime(eq(PROCESS_STATE_TOP), in testGetProcessForegroundTimeMs_largerActivityTime_returnMinTime()
|
D | BatteryStatsBackgroundStatsTest.java | 243 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in doTestAppBluetoothScanInternal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 29 import static android.app.ActivityManager.PROCESS_STATE_TOP; 155 PROCESS_STATE_TOP, // prevState in incrementProcStateSeqAndNotifyAppsLocked() 156 PROCESS_STATE_TOP, // curState in incrementProcStateSeqAndNotifyAppsLocked() 187 PROCESS_STATE_TOP, // curState in incrementProcStateSeqAndNotifyAppsLocked() 209 PROCESS_STATE_TOP, // curState in incrementProcStateSeqAndNotifyAppsLocked() 219 PROCESS_STATE_TOP, // prevState in incrementProcStateSeqAndNotifyAppsLocked() 245 PROCESS_STATE_TOP, // curState in incrementProcStateSeqAndNotifyAppsLocked() 460 uidRec.setProcState = PROCESS_STATE_TOP; in testBlockStateForUid() 506 ActivityManager.PROCESS_STATE_TOP in testDispatchUids_dispatchNeededChanges() 639 changeItem.processState = ActivityManager.PROCESS_STATE_TOP; in testDispatchUidChanges_procStateCutpoint()
|
D | OomAdjusterTests.java | 103 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop() 112 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction() 122 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjuster.java | 30 import static android.app.ActivityManager.PROCESS_STATE_TOP; 857 if (PROCESS_STATE_CUR_TOP == PROCESS_STATE_TOP && app == TOP_APP) { in computeOomAdjLocked() 995 || app.setProcState <= PROCESS_STATE_TOP)) { in computeOomAdjLocked() 1127 || procState > PROCESS_STATE_TOP); in computeOomAdjLocked() 1176 || procState > PROCESS_STATE_TOP); in computeOomAdjLocked() 1182 || procState > PROCESS_STATE_TOP); in computeOomAdjLocked() 1308 if (clientProcState < PROCESS_STATE_TOP) { in computeOomAdjLocked() 1327 } else if (clientProcState == PROCESS_STATE_TOP) { in computeOomAdjLocked() 1424 || procState > PROCESS_STATE_TOP); in computeOomAdjLocked() 1430 || procState > PROCESS_STATE_TOP); in computeOomAdjLocked() [all …]
|
D | HealthStatsBatteryStatsWriter.java | 255 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_TOP)); in writeUid()
|
D | ProcessList.java | 767 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateString() 840 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateProtoEnum() 841 return AppProtoEnums.PROCESS_STATE_TOP; in makeProcStateProtoEnum()
|
D | ActiveServices.java | 1213 if (uidRec.getCurProcState() <= ActivityManager.PROCESS_STATE_TOP) { in foregroundServiceProcStateChangedLocked() 1232 return mAm.getUidState(uid) <= ActivityManager.PROCESS_STATE_TOP; in appIsTopLocked() 1360 <= ActivityManager.PROCESS_STATE_TOP; in setServiceForegroundInnerLocked() 1804 || (callerApp.getCurProcState() <= ActivityManager.PROCESS_STATE_TOP in bindServiceLocked()
|
/frameworks/native/libs/binder/include/binder/ |
D | ActivityManager.h | 48 PROCESS_STATE_TOP = 2, enumerator
|
/frameworks/base/core/proto/android/app/ |
D | enums.proto | 59 PROCESS_STATE_TOP = 1002; enumerator 84 // Same as PROCESS_STATE_TOP but while device is sleeping.
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 314 mAppOpsService.updateUidProcState(mMyUid, ActivityManager.PROCESS_STATE_TOP); in testUidProcStateChange_cachedToTopToCached() 361 mAppOpsService.updateUidProcState(mMyUid, ActivityManager.PROCESS_STATE_TOP); in testUidProcStateChange_topToFgs() 381 mAppOpsService.updateUidProcState(mMyUid, ActivityManager.PROCESS_STATE_TOP); in testUidProcStateChange_topToFgsLocationToFgs()
|
/frameworks/base/core/proto/android/service/ |
D | procstats_enum.proto | 44 PROCESS_STATE_TOP = 2; enumerator
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 1267 setProcessState(ActivityManager.PROCESS_STATE_TOP, fgChangerUid); in testIsWithinQuotaLocked_UnderDuration_UnderJobCount_MultiStateChange_SeparateApps() 1278 setProcessState(ActivityManager.PROCESS_STATE_TOP, fgChangerUid); in testIsWithinQuotaLocked_UnderDuration_UnderJobCount_MultiStateChange_SeparateApps() 2109 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTimerTracking_AllForeground() 2297 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTimerTracking_TopAndNonTop() 2322 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTimerTracking_TopAndNonTop() 2330 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTimerTracking_TopAndNonTop() 2371 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTracking_OutOfQuota_ForegroundAndBackground() 2398 setProcessState(ActivityManager.PROCESS_STATE_TOP); in testTracking_OutOfQuota_ForegroundAndBackground()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.cpp | 573 } else if (amState <= ActivityManager::PROCESS_STATE_TOP) { in apmStatFromAmState() 850 return ActivityManager::PROCESS_STATE_TOP; in getUidState() 871 return ActivityManager::PROCESS_STATE_TOP; in getUidState() 980 if (uid.second.second >= ActivityManager::PROCESS_STATE_TOP in isA11yOnTop()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.java | 511 public static final int PROCESS_STATE_TOP = 2; field in ActivityManager 607 case PROCESS_STATE_TOP: in processStateAmToProto() 608 return AppProtoEnums.PROCESS_STATE_TOP; in processStateAmToProto() 3035 return PROCESS_STATE_TOP;
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | DumpUtils.java | 112 STATE_PROTO_ENUMS[STATE_TOP] = ProcessStatsEnums.PROCESS_STATE_TOP;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsHelper.java | 1015 final int foregroundTypes[] = {BatteryStats.Uid.PROCESS_STATE_TOP}; in getProcessForegroundTimeMs()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 828 callOnUidStateChanged(UID_A, ActivityManager.PROCESS_STATE_TOP, 0); in testUidForeground() 834 callOnUidStateChanged(UID_B, ActivityManager.PROCESS_STATE_TOP, 0); in testUidForeground()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStarter.java | 954 || callingUidProcState == ActivityManager.PROCESS_STATE_TOP in shouldAbortBackgroundActivityStart() 971 || realCallingUidProcState == ActivityManager.PROCESS_STATE_TOP; in shouldAbortBackgroundActivityStart()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 1342 if (procState <= ActivityManager.PROCESS_STATE_TOP in getSyncExemptionAndCleanUpExtrasForCaller()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 896 final int newCounter = (procState <= ActivityManager.PROCESS_STATE_TOP) ? 0 : 1; in handleMessage()
|