Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java20 import static android.view.DisplayCutout.fromSpec;
194 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f); in fromSpec_caches()
195 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), sameInstance(cached)); in fromSpec_caches()
200 DisplayCutout cached = fromSpec("L1,0 L1000,1000 L0,1 z", 200, 400, 1f); in fromSpec_wontCacheIfSpecChanges()
201 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfSpecChanges()
206 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 2000, 400, 1f); in fromSpec_wontCacheIfScreenWidthChanges()
207 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfScreenWidthChanges()
212 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 4000, 1f); in fromSpec_wontCacheIfScreenHeightChanges()
213 assertThat(fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 1f), not(sameInstance(cached))); in fromSpec_wontCacheIfScreenHeightChanges()
218 DisplayCutout cached = fromSpec("L1,0 L1,1 L0,1 z", 200, 400, 2f); in fromSpec_wontCacheIfDensityChanges()
[all …]
/frameworks/base/core/java/android/view/
DDisplayCutout.java362 return fromSpec(res.getString(R.string.config_mainBuiltInDisplayCutout), in fromResources()
382 public static DisplayCutout fromSpec(String spec, int displayWidth, int displayHeight, in fromSpec() method in DisplayCutout