Home
last modified time | relevance | path

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

/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java39 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/
DADPFHintSessionDeviceActivity.java50 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/
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.java104 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/
DSampleHostJUnit4Test.java77 @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/
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.java113 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/
DADPFHintSessionHostJUnit4Test.java63 public TestMetrics mMetrics = new TestMetrics(); field in ADPFHintSessionHostJUnit4Test