Home
last modified time | relevance | path

Searched refs:processState (Results 1 – 25 of 27) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/os/
H A DBatteryConsumer.java209 public final @ProcessState int processState; field in BatteryConsumer.Dimensions
213 this.processState = processState; in Dimensions()
264 this.processState = processState; in Key()
277 && processState == key.processState; in equals()
283 result = 31 * result + processState; in hashCode()
500 return sProcessStateNames[processState]; in processStateToString()
618 if (key.processState == processState) { in getKey()
731 for (int processState = 0; processState < PROCESS_STATE_COUNT; in BatteryConsumerDataLayout()
732 processState++) { in BatteryConsumerDataLayout()
753 for (int processState = 0; processState < PROCESS_STATE_COUNT; processState++) { in BatteryConsumerDataLayout()
[all …]
H A DPowerComponents.java59 dimensions.processState).mPowerColumnIndex); in getConsumedPower()
60 } else if (dimensions.processState != PROCESS_STATE_ANY) { in getConsumedPower()
66 mData.layout.processStateKeys[dimensions.processState]; in getConsumedPower()
239 if (key.processState == PROCESS_STATE_ANY) { in writeStatsProtoImpl()
245 key.processState); in writeStatsProtoImpl()
274 long powerDeciCoulombs, long durationMs, int processState) { in writePowerUsageSlice() argument
283 switch (processState) { in writePowerUsageSlice()
342 if (key.processState != PROCESS_STATE_UNSPECIFIED) { in writeToXml()
344 key.processState); in writeToXml()
401 int processState = PROCESS_STATE_UNSPECIFIED; in parseXml() local
[all …]
H A DUidBatteryConsumer.java131 private void appendProcessStateData(StringBuilder sb, @ProcessState int processState, in appendProcessStateData() argument
133 Dimensions dimensions = new Dimensions(POWER_COMPONENT_ANY, processState); in appendProcessStateData()
139 sb.append(" ").append(processStateToString(processState)).append(": ") in appendProcessStateData()
H A DBatteryUsageStats.java583 if (key.processState != BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in dump()
585 + "(" + BatteryConsumer.processStateToString(key.processState) + ")"; in dump()
H A DBatteryStats.java679 mapUidProcessStateToBatteryConsumerProcessState(int processState) { in mapUidProcessStateToBatteryConsumerProcessState() argument
680 switch (processState) { in mapUidProcessStateToBatteryConsumerProcessState()
991 @BatteryConsumer.ProcessState int processState); in getMobileRadioActiveTimeInProcessState()
1062 @BatteryConsumer.ProcessState int processState); in getBluetoothEnergyConsumptionUC()
1082 @BatteryConsumer.ProcessState int processState); in getCpuEnergyConsumptionUC()
1112 @BatteryConsumer.ProcessState int processState); in getMobileRadioEnergyConsumptionUC()
1142 @BatteryConsumer.ProcessState int processState); in getWifiEnergyConsumptionUC()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/app/procstats/
H A DProcessStatsTest.java106 ProcessState processState = in testNonZeroProcessStateDuration() local
111 processState.commitStateTime(NOW_MS + TimeUnit.SECONDS.toMillis(DURATION_SECS)); in testNonZeroProcessStateDuration()
134 ProcessState processState = in testDumpBoundFgsDuration() local
137 processState.setState(ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE, in testDumpBoundFgsDuration()
139 processState.commitStateTime(NOW_MS + TimeUnit.SECONDS.toMillis(DURATION_SECS)); in testDumpBoundFgsDuration()
162 ProcessState processState = in testDumpFrozenDuration() local
165 processState.setState(ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE, in testDumpFrozenDuration()
224 ProcessState processState = in testSafelyResetClearsProcessInUidState() local
227 processState.makeActive(); in testSafelyResetClearsProcessInUidState()
230 processState.makeInactive(); in testSafelyResetClearsProcessInUidState()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBluetoothPowerCalculator.java152 final int processState = key.processState; in calculateApp() local
153 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculateApp()
191 final int processState = key.processState; in calculatePowerAndDuration() local
192 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculatePowerAndDuration()
198 uCtoMah(uid.getBluetoothEnergyConsumptionUC(processState)); in calculatePowerAndDuration()
223 final int processState = key.processState; in calculatePowerAndDuration() local
224 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculatePowerAndDuration()
231 rxTimeCounter.getCountForProcessState(processState), in calculatePowerAndDuration()
232 txTimeCounter.getCountForProcessState(processState), in calculatePowerAndDuration()
233 idleTimeCounter.getCountForProcessState(processState)); in calculatePowerAndDuration()
H A DWifiPowerCalculator.java129 final int processState = key.processState; in calculate() local
130 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculate()
204 final int processState = powerDurationAndTraffic.keys[i].processState; in calculateApp() local
205 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculateApp()
212 rxTimeCounter.getCountForProcessState(processState), in calculateApp()
213 txTimeCounter.getCountForProcessState(processState), in calculateApp()
214 idleTimeCounter.getCountForProcessState(processState)); in calculateApp()
217 uCtoMah(u.getWifiEnergyConsumptionUC(processState)); in calculateApp()
H A DMobileRadioPowerCalculator.java185 final int processState = key.processState; in calculate() local
186 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculate()
191 uid.getMobileRadioEnergyConsumptionUC(processState); in calculate()
236 final int processState = key.processState; in calculate() local
237 if (processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculate()
243 uid.getMobileRadioActiveTimeInProcessState(processState) / 1000; in calculate()
H A DCpuPowerCalculator.java170 if (key.processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculateEnergyConsumptionPerProcessState()
174 final long consumptionUC = u.getCpuEnergyConsumptionUC(key.processState); in calculateEnergyConsumptionPerProcessState()
209 if (key.processState == BatteryConsumer.PROCESS_STATE_UNSPECIFIED) { in calculateModeledPowerPerProcessState()
213 final long cpuActiveTime = u.getCpuActiveTime(key.processState); in calculateModeledPowerPerProcessState()
215 double powerMah = result.perProcStatePowerMah[key.processState]; in calculateModeledPowerPerProcessState()
H A DBatteryStatsImpl.java2259 mCounter.setState(processState, elapsedRealtimeMs); in setState()
3950 mProcessState = processState; in setState()
8492 int processState) { in getEnergyConsumptionUC() argument
8525 @BatteryConsumer.ProcessState int processState) { in getBluetoothEnergyConsumptionUC()
8527 processState); in getBluetoothEnergyConsumptionUC()
8539 @BatteryConsumer.ProcessState int processState) { in getCpuEnergyConsumptionUC()
8541 processState); in getCpuEnergyConsumptionUC()
8560 processState); in getMobileRadioEnergyConsumptionUC()
8577 public long getWifiEnergyConsumptionUC(int processState) { in getWifiEnergyConsumptionUC() argument
8579 processState); in getWifiEnergyConsumptionUC()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DSameProcessApplicationThread.java52 int sendingUser, int processState, int sendingUid, String sendingPackage) { in scheduleReceiver() argument
56 ordered, assumeDelivered, sendingUser, processState, sendingUid, in scheduleReceiver()
67 int sendingUser, int processState, int sendingUid, String sendingPackage) { in scheduleRegisteredReceiver() argument
71 ordered, sticky, assumeDelivered, sendingUser, processState, sendingUid, in scheduleRegisteredReceiver()
H A DAppBatteryTracker.java892 private void dumpProcessStateStats(ProtoOutputStream proto, int processState, double powerMah) { in dumpProcessStateStats() argument
898 proto.write(AppBatteryStatsProto.UidStats.ProcessStateStats.PROCESS_STATE, processState); in dumpProcessStateStats()
1031 double getUsagePowerMah(@BatteryConsumer.ProcessState int processState) { in getUsagePowerMah() argument
1032 switch (processState) { in getUsagePowerMah()
/aosp14/frameworks/base/core/java/android/app/
H A DIApplicationThread.aidl69 boolean assumeDelivered, int sendingUser, int processState, int sentFromUid, in scheduleReceiver() argument
76 in CompatibilityInfo compatInfo, int processState); in scheduleCreateService() argument
98 in Intent intent, boolean rebind, int processState, long bindSeq); in scheduleBindService() argument
106 boolean sticky, boolean assumeDelivered, int sendingUser, int processState, in scheduleRegisteredReceiver() argument
H A DReceiverInfo.aidl39 int processState;
H A DClientTransactionHandler.java94 public abstract void updateProcessState(int processState, boolean fromIpc); in updateProcessState() argument
H A DActivityThread.java1072 updateProcessState(processState, false); in scheduleReceiver()
1118 updateProcessState(processState, false); in scheduleCreateService()
1127 boolean rebind, int processState, long bindSeq) { in scheduleBindService() argument
1128 updateProcessState(processState, false); in scheduleBindService()
1342 updateProcessState(processState, false); in scheduleRegisteredReceiver()
3595 public void updateProcessState(int processState, boolean fromIpc) { in updateProcessState() argument
3597 if (mLastProcessState == processState) { in updateProcessState()
3603 != ActivityManager.isProcStateCached(processState)) { in updateProcessState()
3604 updateVmProcessState(processState); in updateProcessState()
3606 mLastProcessState = processState; in updateProcessState()
[all …]
H A DActivityManager.java3800 public int processState; field in ActivityManager.RunningAppProcessInfo
3817 processState = PROCESS_STATE_IMPORTANT_FOREGROUND; in RunningAppProcessInfo()
3848 dest.writeInt(processState); in writeToParcel()
3867 processState = source.readInt(); in readFromParcel()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/pipeline/
H A DMediaTimeoutListener.kt245 processState(
253 processState(state, dispatchEvents = true, currentResumption = resumption)
270 private fun processState( regex
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DActivityMetricsLogger.java356 boolean processSwitch, int processState, int processOomAdj, in TransitionInfo() argument
362 mProcessState = processState; in TransitionInfo()
684 final int processState; in notifyActivityLaunched() local
687 processState = processRecord.getCurrentProcState(); in notifyActivityLaunched()
690 processState = PROCESS_STATE_NONEXISTENT; in notifyActivityLaunched()
699 + " processState=" + processState in notifyActivityLaunched()
737 options, processRunning, processSwitch, processState, processOomAdj, in notifyActivityLaunched()
1066 final int processState = info.mProcessState; in logAppTransitionFinished() local
1071 processState, processOomAdj); in logAppTransitionFinished()
1090 int processState, int processOomAdj) { in logAppTransition() argument
[all …]
/aosp14/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
H A DBatteryUsageStatsPulledTest.java154 if (key.processState == 0) { in assertSameBatteryConsumer()
163 && slice.processState == key.processState) { in assertSameBatteryConsumer()
/aosp14/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
H A DBatteryConsumerData.java181 switch (key.processState) { in addProcessStateEntries()
/aosp14/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessStats.java2401 final ProcessState processState = uids.valueAt(iu); in forEachProcess() local
2402 consumer.accept(processState); in forEachProcess()
2439 (processState) -> { in dumpProcessState()
2440 if (processState.isMultiPackage() in dumpProcessState()
2441 && processState.getCommonProcess() != processState) { in dumpProcessState()
2444 processState.dumpStateDurationToStatsd(atomTag, this, statsEventOutput); in dumpProcessState()
H A DAssociationState.java114 final int processState = procState; in trackProcState() local
138 commonSource.trackProcState(processState, seq, now); in trackProcState()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutService.java627 private boolean isProcessStateForeground(int processState) { in isProcessStateForeground() argument
628 return processState <= PROCESS_STATE_FOREGROUND_THRESHOLD; in isProcessStateForeground()

12