Home
last modified time | relevance | path

Searched refs:getAspectRatio (Results 1 – 3 of 3) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTestsBase.java76 return getAspectRatio(getInstrumentation().getContext().getSystemService( in getDefaultDisplayAspectRatio()
81 return getAspectRatio(getDisplay(activity)); in getActivityAspectRatio()
94 private static float getAspectRatio(Display display) { in getAspectRatio() method in AspectRatioTestsBase
/cts/tests/tests/app/src/android/app/cts/
DPictureInPictureParamsBuilderTest.java51 assertTrue(Float.compare(0.5f, params.getAspectRatio()) == 0); in testBuildParams()
61 assertTrue(Float.compare(0f, params.getAspectRatio()) == 0); in testBuildParams()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DPipActivity.java110 builder.setAspectRatio(getAspectRatio(intent,
160 builder.setAspectRatio(getAspectRatio(getIntent(), in onCreate()
179 builder.setAspectRatio(getAspectRatio(getIntent(), in onCreate()
362 private Rational getAspectRatio(Intent intent, String extraNum, String extraDenom) { in getAspectRatio() method in PipActivity