/frameworks/base/core/java/android/net/metrics/ |
D | DhcpClientEvent.java | 44 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()
|
D | ValidationProbeEvent.java | 62 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()
|
D | NetworkEvent.java | 81 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()
|
D | IpManagerEvent.java | 65 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()
|
D | ApfStats.java | 43 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()
|
D | DefaultNetworkEvent.java | 44 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/core/java/com/android/internal/os/ |
D | AudioPowerCalculator.java | 37 public long durationMs; field in AudioPowerCalculator.PowerAndDuration 65 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate() 70 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate() 76 final long durationMs = mPowerEstimator.calculateDuration(u.getAudioTurnedOnTimer(), in calculateApp() local 78 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp() 79 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, durationMs) in calculateApp() 82 total.durationMs += durationMs; in calculateApp()
|
D | VideoPowerCalculator.java | 34 public long durationMs; field in VideoPowerCalculator.PowerAndDuration 62 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate() 67 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate() 73 final long durationMs = mPowerEstimator.calculateDuration(u.getVideoTurnedOnTimer(), in calculateApp() local 75 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp() 76 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, durationMs) in calculateApp() 79 total.durationMs += durationMs; in calculateApp()
|
D | CameraPowerCalculator.java | 49 final long durationMs = batteryStats.getCameraOnTime(rawRealtimeUs, in calculate() local 51 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculate() 54 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculate() 58 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculate() 65 final long durationMs = in calculateApp() local 68 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp() 69 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA, durationMs) in calculateApp()
|
D | FlashlightPowerCalculator.java | 47 final long durationMs = batteryStats.getFlashlightOnTime(rawRealtimeUs, in calculate() local 49 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculate() 52 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculate() 56 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculate() 63 final long durationMs = mPowerEstimator.calculateDuration(u.getFlashlightTurnedOnTimer(), in calculateApp() local 65 final double powerMah = mPowerEstimator.calculatePower(durationMs); in calculateApp() 66 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT, durationMs) in calculateApp()
|
D | WakelockPowerCalculator.java | 34 public long durationMs; field in WakelockPowerCalculator.PowerAndDuration 63 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK, result.durationMs) in calculate() 66 totalAppDurationMs += result.durationMs; in calculate() 72 osDurationMs = result.durationMs; in calculate() 85 result.durationMs) in calculate() 123 result.durationMs = wakeLockTimeUs / 1000; // convert to millis in calculateApp() 126 result.powerMah = mPowerEstimator.calculatePower(result.durationMs); in calculateApp() 128 Log.d(TAG, "UID " + u.getUid() + ": wake " + result.durationMs in calculateApp() 144 result.durationMs = osDurationMs + wakeTimeMillis; in calculateRemaining() 147 result.durationMs = 0; in calculateRemaining()
|
D | ScreenPowerCalculator.java | 48 public long durationMs; field in ScreenPowerCalculator.PowerAndDuration 96 appPowerAndDuration.durationMs) in calculate() 101 totalAppDuration += appPowerAndDuration.durationMs; in calculate() 110 totalAppDuration = totalPowerAndDuration.durationMs; in calculate() 118 totalPowerAndDuration.durationMs); in calculate() 132 totalPowerAndDuration.durationMs = calculateDuration(batteryStats, rawRealtimeUs, in calculateTotalDurationAndPower() 148 appPowerAndDuration.durationMs = getProcessForegroundTimeMs(u, rawRealtimeUs); in calculateAppUsingMeasuredEnergy() 210 final long durationMs = activityTimeArray.get(app.getUid(), 0); in smearScreenBatteryDrain() local 211 final double powerMah = totalScreenPowerMah * durationMs / totalActivityTimeMs; in smearScreenBatteryDrain() 212 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, durationMs) in smearScreenBatteryDrain()
|
D | CpuPowerCalculator.java | 52 public long durationMs; field in CpuPowerCalculator.Result 146 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU, result.durationMs) in calculateApp() 223 long durationMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculatePowerAndDuration() local 236 if (DEBUG && (durationMs != 0 || powerMah != 0)) { in calculatePowerAndDuration() 237 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + durationMs + " ms power=" in calculatePowerAndDuration() 267 if (durationFgMs > durationMs) { in calculatePowerAndDuration() 268 if (DEBUG && durationFgMs > durationMs + 10000) { in calculatePowerAndDuration() 273 durationMs = durationFgMs; in calculatePowerAndDuration() 276 result.durationMs = durationMs; in calculatePowerAndDuration()
|
D | BluetoothPowerCalculator.java | 43 public long durationMs; field in BluetoothPowerCalculator.PowerAndDuration 103 powerAndDuration.durationMs - powerAndDuration.totalDurationMs); in calculate() 112 powerAndDuration.durationMs) in calculate() 137 BatteryConsumer.POWER_COMPONENT_BLUETOOTH, powerAndDuration.durationMs) in calculateApp() 143 powerAndDuration.totalDurationMs += powerAndDuration.durationMs; in calculateApp() 167 powerAndDuration.durationMs = 0; in calculatePowerAndDuration() 182 powerAndDuration.durationMs = idleTimeMs + rxTimeMs + txTimeMs; in calculatePowerAndDuration()
|
D | WifiPowerCalculator.java | 49 public long durationMs; field in WifiPowerCalculator.PowerDurationAndTraffic 115 totalAppDurationMs += powerDurationAndTraffic.durationMs; in calculate() 120 powerDurationAndTraffic.durationMs); in calculate() 148 powerDurationAndTraffic.durationMs) in calculate() 186 powerDurationAndTraffic.durationMs = idleTime + rxTime + txTime; in calculateApp() 220 powerDurationAndTraffic.durationMs = 0; in calculateApp() 228 powerDurationAndTraffic.durationMs = wifiRunningTime; in calculateApp() 294 powerDurationAndTraffic.durationMs = Math.max(0, totalDurationMs - totalAppDurationMs); in calculateRemaining()
|
D | UsageBasedPowerEstimator.java | 49 public double calculatePower(long durationMs) { in calculatePower() argument 50 return mAveragePowerMahPerMs * durationMs; in calculatePower()
|
/frameworks/base/core/java/android/os/ |
D | PowerComponents.java | 162 final long durationMs = getUsageDurationMillis(key); in dump() local 163 if (skipEmptyComponents && componentPower == 0 && durationMs == 0) { in dump() 173 if (durationMs != 0) { in dump() 175 BatteryStats.formatTimeMsNoSpace(sb, durationMs); in dump() 224 final long durationMs = getUsageDurationMillis(key); in writeStatsProtoImpl() local 226 if (powerDeciCoulombs == 0 && durationMs == 0) { in writeStatsProtoImpl() 241 componentId, powerDeciCoulombs, durationMs); in writeStatsProtoImpl() 243 writePowerUsageSlice(proto, componentId, powerDeciCoulombs, durationMs, in writeStatsProtoImpl() 252 final long durationMs = getUsageDurationForCustomComponentMillis(componentId); in writeStatsProtoImpl() local 254 if (powerDeciCoulombs == 0 && durationMs == 0) { in writeStatsProtoImpl() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
D | DreamOverlayAnimationsController.kt | 153 durationMs = mDreamInBlurAnimDurationMs, in <lambda>() 159 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>() 165 durationMs = mDreamInTranslationYDurationMs, in <lambda>() 195 durationMs = mDreamInTranslationYDurationMs, in <lambda>() 206 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>() 227 durationMs = mDreamInComplicationsAnimDurationMs, in <lambda>() 261 durationMs: Long, in <lambda>() 266 duration = durationMs in <lambda>() 283 durationMs: Long, in <lambda>() 289 duration = durationMs in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | FgsTempAllowList.java | 76 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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2RecordingTest.java | 258 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/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
D | TestActivity.java | 44 public void doSomeWork(int durationMs) { 45 Common.doSomeWork(durationMs);
|
D | IsolatedTestService.java | 45 public void doSomeWork(int durationMs) { 46 Common.doSomeWork(durationMs);
|
D | Common.java | 30 public static void doSomeWork(int durationMs) { in doSomeWork() argument 31 final long endTime = SystemClock.currentThreadTimeMillis() + durationMs; in doSomeWork()
|
/frameworks/native/services/powermanager/ |
D | PowerHalWrapper.cpp | 83 HalResult<void> EmptyHalWrapper::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument 85 toString(boost).c_str(), durationMs); in setBoost() 109 HalResult<void> HidlHalWrapperV1_0::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument 111 return sendPowerHint(V1_0::PowerHint::INTERACTION, durationMs); in setBoost() 176 HalResult<void> AidlHalWrapper::setBoost(Boost boost, int32_t durationMs) { in setBoost() argument 205 return toHalResult(mHandle->setBoost(boost, durationMs)); in setBoost()
|
/frameworks/base/core/java/android/service/autofill/augmented/ |
D | Helper.java | 34 @NonNull ComponentName componentName, int mSessionId, long durationMs) { in logResponse() argument 43 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_DURATION, durationMs); in logResponse()
|