Searched refs:maxEntries (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 313 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P() local 314 for (int i = 0; i < maxEntries; i++) { in TEST_P() 320 uint8_t k = maxEntries; in TEST_P() 326 for (int i = 0; i < maxEntries + 1; i++) { in TEST_P() 332 ASSERT_EQ(found, i >= maxEntries / 2); in TEST_P() 335 ASSERT_EQ(maxEntries / 2 + 1, numCached); in TEST_P() 343 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P() local 344 for (int i = 0; i < maxEntries; i++) { in TEST_P() 350 uint8_t k = maxEntries; in TEST_P() 355 for (int i = 0; i < maxEntries + 1; i++) { in TEST_P() [all …]
|
/packages/modules/NeuralNetworks/driver/cache/nnCache/ |
D | nnCache_test.cpp | 117 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P() local 118 for (int i = 0; i < maxEntries; i++) { in TEST_P() 128 uint8_t k = maxEntries; in TEST_P() 134 for (int i = 0; i < maxEntries + 1; i++) { in TEST_P() 146 ASSERT_EQ(maxEntries / 2, numCached); in TEST_P() 147 ASSERT_EQ(size_t((maxEntries / 2) * 2), sizeCached); in TEST_P() 153 const int initialNumEntries = maxEntries; in TEST_P()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 133 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) in BlobCache() argument 135 this(path, maxEntries, maxBytes, reset, 0); in BlobCache() 138 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, in BlobCache() argument 149 resetCache(maxEntries, maxBytes); in BlobCache() 300 private void resetCache(int maxEntries, int maxBytes) throws IOException { in resetCache() argument 302 mIndexFile.setLength(INDEX_HEADER_SIZE + maxEntries * 12 * 2); in resetCache() 306 writeInt(buf, IH_MAX_ENTRIES, maxEntries); in resetCache()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | CacheManager.java | 40 int maxEntries, int maxBytes, int version) { in getCache() argument 51 cache = new BlobCache(path, maxEntries, maxBytes, false, in getCache()
|