Searched refs:getOrCompute (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | RotationCacheTest.java | 57 assertThat(mCache.getOrCompute("hello", 0), equalTo(create("hello", 0))); in getOrCompute_computes() 58 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1))); in getOrCompute_computes() 59 assertThat(mCache.getOrCompute("hello", 2), equalTo(create("hello", 2))); in getOrCompute_computes() 60 assertThat(mCache.getOrCompute("hello", 3), equalTo(create("hello", 3))); in getOrCompute_computes() 65 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_sameRot_hitsCache() 68 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1))); in getOrCompute_sameParam_sameRot_hitsCache() 74 assertNotNull(mCache.getOrCompute("hello", 3)); in getOrCompute_sameParam_hitsCache_forAllRots() 75 assertNotNull(mCache.getOrCompute("hello", 2)); in getOrCompute_sameParam_hitsCache_forAllRots() 76 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_hitsCache_forAllRots() 77 assertNotNull(mCache.getOrCompute("hello", 0)); in getOrCompute_sameParam_hitsCache_forAllRots() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RotationCache.java | 48 public R getOrCompute(T t, int rotation) { in getOrCompute() method in RotationCache
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 1652 return mDisplayCutoutCache.getOrCompute(mInitialDisplayCutout, rotation); in calculateDisplayCutoutForRotation()
|
/frameworks/base/services/ |
D | art-profile | 17992 HSPLcom/android/server/wm/utils/RotationCache;->getOrCompute(Ljava/lang/Object;I)Ljava/lang/Object;
|