Searched refs:durationMs (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/net/metrics/
H A DDhcpClientEvent.java38 public final int durationMs; field in class:DhcpClientEvent
41 public DhcpClientEvent(String ifName, String msg, int durationMs) { argument
44 this.durationMs = durationMs;
50 this.durationMs = in.readInt();
57 out.writeInt(durationMs);
67 return String.format("DhcpClientEvent(%s, %s, %dms)", ifName, msg, durationMs);
H A DNetworkEvent.java59 public final long durationMs; field in class:NetworkEvent
62 public NetworkEvent(int netId, @EventType int eventType, long durationMs) { argument
65 this.durationMs = durationMs;
76 durationMs = in.readLong();
83 out.writeLong(durationMs);
105 public static void logValidated(int netId, long durationMs) { argument
108 public static void logCaptivePortalFound(int netId, long durationMs) { argument
114 netId, Decoder.constants.get(eventType), durationMs);
H A DValidationProbeEvent.java58 public final long durationMs; field in class:ValidationProbeEvent
64 int netId, long durationMs, @ProbeType int probeType, @ReturnCode int returnCode) {
66 this.durationMs = durationMs;
73 durationMs = in.readLong();
81 out.writeLong(durationMs);
107 public static void logEvent(int netId, long durationMs, int probeType, int returnCode) { argument
113 netId, getProbeName(probeType), returnCode, durationMs);
63 ValidationProbeEvent( int netId, long durationMs, @ProbeType int probeType, @ReturnCode int returnCode) argument
H A DApfStats.java30 public final long durationMs; // time interval in milliseconds these stastistics covers field in class:ApfStats
40 public ApfStats(long durationMs, int receivedRas, int matchingRas, int droppedRas, argument
42 this.durationMs = durationMs;
53 this.durationMs = in.readLong();
65 out.writeLong(durationMs);
83 .append(String.format("%dms ", durationMs))
H A DIpManagerEvent.java49 public final long durationMs; field in class:IpManagerEvent
55 this.durationMs = duration;
61 this.durationMs = in.readLong();
68 out.writeLong(durationMs);
87 public static void logEvent(int eventType, String ifName, long durationMs) { argument
93 ifName, Decoder.constants.get(eventType), durationMs);
/frameworks/base/core/java/android/service/trust/
H A DITrustAgentServiceCallback.aidl27 void grantTrust(CharSequence message, long durationMs, int flags);
H A DTrustAgentService.java251 * @param durationMs amount of time in milliseconds to keep the device in a trusted state.
271 final CharSequence message, final long durationMs, final boolean initiatedByUser) {
272 grantTrust(message, durationMs, initiatedByUser ? FLAG_GRANT_TRUST_INITIATED_BY_USER : 0);
279 * @param durationMs amount of time in milliseconds to keep the device in a trusted state.
291 final CharSequence message, final long durationMs, @GrantTrustFlags final int flags) {
299 mCallback.grantTrust(message.toString(), durationMs, flags);
309 grantTrust(message, durationMs, flags);
270 grantTrust( final CharSequence message, final long durationMs, final boolean initiatedByUser) argument
290 grantTrust( final CharSequence message, final long durationMs, @GrantTrustFlags final int flags) argument
/frameworks/support/design/src/android/support/design/widget/
H A DSnackbarManager.java222 int durationMs = LONG_DURATION_MS;
224 durationMs = r.duration;
226 durationMs = SHORT_DURATION_MS;
229 mHandler.sendMessageDelayed(Message.obtain(mHandler, MSG_TIMEOUT, r), durationMs);
/frameworks/base/media/java/android/media/tv/
H A DITvInputSessionWrapper.java231 long durationMs = (System.nanoTime() - startTime) / (1000 * 1000);
232 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_SHORT_MILLIS) {
234 + durationMs + "ms)");
235 if (msg.what == DO_TUNE && durationMs > EXECUTE_MESSAGE_TUNE_TIMEOUT_MILLIS) {
236 throw new RuntimeException("Too much time to handle tune request. (" + durationMs
240 if (durationMs > EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS) {
242 ", " + durationMs + "ms > " + EXECUTE_MESSAGE_TIMEOUT_LONG_MILLIS + "ms).");
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DIpConnectivityEventBuilder.java144 out.dhcpEvent.durationMs = in.durationMs;
159 out.ipProvisioningEvent.latencyMs = (int) in.durationMs;
180 out.networkEvent.latencyMs = (int) in.durationMs;
186 out.validationProbeEvent.latencyMs = (int) in.durationMs;
207 out.apfStatistics.durationMs = in.durationMs;
H A DNetworkMonitor.java977 private void logValidationProbe(long durationMs, int probeType, int probeResult) { argument
978 mMetricsLog.log(new ValidationProbeEvent(mNetId, durationMs, probeType, probeResult));
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustAgentWrapper.java121 long durationMs = msg.getData().getLong(DATA_DURATION);
122 if (durationMs > 0) {
129 duration = Math.min(durationMs, mMaximumTimeToLock);
132 + durationMs + " to " + duration);
135 duration = durationMs;
145 durationMs, flags);
198 public void grantTrust(CharSequence userMessage, long durationMs, int flags) {
199 if (DEBUG) Slog.v(TAG, "enableTrust(" + userMessage + ", durationMs = " + durationMs
204 msg.getData().putLong(DATA_DURATION, durationMs);
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument
51 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2RecordingTest.java254 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f /
258 validateRecording(size, durationMs);
434 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f /
443 validateRecording(videoSz, durationMs);
687 int durationMs = stopRecording(/* useMediaRecorder */true);
692 durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f /
697 validateRecording(videoSz, durationMs);
1009 double durationMs = (currentTS - prevTS) / 1000000.0;
1020 durationMs, expectedDurationMs
1022 durationMs <
[all...]
/frameworks/base/media/java/android/media/
H A DToneGenerator.java862 * @param durationMs The tone duration in milliseconds. If the tone is limited in time by definition,
863 * the actual duration will be the minimum of durationMs and the defined tone duration. Setting durationMs to -1,
866 public native boolean startTone(int toneType, int durationMs); argument
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp62 long durationMs = 0; local
90 durationMs += getDelayMs(gcb);
106 mGif->SWidth, mGif->SHeight, mGif->ImageCount, durationMs);
/frameworks/av/media/libmedia/
H A Dmediaplayer.cpp486 int durationMs; local
487 status_t ret = mPlayer->getDuration(&durationMs);
491 durationMs = -1;
496 *msec = durationMs;
521 int durationMs; local
522 status_t err = mPlayer->getDuration(&durationMs);
529 if (msec > durationMs) {
531 "durationMs = %d",
533 durationMs);
535 msec = durationMs;
[all...]
H A DToneGenerator.cpp923 // durationMs: The tone duration in milliseconds. If the tone is limited in time by definition,
924 // the actual duration will be the minimum of durationMs and the defined tone duration.
925 // Ommiting or setting durationMs to -1 does not limit tone duration.
931 bool ToneGenerator::startTone(tone_type toneType, int durationMs) { argument
957 mDurationMs = durationMs;
/frameworks/base/core/java/android/app/job/
H A DJobInfo.java682 * @param durationMs Delay after most recent content change, in milliseconds.
684 public Builder setTriggerContentUpdateDelay(long durationMs) { argument
685 mTriggerContentUpdateDelay = durationMs;
692 * @param durationMs Delay after initial content change, in milliseconds.
694 public Builder setTriggerContentMaxDelay(long durationMs) { argument
695 mTriggerContentMaxDelay = durationMs;
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
H A DSampleTrustAgent.java166 String message, long durationMs, boolean initiatedByUser) {
169 intent.putExtra(EXTRA_DURATION, durationMs);
165 sendGrantTrust(Context context, String message, long durationMs, boolean initiatedByUser) argument
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
H A DLocationRequestStatisticsTest.java169 long durationMs = stats.getDurationMs();
172 assertTrue("Duration is too large", durationMs <= maxDeltaMs);
/frameworks/av/include/media/
H A DToneGenerator.h158 bool startTone(tone_type toneType, int durationMs = -1);
/frameworks/base/services/core/java/com/android/server/policy/
H A DSystemGesturesPointerEventListener.java278 void onFling(int durationMs); argument
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpClient.java509 long durationMs = SystemClock.elapsedRealtime() - mEnterTimeMs;
510 logState(getName(), (int) durationMs);
1017 private void logState(String name, int durationMs) { argument
1018 mMetricsLog.log(new DhcpClientEvent(mIfaceName, name, durationMs));
/frameworks/base/services/net/java/android/net/apf/
H A DApfFilter.java162 long durationMs = SystemClock.elapsedRealtime() - mStart;
164 mMetricsLog.log(new ApfStats(durationMs, mReceivedRas, mMatchingRas, mDroppedRas,

Completed in 921 milliseconds

12