Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java21 import static android.view.DisplayCutout.fromSpec;
267 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f); in fromSpec_caches()
268 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), sameInstance(cached)); in fromSpec_caches()
273 DisplayCutout cached = fromSpec("L1,0 L1000,1000 L0,1 z", 200, 400, 1f); in fromSpec_wontCacheIfSpecChanges()
274 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfSpecChanges()
279 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 2000, 400, 1f); in fromSpec_wontCacheIfScreenWidthChanges()
280 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfScreenWidthChanges()
285 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 4000, 1f); in fromSpec_wontCacheIfScreenHeightChanges()
286 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfScreenHeightChanges()
291 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 2f); in fromSpec_wontCacheIfDensityChanges()
[all …]
/frameworks/base/core/java/android/view/
DDisplayCutout.java602 return fromSpec(res.getString(R.string.config_mainBuiltInDisplayCutoutRectApproximation), in fromResourcesRectApproximation()
623 public static DisplayCutout fromSpec(String spec, int displayWidth, int displayHeight, in fromSpec() method in DisplayCutout
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt79487 Landroid/view/DisplayCutout;->fromSpec(Ljava/lang/String;IIF)Landroid/view/DisplayCutout;