Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp81 void BlobCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set() argument
87 if (mMaxValueSize < valueSize) { in set()
88 ALOGV("set: not caching because the value is too large: %zu (limit: %zu)", valueSize, in set()
92 if (mMaxTotalSize < keySize + valueSize) { in set()
95 keySize + valueSize, mMaxTotalSize); in set()
102 if (valueSize <= 0) { in set()
115 std::shared_ptr<Blob> valueBlob(new Blob(value, valueSize, true)); in set()
116 size_t newEntrySize = keySize + valueSize; in set()
134 keySize + valueSize, mMaxTotalSize); in set()
141 valueSize); in set()
[all …]
DBlobCache.h89 void set(const void* key, size_t keySize, const void* value, size_t valueSize);
129 size_t get(const void* key, size_t keySize, void* value, size_t valueSize);
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.cpp75 void NNCache::setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize) { in setBlob() argument
78 if (keySize < 0 || valueSize < 0) { in setBlob()
85 bc->set(key, keySize, value, valueSize); in setBlob()
102 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize) { in getBlob() argument
105 if (keySize < 0 || valueSize < 0) { in getBlob()
112 return bc->get(key, keySize, value, valueSize); in getBlob()
DnnCache_test.cpp195 const size_t valueSize = strlen(value); in yesStringBlob() local
196 ASSERT_LE(valueSize, sizeof(buf)); // Check testing assumption in yesStringBlob()
198 ASSERT_EQ(ssize_t(valueSize), mCache->getBlob(key, keySize, buf, sizeof(buf))); in yesStringBlob()
199 for (size_t i = 0; i < valueSize; i++) { in yesStringBlob()
DnnCache.h61 void setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize);
65 ssize_t getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize);
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomGraphGenerator.h81 constexpr size_t valueSize = sizeof(OperandBuffer::value_type); in resizeBuffer() local
82 uint32_t bufferSize = (sizeof(T) * len + valueSize - 1) / valueSize; in resizeBuffer()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java117 int valueSize = Byte.toUnsignedInt(buffer.get()); in EapMsChapV2ChallengeRequest() local
118 if (valueSize != VALUE_SIZE) { in EapMsChapV2ChallengeRequest()