Searched refs:MAX_KEY_SIZE (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/opengl/libs/EGL/ |
D | BlobCache_test.cpp | 39 MAX_KEY_SIZE = 6, enumerator 45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE)); in SetUp() 126 char key[MAX_KEY_SIZE+1]; in TEST_F() 128 for (int i = 0; i < MAX_KEY_SIZE+1; i++) { in TEST_F() 131 mBC->set(key, MAX_KEY_SIZE+1, "bbbb", 4); in TEST_F() 132 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE+1, buf, 4)); in TEST_F() 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() 162 char key[MAX_KEY_SIZE]; in TEST_F() [all …]
|
/frameworks/ml/nn/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 40 MAX_KEY_SIZE = 6, enumerator 46 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam())); in SetUp() 172 char key[MAX_KEY_SIZE + 1]; in TEST_P() 174 for (int i = 0; i < MAX_KEY_SIZE + 1; i++) { in TEST_P() 177 mBC->set(key, MAX_KEY_SIZE + 1, "bbbb", 4); in TEST_P() 179 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE + 1, buf, 4)); in TEST_P() 190 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE + 1, &bufPtr, [&calledAlloc](size_t) -> void* { in TEST_P() 220 ASSERT_TRUE(MAX_TOTAL_SIZE < MAX_KEY_SIZE + MAX_VALUE_SIZE); in TEST_P() 221 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_P() 223 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_P() [all …]
|
/frameworks/ml/nn/driver/cache/nnCache/ |
D | nnCache_test.cpp | 109 MAX_KEY_SIZE = 6, in TEST_P() enumerator 114 mCache->initialize(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam()); in TEST_P()
|