Home
last modified time | relevance | path

Searched refs:durationMs (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/core/java/android/net/metrics/
DDhcpClientEvent.java44 public final int durationMs; field in DhcpClientEvent
47 private DhcpClientEvent(String msg, int durationMs) { in DhcpClientEvent() argument
49 this.durationMs = durationMs; in DhcpClientEvent()
54 this.durationMs = in.readInt(); in DhcpClientEvent()
77 public Builder setDurationMs(int durationMs) { in setDurationMs() argument
78 mDurationMs = durationMs; in setDurationMs()
95 out.writeInt(durationMs); in writeToParcel()
107 return String.format("DhcpClientEvent(%s, %dms)", msg, durationMs); in toString()
115 && durationMs == other.durationMs; in equals()
DValidationProbeEvent.java62 public final long durationMs; field in ValidationProbeEvent
73 private ValidationProbeEvent(long durationMs, int probeType, int returnCode) { in ValidationProbeEvent() argument
74 this.durationMs = durationMs; in ValidationProbeEvent()
80 durationMs = in.readLong(); in ValidationProbeEvent()
97 public Builder setDurationMs(long durationMs) { in setDurationMs() argument
98 mDurationMs = durationMs; in setDurationMs()
132 out.writeLong(durationMs); in writeToParcel()
174 getProbeName(probeType), returnCode, getValidationStage(probeType), durationMs); in toString()
181 return durationMs == other.durationMs in equals()
DNetworkEvent.java81 public final long durationMs; field in NetworkEvent
83 public NetworkEvent(@EventType int eventType, long durationMs) { in NetworkEvent() argument
85 this.durationMs = durationMs; in NetworkEvent()
94 durationMs = in.readLong(); in NetworkEvent()
101 out.writeLong(durationMs); in writeToParcel()
126 Decoder.constants.get(eventType), durationMs); in toString()
134 && durationMs == other.durationMs; in equals()
DIpManagerEvent.java65 public final long durationMs; field in IpManagerEvent
69 this.durationMs = duration; in IpManagerEvent()
74 this.durationMs = in.readLong(); in IpManagerEvent()
81 out.writeLong(durationMs); in writeToParcel()
106 Decoder.constants.get(eventType), durationMs); in toString()
114 && durationMs == other.durationMs; in equals()
DApfStats.java43 public final long durationMs; field in ApfStats
100 this.durationMs = in.readLong(); in ApfStats()
112 private ApfStats(long durationMs, int receivedRas, int matchingRas, int droppedRas, in ApfStats() argument
115 this.durationMs = durationMs; in ApfStats()
148 public Builder setDurationMs(long durationMs) { in setDurationMs() argument
149 mDurationMs = durationMs; in setDurationMs()
248 out.writeLong(durationMs); in writeToParcel()
270 .append(String.format("%dms ", durationMs)) in toString()
286 return durationMs == other.durationMs in equals()
DDefaultNetworkEvent.java44 public long durationMs; field in DefaultNetworkEvent
54 durationMs = timeMs - creationTimeMs; in updateDuration()
69 j.add(String.format("duration=%.0fs", durationMs / 1000.0)); in toString()
70 j.add(String.format("validation=%04.1f%%", (validatedMs * 100.0) / durationMs)); in toString()
/frameworks/base/services/core/java/com/android/server/power/stats/
DVideoPowerCalculator.java36 public long durationMs; field in VideoPowerCalculator.PowerAndDuration
64 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
69 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
75 final long durationMs = mPowerEstimator.calculateDuration(u.getVideoTurnedOnTimer(), in calculateApp() local
77 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp()
78 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, durationMs) in calculateApp()
81 total.durationMs += durationMs; in calculateApp()
DAudioPowerCalculator.java39 public long durationMs; field in AudioPowerCalculator.PowerAndDuration
67 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
72 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
78 final long durationMs = mPowerEstimator.calculateDuration(u.getAudioTurnedOnTimer(), in calculateApp() local
80 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp()
81 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, durationMs) in calculateApp()
84 total.durationMs += durationMs; in calculateApp()
DFlashlightPowerCalculator.java49 final long durationMs = batteryStats.getFlashlightOnTime(rawRealtimeUs, in calculate() local
51 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculate()
54 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculate()
58 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculate()
65 final long durationMs = mPowerEstimator.calculateDuration(u.getFlashlightTurnedOnTimer(), in calculateApp() local
67 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp()
68 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculateApp()
DCameraPowerCalculator.java53 long durationMs = in calculate() local
60 powerMah = mPowerEstimator.calculatePower(durationMs); in calculate()
65 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculate()
69 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculate()
78 long durationMs = in calculateApp() local
85 powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp()
88 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculateApp()
DWakelockPowerCalculator.java36 public long durationMs; field in WakelockPowerCalculator.PowerAndDuration
65 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK, result.durationMs) in calculate()
68 totalAppDurationMs += result.durationMs; in calculate()
74 osDurationMs = result.durationMs; in calculate()
87 result.durationMs) in calculate()
125 result.durationMs = wakeLockTimeUs / 1000; // convert to millis in calculateApp()
128 result.powerMah = mPowerEstimator.calculatePower(result.durationMs); in calculateApp()
130 Log.d(TAG, "UID " + u.getUid() + ": wake " + result.durationMs in calculateApp()
146 result.durationMs = osDurationMs + wakeTimeMillis; in calculateRemaining()
149 result.durationMs = 0; in calculateRemaining()
DScreenPowerCalculator.java49 public long durationMs; field in ScreenPowerCalculator.PowerAndDuration
97 appPowerAndDuration.durationMs) in calculate()
102 totalAppDuration += appPowerAndDuration.durationMs; in calculate()
111 totalAppDuration = totalPowerAndDuration.durationMs; in calculate()
119 totalPowerAndDuration.durationMs); in calculate()
133 totalPowerAndDuration.durationMs = calculateDuration(batteryStats, rawRealtimeUs, in calculateTotalDurationAndPower()
149 appPowerAndDuration.durationMs = getProcessForegroundTimeMs(u, rawRealtimeUs); in calculateAppUsingEnergyConsumption()
211 final long durationMs = activityTimeArray.get(app.getUid(), 0); in smearScreenBatteryDrain() local
212 final double powerMah = totalScreenPowerMah * durationMs / totalActivityTimeMs; in smearScreenBatteryDrain()
213 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, durationMs) in smearScreenBatteryDrain()
DCpuPowerCalculator.java54 public long durationMs; field in CpuPowerCalculator.Result
148 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU, result.durationMs) in calculateApp()
225 long durationMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculatePowerAndDuration() local
238 if (DEBUG && (durationMs != 0 || powerMah != 0)) { in calculatePowerAndDuration()
239 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + durationMs + " ms power=" in calculatePowerAndDuration()
269 if (durationFgMs > durationMs) { in calculatePowerAndDuration()
270 if (DEBUG && durationFgMs > durationMs + 10000) { in calculatePowerAndDuration()
275 durationMs = durationFgMs; in calculatePowerAndDuration()
278 result.durationMs = durationMs; in calculatePowerAndDuration()
DBluetoothPowerCalculator.java45 public long durationMs; field in BluetoothPowerCalculator.PowerAndDuration
105 powerAndDuration.durationMs - powerAndDuration.totalDurationMs); in calculate()
114 powerAndDuration.durationMs) in calculate()
139 BatteryConsumer.POWER_COMPONENT_BLUETOOTH, powerAndDuration.durationMs) in calculateApp()
145 powerAndDuration.totalDurationMs += powerAndDuration.durationMs; in calculateApp()
169 powerAndDuration.durationMs = 0; in calculatePowerAndDuration()
184 powerAndDuration.durationMs = idleTimeMs + rxTimeMs + txTimeMs; in calculatePowerAndDuration()
DWifiPowerCalculator.java51 public long durationMs; field in WifiPowerCalculator.PowerDurationAndTraffic
117 totalAppDurationMs += powerDurationAndTraffic.durationMs; in calculate()
122 powerDurationAndTraffic.durationMs); in calculate()
150 powerDurationAndTraffic.durationMs) in calculate()
188 powerDurationAndTraffic.durationMs = idleTime + rxTime + txTime; in calculateApp()
222 powerDurationAndTraffic.durationMs = 0; in calculateApp()
230 powerDurationAndTraffic.durationMs = wifiRunningTime; in calculateApp()
296 powerDurationAndTraffic.durationMs = Math.max(0, totalDurationMs - totalAppDurationMs); in calculateRemaining()
DUsageBasedPowerEstimator.java49 public double calculatePower(long durationMs) { in calculatePower() argument
50 return mAveragePowerMahPerMs * durationMs; in calculatePower()
/frameworks/base/core/java/android/os/
DPowerComponents.java163 final long durationMs = getUsageDurationMillis(key); in dump() local
164 if (skipEmptyComponents && componentPower == 0 && durationMs == 0) { in dump()
174 if (durationMs != 0) { in dump()
176 BatteryStats.formatTimeMsNoSpace(sb, durationMs); in dump()
225 final long durationMs = getUsageDurationMillis(key); in writeStatsProtoImpl() local
227 if (powerDeciCoulombs == 0 && durationMs == 0) { in writeStatsProtoImpl()
242 componentId, powerDeciCoulombs, durationMs); in writeStatsProtoImpl()
244 writePowerUsageSlice(proto, componentId, powerDeciCoulombs, durationMs, in writeStatsProtoImpl()
253 final long durationMs = getUsageDurationForCustomComponentMillis(componentId); in writeStatsProtoImpl() local
255 if (powerDeciCoulombs == 0 && durationMs == 0) { in writeStatsProtoImpl()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayAnimationsController.kt168 durationMs = mDreamInBlurAnimDurationMs, in <lambda>()
174 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>()
180 durationMs = mDreamInTranslationYDurationMs, in <lambda>()
213 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>()
231 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>()
242 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>()
279 durationMs: Long, in <lambda>()
284 duration = durationMs in <lambda>()
301 durationMs: Long, in <lambda>()
307 duration = durationMs in <lambda>()
[all …]
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp81 HalResult<void> EmptyHalWrapper::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument
83 toString(boost).c_str(), durationMs); in setBoost()
107 HalResult<void> HidlHalWrapperV1_0::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument
109 return sendPowerHint(V1_3::PowerHint::INTERACTION, durationMs); in setBoost()
181 HalResult<void> HidlHalWrapperV1_2::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument
184 return sendPowerHint(V1_3::PowerHint::CAMERA_SHOT, durationMs); in setBoost()
186 return sendPowerHint(V1_3::PowerHint::CAMERA_LAUNCH, durationMs); in setBoost()
188 return HidlHalWrapperV1_1::setBoost(boost, durationMs); in setBoost()
225 HalResult<void> AidlHalWrapper::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument
254 return toHalResult(mHandle->setBoost(boost, durationMs)); in setBoost()
/frameworks/base/services/core/java/com/android/server/am/
DFgsTempAllowList.java76 public void add(int uid, long durationMs, @Nullable E entry) { in add() argument
78 if (durationMs <= 0) { in add()
79 Slog.e(TAG_AM, "FgsTempAllowList bad duration:" + durationMs + " key: " in add()
97 final long expirationTime = now + durationMs; in add()
/frameworks/av/media/libstagefright/
DVideoRenderQualityTracker.cpp506 int32_t durationMs = int32_t((actualRenderTimeUs - lastRenderTimeUs) / 1000); in processFreeze() local
507 m.freezeDurationMsHistogram.insert(durationMs); in processFreeze()
520 e.durationMs = 0; in processFreeze()
524 e.details.durationMs.clear(); in processFreeze()
530 e.durationMs += distanceMs; in processFreeze()
533 e.durationMs += durationMs; in processFreeze()
535 e.sumDurationMs += durationMs; in processFreeze()
536 if (e.details.durationMs.size() < c.freezeEventDetailsMax) { in processFreeze()
537 e.details.durationMs.push_back(durationMs); in processFreeze()
621 e.durationMs = 0; in processJudder()
[all …]
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
DTestActivity.java44 public void doSomeWork(int durationMs) {
45 Common.doSomeWork(durationMs);
DIsolatedTestService.java45 public void doSomeWork(int durationMs) {
46 Common.doSomeWork(durationMs);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java258 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in constrainedHighSpeedRecording() local
262 validateRecording(size, durationMs); in constrainedHighSpeedRecording()
438 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in basicRecordingTestByCamera() local
447 validateRecording(videoSz, durationMs); in basicRecordingTestByCamera()
695 int durationMs = stopRecording(/* useMediaRecorder */true); in videoSnapshotTestByCamera() local
700 durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in videoSnapshotTestByCamera()
705 validateRecording(videoSz, durationMs); in videoSnapshotTestByCamera()
1019 double durationMs = (currentTS - prevTS) / 1000000.0;
1030 durationMs, expectedDurationMs
1032 durationMs <= (expectedDurationMs * MAX_NUM_FRAME_DROP_INTERVAL_ALLOWED)
[all …]
/frameworks/base/core/java/android/service/autofill/augmented/
DHelper.java34 @NonNull ComponentName componentName, int mSessionId, long durationMs) { in logResponse() argument
43 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_DURATION, durationMs); in logResponse()

123456