Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/frameworks/av/drm/libmediadrm/tests/
DDrmMetrics_test.cpp60 MediaDrmMetrics metrics; in TEST_F() local
64 consumer.consumeFrameworkMetrics(metrics); in TEST_F()
69 MediaDrmMetrics metrics; in TEST_F() local
71 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
72 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
75 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F()
77 &metrics.mProvideKeyResponseTimeUs); in TEST_F()
82 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
83 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
84 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmMetricsConsumer.cpp57 PersistableBundle *metrics) { in ExportCounterMetric() argument
58 if (!metrics) { in ExportCounterMetric()
68 metrics->putLong(android::String16(success_count_name.c_str()), in ExportCounterMetric()
72 metrics->getLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
74 metrics->putLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
81 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportCounterMetric()
88 …onst android::CounterMetric<T> &counter, const std::string &typeName, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument
89 if (!metrics) { in ExportCounterMetricWithAttributeNames()
96 metrics->putLong(android::String16(name.c_str()), value); in ExportCounterMetricWithAttributeNames()
102 PersistableBundle *metrics) { in ExportEventMetric() argument
[all …]
DDrmMetrics.cpp91 DrmFrameworkMetrics metrics; in GetSerializedMetrics() local
96 metrics.add_open_session_counter(); in GetSerializedMetrics()
104 metrics.add_close_session_counter(); in GetSerializedMetrics()
112 metrics.add_get_provisioning_request_counter(); in GetSerializedMetrics()
120 metrics.add_provide_provisioning_response_counter(); in GetSerializedMetrics()
128 metrics.add_key_status_change_counter(); in GetSerializedMetrics()
136 metrics.add_event_callback_counter(); in GetSerializedMetrics()
144 metrics.add_get_device_unique_id_counter(); in GetSerializedMetrics()
152 metrics.add_get_key_request_time_us(); in GetSerializedMetrics()
164 metrics.add_provide_key_response_time_us(); in GetSerializedMetrics()
[all …]
DPluginMetricsReporting.cpp34 status_t reportVendorMetrics(const std::string& metrics, in reportVendorMetrics() argument
39 if (metrics.size() > 0) { in reportVendorMetrics()
40 mediametrics_setCString(analyticsItem, kSerializedMetricsField, metrics.c_str()); in reportVendorMetrics()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DUserMetrics.java143 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, toUserId); in onUserSwitchingEventLocked() local
144 if (metrics == null) return; in onUserSwitchingEventLocked()
146 metrics.switchFromUserId = fromUserId; in onUserSwitchingEventLocked()
147 metrics.switchTime = timestampMs; in onUserSwitchingEventLocked()
151 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, userId); in onUserUnlockingEventLocked() local
152 if (metrics == null) return; in onUserUnlockingEventLocked()
154 metrics.unlockingTime = timestampMs; in onUserUnlockingEventLocked()
158 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, userId); in onUserUnlockedEventLocked() local
159 if (metrics == null) return; in onUserUnlockedEventLocked()
161 metrics.unlockedTime = timestampMs; in onUserUnlockedEventLocked()
[all …]
/frameworks/base/core/java/android/text/
DBoringLayout.java58 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in make() argument
60 return new BoringLayout(source, paint, outerWidth, align, spacingMult, spacingAdd, metrics, in make()
84 Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, in make() argument
86 return new BoringLayout(source, paint, outerWidth, align, spacingmult, spacingadd, metrics, in make()
118 @NonNull Alignment align, @NonNull BoringLayout.Metrics metrics, in make() argument
121 return new BoringLayout(source, paint, outerWidth, align, 1f, 0f, metrics, includePad, in make()
142 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake() argument
151 init(source, paint, align, metrics, includePad, true, false /* useFallbackLineSpacing */); in replaceOrMake()
184 @NonNull Alignment align, @NonNull BoringLayout.Metrics metrics, boolean includePad, in replaceOrMake() argument
206 init(getText(), paint, align, metrics, includePad, trust, in replaceOrMake() local
[all …]
/frameworks/base/media/java/android/media/metrics/
DIMediaMetricsManager.aidl17 package android.media.metrics;
19 import android.media.metrics.NetworkEvent;
20 import android.media.metrics.PlaybackErrorEvent;
21 import android.media.metrics.PlaybackMetrics;
22 import android.media.metrics.PlaybackStateEvent;
23 import android.media.metrics.TrackChangeEvent;
31 void reportPlaybackMetrics(in String sessionId, in PlaybackMetrics metrics, int userId); in reportPlaybackMetrics() argument
43 void reportBundleMetrics(in String sessionId, in PersistableBundle metrics, int userId); in reportBundleMetrics() argument
DMediaMetricsManager.java17 package android.media.metrics;
49 public void reportPlaybackMetrics(@NonNull String sessionId, PlaybackMetrics metrics) { in reportPlaybackMetrics() argument
51 mService.reportPlaybackMetrics(sessionId, metrics, mUserId); in reportPlaybackMetrics()
60 public void reportBundleMetrics(@NonNull String sessionId, PersistableBundle metrics) { in reportBundleMetrics() argument
62 mService.reportBundleMetrics(sessionId, metrics, mUserId); in reportBundleMetrics()
/frameworks/base/services/core/java/com/android/server/media/metrics/
DMediaMetricsManagerService.java17 package com.android.server.media.metrics;
22 import android.media.metrics.BundleSession;
23 import android.media.metrics.IMediaMetricsManager;
24 import android.media.metrics.NetworkEvent;
25 import android.media.metrics.PlaybackErrorEvent;
26 import android.media.metrics.PlaybackMetrics;
27 import android.media.metrics.PlaybackStateEvent;
28 import android.media.metrics.TrackChangeEvent;
154 public void reportPlaybackMetrics(String sessionId, PlaybackMetrics metrics, int userId) { in reportPlaybackMetrics() argument
163 .writeLong(metrics.getMediaDurationMillis()) in reportPlaybackMetrics()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java73 PasswordMetrics metrics = new PasswordMetrics(credType, length, letters, upperCase, in testParceling() local
76 metrics.writeToParcel(parcel, 0); in testParceling()
78 metrics = PasswordMetrics.CREATOR.createFromParcel(parcel); in testParceling()
83 assertEquals(credType, metrics.credType); in testParceling()
84 assertEquals(length, metrics.length); in testParceling()
85 assertEquals(letters, metrics.letters); in testParceling()
86 assertEquals(upperCase, metrics.upperCase); in testParceling()
87 assertEquals(lowerCase, metrics.lowerCase); in testParceling()
88 assertEquals(numeric, metrics.numeric); in testParceling()
89 assertEquals(symbols, metrics.symbols); in testParceling()
[all …]
/frameworks/base/core/java/android/util/
DTypedValue.java301 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument
306 metrics); in complexToDimension()
326 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument
331 metrics); in complexToDimensionPixelOffset()
353 DisplayMetrics metrics) in complexToDimensionPixelSize() argument
359 metrics); in complexToDimensionPixelSize()
372 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument
374 return complexToDimension(data, metrics); in complexToDimensionNoisy()
403 DisplayMetrics metrics) in applyDimension() argument
409 return value * metrics.density; in applyDimension()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java125 DisplayMetrics metrics = new DisplayMetrics(); in init() local
126 metrics.densityDpi = metrics.noncompatDensityDpi = in init()
129 metrics.density = metrics.noncompatDensity = in init()
130 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
132 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init()
134 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
135 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init()
136 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init()
137 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init()
142 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
DSysUiOverlay.java59 private static float dpToPx(DisplayMetrics metrics, float value) { in dpToPx() argument
60 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, value, metrics); in dpToPx()
67 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in SysUiOverlay() local
69 float cornerSizePx = dpToPx(metrics, cornerSizeDp); in SysUiOverlay()
70 float radiusPx = dpToPx(metrics, radiusDp); in SysUiOverlay()
72 float topNotchWidthPx = dpToPx(metrics, topNotchWidthDp); in SysUiOverlay()
73 float bottomNotchWidthPx = dpToPx(metrics, bottomNotchWidthDp); in SysUiOverlay()
74 float notchHeightPx = dpToPx(metrics, notchHeightDp); in SysUiOverlay()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DOdsignStatsLogger.java65 String[] metrics = line.split(" "); in writeStats() local
67 if (metrics.length != 4 || !metrics[0].equals(COMPOS_METRIC_NAME)) { in writeStats()
72 boolean currentArtifactsOk = metrics[1].equals("1"); in writeStats()
73 boolean compOsPendingArtifactsExists = metrics[2].equals("1"); in writeStats()
74 boolean useCompOsGeneratedArtifacts = metrics[3].equals("1"); in writeStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java1618 VibrationStats.StatsInfo metrics = argumentCaptor.getValue(); in frameworkStats_waveformVibration_reportsAllMetrics() local
1619 assertEquals(UID, metrics.uid); in frameworkStats_waveformVibration_reportsAllMetrics()
1621 metrics.vibrationType); in frameworkStats_waveformVibration_reportsAllMetrics()
1622 assertEquals(VibrationAttributes.USAGE_RINGTONE, metrics.usage); in frameworkStats_waveformVibration_reportsAllMetrics()
1623 assertEquals(Vibration.Status.FINISHED.getProtoEnumValue(), metrics.status); in frameworkStats_waveformVibration_reportsAllMetrics()
1624 assertTrue("Total duration was too low, " + metrics.totalDurationMillis + "ms", in frameworkStats_waveformVibration_reportsAllMetrics()
1625 metrics.totalDurationMillis >= 20); in frameworkStats_waveformVibration_reportsAllMetrics()
1626 assertTrue("Vibrator ON duration was too low, " + metrics.vibratorOnMillis + "ms", in frameworkStats_waveformVibration_reportsAllMetrics()
1627 metrics.vibratorOnMillis >= 20); in frameworkStats_waveformVibration_reportsAllMetrics()
1630 assertEquals(0, metrics.repeatCount); in frameworkStats_waveformVibration_reportsAllMetrics()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/text/
DBoringLayoutCreateDrawPerfTest.java93 final BoringLayout.Metrics metrics = BoringLayout.isBoring(text, mTextPaint); in timeCreate() local
94 if (mCached) createLayout(text, metrics); in timeCreate()
102 createLayout(text, metrics); in timeCreate()
117 final BoringLayout.Metrics metrics = BoringLayout.isBoring(text, mTextPaint); in timeDraw() local
118 final Layout layout = createLayout(text, metrics); in timeDraw()
147 BoringLayout.Metrics metrics) { in createLayout() argument
149 ALIGN_NORMAL, SPACING_MULT, SPACING_ADD, metrics, true /*includePad*/); in createLayout()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java28 import android.net.metrics.ApfProgramEvent;
29 import android.net.metrics.ApfStats;
30 import android.net.metrics.ConnectStats;
31 import android.net.metrics.DefaultNetworkEvent;
32 import android.net.metrics.DhcpClientEvent;
33 import android.net.metrics.DhcpErrorEvent;
34 import android.net.metrics.DnsEvent;
35 import android.net.metrics.IpManagerEvent;
36 import android.net.metrics.IpReachabilityEvent;
37 import android.net.metrics.NetworkEvent;
[all …]
DNetdEventListenerService.java29 import android.net.metrics.ConnectStats;
30 import android.net.metrics.DnsEvent;
31 import android.net.metrics.INetdEventListener;
32 import android.net.metrics.NetworkMetrics;
33 import android.net.metrics.WakeupEvent;
34 import android.net.metrics.WakeupStats;
47 import com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent;
174 NetworkMetrics metrics = mNetworkMetrics.get(netId); in getMetricsForNetwork() local
178 (metrics != null && nc != null && metrics.transports != transports); in getMetricsForNetwork()
180 if (metrics == null || forceCollect) { in getMetricsForNetwork()
[all …]
/frameworks/rs/
DrsScriptC_LibGL.cpp225 static void SetMetrics(Font::Rect *metrics, in SetMetrics() argument
228 *left = metrics->left; in SetMetrics()
231 *right = metrics->right; in SetMetrics()
234 *top = metrics->top; in SetMetrics()
237 *bottom = metrics->bottom; in SetMetrics()
246 Font::Rect metrics; in rsrMeasureTextAlloc() local
247 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
248 SetMetrics(&metrics, left, right, top, bottom); in rsrMeasureTextAlloc()
255 Font::Rect metrics; in rsrMeasureText() local
256 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java133 DisplayMetrics metrics = context.getMetrics(); in getShortestWidth() local
134 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth()
135 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
136 sw /= metrics.density; in getShortestWidth()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRendererObserver.cpp51 bool HardwareRendererObserver::getNextBuffer(JNIEnv* env, jlongArray metrics, int* dropCount) { in getNextBuffer() argument
52 jsize bufferSize = env->GetArrayLength(reinterpret_cast<jarray>(metrics)); in getNextBuffer()
58 env->SetLongArrayRegion(metrics, 0, kBufferSize, elem.buffer); in getNextBuffer()
107 jlongArray metrics) { in android_graphics_HardwareRendererObserver_getNextBuffer() argument
110 if (observer->getNextBuffer(env, metrics, &dropCount)) { in android_graphics_HardwareRendererObserver_getNextBuffer()
DPaint.cpp544 static SkScalar getMetricsInternal(jlong paintHandle, SkFontMetrics *metrics) { in getMetricsInternal() argument
558 SkScalar spacing = font->getMetrics(metrics); in getMetricsInternal()
566 metrics->fTop = -size * kElegantTop / 2048; in getMetricsInternal()
567 metrics->fBottom = -size * kElegantBottom / 2048; in getMetricsInternal()
568 metrics->fAscent = -size * kElegantAscent / 2048; in getMetricsInternal()
569 metrics->fDescent = -size * kElegantDescent / 2048; in getMetricsInternal()
570 metrics->fLeading = size * kElegantLeading / 2048; in getMetricsInternal()
571 spacing = metrics->fDescent - metrics->fAscent + metrics->fLeading; in getMetricsInternal()
584 SkFontMetrics metrics; in doFontExtent() local
585 getMetricsInternal(paintHandle, &metrics); in doFontExtent()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DVersionedPasswordMetrics.java34 private VersionedPasswordMetrics(int version, PasswordMetrics metrics) { in VersionedPasswordMetrics() argument
35 mMetrics = metrics; in VersionedPasswordMetrics()
74 PasswordMetrics metrics = new PasswordMetrics(buffer.getInt(), buffer.getInt(), in deserialize() local
77 return new VersionedPasswordMetrics(version, metrics); in deserialize()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java62 DisplayMetrics metrics = new DisplayMetrics(); in basic() local
64 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in basic()
109 DisplayMetrics metrics = new DisplayMetrics(); in checkNoErrorWhenUsingDefaults() local
111 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in checkNoErrorWhenUsingDefaults()
142 DisplayMetrics metrics = new DisplayMetrics(); in noExceptionForCustomService() local
144 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in noExceptionForCustomService()
/frameworks/native/libs/vr/libdvr/
Ddvr_surface.cpp244 DvrNativeDisplayMetrics* metrics) { in dvrGetNativeDisplayMetrics() argument
255 if (metrics == nullptr) { in dvrGetNativeDisplayMetrics()
267 metrics->display_width = status.get().display_width; in dvrGetNativeDisplayMetrics()
268 metrics->display_height = status.get().display_height; in dvrGetNativeDisplayMetrics()
269 metrics->display_x_dpi = status.get().display_x_dpi; in dvrGetNativeDisplayMetrics()
270 metrics->display_y_dpi = status.get().display_y_dpi; in dvrGetNativeDisplayMetrics()
271 metrics->vsync_period_ns = status.get().vsync_period_ns; in dvrGetNativeDisplayMetrics()

12345678910>>...14