Home
last modified time | relevance | path

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

12345678910>>...12

/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.cpp59 PersistableBundle *metrics) { in ExportCounterMetric() argument
60 if (!metrics) { in ExportCounterMetric()
70 metrics->putLong(android::String16(success_count_name.c_str()), in ExportCounterMetric()
74 metrics->getLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
76 metrics->putLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
83 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportCounterMetric()
90 const android::CounterMetric<T> &counter, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument
91 if (!metrics) { in ExportCounterMetricWithAttributeNames()
98 metrics->putLong(android::String16(name.c_str()), value); in ExportCounterMetricWithAttributeNames()
104 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()
137 metrics.add_event_callback_counter(); in GetSerializedMetrics()
145 metrics.add_get_device_unique_id_counter(); in GetSerializedMetrics()
153 metrics.add_get_key_request_time_us(); in GetSerializedMetrics()
165 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/base/core/java/android/text/
DBoringLayout.java55 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in make() argument
57 return new BoringLayout(source, paint, outerWidth, align, spacingMult, spacingAdd, metrics, in make()
81 Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, in make() argument
83 return new BoringLayout(source, paint, outerWidth, align, spacingmult, spacingadd, metrics, in make()
104 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake() argument
112 init(source, paint, align, metrics, includePad, true); in replaceOrMake()
138 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake() argument
157 init(getText(), paint, align, metrics, includePad, trust); in replaceOrMake() local
174 float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, boolean includePad) { in BoringLayout() argument
181 init(source, paint, align, metrics, includePad, true); in BoringLayout()
[all …]
/frameworks/base/cmds/statsd/tests/e2e/
DPartialBucket_e2e_test.cpp131 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST()
151 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST()
173 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST()
174 ASSERT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info_size()); in TEST()
175 EXPECT_TRUE(report.metrics(0) in TEST()
180 EXPECT_TRUE(report.metrics(0) in TEST()
185 EXPECT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info(0).count()); in TEST()
206 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST()
207 ASSERT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info_size()); in TEST()
208 EXPECT_TRUE(report.metrics(0) in TEST()
[all …]
DWakelockDuration_e2e_test.cpp140 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
142 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
147 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 1); in TEST()
148 data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
175 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
177 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 2); in TEST()
178 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
227 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
228 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 6); in TEST()
229 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
[all …]
/frameworks/base/core/java/android/util/
DTypedValue.java283 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument
288 metrics); in complexToDimension()
308 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument
313 metrics); in complexToDimensionPixelOffset()
335 DisplayMetrics metrics) in complexToDimensionPixelSize() argument
341 metrics); in complexToDimensionPixelSize()
354 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument
356 return complexToDimension(data, metrics); in complexToDimensionNoisy()
385 DisplayMetrics metrics) in applyDimension() argument
391 return value * metrics.density; in applyDimension()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java72 PasswordMetrics metrics = new PasswordMetrics(credType, length, letters, upperCase, in testParceling() local
75 metrics.writeToParcel(parcel, 0); in testParceling()
77 metrics = PasswordMetrics.CREATOR.createFromParcel(parcel); in testParceling()
82 assertEquals(credType, metrics.credType); in testParceling()
83 assertEquals(length, metrics.length); in testParceling()
84 assertEquals(letters, metrics.letters); in testParceling()
85 assertEquals(upperCase, metrics.upperCase); in testParceling()
86 assertEquals(lowerCase, metrics.lowerCase); in testParceling()
87 assertEquals(numeric, metrics.numeric); in testParceling()
88 assertEquals(symbols, metrics.symbols); in testParceling()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java91 final DisplayMetrics metrics = new DisplayMetrics(); in testFixedRotationAdjustments() local
92 metrics.xdpi = metrics.noncompatXdpi = w; in testFixedRotationAdjustments()
93 metrics.widthPixels = metrics.noncompatWidthPixels = w; in testFixedRotationAdjustments()
94 metrics.ydpi = metrics.noncompatYdpi = h; in testFixedRotationAdjustments()
95 metrics.heightPixels = metrics.noncompatHeightPixels = h; in testFixedRotationAdjustments()
103 mDisplayAdjustments.adjustMetrics(metrics, realRotation); in testFixedRotationAdjustments()
105 assertEquals(flippedMetrics, metrics); in testFixedRotationAdjustments()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java122 public void adjustMetrics(@NonNull DisplayMetrics metrics, @Surface.Rotation int realRotation) { in adjustMetrics() argument
126 int w = metrics.widthPixels; in adjustMetrics()
127 metrics.widthPixels = metrics.heightPixels; in adjustMetrics()
128 metrics.heightPixels = w; in adjustMetrics()
130 w = metrics.noncompatWidthPixels; in adjustMetrics()
131 metrics.noncompatWidthPixels = metrics.noncompatHeightPixels; in adjustMetrics()
132 metrics.noncompatHeightPixels = w; in adjustMetrics()
134 float x = metrics.xdpi; in adjustMetrics()
135 metrics.xdpi = metrics.ydpi; in adjustMetrics()
136 metrics.ydpi = x; in adjustMetrics()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java113 DisplayMetrics metrics = new DisplayMetrics(); in init() local
114 metrics.densityDpi = metrics.noncompatDensityDpi = in init()
117 metrics.density = metrics.noncompatDensity = in init()
118 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
120 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init()
122 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
123 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init()
124 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init()
125 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init()
130 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/tests/net/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java24 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.BLUETOOTH;
25 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.CELLULAR;
26 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog;
27 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.MULTIPLE;
28 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.WIFI;
34 import android.net.metrics.ApfProgramEvent;
35 import android.net.metrics.ApfStats;
36 import android.net.metrics.DefaultNetworkEvent;
37 import android.net.metrics.DhcpClientEvent;
38 import android.net.metrics.DhcpErrorEvent;
[all …]
DIpConnectivityMetricsTest.java19 import static android.net.metrics.INetdEventListener.EVENT_GETADDRINFO;
20 import static android.net.metrics.INetdEventListener.EVENT_GETHOSTBYNAME;
38 import android.net.metrics.ApfProgramEvent;
39 import android.net.metrics.ApfStats;
40 import android.net.metrics.DhcpClientEvent;
41 import android.net.metrics.IpConnectivityLog;
42 import android.net.metrics.IpManagerEvent;
43 import android.net.metrics.IpReachabilityEvent;
44 import android.net.metrics.RaEvent;
45 import android.net.metrics.ValidationProbeEvent;
[all …]
/frameworks/base/startop/scripts/app_startup/
Dparse_metrics21 Reads from stdin the result of 'am start' metrics. May also parse logcat
22 for additional metrics.
29 This may block until all desired metrics are parsed from logcat.
30 To get a list of metrics without doing real parsing, use --simulate.
32 To add package-specific metrics, add a script called 'metrics/\$full_package_name'
33 that exposes additional metrics in same way as above.
40 -s, --simulate prints dummy values instead of real metrics
214 verbose_print parse_metrics: no per-package metrics script found at "$DIR/metrics/$package"
/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.java30 import android.net.metrics.ApfProgramEvent;
31 import android.net.metrics.ApfStats;
32 import android.net.metrics.DefaultNetworkEvent;
33 import android.net.metrics.DhcpClientEvent;
34 import android.net.metrics.DhcpErrorEvent;
35 import android.net.metrics.DnsEvent;
36 import android.net.metrics.ConnectStats;
37 import android.net.metrics.IpManagerEvent;
38 import android.net.metrics.IpReachabilityEvent;
39 import android.net.metrics.NetworkEvent;
[all …]
DNetdEventListenerService.java27 import android.net.metrics.ConnectStats;
28 import android.net.metrics.DnsEvent;
29 import android.net.metrics.INetdEventListener;
30 import android.net.metrics.NetworkMetrics;
31 import android.net.metrics.WakeupEvent;
32 import android.net.metrics.WakeupStats;
45 import com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent;
169 NetworkMetrics metrics = mNetworkMetrics.get(netId); in getMetricsForNetwork() local
170 if (metrics == null) { in getMetricsForNetwork()
172 metrics = new NetworkMetrics(netId, getTransports(netId), mConnectTb); 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/cmds/statsd/
DAndroid.bp81 "src/metrics/CountMetricProducer.cpp",
82 "src/metrics/duration_helper/MaxDurationTracker.cpp",
83 "src/metrics/duration_helper/OringDurationTracker.cpp",
84 "src/metrics/DurationMetricProducer.cpp",
85 "src/metrics/EventMetricProducer.cpp",
86 "src/metrics/GaugeMetricProducer.cpp",
87 "src/metrics/MetricProducer.cpp",
88 "src/metrics/metrics_manager_util.cpp",
89 "src/metrics/MetricsManager.cpp",
90 "src/metrics/ValueMetricProducer.cpp",
[all …]
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRendererObserver.cpp49 bool HardwareRendererObserver::getNextBuffer(JNIEnv* env, jlongArray metrics, int* dropCount) { in getNextBuffer() argument
50 jsize bufferSize = env->GetArrayLength(reinterpret_cast<jarray>(metrics)); in getNextBuffer()
56 env->SetLongArrayRegion(metrics, 0, kBufferSize, elem.buffer); in getNextBuffer()
102 jlongArray metrics) { in android_graphics_HardwareRendererObserver_getNextBuffer() argument
105 if (observer->getNextBuffer(env, metrics, &dropCount)) { in android_graphics_HardwareRendererObserver_getNextBuffer()
/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/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>>...12