Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/os/
DUidBatteryConsumer.java120 case PROCESS_STATE_FOREGROUND_SERVICE: in getTimeInProcessStateMs()
139 appendProcessStateData(sb, BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, in dump()
185 getTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE)); in writeToXml()
209 consumerBuilder.setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in createFromXml()
315 case PROCESS_STATE_FOREGROUND_SERVICE: in setTimeInProcessStateMs()
344 setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in add()
346 + consumer.getTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE)); in add()
DBatteryConsumer.java168 PROCESS_STATE_FOREGROUND_SERVICE,
179 public static final int PROCESS_STATE_FOREGROUND_SERVICE = 3; field in BatteryConsumer
191 sProcessStateNames[PROCESS_STATE_FOREGROUND_SERVICE] = "fgs";
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceBindingOomAdjPolicyTest.java22 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
265 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjMoreImportant()
280 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjMoreImportant()
299 TEST_APP2_PID, TEST_APP2_UID, PROCESS_STATE_FOREGROUND_SERVICE, in testServiceDistinctBindingOomAdjLessImportant()
312 TEST_APP2_PID, TEST_APP2_UID, PROCESS_STATE_FOREGROUND_SERVICE, in testServiceDistinctBindingOomAdjLessImportant()
328 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjWaivePriority()
342 TEST_APP2_PID, TEST_APP2_UID, PROCESS_STATE_FOREGROUND_SERVICE, in testServiceDistinctBindingOomAdjWaivePriority()
354 PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testServiceDistinctBindingOomAdjWaivePriority()
375 TEST_APP2_PID, TEST_APP2_UID, PROCESS_STATE_FOREGROUND_SERVICE, in testServiceDistinctBindingOomAdjNoIncludeCapabilities()
389 TEST_APP2_PID, TEST_APP2_UID, PROCESS_STATE_FOREGROUND_SERVICE, in testServiceDistinctBindingOomAdjNoIncludeCapabilities()
[all …]
DMockingOomAdjusterTests.java27 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
417 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, FOREGROUND_APP_ADJ, in testUpdateOomAdj_DoOne_RunningInstrumentation()
537 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_FgServiceLocation()
551 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_FgService()
581 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, in testUpdateOomAdj_DoOne_FgService_ShortFgs()
599 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, in testUpdateOomAdj_DoOne_FgService_ShortFgs()
654 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, in testUpdateOomAdj_DoOne_PerceptibleRecent_FgService()
666 assertProcStates(app, PROCESS_STATE_FOREGROUND_SERVICE, PERCEPTIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_PerceptibleRecent_FgService()
1149 assertEquals(PROCESS_STATE_FOREGROUND_SERVICE, client.mState.getSetProcState()); in testUpdateOomAdj_DoOne_Service_ImportantFgService()
1151 assertEquals(PROCESS_STATE_FOREGROUND_SERVICE, app.mState.getSetProcState()); in testUpdateOomAdj_DoOne_Service_ImportantFgService()
[all …]
DActivityManagerServiceTest.java22 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
335 PROCESS_STATE_FOREGROUND_SERVICE, // prevState in incrementProcStateSeqAndNotifyAppsLocked()
362 PROCESS_STATE_FOREGROUND_SERVICE, // prevState in incrementProcStateSeqAndNotifyAppsLocked()
752 uidRec.setSetProcState(PROCESS_STATE_FOREGROUND_SERVICE); in testBlockStateForUid()
774 uidRec.setCurProcState(PROCESS_STATE_FOREGROUND_SERVICE); in testBlockStateForUid()
823 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testDispatchUids_dispatchNeededChanges()
1079 changeItem.procState = ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in testDispatchUidChanges_procStateCutpoint()
1120 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testDispatchUidChanges_validateUidsUpdated()
1434 assertEquals(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testStartForegroundServiceDelegate()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java187 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS()
198 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
209 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
221 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
230 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGSLocation()
DUidObserverControllerTest.java24 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
85 UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange()
89 assertPendingChange(TEST_UID1, UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange()
100 assertPendingChange(TEST_UID1, UidRecord.CHANGE_ACTIVE, PROCESS_STATE_FOREGROUND_SERVICE, in testEnqueueUidChange()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTracker.java21 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
59 if (procState <= PROCESS_STATE_FOREGROUND_SERVICE) { in processStateToUidState()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBinaryStatePowerStatsProcessorTest.java22 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE;
89 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, 5000); in powerProfileModel()
127 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel()
170 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, 5000); in energyConsumerModel()
219 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in energyConsumerModel()
DBluetoothPowerStatsProcessorTest.java22 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE;
188 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_mostlyDataTransfer()
244 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_mostlyDataTransfer()
288 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_mostlyScan()
343 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_mostlyScan()
391 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in consumedEnergyModel()
447 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in consumedEnergyModel()
DWifiPowerStatsProcessorTest.java24 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE;
216 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_powerController()
281 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_powerController()
332 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in consumedEnergyModel_powerController()
394 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in consumedEnergyModel_powerController()
437 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_noPowerController()
501 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel_noPowerController()
DBatteryUsageStatsTest.java25 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE;
361 .setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in addUidBatteryConsumer()
382 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in addUidBatteryConsumer()
429 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in addAggregateBatteryConsumer()
532 PROCESS_STATE_FOREGROUND_SERVICE)).isEqualTo(timeInProcessStateForegroundService); in assertUidBatteryConsumer()
563 PROCESS_STATE_FOREGROUND_SERVICE))) in assertUidBatteryConsumer()
597 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in assertUidBatteryConsumer()
DMobileRadioPowerStatsProcessorTest.java24 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE;
206 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel()
286 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in powerProfileModel()
358 states(POWER_STATE_OTHER, SCREEN_STATE_OTHER, PROCESS_STATE_FOREGROUND_SERVICE)); in energyConsumerModel()
449 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in prepareAggregatedStats_energyConsumerModel()
DBatteryStatsManagerTest.java57 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, in testBatteryUsageStatsDataConsistency()
DPowerStatsExporterTest.java143 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, 3.538999); in breakdownByProcState_fullRange()
171 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, 3.333249); in breakdownByProcState_subRange()
222 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in recordBatteryHistory()
DCpuPowerCalculatorTest.java347 BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE, 2000); in testTimerBasedModel_byProcessState()
383 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerBasedModel_byProcessState()
448 BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE, 2000); in testMeasuredEnergyBasedModel_perProcessState()
494 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in testMeasuredEnergyBasedModel_perProcessState()
DBstatsCpuTimesValidationTest.java24 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE;
408 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND_SERVICE)); in testCpuFreqTimes_stateFgService()
410 doSomeWork(PROCESS_STATE_FOREGROUND_SERVICE); in testCpuFreqTimes_stateFgService()
413 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND_SERVICE); in testCpuFreqTimes_stateFgService()
578 case PROCESS_STATE_FOREGROUND_SERVICE: in doSomeWork()
DBluetoothPowerCalculatorTest.java158 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in testTimerBasedModel_byProcessState()
278 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in testMeasuredEnergyBasedModel_byProcessState()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java539 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testUidStateChangedCallbackCachedToForegroundService()
567 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testUidStateChangedCallbackBackgroundToForegroundService()
595 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testUidStateChangedCallbackForegroundToForegroundService()
608 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testUidStateChangedCallbackForegroundServiceToCached()
615 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testUidStateChangedCallbackForegroundServiceToBackground()
622 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testUidStateChangedCallbackForegroundServiceToForeground()
629 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in testUidStateChangedCallbackForegroundServiceToTop()
658 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testUidStateChangedCallbackTopToForegroundService()
892 mProcState = ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE; in foregroundServiceState()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DOneTimePermissionUserManager.java186 if (procState > ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE
215 ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, in PackageInactivityListener()
253 if (procState > ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE) { in getStateFromProcState()
/frameworks/base/native/android/
Dactivity_manager.cpp80 } else if (procState >= ActivityManager::PROCESS_STATE_FOREGROUND_SERVICE) { in procStateToImportance()
105 return ActivityManager::PROCESS_STATE_FOREGROUND_SERVICE; in importanceToProcState()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryUsageStatsProvider.java217 UidBatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, in getCurrentBatteryUsageStats()
275 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, in verify()
328 return uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE, in getProcessForegroundServiceTimeMs()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateDurationsTracker.java19 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
65 uidStateDurations.addEvent(procState < PROCESS_STATE_FOREGROUND_SERVICE, in onUidProcStateChanged() argument
/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerExemptionManager.java21 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
683 } else if (procState <= PROCESS_STATE_FOREGROUND_SERVICE) { in getReasonCodeFromProcState()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java54 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE
292 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in buildBatteryUsageStats()

123