Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java19 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/
DBatteryStatsNoteTest.java63 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 …]
DBstatsCpuTimesValidationTest.java25 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 …]
DBatteryStatsImplTest.java24 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()
DBatteryStatsHelperTest.java20 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()
DBatteryStatsBackgroundStatsTest.java243 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in doTestAppBluetoothScanInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerServiceTest.java29 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()
DOomAdjusterTests.java103 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/
DOomAdjuster.java30 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 …]
DHealthStatsBatteryStatsWriter.java255 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_TOP)); in writeUid()
DProcessList.java767 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateString()
840 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateProtoEnum()
841 return AppProtoEnums.PROCESS_STATE_TOP; in makeProcStateProtoEnum()
DActiveServices.java1213 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/
DActivityManager.h48 PROCESS_STATE_TOP = 2, enumerator
/frameworks/base/core/proto/android/app/
Denums.proto59 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/
DAppOpsServiceTest.java314 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/
Dprocstats_enum.proto44 PROCESS_STATE_TOP = 2; enumerator
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java1267 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/
DAudioPolicyService.cpp573 } 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/
DActivityManager.java511 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/
DDumpUtils.java112 STATE_PROTO_ENUMS[STATE_TOP] = ProcessStatsEnums.PROCESS_STATE_TOP;
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java1015 final int foregroundTypes[] = {BatteryStats.Uid.PROCESS_STATE_TOP}; in getProcessForegroundTimeMs()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java828 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/
DActivityStarter.java954 || callingUidProcState == ActivityManager.PROCESS_STATE_TOP in shouldAbortBackgroundActivityStart()
971 || realCallingUidProcState == ActivityManager.PROCESS_STATE_TOP; in shouldAbortBackgroundActivityStart()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1342 if (procState <= ActivityManager.PROCESS_STATE_TOP in getSyncExemptionAndCleanUpExtrasForCaller()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java896 final int newCounter = (procState <= ActivityManager.PROCESS_STATE_TOP) ? 0 : 1; in handleMessage()

12