Searched refs:getOrCompute (Results 1 – 4 of 4) sorted by relevance
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A 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() 65 assertNotNull(mCache.getOrCompute("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() 89 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_recomputes() 96 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_clearsCacheForDifferentRots() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | RotationCache.java | 48 public R getOrCompute(T t, int rotation) { in getOrCompute() method in RotationCache
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayContent.java | 2287 return mDisplayCutoutCache.getOrCompute( in calculateDisplayCutoutForRotation() 2323 return mRoundedCornerCache.getOrCompute( in calculateRoundedCornersForRotation() 2344 return mPrivacyIndicatorBoundsCache.getOrCompute(mCurrentPrivacyIndicatorBounds, rotation); in calculatePrivacyIndicatorBoundsForRotation() 2357 return mDisplayShapeCache.getOrCompute(mInitialDisplayShape, rotation); in calculateDisplayShapeForRotation()
|
/aosp14/frameworks/base/services/ |
H A D | art-profile | 12216 HSPLcom/android/server/wm/utils/RotationCache;->getOrCompute(Ljava/lang/Object;I)Ljava/lang/Object;
|