Home
last modified time | relevance | path

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

12

/frameworks/native/opengl/libs/EGL/
DBlobCache.cpp56 size_t valueSize) { in set() argument
62 if (mMaxValueSize < valueSize) { in set()
64 valueSize, mMaxValueSize); in set()
67 if (mMaxTotalSize < keySize + valueSize) { in set()
69 "large: %zu (limit: %zu)", keySize + valueSize, mMaxTotalSize); in set()
76 if (valueSize <= 0) { in set()
89 std::shared_ptr<Blob> valueBlob(new Blob(value, valueSize, true)); in set()
90 size_t newTotalSize = mTotalSize + keySize + valueSize; in set()
100 keySize + valueSize, mMaxTotalSize); in set()
107 keySize, valueSize); in set()
[all …]
Degl_cache.cpp54 const void* value, EGLsizeiANDROID valueSize) { in setBlob() argument
55 egl_cache_t::get()->setBlob(key, keySize, value, valueSize); in setBlob()
59 void* value, EGLsizeiANDROID valueSize) { in getBlob() argument
60 return egl_cache_t::get()->getBlob(key, keySize, value, valueSize); in getBlob()
126 const void* value, EGLsizeiANDROID valueSize) { in setBlob() argument
129 if (keySize < 0 || valueSize < 0) { in setBlob()
136 bc->set(key, keySize, value, valueSize); in setBlob()
154 void* value, EGLsizeiANDROID valueSize) { in getBlob() argument
157 if (keySize < 0 || valueSize < 0) { in getBlob()
164 return bc->get(key, keySize, value, valueSize); in getBlob()
Degl_cache.h58 EGLsizeiANDROID valueSize);
64 void* value, EGLsizeiANDROID valueSize);
DBlobCache.h58 size_t valueSize);
76 size_t get(const void* key, size_t keySize, void* value, size_t valueSize);
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp117 size_t valueSize = bc->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); in load() local
119 while (valueSize > mObservedBlobValueSize && maxTries > 0) { in load()
120 mObservedBlobValueSize = std::min(valueSize, maxValueSize); in load()
127 valueSize = bc->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); in load()
130 if (!valueSize) { in load()
134 if (valueSize > mObservedBlobValueSize) { in load()
135 ALOGE("ShaderCache::load value size is too big %d", (int)valueSize); in load()
139 return SkData::MakeFromMalloc(valueBuffer, valueSize); in load()
162 size_t valueSize = data.size(); in store() local
164 if (keySize == 0 || valueSize == 0 || valueSize >= maxValueSize) { in store()
[all …]
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache.cpp79 void BlobCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set() argument
85 if (mMaxValueSize < valueSize) { in set()
86 ALOGV("set: not caching because the value is too large: %zu (limit: %zu)", valueSize, in set()
90 if (mMaxTotalSize < keySize + valueSize) { in set()
93 keySize + valueSize, mMaxTotalSize); in set()
100 if (valueSize <= 0) { in set()
113 std::shared_ptr<Blob> valueBlob(new Blob(value, valueSize, true)); in set()
114 size_t newEntrySize = keySize + valueSize; in set()
132 keySize + valueSize, mMaxTotalSize); in set()
139 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);
/frameworks/wilhelm/tests/mimeUri/
DslesTestPlayStreamType.cpp194 SLuint32 valueSize = sizeof(SLint32) * 2; // trying too big on purpose in TestStreamTypeConfiguration() local
196 SL_ANDROID_KEY_STREAM_TYPE, &valueSize, NULL); in TestStreamTypeConfiguration()
198 if (valueSize != sizeof(SLint32)) { in TestStreamTypeConfiguration()
200 valueSize, sizeof(SLint32)); in TestStreamTypeConfiguration()
203 SL_ANDROID_KEY_STREAM_TYPE, &valueSize, &currentType); in TestStreamTypeConfiguration()
220 SL_ANDROID_KEY_STREAM_TYPE, &valueSize, &currentType); in TestStreamTypeConfiguration()
/frameworks/wilhelm/src/itf/
DIAndroidConfiguration.cpp37 SLuint32 valueSize) in IAndroidConfiguration_SetConfiguration() argument
42 if (NULL == configKey || NULL == pConfigValue || valueSize == 0) { in IAndroidConfiguration_SetConfiguration()
53 configKey, valueSize); in IAndroidConfiguration_SetConfiguration()
55 pConfigValue, valueSize); in IAndroidConfiguration_SetConfiguration()
59 configKey, valueSize); in IAndroidConfiguration_SetConfiguration()
61 pConfigValue, valueSize); in IAndroidConfiguration_SetConfiguration()
DIMetadataExtraction.cpp122 SLuint32 index, SLuint32 valueSize, SLMetadataInfo *pValue) in IMetadataExtraction_GetValue() argument
133 index, valueSize, pValue); in IMetadataExtraction_GetValue()
/frameworks/ml/nn/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()
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);
/frameworks/base/core/java/android/hardware/
DSensorEvent.java655 SensorEvent(int valueSize) { in SensorEvent() argument
656 values = new float[valueSize]; in SensorEvent()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp89 uint32_t valueSize,
368 bool DP_checkSizesInt(uint32_t paramSize, uint32_t valueSize, uint32_t expectedParams, in DP_checkSizesInt() argument
375 if (valueSize < expectedValues * sizeof(int32_t)) { in DP_checkSizesInt()
376 ALOGE("Invalid valueSize %u expected %u", valueSize, in DP_checkSizesInt()
943 uint32_t valueSize, in DP_setParameter() argument
960 ALOGVV("engine architecture paramsize: %d valuesize %d",paramSize, valueSize); in DP_setParameter()
961 if (!DP_checkSizesInt(paramSize, valueSize, 1 /*params*/, 9 /*values*/)) { in DP_setParameter()
1009 ALOGVV("engine DP_PARAM_INPUT_GAIN paramsize: %d valuesize %d",paramSize, valueSize); in DP_setParameter()
1010 if (!DP_checkSizesInt(paramSize, valueSize, 2 /*params*/, 1 /*values*/)) { in DP_setParameter()
1030 ALOGVV("engine DP_PARAM_*_EQ paramsize: %d valuesize %d",paramSize, valueSize); in DP_setParameter()
[all …]
/frameworks/ml/nn/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()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp145 uint32_t valueSize,
155 uint32_t valueSize,
165 uint32_t valueSize,
175 uint32_t valueSize,
2110 uint32_t valueSize, in Effect_setConfig() argument
2123 if (valueSize < sizeof(int16_t)) { in Effect_setConfig()
2124 ALOGV("%s BASSBOOST_PARAM_STRENGTH invalid valueSize: %u", __func__, valueSize); in Effect_setConfig()
2279 uint32_t valueSize, in Effect_setConfig() argument
2292 if (valueSize < sizeof(int16_t)) { in Effect_setConfig()
2293 ALOGV("%s VIRTUALIZER_PARAM_STRENGTH invalid valueSize: %u", __func__, valueSize); in Effect_setConfig()
[all …]
/frameworks/native/opengl/specs/
DEGL_ANDROID_blob_cache.txt78 EGLsizeiANDROID keySize, const void* value, EGLsizeiANDROID valueSize)
86 EGLsizeiANDROID keySize, void* value, EGLsizeiANDROID valueSize)
142 const void* value, EGLsizeiANDROID valueSize)
145 respectively, that are to be inserted. <keySize> and <valueSize> specify
161 void* value, EGLsizeiANDROID valueSize)
169 less than or equal to <valueSize> then the value is written to the memory
/frameworks/wilhelm/src/android/
Dandroid_Effect.h140 int32_t param, uint32_t paramSizeMax, void *pValue, uint32_t valueSize);
143 int32_t param, uint32_t paramSizeMax, void *pValue, uint32_t valueSize);
DAudioRecorder_to_android.h32 const void *pConfigValue, SLuint32 valueSize);
Dandroid_AudioSfDecoder.cpp147 uint32_t valueSize = 0; in getPcmFormatKeyValue() local
148 if (!getPcmFormatValueSize(index, &valueSize)) { in getPcmFormatKeyValue()
150 } else if (size != valueSize) { in getPcmFormatKeyValue()
153 index, size, valueSize); in getPcmFormatKeyValue()
DAudioPlayer_to_android.h53 const void *pConfigValue, SLuint32 valueSize);
/frameworks/wilhelm/tests/examples/
DslesTestDecodeToBuffQueue.cpp465 SLuint32 i, keySize, valueSize; in TestDecToBuffQueue() local
469 value = NULL; valueSize = 0; in TestDecToBuffQueue()
472 result = (*mdExtrItf)->GetValueSize(mdExtrItf, i, &valueSize); in TestDecToBuffQueue()
479 i, keyInfo->size, keyInfo->data, valueSize); in TestDecToBuffQueue()
DslesTestDecodeAac.cpp679 SLuint32 keySize, valueSize; in TestDecToBuffQueue() local
683 value = NULL; valueSize = 0; in TestDecToBuffQueue()
686 res = (*mdExtrItf)->GetValueSize(mdExtrItf, i, &valueSize); in TestDecToBuffQueue()
693 i, keyInfo->size, keyInfo->data, valueSize, keyInfo->encoding, in TestDecToBuffQueue()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockWeaverService.java29 config.valueSize = VALUE_LENGTH; in getConfig()

12