Home
last modified time | relevance | path

Searched refs:trimToSize (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruPool.java199 public final void trimToSize(int trimToSize) { in trimToSize() method in LruPool
201 unsafeTrimToSize(trimToSize); in trimToSize()
226 private void unsafeTrimToSize(int trimToSize) { in unsafeTrimToSize() argument
227 while (mSize > trimToSize && !mLruKeyList.isEmpty()) { in unsafeTrimToSize()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairAccountKeyStorage.java155 trimToSize(); in add()
197 private void trimToSize() { in trimToSize() method in FastPairAccountKeyStorage
240 trimToSize(); in load()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpCoverArtStorage.java99 trimToSize(); in storeImage()
134 private void trimToSize() { in trimToSize() method in AvrcpCoverArtStorage
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java441 assertThat(ArrayUtils.trimToSize((Integer[]) null, 1)).isNull(); in testTrimToSize()
442 assertThat(ArrayUtils.trimToSize(new Integer[]{1}, 1)).isEqualTo(new Integer[]{1}); in testTrimToSize()
443 assertThat(ArrayUtils.trimToSize(new Integer[]{1, 2, 3}, 1)).isEqualTo(new Integer[]{1}); in testTrimToSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java183 mCache.trimToSize(mCache.size() / 2); in onTrimMemory()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DArrayUtils.java668 public static <T> T[] trimToSize(@Nullable T[] array, int size) { in trimToSize() method in ArrayUtils
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1401 returnEntries.trimToSize(); in removeDuplicateIgnoringUser()