Home
last modified time | relevance | path

Searched refs:latencyMs (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/view/textclassifier/
DGenerateLinksLogger.java68 long latencyMs) { in logGenerateLinks() argument
92 writeStats(callId, callingPackageName, null, totalStats, text, latencyMs); in logGenerateLinks()
95 latencyMs); in logGenerateLinks()
114 LinkifyStats stats, CharSequence text, long latencyMs) { in writeStats() argument
121 .addTaggedData(MetricsEvent.FIELD_LINKIFY_LATENCY, latencyMs); in writeStats()
143 final int latencyMs = Integer.parseInt( in debugLog() local
148 numLinks, linkLength, textLength, latencyMs, log.getPackageName())); in debugLog()
/frameworks/base/core/java/android/net/metrics/
DNetworkMetrics.java78 public void addDnsResult(int eventType, int returnCode, int latencyMs) { in addDnsResult() argument
82 boolean isSuccess = dnsMetrics.addResult((byte) eventType, (byte) returnCode, latencyMs); in addDnsResult()
83 pendingSummary.dnsLatencies.count(latencyMs); in addDnsResult()
88 public void addConnectResult(int error, int latencyMs, String ipAddr) { in addConnectResult() argument
92 boolean isSuccess = connectMetrics.addEvent(error, latencyMs, ipAddr); in addConnectResult()
95 pendingSummary.connectLatencies.count(latencyMs); in addConnectResult()
DDnsEvent.java61 boolean addResult(byte eventType, byte returnCode, int latencyMs) { in addResult() argument
72 latenciesMs[eventCount] = latencyMs; in addResult()
DConnectStats.java63 boolean addEvent(int errno, int latencyMs, String ipAddr) { in addEvent() argument
67 countLatency(errno, latencyMs); in addEvent()
/frameworks/av/services/audioflinger/
DTrackBase.h145 status_t getServerLatencyMs(double *latencyMs, bool *fromTrack = nullptr) const {
160 *latencyMs = serverLatencyMs;
182 status_t getTrackLatencyMs(double *latencyMs, bool *fromTrack = nullptr) const {
186 *latencyMs = serverLatencyMs + bufferLatencyMs();
DPatchPanel.cpp87 status_t AudioFlinger::PatchPanel::SoftwarePatch::getLatencyMs_l(double *latencyMs) const in getLatencyMs_l()
91 return iter->second.getLatencyMs(latencyMs); in getLatencyMs_l()
588 status_t AudioFlinger::PatchPanel::Patch::getLatencyMs(double *latencyMs) const in getLatencyMs()
611 *latencyMs = recordServerLatencyMs + playbackTrackLatencyMs; in getLatencyMs()
638 *latencyMs = frameDiff * 1e3 / recordTrack->sampleRate() in getLatencyMs()
667 double latencyMs; in dump() local
668 if (getLatencyMs(&latencyMs) == OK) { in dump()
669 result.appendFormat(" latency: %.2lf ms", latencyMs); in dump()
DPatchPanel.h37 status_t getLatencyMs_l(double *latencyMs) const;
202 status_t getLatencyMs(double *latencyMs) const;
DFastMixer.cpp529 const double latencyMs = in onWork() local
531 dumpState->mLatencyMs = latencyMs; in onWork()
532 LOG_LATENCY(latencyMs); in onWork()
DTracks.cpp773 double latencyMs; in appendDump() local
775 if (getTrackLatencyMs(&latencyMs, &fromTrack) == OK) { in appendDump()
778 result.appendFormat(" %7.2lf %c", latencyMs, fromTrack ? 't' : 'k'); in appendDump()
872 const double latencyMs = timestamp.getOutputServerLatencyMs(sampleRate()); in onTimestamp() local
874 mServerLatencyMs.store(latencyMs); in onTimestamp()
1493 const double latencyMs = useTrackTimestamp in updateTrackFrameInfo() local
1498 mServerLatencyMs.store(latencyMs); in updateTrackFrameInfo()
2269 double latencyMs; in appendDump() local
2271 if (getTrackLatencyMs(&latencyMs, &fromTrack) == OK) { in appendDump()
2274 result.appendFormat(" %7.2lf %c", latencyMs, fromTrack ? 't' : 'k'); in appendDump()
[all …]
DThreads.cpp2170 uint32_t latencyMs = latency_l(); in createTrack_l() local
2171 if (latencyMs == 0) { in createTrack_l()
2177 minFrameCount = AudioSystem::calculateMinFrameCount(latencyMs, mNormalFrameCount, in createTrack_l()
3353 double latencyMs; in threadLoop() local
3358 status = swPatches[0].getLatencyMs_l(&latencyMs); in threadLoop()
3369 if (latencyMs >= minLatency && latencyMs <= maxLatency) { in threadLoop()
3370 ALOGVV("new downstream latency %lf ms", latencyMs); in threadLoop()
3372 ALOGD("out of range downstream latency %lf ms", latencyMs); in threadLoop()
3373 if (latencyMs < minLatency) latencyMs = minLatency; in threadLoop()
3374 else if (latencyMs > maxLatency) latencyMs = maxLatency; in threadLoop()
[all …]
DAudioFlinger.h183 uint32_t *latencyMs,
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java201 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, in onDnsEvent() argument
205 getMetricsForNetwork(timestamp, netId).addDnsResult(eventType, returnCode, latencyMs); in onDnsEvent()
244 public synchronized void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, in onConnectEvent() argument
247 getMetricsForNetwork(timestamp, netId).addConnectResult(error, latencyMs, ipAddr); in onConnectEvent()
DIpConnectivityEventBuilder.java235 ipProvisioningEvent.latencyMs = (int) in.durationMs; in setIpManagerEvent()
250 networkEvent.latencyMs = (int) in.durationMs; in setNetworkEvent()
257 validationProbeEvent.latencyMs = (int) in.durationMs; in setValidationProbeEvent()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp649 int32_t latencyMs = pContext->mLatency; in Visualizer_command() local
650 latencyMs -= deltaMs; in Visualizer_command()
651 if (latencyMs < 0) { in Visualizer_command()
652 latencyMs = 0; in Visualizer_command()
655 + pContext->mConfig.inputCfg.samplingRate * latencyMs / 1000; in Visualizer_command()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp43 uint32_t *latencyMs, in openOutput() argument
51 return af->openOutput(module, output, config, device, latencyMs, flags); in openOutput()
DAudioPolicyService.h639 uint32_t *latencyMs,
/frameworks/av/media/libnblog/
DMerger.cpp157 const double latencyMs = it.payload<double>(); in processSnapshot() local
158 data.latencyHist.add(latencyMs); in processSnapshot()
DReader.cpp240 const double latencyMs = it.payload<double>(); in dump() local
241 body.appendFormat("EVENT_LATENCY,%.3f", latencyMs); in dump()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java571 void connectEvent(int netid, int error, int latencyMs, String ipAddr) throws Exception { in connectEvent() argument
572 mNetdListener.onConnectEvent(netid, error, latencyMs, ipAddr, 80, 1); in connectEvent()
DNetdEventListenerServiceTest.java473 Thread connectEventAction(int netId, int error, int latencyMs, String ipAddr) { in connectEventAction() argument
476 mService.onConnectEvent(netId, error, latencyMs, ipAddr, 80, 1); in connectEventAction()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp398 uint32_t *latencyMs, in openOutput() argument
401 if (output == nullptr || config == nullptr || device == nullptr || latencyMs == nullptr) { in openOutput()
423 *latencyMs = reply.readInt32(); in openOutput()
1230 uint32_t latencyMs = 0; in onTransact() local
1232 status = openOutput(module, &output, &config, device, &latencyMs, flags); in onTransact()
1238 reply->writeInt32(latencyMs); in onTransact()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h314 uint32_t *latencyMs,
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h409 uint32_t *latencyMs,
/frameworks/av/media/libaudiohal/impl/
DStreamHalHidl.cpp323 *latency = writeStatus.reply.latencyMs; in getLatency()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1658 final int latencyMs = (int) (SystemClock.uptimeMillis() - mLastWakeTime); in finishWakefulnessChangeIfNeededLocked() local
1659 if (latencyMs >= SCREEN_ON_LATENCY_WARNING_MS) { in finishWakefulnessChangeIfNeededLocked()
1660 Slog.w(TAG, "Screen on took " + latencyMs + " ms"); in finishWakefulnessChangeIfNeededLocked()

12