Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/net/metrics/
DDhcpClientEvent.java41 public final int durationMs; field in DhcpClientEvent
44 private DhcpClientEvent(String msg, int durationMs) { in DhcpClientEvent() argument
46 this.durationMs = durationMs; in DhcpClientEvent()
51 this.durationMs = in.readInt(); in DhcpClientEvent()
74 public Builder setDurationMs(int durationMs) { in setDurationMs() argument
75 mDurationMs = durationMs; in setDurationMs()
92 out.writeInt(durationMs); in writeToParcel()
104 return String.format("DhcpClientEvent(%s, %dms)", msg, durationMs); in toString()
112 && durationMs == other.durationMs; in equals()
DValidationProbeEvent.java60 public final long durationMs; field in ValidationProbeEvent
71 private ValidationProbeEvent(long durationMs, int probeType, int returnCode) { in ValidationProbeEvent() argument
72 this.durationMs = durationMs; in ValidationProbeEvent()
78 durationMs = in.readLong(); in ValidationProbeEvent()
95 public Builder setDurationMs(long durationMs) { in setDurationMs() argument
96 mDurationMs = durationMs; in setDurationMs()
130 out.writeLong(durationMs); in writeToParcel()
172 getProbeName(probeType), returnCode, getValidationStage(probeType), durationMs); in toString()
179 return durationMs == other.durationMs in equals()
DNetworkEvent.java79 public final long durationMs; field in NetworkEvent
81 public NetworkEvent(@EventType int eventType, long durationMs) { in NetworkEvent() argument
83 this.durationMs = durationMs; in NetworkEvent()
92 durationMs = in.readLong(); in NetworkEvent()
99 out.writeLong(durationMs); in writeToParcel()
124 Decoder.constants.get(eventType), durationMs); in toString()
132 && durationMs == other.durationMs; in equals()
DIpManagerEvent.java63 public final long durationMs; field in IpManagerEvent
67 this.durationMs = duration; in IpManagerEvent()
72 this.durationMs = in.readLong(); in IpManagerEvent()
79 out.writeLong(durationMs); in writeToParcel()
104 Decoder.constants.get(eventType), durationMs); in toString()
112 && durationMs == other.durationMs; in equals()
DApfStats.java40 public final long durationMs; field in ApfStats
97 this.durationMs = in.readLong(); in ApfStats()
109 private ApfStats(long durationMs, int receivedRas, int matchingRas, int droppedRas, in ApfStats() argument
112 this.durationMs = durationMs; in ApfStats()
146 public Builder setDurationMs(long durationMs) { in setDurationMs() argument
147 mDurationMs = durationMs; in setDurationMs()
246 out.writeLong(durationMs); in writeToParcel()
268 .append(String.format("%dms ", durationMs)) in toString()
284 return durationMs == other.durationMs in equals()
DDefaultNetworkEvent.java49 public long durationMs; field in DefaultNetworkEvent
59 durationMs = timeMs - creationTimeMs; in updateDuration()
76 j.add(String.format("duration=%.0fs", durationMs / 1000.0)); in toString()
77 j.add(String.format("validation=%04.1f%%", (validatedMs * 100.0) / durationMs)); in toString()
/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/media/java/android/media/tv/
DITvInputSessionWrapper.java232 long durationMs = (System.nanoTime() - startTime) / (1000 * 1000); in executeMessage() local
233 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_SHORT_MILLIS) { in executeMessage()
235 + durationMs + "ms)"); in executeMessage()
236 if (msg.what == DO_TUNE && durationMs > EXECUTE_MESSAGE_TUNE_TIMEOUT_MILLIS) { in executeMessage()
237 throw new RuntimeException("Too much time to handle tune request. (" + durationMs in executeMessage()
241 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS) { in executeMessage()
243 ", " + durationMs + "ms > " + EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS + "ms)."); in executeMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBssidBlocklistMonitor.java163 private void addToBlocklist(@NonNull BssidStatus entry, long durationMs, String reasonString) { in addToBlocklist() argument
164 entry.addToBlocklist(durationMs, reasonString); in addToBlocklist()
166 + ", durationMs=" + durationMs + ", reason=" + reasonString); in addToBlocklist()
222 long durationMs) { in blockBssidForDurationMs() argument
224 || bssid.equals(ClientModeImpl.SUPPLICANT_BSSID_ANY) || durationMs <= 0) { in blockBssidForDurationMs()
226 + ", durationMs=" + durationMs); in blockBssidForDurationMs()
231 && status.blocklistEndTimeMs - mClock.getWallClockMillis() > durationMs) { in blockBssidForDurationMs()
235 addToBlocklist(status, durationMs, FAILURE_BSSID_BLOCKED_BY_FRAMEWORK_REASON_STRING); in blockBssidForDurationMs()
594 public void addToBlocklist(long durationMs, String blockReason) { in addToBlocklist() argument
597 blocklistEndTimeMs = blocklistStartTimeMs + durationMs; in addToBlocklist()
/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);
DCommon.java30 public static void doSomeWork(int durationMs) { in doSomeWork() argument
31 final long endTime = SystemClock.currentThreadTimeMillis() + durationMs; in doSomeWork()
/frameworks/base/tests/net/common/java/android/net/metrics/
DNetworkEventTest.kt34 assertEquals(0, networkEvent.durationMs) in testConstructorAndParcel()
38 assertEquals(Long.MAX_VALUE, networkEvent.durationMs) in testConstructorAndParcel()
/frameworks/base/core/java/android/service/autofill/augmented/
DHelper.java34 @NonNull ComponentName componentName, int mSessionId, long durationMs) { in logResponse() argument
40 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_DURATION, durationMs); in logResponse()
/frameworks/av/services/mediametrics/
Dstatsd_audiorecord.cpp87 int64_t durationMs = -1; in statsd_audiorecord() local
88 if (item->getInt64("android.media.audiorecord.durationMs", &durationMs)) { in statsd_audiorecord()
89 metrics_proto.set_duration_millis(durationMs); in statsd_audiorecord()
Dstatsd_recorder.cpp111 int64_t durationMs = -1; in statsd_recorder() local
112 if (item->getInt64("android.media.mediarecorder.durationMs", &durationMs)) { in statsd_recorder()
113 metrics_proto.set_duration_millis(durationMs); in statsd_recorder()
Dstatsd_audiothread.cpp95 int64_t durationMs = -1; in statsd_audiothread() local
96 if (item->getInt64(MM_PREFIX "durationMs", &durationMs)) { in statsd_audiothread()
97 metrics_proto.set_duration_millis(durationMs); in statsd_audiothread()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java134 long durationMs = msg.getData().getLong(DATA_DURATION);
135 if (durationMs > 0) {
142 duration = Math.min(durationMs, mMaximumTimeToLock);
145 + durationMs + " to " + duration);
148 duration = durationMs;
158 durationMs, flags);
273 public void grantTrust(CharSequence userMessage, long durationMs, int flags) {
274 if (DEBUG) Slog.d(TAG, "enableTrust(" + userMessage + ", durationMs = " + durationMs
279 msg.getData().putLong(DATA_DURATION, durationMs);
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java146 ev.defaultNetworkDurationMs = in.durationMs; in toProto()
227 dhcpEvent.durationMs = in.durationMs; in setDhcpClientEvent()
235 ipProvisioningEvent.latencyMs = (int) in.durationMs; in setIpManagerEvent()
250 networkEvent.latencyMs = (int) in.durationMs; in setNetworkEvent()
257 validationProbeEvent.latencyMs = (int) in.durationMs; in setValidationProbeEvent()
283 apfStatistics.durationMs = in.durationMs; in setApfStats()
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java292 long durationMs) { in startObservingHealth() argument
297 if (durationMs < 1) { in startObservingHealth()
298 Slog.wtf(TAG, "Invalid duration " + durationMs + "ms for observer " in startObservingHealth()
300 durationMs = DEFAULT_OBSERVING_DURATION_MS; in startObservingHealth()
306 MonitoredPackage pkg = newMonitoredPackage(packageNames.get(i), durationMs, false); in startObservingHealth()
783 long durationMs = getNextStateSyncMillisLocked(); in scheduleNextSyncStateLocked() local
785 if (durationMs == Long.MAX_VALUE) { in scheduleNextSyncStateLocked()
789 Slog.i(TAG, "Scheduling next state sync in " + durationMs + "ms"); in scheduleNextSyncStateLocked()
791 mShortTaskHandler.postDelayed(mSyncStateWithScheduledReason, durationMs); in scheduleNextSyncStateLocked()
1214 String name, long durationMs, boolean hasPassedHealthCheck) { in newMonitoredPackage() argument
[all …]
/frameworks/base/core/java/com/android/internal/util/
DStatLogger.java141 final double durationMs = mDurationStats[i] / 1000.0; in dump() local
146 mLabels[i], count, durationMs, in dump()
147 (count == 0 ? 0 : durationMs / count), in dump()
/frameworks/base/core/java/android/service/trust/
DTrustAgentService.java380 final CharSequence message, final long durationMs, final boolean initiatedByUser) { in grantTrust() argument
381 grantTrust(message, durationMs, initiatedByUser ? FLAG_GRANT_TRUST_INITIATED_BY_USER : 0); in grantTrust()
400 final CharSequence message, final long durationMs, @GrantTrustFlags final int flags) { in grantTrust() argument
408 mCallback.grantTrust(message.toString(), durationMs, flags); in grantTrust() local
418 grantTrust(message, durationMs, flags); in grantTrust()
/frameworks/av/services/camera/libcameraservice/utils/
DLatencyHistogram.cpp35 int32_t durationMs = static_cast<int32_t>(duration / 1000000LL); in add() local
36 int32_t binIndex = durationMs / mBinSizeMs; in add()
/frameworks/base/services/core/java/com/android/server/infra/
DFrameworkResourcesServiceNameResolver.java136 int durationMs) { in setTemporaryService() argument
156 mTemporaryServiceExpiration = SystemClock.elapsedRealtime() + durationMs; in setTemporaryService()
157 mTemporaryHandler.sendEmptyMessageDelayed(MSG_RESET_TEMPORARY_SERVICE, durationMs); in setTemporaryService()
/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerWhitelistManager.java150 public void whitelistAppTemporarily(@NonNull String packageName, long durationMs) { in whitelistAppTemporarily() argument
153 mService.addPowerSaveTempWhitelistApp(packageName, durationMs, mContext.getUserId(), in whitelistAppTemporarily()

1234