Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp82 void BlobCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set() argument
83 if (mMaxKeySize < keySize) { in set()
84 ALOGV("set: not caching because the key is too large: %zu (limit: %zu)", keySize, in set()
93 if (mMaxTotalSize < keySize + valueSize) { in set()
96 keySize + valueSize, mMaxTotalSize); in set()
99 if (keySize == 0) { in set()
108 std::shared_ptr<Blob> dummyKey(new Blob(key, keySize, false)); in set()
115 std::shared_ptr<Blob> keyBlob(new Blob(key, keySize, true)); in set()
117 size_t newEntrySize = keySize + valueSize; in set()
135 keySize + valueSize, mMaxTotalSize); 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);
130 size_t get(const void* key, size_t keySize, void** value, std::function<void*(size_t)> alloc);
132 size_t get(const void* key, size_t keySize, T** value, std::function<void*(size_t)> alloc) { in get() argument
134 const size_t size = get(key, keySize, &valueVoid, alloc); in get()
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.cpp76 void NNCache::setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize) { in setBlob() argument
79 if (keySize < 0 || valueSize < 0) { in setBlob()
86 bc->set(key, keySize, value, valueSize); in setBlob()
103 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize) { in getBlob() argument
106 if (keySize < 0 || valueSize < 0) { in getBlob()
113 return bc->get(key, keySize, value, valueSize); in getBlob()
118 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void** value, in getBlob() argument
122 if (keySize < 0) { in getBlob()
129 return bc->get(key, keySize, value, alloc); in getBlob()
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);
66 ssize_t getBlob(const void* key, ssize_t keySize, void** value,
69 ssize_t getBlob(const void* key, size_t keySize, T** value, in getBlob() argument
72 const ssize_t size = getBlob(key, keySize, &valueVoid, alloc); in getBlob()
DnnCache_test.cpp194 const size_t keySize = strlen(key); in yesStringBlob() local
198 ASSERT_EQ(ssize_t(valueSize), mCache->getBlob(key, keySize, buf, sizeof(buf))); in yesStringBlob()
210 const size_t keySize = strlen(key); in noStringBlob() local
212 ASSERT_EQ(ssize_t(0), mCache->getBlob(key, keySize, buf, sizeof(buf))); in noStringBlob()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DBpfMap.java83 int keySize, int valueSize) in cachedBpfFdGet() argument
87 keySize &= 1023; // 10-bits in cachedBpfFdGet()
89 var key = Pair.create(path, (mode << 26) ^ (keySize << 16) ^ valueSize); in cachedBpfFdGet()
99 fd = ParcelFileDescriptor.adoptFd(nativeBpfFdGet(path, mode, keySize, valueSize)); in cachedBpfFdGet()
270 private static native int nativeBpfFdGet(String path, int mode, int keySize, int valueSize) in nativeBpfFdGet() argument
/packages/modules/Connectivity/staticlibs/native/bpfmapjni/
Dcom_android_net_module_util_BpfMap.cpp35 jstring path, jint mode, jint keySize, jint valueSize) { in com_android_net_module_util_BpfMap_nativeBpfFdGet() argument
64 if (bpf::bpfGetFdKeySize(fd) != keySize) { in com_android_net_module_util_BpfMap_nativeBpfFdGet()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattCharacteristic.java425 public void setKeySize(int keySize) { in setKeySize() argument
426 mKeySize = keySize; in setKeySize()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java230 int keySize = PUBLIC_KEY_LEN_MAP.get(dh); in createOutboundModpKePayload() local
250 BigIntegerUtils.bigIntegerToUnsignedByteArray(publicKey.getY(), keySize); in createOutboundModpKePayload()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/
Dtink-android-1.5.0.jarcom/google/crypto/tink/subtle/prf/StreamingPrf.class StreamingPrf.java package ...