/frameworks/base/core/java/android/os/ |
D | UidBatteryConsumer.java | 120 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()
|
D | BatteryConsumer.java | 168 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/ |
D | ServiceBindingOomAdjPolicyTest.java | 22 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 …]
|
D | MockingOomAdjusterTests.java | 27 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 …]
|
D | ActivityManagerServiceTest.java | 22 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/ |
D | OomAdjusterTests.java | 187 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()
|
D | UidObserverControllerTest.java | 24 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/ |
D | AppOpsUidStateTracker.java | 21 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/ |
D | BinaryStatePowerStatsProcessorTest.java | 22 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()
|
D | BluetoothPowerStatsProcessorTest.java | 22 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()
|
D | WifiPowerStatsProcessorTest.java | 24 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()
|
D | BatteryUsageStatsTest.java | 25 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()
|
D | MobileRadioPowerStatsProcessorTest.java | 24 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()
|
D | BatteryStatsManagerTest.java | 57 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE, in testBatteryUsageStatsDataConsistency()
|
D | PowerStatsExporterTest.java | 143 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()
|
D | CpuPowerCalculatorTest.java | 347 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()
|
D | BstatsCpuTimesValidationTest.java | 24 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()
|
D | BluetoothPowerCalculatorTest.java | 158 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/ |
D | AppOpsUidStateTrackerTest.java | 539 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/ |
D | OneTimePermissionUserManager.java | 186 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/ |
D | activity_manager.cpp | 80 } 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/ |
D | BatteryUsageStatsProvider.java | 217 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/ |
D | BaseAppStateDurationsTracker.java | 19 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/ |
D | PowerExemptionManager.java | 21 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/ |
D | BatteryUsageStatsPulledTest.java | 54 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE 292 BatteryConsumer.PROCESS_STATE_FOREGROUND_SERVICE); in buildBatteryUsageStats()
|