/frameworks/av/drm/libmediadrm/tests/ |
D | DrmMetrics_test.cpp | 59 MediaDrmMetrics metrics; in TEST_F() local 62 metrics.Export(&bundle); in TEST_F() 67 MediaDrmMetrics metrics; in TEST_F() local 69 metrics.mOpenSessionCounter.Increment(OK); in TEST_F() 70 metrics.mCloseSessionCounter.Increment(OK); in TEST_F() 73 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F() 75 &metrics.mProvideKeyResponseTimeUs); in TEST_F() 80 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F() 81 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F() 82 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 55 final PasswordMetrics metrics = new PasswordMetrics(); in testIsDefault() local 56 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, metrics.quality); in testIsDefault() 57 assertEquals(0, metrics.length); in testIsDefault() 58 assertEquals(0, metrics.letters); in testIsDefault() 59 assertEquals(0, metrics.upperCase); in testIsDefault() 60 assertEquals(0, metrics.lowerCase); in testIsDefault() 61 assertEquals(0, metrics.numeric); in testIsDefault() 62 assertEquals(0, metrics.symbols); in testIsDefault() 63 assertEquals(0, metrics.nonLetter); in testIsDefault() 78 final PasswordMetrics metrics; in testParceling() local [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmMetrics.cpp | 65 PersistableBundle *metrics) { in ExportCounterMetric() argument 66 if (!metrics) { in ExportCounterMetric() 76 metrics->putLong(android::String16(success_count_name.c_str()), in ExportCounterMetric() 80 metrics->getLong(android::String16(error_count_name.c_str()), in ExportCounterMetric() 82 metrics->putLong(android::String16(error_count_name.c_str()), in ExportCounterMetric() 89 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportCounterMetric() 96 const android::CounterMetric<T> &counter, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument 97 if (!metrics) { in ExportCounterMetricWithAttributeNames() 104 metrics->putLong(android::String16(name.c_str()), value); in ExportCounterMetricWithAttributeNames() 110 PersistableBundle *metrics) { in ExportEventMetric() argument [all …]
|
D | PluginMetricsReporting.cpp | 34 status_t reportVendorMetrics(const std::string& metrics, in reportVendorMetrics() argument 42 if (metrics.size() > 0) { in reportVendorMetrics() 43 analyticsItem->setCString(kSerializedMetricsField, metrics.c_str()); in reportVendorMetrics()
|
D | Android.bp | 46 // This is the version of the drm metrics configured for protobuf lite. 52 "protos/metrics.proto", 77 // This is the version of the drm metrics library configured for full protobuf. 83 "protos/metrics.proto",
|
/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 55 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/core/java/android/util/ |
D | TypedValue.java | 283 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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 111 DisplayMetrics metrics = new DisplayMetrics(); in init() local 112 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 115 metrics.density = metrics.noncompatDensity = in init() 116 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 118 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init() 120 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init() 121 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init() 122 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init() 123 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init() 128 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
|
D | SysUiOverlay.java | 59 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/ |
D | IpConnectivityEventBuilderTest.java | 24 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 …]
|
D | IpConnectivityMetricsTest.java | 19 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/cmds/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 125 EXPECT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST() 145 EXPECT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST() 166 EXPECT_TRUE(report.metrics(0).count_metrics().data(0).bucket_info(0). in TEST() 168 EXPECT_TRUE(report.metrics(0).count_metrics().data(0).bucket_info(0). in TEST() 170 EXPECT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info(0).count()); in TEST() 190 EXPECT_TRUE(report.metrics(0).count_metrics().data(0).bucket_info(0). in TEST() 192 EXPECT_TRUE(report.metrics(0).count_metrics().data(0).bucket_info(0). in TEST() 194 EXPECT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info(0).count()); in TEST() 212 EXPECT_EQ(0, report.metrics(0).value_metrics().skipped_size()); in TEST() 232 EXPECT_EQ(1, report.metrics(0).value_metrics().skipped_size()); in TEST() [all …]
|
D | DimensionInCondition_e2e_simple_cond_test.cpp | 155 StatsLogReport::DurationMetricDataWrapper metrics; in TEST() local 157 reports.reports(0).metrics(0).duration_metrics(), &metrics); in TEST() 159 EXPECT_EQ(metrics.data_size(), 4); in TEST() 160 auto data = metrics.data(0); in TEST() 176 data = metrics.data(1); in TEST() 192 data = metrics.data(2); in TEST() 212 data = metrics.data(3); in TEST() 232 EXPECT_EQ(metrics.data_size(), 4); in TEST() 233 auto data = metrics.data(0); in TEST() 249 data = metrics.data(1); in TEST() [all …]
|
D | WakelockDuration_e2e_test.cpp | 141 EXPECT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST() 143 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST() 148 EXPECT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 1); in TEST() 149 data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST() 176 EXPECT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST() 178 EXPECT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 2); in TEST() 179 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST() 227 EXPECT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST() 228 EXPECT_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 …]
|
D | DimensionInCondition_e2e_combination_AND_cond_test.cpp | 224 StatsLogReport::DurationMetricDataWrapper metrics; in TEST() local 226 reports.reports(0).metrics(0).duration_metrics(), &metrics); in TEST() 228 EXPECT_EQ(metrics.data_size(), 4); in TEST() 229 auto data = metrics.data(0); in TEST() 248 data = metrics.data(1); in TEST() 266 data = metrics.data(2); in TEST() 288 data = metrics.data(3); in TEST() 310 EXPECT_EQ(metrics.data_size(), 4); in TEST() 311 auto data = metrics.data(0); in TEST() 329 data = metrics.data(1); in TEST() [all …]
|
/frameworks/base/cmds/statsd/ |
D | Android.bp | 90 "src/metrics/MetricProducer.cpp", 91 "src/metrics/EventMetricProducer.cpp", 92 "src/metrics/CountMetricProducer.cpp", 93 "src/metrics/DurationMetricProducer.cpp", 94 "src/metrics/duration_helper/OringDurationTracker.cpp", 95 "src/metrics/duration_helper/MaxDurationTracker.cpp", 96 "src/metrics/ValueMetricProducer.cpp", 97 "src/metrics/GaugeMetricProducer.cpp", 98 "src/metrics/MetricsManager.cpp", 99 "src/metrics/metrics_manager_util.cpp", [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | BoringLayoutCreateDrawPerfTest.java | 93 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 133 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/rs/ |
D | rsScriptC_LibGL.cpp | 225 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/base/services/core/java/com/android/server/connectivity/ |
D | IpConnectivityEventBuilder.java | 30 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 …]
|
D | NetdEventListenerService.java | 27 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/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 218 T* metrics) { in backfillStringInDimension() argument 219 for (int i = 0; i < metrics->data_size(); ++i) { in backfillStringInDimension() 220 auto data = metrics->mutable_data(i); in backfillStringInDimension() 300 T* metrics) { in backfillStartEndTimestampForMetrics() argument 301 for (int i = 0; i < metrics->data_size(); ++i) { in backfillStartEndTimestampForMetrics() 302 auto data = metrics->mutable_data(i); in backfillStartEndTimestampForMetrics() 315 void backfillStartEndTimestampForSkippedBuckets(const int64_t timeBaseNs, T* metrics) { in backfillStartEndTimestampForSkippedBuckets() argument 316 for (int i = 0; i < metrics->skipped_size(); ++i) { in backfillStartEndTimestampForSkippedBuckets() 317 backfillStartEndTimestampForPartialBucket(timeBaseNs, metrics->mutable_skipped(i)); in backfillStartEndTimestampForSkippedBuckets()
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_surface.cpp | 244 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()
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 144 for (PasswordMetrics metrics : targetBucket.mMetrics) { in getTargetQualityMetrics() 145 if (targetQuality == metrics.quality) { in getTargetQualityMetrics() 146 return metrics; in getTargetQualityMetrics() 317 for (PasswordMetrics metrics : bucket) { in satisfiesBucket() 318 if (this.quality == metrics.quality) { in satisfiesBucket() 319 return this.length >= metrics.length; in satisfiesBucket() 487 for (PasswordMetrics metrics : metricsArray) { in PasswordComplexityBucket() 488 if (metrics.quality < previousQuality) { in PasswordComplexityBucket() 492 previousQuality = metrics.quality; in PasswordComplexityBucket()
|
/frameworks/native/libs/vr/libvrflinger/tests/ |
D | vrflinger_test.cpp | 177 auto metrics = display_client->GetDisplayMetrics(); in TEST() local 178 ASSERT_TRUE(metrics.ok()); in TEST() 188 metrics.get().display_width, metrics.get().display_height, in TEST() 204 ASSERT_EQ(buffer.get()->width(), metrics.get().display_width); in TEST() 205 ASSERT_EQ(buffer.get()->height(), metrics.get().display_height); in TEST()
|