/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | ConfigurationTest.java | 39 private DisplayMetrics mMetrics; field in ConfigurationTest 47 mMetrics = new DisplayMetrics(); in setUp() 48 display.getRealMetrics(mMetrics); in setUp() 54 double xInches = (double) mMetrics.widthPixels / mMetrics.xdpi; in testScreenConfiguration() 55 double yInches = (double) mMetrics.heightPixels / mMetrics.ydpi; in testScreenConfiguration() 89 double density = 160.0d * mMetrics.density; in testScreenConfiguration() 124 assertEquals(mMetrics.density, in testScreenConfiguration() 125 (float) mMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT, in testScreenConfiguration() 134 float dpHeight = mMetrics.heightPixels / mMetrics.density; in testAutomotiveMinimumScreenSize() 135 float dpWidth = mMetrics.widthPixels / mMetrics.density; in testAutomotiveMinimumScreenSize()
|
/cts/hostsidetests/adpf/app/hintsession/src/android/adpf/hintsession/app/ |
D | ADPFHintSessionDeviceActivity.java | 50 synchronized (mMetrics) { in setFailure() 51 mMetrics.put("failure", message); in setFailure() 58 private final Map<String, String> mMetrics = new HashMap<>(); field in ADPFHintSessionDeviceActivity 115 synchronized (mMetrics) { in sendResultsToJava() 117 mMetrics.put(names[i], values[i]); in sendResultsToJava() 119 String key = mMetrics.get(IS_HINT_SESSION_SUPPORTED_KEY); in sendResultsToJava() 162 synchronized (mMetrics) { in getMetrics() 163 return new HashMap<>(mMetrics); in getMetrics()
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | ReportProcessor.java | 44 private final Map<String, String> mMetrics = new HashMap<>(); field in ReportProcessor 125 mMetrics.putAll(metrics); in testEnded() 131 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded() 176 } else if (!mMetrics.containsKey(reportKey)) { in checkFile() 189 if (!recover(device, mMetrics.get(reportKey))) { in processDeviceReport() 193 process(device, mMetrics.get(reportKey)); in processDeviceReport() 195 cleanup(device, mMetrics.get(reportKey)); in processDeviceReport()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | Utils.java | 104 return listener.mMetrics; in runDeviceTests() 109 private final Map<String, String> mMetrics = new HashMap<>(); field in Utils.TestResultListener 114 mMetrics.putAll(metrics); in testEnded() 120 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded()
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostJUnit4Test.java | 77 @Rule public TestMetrics mMetrics = new TestMetrics(); field in SampleHostJUnit4Test 124 mMetrics.addTestMetric("somekey", "some_values"); in testMetrics()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
D | MainFragment.java | 92 private DisplayMetrics mMetrics; 137 mMetrics = new DisplayMetrics(); 138 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 113 final DisplayMetrics mMetrics; field in ConfigTest.TotalConfig 117 mMetrics = new DisplayMetrics(); in TotalConfig() 151 mMetrics.widthPixels = value; in setProperty() 152 mMetrics.noncompatWidthPixels = value; in setProperty() 155 mMetrics.heightPixels = value; in setProperty() 156 mMetrics.noncompatHeightPixels = value; in setProperty() 160 mMetrics.density = (((float)value)/((float)DisplayMetrics.DENSITY_DEFAULT)); in setProperty() 161 mMetrics.noncompatDensity = mMetrics.density; in setProperty() 217 return new Resources(assmgr, mMetrics, mConfig); in getResources()
|
/cts/hostsidetests/adpf/src/android/adpf/cts/ |
D | ADPFHintSessionHostJUnit4Test.java | 63 public TestMetrics mMetrics = new TestMetrics(); field in ADPFHintSessionHostJUnit4Test
|