Home
last modified time | relevance | path

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

123

/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()
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()
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()
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.java231 long durationMs = (System.nanoTime() - startTime) / (1000 * 1000); in executeMessage() local
232 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_SHORT_MILLIS) { in executeMessage()
234 + durationMs + "ms)"); in executeMessage()
235 if (msg.what == DO_TUNE && durationMs > EXECUTE_MESSAGE_TUNE_TIMEOUT_MILLIS) { in executeMessage()
236 throw new RuntimeException("Too much time to handle tune request. (" + durationMs in executeMessage()
240 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS) { in executeMessage()
242 ", " + durationMs + "ms > " + EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS + "ms)."); in executeMessage()
/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/av/services/mediaanalytics/
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/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/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/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/services/core/java/com/android/server/
DPackageWatchdog.java235 long durationMs) { in startObservingHealth() argument
240 if (durationMs < 1) { in startObservingHealth()
242 throw new IllegalArgumentException("Invalid duration " + durationMs + "ms for observer " in startObservingHealth()
249 packages.add(new MonitoredPackage(packageNames.get(i), durationMs, false)); in startObservingHealth()
589 long durationMs = getNextStateSyncMillisLocked(); in scheduleNextSyncStateLocked() local
591 if (durationMs == Long.MAX_VALUE) { in scheduleNextSyncStateLocked()
595 Slog.i(TAG, "Scheduling next state sync in " + durationMs + "ms"); in scheduleNextSyncStateLocked()
597 mShortTaskHandler.postDelayed(this::syncStateWithScheduledReason, durationMs); in scheduleNextSyncStateLocked()
1021 MonitoredPackage(String name, long durationMs, boolean hasPassedHealthCheck) { in MonitoredPackage() argument
1022 this(name, durationMs, Long.MAX_VALUE, hasPassedHealthCheck); in MonitoredPackage()
[all …]
/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/core/jni/
Dandroid_media_ToneGenerator.cpp41 … android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { in android_media_ToneGenerator_startTone() argument
51 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs); in android_media_ToneGenerator_startTone()
/frameworks/av/media/libmedia/
Dmediaplayer.cpp515 int durationMs; in getDuration_l() local
516 status_t ret = mPlayer->getDuration(&durationMs); in getDuration_l()
520 durationMs = -1; in getDuration_l()
525 *msec = durationMs; in getDuration_l()
550 int durationMs; in seekTo_l() local
551 status_t err = mPlayer->getDuration(&durationMs); in seekTo_l()
558 if (msec > durationMs) { in seekTo_l()
562 durationMs); in seekTo_l()
564 msec = durationMs; in seekTo_l()

123