/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerremovemoduledir_fuzzer/ |
H A D | basebundleinstallerremovemoduledir_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 38 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 45 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 49 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 50 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplrollback_fuzzer/ |
H A D | verifymanagerhostimplrollback_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 41 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 48 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 52 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 53 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 57 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 62 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 63 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/aginghandlerchain_fuzzer/ |
H A D | aginghandlerchain_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 41 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 48 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 49 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 53 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerinnerprocessinstallbypreinstallinfo_fuzzer/ |
H A D | basebundleinstallerinnerprocessinstallbypreinstallinfo_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 47 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 51 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 52 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 56 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 62 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerinstallbundle_fuzzer/ |
H A D | basebundleinstallerinstallbundle_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 47 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 51 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 52 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 56 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 62 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerprocessinstallbundlebybundlename_fuzzer/ |
H A D | basebundleinstallerprocessinstallbundlebybundlename_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 47 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 51 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 52 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 56 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 62 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerprocessmoduleupdate_fuzzer/ |
H A D | basebundleinstallerprocessmoduleupdate_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 47 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 51 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 52 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 56 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 62 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplverifyabc_fuzzer/ |
H A D | verifymanagerhostimplverifyabc_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 41 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 48 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 52 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 53 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 57 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 62 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 63 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibraryextensioninsert_fuzzer/src/ |
H A D | medialibrary_extension_insert_fuzzer.cpp | 34 static inline string FuzzString(const uint8_t *data, size_t size) in FuzzString() argument 36 return {reinterpret_cast<const char*>(data), size}; in FuzzString() 39 static inline Uri FuzzUri(const uint8_t *data, size_t size) in FuzzUri() argument 41 return Uri(FuzzString(data, size)); in FuzzUri() 44 static inline DataShareValuesBucket FuzzDataShareValuesBucket(const uint8_t *data, size_t size) in FuzzDataShareValuesBucket() argument 49 static inline void InsertFuzzer(MediaDataShareExtAbility &extension, const uint8_t* data, size_t size) in InsertFuzzer() argument 53 extension.Insert(FuzzUri(data, size), FuzzDataShareValuesBucket(data, size)); in InsertFuzzer() 64 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 68 OHOS::InsertFuzzer(extension, data, size); in LLVMFuzzerTestOneInput() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/sourcehandlerregisterdistributedhardware_fuzzer/ |
H A D | sourcehandlerregisterdistributedhardware_fuzzer.cpp | 30 void SourceHandlerRegisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) in SourceHandlerRegisterDistributedHardwareFuzzTest() argument 32 if ((data == nullptr) || (size == 0)) { in SourceHandlerRegisterDistributedHardwareFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 36 std::string dhId(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 37 std::string sourceVersion(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 38 std::string sourceAttrs(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 39 std::string sinkVersion(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 40 std::string sinkAttrs(reinterpret_cast<const char*>(data), size); in SourceHandlerRegisterDistributedHardwareFuzzTest() local 54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 OHOS::DistributedHardware::SourceHandlerRegisterDistributedHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput() [all...] |
/third_party/lzma/C/ |
H A D | 7zAlloc.c | 25 static void Print_Alloc(const char *s, size_t size, int *counter)
in Print_Alloc() argument 27 const unsigned size2 = (unsigned)size;
in Print_Alloc() 38 void *SzAlloc(ISzAllocPtr p, size_t size)
in SzAlloc() argument 41 if (size == 0)
in SzAlloc() 44 Print_Alloc("Alloc", size, &g_allocCount);
in SzAlloc() 46 return malloc(size);
in SzAlloc() 59 void *SzAllocTemp(ISzAllocPtr p, size_t size)
in SzAllocTemp() argument 62 if (size == 0)
in SzAllocTemp() 65 Print_Alloc("Alloc_temp", size, &g_allocCountTemp);
in SzAllocTemp() 68 return HeapAlloc(GetProcessHeap(), 0, size);
in SzAllocTemp() [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | strutil.cc | 149 start_pos = pos + oldsub.size(); // start searching again after the "old" in StringReplace() 185 const char* end = p + full.size(); in SplitStringToIteratorUsing() 276 length += iter->size(); in JoinStringsIterator() 285 result->append(iter->data(), iter->size()); in JoinStringsIterator() 455 std::unique_ptr<char[]> unescaped(new char[src.size() + 1]); in UnescapeCEscapeString() 463 std::unique_ptr<char[]> unescaped(new char[src.size() + 1]); in UnescapeCEscapeString() 549 for (int i = 0; i < src.size(); ++i) { in CEscapedLength() 564 if (escaped_len == src.size()) { in CEscapeAndAppend() 565 dest->append(src.data(), src.size()); in CEscapeAndAppend() 569 size_t cur_dest_len = dest->size(); in CEscapeAndAppend() 2430 int size = snprintf(temp, sizeof(temp), "%.1f", 1.5); LocalizeRadix() local [all...] |
/foundation/ability/form_fwk/test/fuzztest/formprovidermgr_fuzzer/ |
H A D | formprovidermgr_fuzzer.cpp | 40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 45 std::string formSrc(data, size); in DoSomethingInterestingWithMyAPI() 54 std::string versionName(data, size); in DoSomethingInterestingWithMyAPI() 61 std::string deviceId(data, size); in DoSomethingInterestingWithMyAPI() 78 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 79 std::string abilityName(data, size); in DoSomethingInterestingWithMyAPI() 89 std::string provider(data, size); in DoSomethingInterestingWithMyAPI() 101 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 108 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 112 /* Validate the length of size */ in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/form_fwk/test/fuzztest/formsupplycallback_fuzzer/ |
H A D | formsupplycallback_fuzzer.cpp | 42 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 51 std::string provider(data, size); in DoSomethingInterestingWithMyAPI() 60 std::string remoteDeviceId(data, size); in DoSomethingInterestingWithMyAPI() 74 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI() 80 std::string formInfoes(data, size); in DoSomethingInterestingWithMyAPI() 87 std::string formInfo(data, size); in DoSomethingInterestingWithMyAPI() 94 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 105 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 112 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 116 /* Validate the length of size */ in LLVMFuzzerTestOneInput() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | image_source_ohos.cpp | 35 RefPtr<ImageSource> ImageSource::Create(const uint8_t* data, uint32_t size) in Create() argument 39 auto src = Media::ImageSource::CreateImageSource(data, size, options, errorCode); in Create() 59 bool ImageSource::IsAstc(const uint8_t* data, size_t size) in IsAstc() argument 61 return Media::ImageSource::IsASTC(data, size); in IsAstc() 64 ImageSource::Size ImageSource::GetASTCInfo(const uint8_t* data, size_t size) in GetASTCInfo() argument 67 Media::ImageSource::GetASTCInfo(data, size, astcInfo); in GetASTCInfo() 68 return { astcInfo.size.width, astcInfo.size.height }; in GetASTCInfo() 82 RefPtr<PixelMap> ImageSourceOhos::CreatePixelMap(const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) in CreatePixelMap() argument 84 return CreatePixelMap(0, size, imageQualit in CreatePixelMap() 87 CreatePixelMap( uint32_t index, const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) CreatePixelMap() argument [all...] |
/foundation/arkui/ui_lite/frameworks/imgdecode/ |
H A D | image_load.cpp | 64 bool ImageLoad::UncompressImageInZip(ImageInfo& imageInfo, uint8_t* buffer, uint32_t size) in UncompressImageInZip() argument 72 return Unzip24Image(buffer, size, imageInfo); in UncompressImageInZip() 74 return UnzipImage(buffer, size, imageInfo); in UncompressImageInZip() 78 bool ImageLoad::UnzipImage(uint8_t* imageBuffer, uint32_t size, ImageInfo& imageInfo) in UnzipImage() argument 80 if ((imageBuffer == nullptr) || (size == 0)) { in UnzipImage() 86 uint32_t* sourceEnd = reinterpret_cast<uint32_t*>(imageBuffer + size); in UnzipImage() 118 bool ImageLoad::Unzip24Image(uint8_t* imageBuffer, uint32_t size, ImageInfo& imageInfo) in Unzip24Image() argument 120 if ((imageBuffer == nullptr) || (size == 0)) { in Unzip24Image() 126 uint8_t* sourceEnd = reinterpret_cast<uint8_t*>(imageBuffer + size); in Unzip24Image() 172 bool ImageLoad::UnZip2ImageInfo(ImageInfo& imageInfo, uint8_t* buffer, uint32_t size) in UnZip2ImageInfo() argument 182 GetImageInfo(int32_t fd, uint32_t size, ImageInfo& imageInfo) GetImageInfo() argument [all...] |
/foundation/multimedia/audio_framework/test/fuzztest/audiointerruptservicemore_fuzzer/ |
H A D | audio_interrupt_service_more_fuzzer.cpp | 53 void MoreFuzzTest(const uint8_t *rawData, size_t size) in MoreFuzzTest() argument 55 if (rawData == nullptr || size < LIMITSIZE) { in MoreFuzzTest() 67 void AddAudioSessionFuzzTest(const uint8_t *rawData, size_t size) in AddAudioSessionFuzzTest() argument 69 if (rawData == nullptr || size < LIMITSIZE) { in AddAudioSessionFuzzTest() 92 void AddSetAudioManagerInterruptCallbackFuzzTest(const uint8_t *rawData, size_t size) in AddSetAudioManagerInterruptCallbackFuzzTest() argument 94 if (rawData == nullptr || size < LIMITSIZE) { in AddSetAudioManagerInterruptCallbackFuzzTest() 99 data.WriteBuffer(rawData, size); in AddSetAudioManagerInterruptCallbackFuzzTest() 114 void ResetNonInterruptControlFuzzTest(const uint8_t *rawData, size_t size) //build.gn 未添加宏定义defines in ResetNonInterruptControlFuzzTest() argument 116 if (rawData == nullptr || size < LIMITSIZE) { in ResetNonInterruptControlFuzzTest() 125 void ClearAudioFocusInfoListOnAccountsChangedFuzzTest(const uint8_t *rawData, size_t size) in ClearAudioFocusInfoListOnAccountsChangedFuzzTest() argument 138 LLVMFuzzerTestOneInput(const uint8_t *rawData, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/kvdelegatemanager_fuzzer/ |
H A D | kvdelegatemanager_fuzzer.cpp | 38 std::string GetRandomString(const uint8_t *data, size_t size, size_t len, uint32_t &start) in GetRandomString() argument 41 if (size == 0) { in GetRandomString() 44 if (start >= size || start + len >= size) { in GetRandomString() 45 return std::string(data, data + size - 1); in GetRandomString() 52 void GetRandomAutoLaunchOption(const uint8_t* data, size_t size, AutoLaunchOption &option) in GetRandomAutoLaunchOption() argument 54 std::string randomStr = size == 0 ? "" : std::string(data, data + size - 1); in GetRandomAutoLaunchOption() 91 void CombineTest(const uint8_t *data, size_t size) in CombineTest() argument 97 for (size_t len = 1; len < (size / paramCoun in CombineTest() 134 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | openssl_crypto.cpp | 32 if (keyContext_.rndEnc.size < GCM_NONCE_BYTES + GCM_MAC_BYTES) { in AESDecrypt() 33 LOGE("GCM cipherText too small: %{public}u ", keyContext_.rndEnc.size); in AESDecrypt() 48 plainText = KeyBlob(keyContext_.rndEnc.size - GCM_NONCE_BYTES - GCM_MAC_BYTES); in AESDecrypt() 52 plainText.size) != OPENSSL_SUCCESS_FLAG) { in AESDecrypt() 56 if (static_cast<int>(plainText.size) != outlen) { in AESDecrypt() 57 LOGE("GCM plainText length should be %{private}u, was %{public}d", plainText.size, outlen); in AESDecrypt() 62 keyContext_.rndEnc.data.get() + GCM_NONCE_BYTES + plainText.size))) != in AESDecrypt() 67 if (EVP_DecryptFinal_ex(ctx.get(), reinterpret_cast<uint8_t*>(plainText.data.get() + plainText.size), in AESDecrypt() 90 keyContext_.rndEnc = HuksMaster::GenerateRandomKey(GCM_NONCE_BYTES + plainText.size + GCM_MAC_BYTES); in AESEncrypt() 100 &outlen, reinterpret_cast<const uint8_t*>(plainText.data.get()), plainText.size) ! in AESEncrypt() [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/cpp/napi/ |
H A D | image_source_module_test.cpp | 72 key.size = propertykey.size(); in GetImageProperty() 73 key.data = static_cast<char *>(malloc(key.size)); in GetImageProperty() 74 memcpy_s(key.data, key.size, propertykey.c_str(), propertykey.size()); in GetImageProperty() 82 *val = std::string(value.data, value.size); in GetImageProperty() 102 key.size = propertyKey.size(); in ModifyImageProperty() 103 key.data = static_cast<char *>(malloc(key.size)); in ModifyImageProperty() 104 memcpy_s(key.data, key.size, propertyKe in ModifyImageProperty() [all...] |
/third_party/ffmpeg/tools/ |
H A D | probetest.c | 38 static void probe(AVProbeData *pd, int type, int p, int size) in probe() argument 57 "Failure of %s probing code with score=%d type=%d p=%X size=%d\n", in probe() 58 fmt->name, score, type, p, size); in probe() 96 unsigned int p, i, type, size, retry; in main() local 132 for (size = 1; size < max_size; size *= 2) { in main() 133 pd.buf_size = size; in main() 134 pd.buf = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE); in main() 142 memset(pd.buf, 0, size in main() [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | set.js | 18 assert (set.size === 0); 21 assert (set.size === 1); 26 assert (set.size === 2); 31 assert (set.size === 3); 36 assert (set.size === 4); 41 assert (set.size === 5); 46 assert (set.size === 6); 64 assert (set.size === 5); 66 assert (set.size === 4); 68 assert (set.size [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_binder.c | 57 binder_has_space(struct iris_binder *binder, unsigned size) in binder_has_space() argument 59 return binder->insert_point + size <= binder->size; in binder_has_space() 72 binder->bo = iris_bo_alloc(bufmgr, "binder", binder->size, binder->alignment, in binder_realloc() 96 binder_insert(struct iris_binder *binder, unsigned size) in binder_insert() argument 101 align(binder->insert_point + size, binder->alignment); in binder_insert() 107 * Reserve a block of space in the binder, given the raw size in bytes. 111 unsigned size) in iris_binder_reserve() 115 if (!binder_has_space(binder, size)) in iris_binder_reserve() 118 assert(size > in iris_binder_reserve() 110 iris_binder_reserve(struct iris_context *ice, unsigned size) iris_binder_reserve() argument 196 unsigned size = shader->bt.size_bytes; iris_binder_reserve_compute() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | discriminatedUnionTypes1.js | 4 size: number; 22 return s.size * s.size; 37 case "square": return s.size * s.size; 49 case "square": return s.size * s.size; 58 case "square": return s.size * s.size; 148 return s.size * [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/cert_mgr_deps/src/ |
H A D | cm_param.c | 48 static int32_t CmCheckParamSet(const struct CmParamSet *paramSet, uint32_t size) in CmCheckParamSet() argument 54 if ((size < sizeof(struct CmParamSet)) || (size > CM_PARAM_SET_MAX_SIZE) || in CmCheckParamSet() 55 (paramSet->paramSetSize != size) || in CmCheckParamSet() 56 (paramSet->paramsCnt > ((size - sizeof(struct CmParamSet)) / sizeof(struct CmParam)))) { in CmCheckParamSet() 75 uint32_t size = paramSet->paramSetSize; in CmFreshParamSet() local 79 if (offset > size) { in CmFreshParamSet() 84 if (CmIsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in CmFreshParamSet() 85 CM_LOG_E("blob size overflow!"); in CmFreshParamSet() 89 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size in CmFreshParamSet() 109 uint32_t size = freshParamSet->paramSetSize; BuildParamSet() local [all...] |