Home
last modified time | relevance | path

Searched refs:mMetrics (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java38 private DisplayMetrics mMetrics; field in ConfigurationTest
46 mMetrics = new DisplayMetrics(); in setUp()
47 display.getRealMetrics(mMetrics); in setUp()
52 double xInches = (double) mMetrics.widthPixels / mMetrics.xdpi; in testScreenConfiguration()
53 double yInches = (double) mMetrics.heightPixels / mMetrics.ydpi; in testScreenConfiguration()
66 double density = 160.0d * mMetrics.density; in testScreenConfiguration()
95 assertEquals(mMetrics.density, in testScreenConfiguration()
96 (float) mMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT, in testScreenConfiguration()
105 float dpHeight = mMetrics.heightPixels / mMetrics.density; in testAutomotiveMinimumScreenSize()
106 float dpWidth = mMetrics.widthPixels / mMetrics.density; in testAutomotiveMinimumScreenSize()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DReportProcessor.java44 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/
DUtils.java106 return listener.mMetrics; in runDeviceTests()
111 private final Map<String, String> mMetrics = new HashMap<>(); field in Utils.TestResultListener
116 mMetrics.putAll(metrics); in testEnded()
122 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java92 private DisplayMetrics mMetrics;
137 mMetrics = new DisplayMetrics();
138 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics);
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java110 final DisplayMetrics mMetrics; field in ConfigTest.TotalConfig
114 mMetrics = new DisplayMetrics(); in TotalConfig()
145 mMetrics.widthPixels = value; in setProperty()
146 mMetrics.noncompatWidthPixels = value; in setProperty()
149 mMetrics.heightPixels = value; in setProperty()
150 mMetrics.noncompatHeightPixels = value; in setProperty()
154 mMetrics.density = (((float)value)/((float)DisplayMetrics.DENSITY_DEFAULT)); in setProperty()
155 mMetrics.noncompatDensity = mMetrics.density; in setProperty()
211 return new Resources(assmgr, mMetrics, mConfig); in getResources()