/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
FrameworkActionBar.java | 141 DisplayMetrics metrics = mBridgeContext.getMetrics(); local 157 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); 232 static int getPixelValue(@NonNull String value, @NonNull DisplayMetrics metrics) { 234 return (int) typedValue.getDimension(metrics); 240 DisplayMetrics metrics = mBridgeContext.getMetrics(); local 251 // compute the pixel value based on the display metrics 252 return (int) typedValue.getDimension(metrics);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 112 // setup the display Metrics. 113 DisplayMetrics metrics = new DisplayMetrics(); local 114 metrics.densityDpi = metrics.noncompatDensityDpi = 117 metrics.density = metrics.noncompatDensity = 118 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; 120 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density [all...] |
/frameworks/rs/ |
rsScriptC_LibGL.cpp | 225 static void SetMetrics(Font::Rect *metrics, 228 *left = metrics->left; 231 *right = metrics->right; 234 *top = metrics->top; 237 *bottom = metrics->bottom; 246 Font::Rect metrics; local 247 rsc->mStateFont.measureText(text, textLen, &metrics); 248 SetMetrics(&metrics, left, right, top, bottom); 255 Font::Rect metrics; local 256 rsc->mStateFont.measureText(text, textLen, &metrics); [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
ErrorFragment.java | 181 FontMetricsInt metrics = getFontMetricsInt(mTextView); local 184 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); 188 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent);
|
ErrorSupportFragment.java | 176 FontMetricsInt metrics = getFontMetricsInt(mTextView); local 179 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); 183 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent);
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
ContentFrameLayout.java | 99 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); local 100 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; 111 w = (int) tvw.getDimension(metrics); 113 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); 130 h = (int) tvh.getDimension(metrics); 132 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels); 155 min = (int) tv.getDimension(metrics); [all...] |
TooltipPopup.java | 153 final DisplayMetrics metrics = res.getDisplayMetrics(); local 154 mTmpDisplayFrame.set(0, statusBarHeight, metrics.widthPixels, metrics.heightPixels);
|
/packages/apps/Dialer/java/com/android/dialer/metrics/ |
Metrics.java | 17 package com.android.dialer.metrics; 22 /** Logs metrics. */ 23 public interface Metrics { 103 /** Initiazer for metrics. */ 105 /** Initialize metrics for the application . */
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
ColorBrightnessView.java | 65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); local 66 float mDpToPix = metrics.density;
|
ColorCompareView.java | 61 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); local 62 float mDpToPix = metrics.density;
|
ColorPickerDialog.java | 48 DisplayMetrics metrics = new DisplayMetrics(); local 50 wm.getDefaultDisplay().getMetrics(metrics); 51 int height = metrics.heightPixels*8/10; 52 int width = metrics.widthPixels*8/10;
|
ColorSVRectView.java | 65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); local 66 mDpToPix = metrics.density;
|
ColorSaturationView.java | 65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); local 66 float mDpToPix = metrics.density;
|
ColorValueView.java | 59 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); local 60 float mDpToPix = metrics.density;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
Cling.java | 197 DisplayMetrics metrics = new DisplayMetrics(); local 198 mLauncher.getWindowManager().getDefaultDisplay().getMetrics(metrics);
|
/system/bt/osi/test/ |
metrics_test.cc | 29 #include "bluetooth/metrics/bluetooth.pb.h" 30 #include "osi/include/metrics.h" 37 using bluetooth::metrics::BluetoothMetricsProto::A2DPSession; 38 using bluetooth::metrics::BluetoothMetricsProto::BluetoothLog; 39 using bluetooth::metrics::BluetoothMetricsProto::BluetoothSession; 40 using bluetooth::metrics::BluetoothMetricsProto:: 42 using bluetooth::metrics::BluetoothMetricsProto:: 44 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo; 45 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo_DeviceType; 46 using bluetooth::metrics::BluetoothMetricsProto::PairEvent 816 BluetoothLog* metrics = BluetoothLog::default_instance().New(); local 859 BluetoothLog* metrics = BluetoothLog::default_instance().New(); local [all...] |
/system/update_engine/ |
metrics_constants.h | 22 namespace metrics { namespace in namespace:chromeos_update_engine 133 } // namespace metrics
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
JarHostTestTest.java | 27 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 127 @Rule public TestMetrics metrics = new TestMetrics(); field in class:JarHostTestTest.Junit4TestClass2 131 metrics.addTestMetric("key", "value"); 286 * Test that metrics from tests in JarHost are reported and accounted for. 297 Map<String, String> metrics = new HashMap<>(); local 298 metrics.put("key", "value"); 300 EasyMock.eq(TfMetricProtoUtil.upgradeConvert(metrics)));
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
AudioJitterTest.java | 99 Map<String, String> metrics = new HashMap<String, String>(); local 115 metrics = jitterResult; 124 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 128 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 129 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics)); 137 * @return a {@link HashMap} that contains metrics keys and results
|
/tools/tradefederation/core/prod-tests/src/com/android/ota/tests/ |
OtaStabilityTest.java | 29 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 74 "The name of the ota stability test run. Used to report metrics.") 237 HashMap<String, Metric> metrics = new HashMap<>(); local 238 metrics.put( 242 listener.testRunEnded(endTime, metrics);
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
GeekbenchTest.java | 113 Map<String, String> metrics = new HashMap<String, String>(); local 132 metrics = benchmarkResult; 145 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 149 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); 150 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics));
|
/tools/tradefederation/core/prod-tests/src/com/android/stability/tests/ |
RebootStressTest.java | 63 "The test run name used to report metrics.") 211 Map<String, String> metrics = new HashMap<String, String>(1); local 213 metrics.put("iterations", Integer.toString(actualIterations)); 214 metrics.put("shards", "1"); 215 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics));
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
ScheduleMultipleDeviceMetricCollectorTest.java | 26 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements; 27 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 160 HashMap<String, Metric> metrics = new HashMap<>(); local 166 mMultipleMetricCollector.onTestRunEnd(runData, metrics); 170 // metrics once. 171 // assert that the metrics contains filenames of all the collected metrics. 182 HashMap<String, Metric> metrics = new HashMap<>(); local 191 mMultipleMetricCollector.onTestRunEnd(runData, metrics); 194 // No metrics should have been collected 226 HashMap<String, Metric> metrics = new HashMap<>(); local [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
DeviceSuiteTest.java | 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 76 @Rule public TestMetrics metrics = new TestMetrics(); field in class:DeviceSuiteTest.Junit4DeviceTestclass 91 metrics.addTestMetric("option", mOption);
|
DeviceTestCaseTest.java | 22 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 111 Map<String, String> metrics = new HashMap<>(); local 112 metrics.put("test", "value"); 113 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); 135 Map<String, String> metrics = new HashMap<>(); local 136 metrics.put("test", "value"); 137 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); 246 Map<String, String> metrics = new HashMap<>(); local 247 metrics.put("test", "value"); 248 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); [all...] |