Home
last modified time | relevance | path

Searched refs:stateResidency (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tools/powerstats/
DPowerStatsServiceProtoParser.java124 StateResidencyProto stateResidency = stateResidencyResult.getStateResidencyData(j); in printStateResidencyResult() local
125 csvRow += stateResidency.getId() + "," in printStateResidencyResult()
126 + stateResidency.getTotalTimeInStateMs() + "," in printStateResidencyResult()
127 + stateResidency.getTotalStateEntryCount() + "," in printStateResidencyResult()
128 + stateResidency.getLastEntryTimestampMs() + ","; in printStateResidencyResult()
/frameworks/base/services/core/java/com/android/server/powerstats/
DStatsPullAtomCallbackImpl.java145 final StateResidency stateResidency = result.stateResidencyData[j]; in pullSubsystemSleepState() local
149 mStateNames.get(result.id).get(stateResidency.id), in pullSubsystemSleepState()
150 stateResidency.totalStateEntryCount, in pullSubsystemSleepState()
151 stateResidency.totalTimeInStateMs)); in pullSubsystemSleepState()
DProtoStreamUtils.java223 StateResidency stateResidency = new StateResidency(); in unpackStateResidencyProto() local
229 stateResidency.id = pis.readInt(StateResidencyProto.ID); in unpackStateResidencyProto()
233 stateResidency.totalTimeInStateMs = in unpackStateResidencyProto()
238 stateResidency.totalStateEntryCount = in unpackStateResidencyProto()
243 stateResidency.lastEntryTimestampMs = in unpackStateResidencyProto()
248 return stateResidency; in unpackStateResidencyProto()
/frameworks/base/services/core/jni/
Dcom_android_server_powerstats_PowerStatsService.cpp226 jobject stateResidency = env->NewObject(class_SR, method_SR_init); in nativeGetStateResidency() local
227 env->SetIntField(stateResidency, field_SR_id, in nativeGetStateResidency()
229 env->SetLongField(stateResidency, field_SR_totalTimeInStateMs, in nativeGetStateResidency()
231 env->SetLongField(stateResidency, field_SR_totalStateEntryCount, in nativeGetStateResidency()
233 env->SetLongField(stateResidency, field_SR_lastEntryTimestampMs, in nativeGetStateResidency()
235 env->SetObjectArrayElement(stateResidencyArray, j, stateResidency); in nativeGetStateResidency()
236 env->DeleteLocalRef(stateResidency); in nativeGetStateResidency()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java473 StateResidencyProto stateResidency = stateResidencyResult.stateResidencyData[j]; in testWrittenResidencyDataMatchesReadIncidentReportData() local
474 assertTrue(stateResidency.id == j); in testWrittenResidencyDataMatchesReadIncidentReportData()
475 assertTrue(stateResidency.totalTimeInStateMs == j); in testWrittenResidencyDataMatchesReadIncidentReportData()
476 assertTrue(stateResidency.totalStateEntryCount == j); in testWrittenResidencyDataMatchesReadIncidentReportData()
477 assertTrue(stateResidency.lastEntryTimestampMs == in testWrittenResidencyDataMatchesReadIncidentReportData()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java312 final StateResidency stateResidency = result.stateResidencyData[j]; in fillLowPowerStats() local
313 subsystem.putState(mStateNames.get(result.id).get(stateResidency.id), in fillLowPowerStats()
314 stateResidency.totalTimeInStateMs, in fillLowPowerStats()
315 (int) stateResidency.totalStateEntryCount); in fillLowPowerStats()
358 final StateResidency stateResidency = result.stateResidencyData[j]; in getSubsystemLowPowerStats() local
361 stateResidency.id)); in getSubsystemLowPowerStats()
362 subsystemBuilder.append(" time=" + stateResidency.totalTimeInStateMs); in getSubsystemLowPowerStats()
363 subsystemBuilder.append(" count=" + stateResidency.totalStateEntryCount); in getSubsystemLowPowerStats()
364 subsystemBuilder.append(" last entry=" + stateResidency.lastEntryTimestampMs); in getSubsystemLowPowerStats()