Home
last modified time | relevance | path

Searched refs:MAX_TOTAL_SIZE (Results 1 – 3 of 3) sorted by relevance

/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache_test.cpp45 MAX_TOTAL_SIZE = 13, enumerator
49 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam())); in SetUp()
223 ASSERT_TRUE(MAX_TOTAL_SIZE < MAX_KEY_SIZE + MAX_VALUE_SIZE); in TEST_P()
224 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_P()
226 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_P()
274 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_P()
276 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_P()
310 ASSERT_GE(MAX_TOTAL_SIZE / 2, numCached); in TEST_P()
318 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P()
349 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P()
[all …]
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp41 MAX_TOTAL_SIZE = 13, enumerator
45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); in SetUp()
157 ASSERT_TRUE(MAX_TOTAL_SIZE < MAX_KEY_SIZE + MAX_VALUE_SIZE); in TEST_F()
158 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_F()
160 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_F()
208 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_F()
210 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_F()
244 ASSERT_GE(MAX_TOTAL_SIZE / 2, numCached); in TEST_F()
249 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_F()
274 mBC2.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); in SetUp()
[all …]
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache_test.cpp114 MAX_TOTAL_SIZE = 13, in TEST_P() enumerator
117 mCache->initialize(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam()); in TEST_P()
120 const int maxEntries = MAX_TOTAL_SIZE / 2; in TEST_P()
126 const int bigValueSize = std::min((MAX_TOTAL_SIZE * 3) / 4 - 1, int(MAX_VALUE_SIZE)); in TEST_P()
127 ASSERT_GT(bigValueSize+1, MAX_TOTAL_SIZE / 2); // Check testing assumption in TEST_P()
159 const int initialFreeSpace = MAX_TOTAL_SIZE - initialSizeCached; in TEST_P()