Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp120 size_t valueSize = mBlobCache->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); in load() local
122 while (valueSize > mObservedBlobValueSize && maxTries > 0) { in load()
123 mObservedBlobValueSize = std::min(valueSize, maxValueSize); in load()
130 valueSize = mBlobCache->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); in load()
133 if (!valueSize) { in load()
137 if (valueSize > mObservedBlobValueSize) { in load()
138 ALOGE("ShaderCache::load value size is too big %d", (int)valueSize); in load()
144 return SkData::MakeFromMalloc(valueBuffer, valueSize); in load()
147 void ShaderCache::set(const void* key, size_t keySize, const void* value, size_t valueSize) { in set() argument
148 switch (mBlobCache->set(key, keySize, value, valueSize)) { in set()
[all …]
DShaderCache.h109 void set(const void* key, size_t keySize, const void* value, size_t valueSize) REQUIRES(mMutex);
/frameworks/native/opengl/libs/EGL/
DBlobCache.cpp58 size_t valueSize) { in set() argument
64 if (mMaxValueSize < valueSize) { in set()
65 ALOGV("set: not caching because the value is too large: %zu (limit: %zu)", valueSize, in set()
69 if (mMaxTotalSize < keySize + valueSize) { in set()
72 keySize + valueSize, mMaxTotalSize); in set()
79 if (valueSize == 0) { in set()
93 std::shared_ptr<Blob> valueBlob(new Blob(value, valueSize, true)); in set()
94 size_t newTotalSize = mTotalSize + keySize + valueSize; in set()
105 keySize + valueSize, mMaxTotalSize); in set()
112 valueSize); in set()
[all …]
Degl_cache.cpp59 EGLsizeiANDROID valueSize) { in setBlob() argument
60 egl_cache_t::get()->setBlob(key, keySize, value, valueSize); in setBlob()
64 EGLsizeiANDROID valueSize) { in getBlob() argument
65 return egl_cache_t::get()->getBlob(key, keySize, value, valueSize); in getBlob()
132 EGLsizeiANDROID valueSize) { in setBlob() argument
135 if (keySize < 0 || valueSize < 0) { in setBlob()
145 mbc->set(key, keySize, value, valueSize); in setBlob()
148 bc->set(key, keySize, value, valueSize); in setBlob()
167 EGLsizeiANDROID valueSize) { in getBlob() argument
170 if (keySize < 0 || valueSize < 0) { in getBlob()
[all …]
DMultifileBlobCache.cpp228 if (header.keySize <= 0 || header.valueSize <= 0) { in MultifileBlobCache()
231 entryHash, header.keySize, header.valueSize); in MultifileBlobCache()
242 trackEntry(entryHash, header.valueSize, fileSize, st.st_atime); in MultifileBlobCache()
306 EGLsizeiANDROID valueSize) { in set() argument
312 if (keySize > mMaxKeySize || valueSize > mMaxValueSize) { in set()
314 valueSize, mMaxValueSize); in set()
321 size_t fileSize = sizeof(MultifileHeader) + keySize + valueSize; in set()
334 android::MultifileHeader header = {kMultifileMagic, kCrcPlaceholder, keySize, valueSize}; in set()
341 static_cast<const void*>(value), valueSize); in set()
346 trackEntry(entryHash, valueSize, fileSize, time(0)); in set()
[all …]
DMultifileBlobCache.h44 EGLsizeiANDROID valueSize; member
48 EGLsizeiANDROID valueSize; member
110 EGLsizeiANDROID valueSize);
112 EGLsizeiANDROID valueSize);
126 void trackEntry(uint32_t entryHash, EGLsizeiANDROID valueSize, size_t fileSize,
Degl_cache.h61 EGLsizeiANDROID valueSize);
67 void* value, EGLsizeiANDROID valueSize);
DBlobCache.h77 InsertResult set(const void* key, size_t keySize, const void* value, size_t valueSize);
95 size_t get(const void* key, size_t keySize, void* value, size_t valueSize);
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DBinaryFileOperations.java42 int valueSize = bitInputStream.getNext(VALUE_SIZE_BITS); in getStringValue() local
43 return getStringValue(bitInputStream, valueSize, isHashedValue); in getStringValue()
53 BitInputStream bitInputStream, int valueSize, boolean isHashedValue) in getStringValue() argument
57 while (valueSize-- > 0) { in getStringValue()
62 ByteBuffer byteBuffer = ByteBuffer.allocate(valueSize); in getStringValue()
63 while (valueSize-- > 0) { in getStringValue()
DRuleBinaryParser.java176 int valueSize = bitInputStream.getNext(VALUE_SIZE_BITS); in parseAtomicFormula() local
177 String stringValue = getStringValue(bitInputStream, valueSize, isHashedValue); in parseAtomicFormula()
/frameworks/native/opengl/libs/EGL/fuzzer/
DMultifileBlobCache_fuzzer.cpp60 EGLsizeiANDROID valueSize = static_cast<EGLsizeiANDROID>(fdp.ConsumeIntegral<uint8_t>()); in LLVMFuzzerTestOneInput() local
65 valueSize = valueSize % (size >> 1); in LLVMFuzzerTestOneInput()
68 if (keySize == 0 || valueSize == 0) { in LLVMFuzzerTestOneInput()
76 value = fdp.ConsumeBytes<uint8_t>(valueSize); in LLVMFuzzerTestOneInput()
91 mbc->set(key.data(), keySize, value.data(), valueSize); in LLVMFuzzerTestOneInput()
93 uint8_t* buffer = new uint8_t[valueSize]; in LLVMFuzzerTestOneInput()
94 mbc->get(key.data(), keySize, buffer, valueSize); in LLVMFuzzerTestOneInput()
126 for (int i = 0; i < valueSize && i < kMaxValueSize; ++i) { in LLVMFuzzerTestOneInput()
/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/base/core/java/android/hardware/
DSensorEvent.java844 SensorEvent(int valueSize) { in SensorEvent() argument
845 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/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp150 uint32_t valueSize, void* pValue);
154 uint32_t valueSize, void* pValue);
158 uint32_t valueSize, void* pValue);
162 uint32_t valueSize, void* pValue);
1917 uint32_t valueSize, void* pValue) { in BassBoost_setParameter() argument
1929 if (valueSize < sizeof(int16_t)) { in BassBoost_setParameter()
1930 ALOGV("%s BASSBOOST_PARAM_STRENGTH invalid valueSize: %u", __func__, valueSize); in BassBoost_setParameter()
2080 uint32_t valueSize, void* pValue) { in Virtualizer_setParameter() argument
2092 if (valueSize < sizeof(int16_t)) { in Virtualizer_setParameter()
2093 ALOGV("%s VIRTUALIZER_PARAM_STRENGTH invalid valueSize: %u", __func__, valueSize); in Virtualizer_setParameter()
[all …]
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionSpatializer.cpp102 const size_t valueSize = param.getValueSize(); in setParameter() local
103 if (valueSize / sizeof(float) > 6 || valueSize % sizeof(float) != 0) { in setParameter()
104 ALOGE("%s invalid parameter value size %zu", __func__, valueSize); in setParameter()
108 for (size_t i = 0; i < valueSize / sizeof(float); i++) { in setParameter()
/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/base/services/core/java/com/android/server/locksettings/
DWeaverHidlAdapter.java49 aidlRes.valueSize = config.valueSize; in getConfig()
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.h32 const void *pConfigValue, SLuint32 valueSize);
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);
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()

12