Home
last modified time | relevance | path

Searched refs:size (Results 501 - 525 of 31284) sorted by relevance

1...<<21222324252627282930>>...1252

/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
H A DCompositeGlyph.java49 int index = 5 * FontData.DataSize.USHORT.size(); // header in initialize()
54 index += 2 * FontData.DataSize.USHORT.size(); // flags and in initialize()
57 index += 2 * FontData.DataSize.SHORT.size(); in initialize()
59 index += 2 * FontData.DataSize.BYTE.size(); in initialize()
62 index += FontData.DataSize.F2DOT14.size(); in initialize()
64 index += 2 * FontData.DataSize.F2DOT14.size(); in initialize()
66 index += 4 * FontData.DataSize.F2DOT14.size(); in initialize()
72 index += FontData.DataSize.USHORT.size(); in initialize()
74 nonPaddedDataLength = index + (this.instructionSize * FontData.DataSize.BYTE.size()); in initialize()
85 return this.contourIndex.size(); in numGlyphs()
[all...]
/foundation/distributeddatamgr/kv_store/test/fuzztest/devicekvstore_fuzzer/
H A Ddevicekvstore_fuzzer.cpp87 void PutFuzz(const uint8_t *data, size_t size) in PutFuzz() argument
89 std::string skey(data, data + size); in PutFuzz()
90 std::string svalue(data, data + size); in PutFuzz()
97 void PutBatchFuzz(const uint8_t *data, size_t size) in PutBatchFuzz() argument
99 std::string skey(data, data + size); in PutBatchFuzz()
100 std::string svalue(data, data + size); in PutBatchFuzz()
122 void GetFuzz(const uint8_t *data, size_t size) in GetFuzz() argument
124 std::string skey(data, data + size); in GetFuzz()
125 std::string svalue(data, data + size); in GetFuzz()
134 void GetEntriesFuzz1(const uint8_t *data, size_t size) in GetEntriesFuzz1() argument
149 GetEntriesFuzz2(const uint8_t *data, size_t size) GetEntriesFuzz2() argument
166 SyncCallbackFuzz(const uint8_t *data, size_t size) SyncCallbackFuzz() argument
189 GetResultSetFuzz1(const uint8_t *data, size_t size) GetResultSetFuzz1() argument
212 GetResultSetFuzz2(const uint8_t *data, size_t size) GetResultSetFuzz2() argument
230 GetResultSetFuzz3(const uint8_t *data, size_t size) GetResultSetFuzz3() argument
280 GetCountFuzz1(const uint8_t *data, size_t size) GetCountFuzz1() argument
297 GetCountFuzz2(const uint8_t *data, size_t size) GetCountFuzz2() argument
318 SyncFuzz1(const uint8_t *data, size_t size) SyncFuzz1() argument
334 SyncFuzz2(const uint8_t *data, size_t size) SyncFuzz2() argument
351 SubscribeKvStoreFuzz(const uint8_t *data, size_t size) SubscribeKvStoreFuzz() argument
369 RemoveDeviceDataFuzz(const uint8_t *data, size_t size) RemoveDeviceDataFuzz() argument
392 GetSecurityLevelFuzz(const uint8_t *data, size_t size) GetSecurityLevelFuzz() argument
411 SyncParamFuzz(const uint8_t *data, size_t size) SyncParamFuzz() argument
435 SetCapabilityEnabledFuzz(const uint8_t *data, size_t size) SetCapabilityEnabledFuzz() argument
456 SetCapabilityRangeFuzz(const uint8_t *data, size_t size) SetCapabilityRangeFuzz() argument
464 SubscribeWithQueryFuzz(const uint8_t *data, size_t size) SubscribeWithQueryFuzz() argument
474 UnSubscribeWithQueryFuzz(const uint8_t *data, size_t size) UnSubscribeWithQueryFuzz() argument
485 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/audio_framework/test/fuzztest/audiopolicymore_fuzzer/
H A Daudio_policy_more_fuzzer.cpp84 static AudioRendererInfo getAudioRenderInfo(const uint8_t *rawData, size_t size) in getAudioRenderInfo() argument
86 if (rawData == nullptr || size < LIMITSIZE) { in getAudioRenderInfo()
136 void InitFuzzTest(const uint8_t *rawData, size_t size) in InitFuzzTest() argument
138 if (rawData == nullptr || size < LIMITSIZE) { in InitFuzzTest()
149 void GetHighestPriorityAudioSceneFuzzTest(const uint8_t *rawData, size_t size) in GetHighestPriorityAudioSceneFuzzTest() argument
151 if (rawData == nullptr || size < LIMITSIZE) { in GetHighestPriorityAudioSceneFuzzTest()
163 void AudioInterruptZoneDumpFuzzTest(const uint8_t *rawData, size_t size) in AudioInterruptZoneDumpFuzzTest() argument
165 if (rawData == nullptr || size < LIMITSIZE) { in AudioInterruptZoneDumpFuzzTest()
177 void ClearAudioFocusInfoListOnAccountsChangedFuzzTest(const uint8_t *rawData, size_t size) in ClearAudioFocusInfoListOnAccountsChangedFuzzTest() argument
179 if (rawData == nullptr || size < LIMITSIZ in ClearAudioFocusInfoListOnAccountsChangedFuzzTest()
191 GetStreamTypePriorityFuzzTest(const uint8_t *rawData, size_t size) GetStreamTypePriorityFuzzTest() argument
204 GetStreamPriorityMapFuzzTest(const uint8_t *rawData, size_t size) GetStreamPriorityMapFuzzTest() argument
216 SendInterruptEventFuzzTest(const uint8_t *rawData, size_t size) SendInterruptEventFuzzTest() argument
246 IsSameAppInShareModeFuzzTest(const uint8_t *rawData, size_t size) IsSameAppInShareModeFuzzTest() argument
266 SendFocusChangeEventFuzzTest(const uint8_t *rawData, size_t size) SendFocusChangeEventFuzzTest() argument
285 GetAudioFocusInfoListFuzzTest(const uint8_t *rawData, size_t size) GetAudioFocusInfoListFuzzTest() argument
311 AudioVolumeMoreFuzzTest(const uint8_t *rawData, size_t size) AudioVolumeMoreFuzzTest() argument
355 AudioDeviceMoreFuzzTest(const uint8_t *rawData, size_t size) AudioDeviceMoreFuzzTest() argument
392 AudioPolicySomeMoreFuzzTest(const uint8_t *rawData, size_t size) AudioPolicySomeMoreFuzzTest() argument
403 AudioPolicyOtherMoreFuzzTest(const uint8_t *rawData, size_t size) AudioPolicyOtherMoreFuzzTest() argument
426 AudioVolumeKeyCallbackStubMoreFuzzTest(const uint8_t *rawData, size_t size) AudioVolumeKeyCallbackStubMoreFuzzTest() argument
453 AudioPolicyManagerFuzzTest(const uint8_t *rawData, size_t size) AudioPolicyManagerFuzzTest() argument
485 LLVMFuzzerInitialize(const uint8_t *data, size_t size) LLVMFuzzerInitialize() argument
492 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dxan.c60 int size; member
159 int size; in xan_unpack() local
171 size = opcode & 3; in xan_unpack()
176 size = bytestream2_peek_byte(&ctx) >> 6; in xan_unpack()
181 size = opcode & 3; in xan_unpack()
187 if (dest_end - dest < size + size2 || in xan_unpack()
188 dest + size - dest_org < back || in xan_unpack()
189 bytestream2_get_bytes_left(&ctx) < size) in xan_unpack()
191 bytestream2_get_buffer(&ctx, dest, size); in xan_unpack()
192 dest += size; in xan_unpack()
305 int size = 0; xan_wc3_decode_frame() local
554 int size; xan_decode_frame() local
[all...]
H A Dav1_parse.h39 int size; member
113 int64_t size; in parse_obu_header() local
143 size = *obu_size + *start_pos; in parse_obu_header()
145 if (size > buf_size) in parse_obu_header()
148 return size; in parse_obu_header()
151 static inline int get_obu_bit_length(const uint8_t *buf, int size, int type) in get_obu_bit_length() argument
159 if (size > INT_MAX / 8) in get_obu_bit_length()
162 return size * 8; in get_obu_bit_length()
165 while (size > 0 && buf[size in get_obu_bit_length()
[all...]
/third_party/ffmpeg/libavformat/
H A Dmlvdec.c65 unsigned int size; in check_file_header() local
69 size = avio_rl32(pb); in check_file_header()
70 if (size < 52) in check_file_header()
75 avio_skip(pb, size - 24); in check_file_header()
79 static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, unsigned size) in read_string() argument
81 char * value = av_malloc(size + 1); in read_string()
83 avio_skip(pb, size); in read_string()
87 avio_read(pb, value, size); in read_string()
93 value[size] = 0; in read_string()
125 unsigned int size; in scan_file() local
263 int size, ret; read_header() local
407 unsigned int size, space; read_packet() local
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dcoded_stream.h78 // uint32 size;
79 // coded_input->ReadVarint32(&size);
81 // char* text = new char[size + 1];
82 // coded_input->ReadRaw(buffer, size);
83 // text[size] = '\0';
187 // faster than using an ArrayInputStream. PushLimit(size) is implied by
189 explicit CodedInputStream(const uint8* buffer, int size);
207 // underlying buffer, and *size to the size of that buffer, but does not
213 bool GetDirectBufferPointer(const void** data, int* size);
668 EpsCopyOutputStream(void* data, int size, bool deterministic) EpsCopyOutputStream() argument
675 EpsCopyOutputStream(void* data, int size, ZeroCopyOutputStream* stream, bool deterministic, uint8** pp) EpsCopyOutputStream() argument
695 WriteRaw(const void* data, int size, uint8* ptr) WriteRaw() argument
706 WriteRawMaybeAliased(const void* data, int size, uint8* ptr) WriteRawMaybeAliased() argument
716 std::ptrdiff_t size = s.size(); WriteStringMaybeAliased() local
733 std::ptrdiff_t size = s.size(); WriteString() local
749 WriteInt32Packed(int num, const T& r, int size, uint8* ptr) WriteInt32Packed() argument
754 WriteUInt32Packed(int num, const T& r, int size, uint8* ptr) WriteUInt32Packed() argument
759 WriteSInt32Packed(int num, const T& r, int size, uint8* ptr) WriteSInt32Packed() argument
764 WriteInt64Packed(int num, const T& r, int size, uint8* ptr) WriteInt64Packed() argument
769 WriteUInt64Packed(int num, const T& r, int size, uint8* ptr) WriteUInt64Packed() argument
774 WriteSInt64Packed(int num, const T& r, int size, uint8* ptr) WriteSInt64Packed() argument
779 WriteEnumPacked(int num, const T& r, int size, uint8* ptr) WriteEnumPacked() argument
789 auto size = r.size() * element_size; WriteFixedPacked() local
858 GOOGLE_DCHECK(ptr < end_); return UnsafeVarint((num << 3) | wt, ptr); } PROTOBUF_ALWAYS_INLINE uint8* WriteLengthDelim(int num, uint32 size, uint8* ptr) { ptr = WriteTag(num, 2, ptr); return UnsafeWriteSize(size, ptr); } uint8* WriteRawFallback(const void* data, int size, uint8* ptr); uint8* WriteAliasedRaw(const void* data, int size, uint8* ptr); uint8* WriteStringMaybeAliasedOutline(uint32 num, const std::string& s, uint8* ptr); uint8* WriteStringOutline(uint32 num, const std::string& s, uint8* ptr); template <typename T, typename E> PROTOBUF_ALWAYS_INLINE uint8* WriteVarintPacked(int num, const T& r, int size, uint8* ptr, const E& encode) { ptr = EnsureSpace(ptr); ptr = WriteLengthDelim(num, size, ptr); auto it = r.data(); auto end = it + r.size(); do { ptr = EnsureSpace(ptr); ptr = UnsafeVarint(encode(*it++), ptr); } while (it < end); return ptr; } static uint32 Encode32(uint32 v) { return v; } static uint64 Encode64(uint64 v) { return v; } static uint32 ZigZagEncode32(int32 v) { return (static_cast<uint32>(v) << 1) ^ static_cast<uint32>(v >> 31); } static uint64 ZigZagEncode64(int64 v) { return (static_cast<uint64>(v) << 1) ^ static_cast<uint64>(v >> 63); } template <typename T> PROTOBUF_ALWAYS_INLINE static uint8* UnsafeVarint(T value, uint8* ptr) { static_assert(std::is_unsigned<T>::value, �); if (value < 0x80) { ptr[0] = static_cast<uint8>(value); return ptr + 1; } ptr[0] = static_cast<uint8>(value | 0x80); value >>= 7; if (value < 0x80) { ptr[1] = static_cast<uint8>(value); return ptr + 2; } ptr++; do { *ptr = static_cast<uint8>(value | 0x80); value >>= 7; ++ptr; } while (PROTOBUF_PREDICT_FALSE(value >= 0x80)); *ptr++ = static_cast<uint8>(value); return ptr; } PROTOBUF_ALWAYS_INLINE static uint8* UnsafeWriteSize(uint32 value, uint8* ptr) { while (PROTOBUF_PREDICT_FALSE(value >= 0x80) WriteTag() argument
945 SetInitialBuffer(void* data, int size) SetInitialBuffer() argument
974 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
980 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
990 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
1095 GetDirectBufferPointer(void** data, int* size) GetDirectBufferPointer() argument
1106 GetDirectBufferForNBytesAndAdvance(int size) GetDirectBufferForNBytesAndAdvance() argument
1111 WriteRaw(const void* buffer, int size) WriteRaw() argument
1475 GetDirectBufferPointerInline(const void** data, int* size) GetDirectBufferPointerInline() argument
[all...]
/foundation/communication/netmanager_ext/test/networksharemanager/fuzztest/netshareclient_fuzzer/
H A Dnetshare_client_fuzzer.cpp89 bool InitGlobalData(const uint8_t *data, size_t size) in InitGlobalData() argument
91 if (data == nullptr || size == 0) { in InitGlobalData()
95 g_baseFuzzSize = size; in InitGlobalData()
159 bool GetMessageParcel(const uint8_t *data, size_t size, MessageParcel &dataParcel) in GetMessageParcel() argument
161 if (!InitGlobalData(data, size)) { in GetMessageParcel()
176 void IsNetworkSharingSupportedFuzzTest(const uint8_t *data, size_t size) in IsNetworkSharingSupportedFuzzTest() argument
179 if (!InitGlobalData(data, size)) { in IsNetworkSharingSupportedFuzzTest()
192 void IsSharingFuzzTest(const uint8_t *data, size_t size) in IsSharingFuzzTest() argument
195 if (!InitGlobalData(data, size)) { in IsSharingFuzzTest()
209 void StartNetworkSharingFuzzTest(const uint8_t *data, size_t size) in StartNetworkSharingFuzzTest() argument
221 StopNetworkSharingFuzzTest(const uint8_t *data, size_t size) StopNetworkSharingFuzzTest() argument
231 GetSharableRegexsFuzzTest(const uint8_t *data, size_t size) GetSharableRegexsFuzzTest() argument
241 GetSharingStateFuzzTest(const uint8_t *data, size_t size) GetSharingStateFuzzTest() argument
251 GetNetSharingIfacesFuzzTest(const uint8_t *data, size_t size) GetNetSharingIfacesFuzzTest() argument
269 RegisterSharingEventFuzzTest(const uint8_t *data, size_t size) RegisterSharingEventFuzzTest() argument
287 UnregisterSharingEventFuzzTest(const uint8_t *data, size_t size) UnregisterSharingEventFuzzTest() argument
305 GetStatsRxBytesFuzzTest(const uint8_t *data, size_t size) GetStatsRxBytesFuzzTest() argument
321 GetStatsTxBytesFuzzTest(const uint8_t *data, size_t size) GetStatsTxBytesFuzzTest() argument
337 GetStatsTotalBytesFuzzTest(const uint8_t *data, size_t size) GetStatsTotalBytesFuzzTest() argument
353 NetGetStatsBytesFuzzTest(const uint8_t *data, size_t size) NetGetStatsBytesFuzzTest() argument
362 NetworkShareMainStateMachineFuzzTest(const uint8_t *data, size_t size) NetworkShareMainStateMachineFuzzTest() argument
405 NetworkShareSubStateMachineFuzzTest(const uint8_t *data, size_t size) NetworkShareSubStateMachineFuzzTest() argument
473 NetworkShareSubStateMachinePrivateFuzzTest(const uint8_t *data, size_t size) NetworkShareSubStateMachinePrivateFuzzTest() argument
497 UpstreammonitorFuzzTest(const uint8_t *data, size_t size) UpstreammonitorFuzzTest() argument
524 NetworkShareTrackerFuzzTest(const uint8_t *data, size_t size) NetworkShareTrackerFuzzTest() argument
575 NetworkShareTrackerPrivateFuzzTest(const uint8_t *data, size_t size) NetworkShareTrackerPrivateFuzzTest() argument
627 NetworkShareHisysEventFuzzTest(const uint8_t *data, size_t size) NetworkShareHisysEventFuzzTest() argument
645 NetworkShareConfigurationFuzzTest(const uint8_t *data, size_t size) NetworkShareConfigurationFuzzTest() argument
685 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkAllocationCallbackUtil.cpp37 static VKAPI_ATTR void* VKAPI_CALL systemAllocate (void*, size_t size, size_t alignment, VkSystemAllocationScope) in systemAllocate() argument
39 if (size > 0) in systemAllocate()
40 return deAlignedMalloc(size, (deUint32)alignment); in systemAllocate()
50 static VKAPI_ATTR void* VKAPI_CALL systemReallocate (void*, void* pOriginal, size_t size, size_t alignment, VkSystemAllocationScope) in systemReallocate() argument
52 return deAlignedRealloc(pOriginal, size, alignment); in systemReallocate()
80 static VKAPI_ATTR void* VKAPI_CALL allocationCallback (void* pUserData, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) in allocationCallback() argument
82 return reinterpret_cast<AllocationCallbacks*>(pUserData)->allocate(size, alignment, allocationScope); in allocationCallback()
85 static VKAPI_ATTR void* VKAPI_CALL reallocationCallback (void* pUserData, void* pOriginal, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) in reallocationCallback() argument
87 return reinterpret_cast<AllocationCallbacks*>(pUserData)->reallocate(pOriginal, size, alignment, allocationScope); in reallocationCallback()
95 static VKAPI_ATTR void VKAPI_CALL internalAllocationNotificationCallback (void* pUserData, size_t size, VkInternalAllocationTyp argument
100 internalFreeNotificationCallback(void* pUserData, size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) internalFreeNotificationCallback() argument
130 allocation(size_t size, size_t alignment, VkSystemAllocationScope scope, void* returnedPtr) allocation() argument
143 reallocation(void* original, size_t size, size_t alignment, VkSystemAllocationScope scope, void* returnedPtr) reallocation() argument
167 internalAllocation(size_t size, VkInternalAllocationType type, VkSystemAllocationScope scope) internalAllocation() argument
179 internalFree(size_t size, VkInternalAllocationType type, VkSystemAllocationScope scope) internalFree() argument
202 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
207 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
217 notifyInternalAllocation(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalAllocation() argument
222 notifyInternalFree(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalFree() argument
239 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
248 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
264 notifyInternalAllocation(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalAllocation() argument
271 notifyInternalFree(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalFree() argument
297 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
306 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
537 const size_t size = record.data.internalAllocation.size; validateAllocationCallbacks() local
659 const size_t size = (alloc->type == AllocationCallbackRecord::TYPE_ALLOCATION ? alloc->data.allocation.size : alloc->data.reallocation.size); getLiveSystemAllocationTotal() local
[all...]
/third_party/node/lib/internal/crypto/
H A Drandom.js82 function assertSize(size, elementSize, offset, length) {
83 validateNumber(size, 'size');
84 size *= elementSize;
86 if (NumberIsNaN(size) || size > kMaxPossibleLength || size < 0) {
87 throw new ERR_OUT_OF_RANGE('size',
88 `>= 0 && <= ${kMaxPossibleLength}`, size);
91 if (size
[all...]
/third_party/toybox/toys/posix/
H A Dod.c22 plus optional size in bytes
48 int size; member
79 memcpy(&fdl, TT.buf+*offset, t->size); in od_out_t()
80 *offset += t->size; in od_out_t()
81 if (sizeof(float) == t->size) { in od_out_t()
84 } else if (sizeof(double) == t->size) { in od_out_t()
87 } else if (sizeof(long double) == t->size) { in od_out_t()
90 } else error_exit("bad -tf '%d'", t->size); in od_out_t()
100 if (t->size == 8) { in od_out_t()
103 } else or = (1LL<<(8*t->size)) in od_out_t()
230 int size = 1; append_base() local
[all...]
/third_party/skia/modules/skunicode/tests/
H A DSkUnicodeTest.cpp23 auto utf8 = SkUnicode::convertUtf16ToUtf8(text.data(), text.size()); in UNIX_ONLY_TEST()
25 (SkSpan<char>(&utf8[0], utf8.size()), {}, {}, {}); in UNIX_ONLY_TEST()
27 client->computeCodeUnitFlags(utf8.data(), utf8.size(), false, &results); in UNIX_ONLY_TEST()
37 auto utf8 = SkUnicode::convertUtf16ToUtf8(text.data(), text.size()); in UNIX_ONLY_TEST()
40 icu->computeCodeUnitFlags(utf8.data(), utf8.size(), false, &results); in UNIX_ONLY_TEST()
51 auto result = icu->getWords(text.data(), text.size(), "en", &results); in UNIX_ONLY_TEST()
53 REPORTER_ASSERT(reporter, results.size() == expected.size()); in UNIX_ONLY_TEST()
54 for (auto i = 0ul; i < results.size(); ++i) { in UNIX_ONLY_TEST()
64 text.size(), in UNIX_ONLY_TEST()
[all...]
/foundation/filemanagement/user_file_service/test/fuzztest/fileaccessservicestub_fuzzer/
H A Dfileaccessservicestub_fuzzer.cpp38 bool OnRemoteRequestFuzzTest(shared_ptr<FileAccessServiceStub> fileAccessServiceStub, const uint8_t *data, size_t size) in OnRemoteRequestFuzzTest() argument
40 if (data == nullptr || size < sizeof(uint32_t)) { in OnRemoteRequestFuzzTest()
54 ErrCode CmdOnChangeFuzzTest(shared_ptr<FileAccessServiceStub> fileAccessServiceStub, const uint8_t *data, size_t size) in CmdOnChangeFuzzTest() argument
56 if (data == nullptr || size < sizeof(uint32_t)) { in CmdOnChangeFuzzTest()
62 Uri uri(string(reinterpret_cast<const char*>(data + pos), size - pos)); in CmdOnChangeFuzzTest()
74 size_t size) in CmdRegisterNotifyFuzzTest()
76 Uri uri(string(reinterpret_cast<const char*>(data), size)); in CmdRegisterNotifyFuzzTest()
87 size_t size) in CmdUnregisterNotifyFuzzTest()
89 if (data == nullptr || size < sizeof(bool)) { in CmdUnregisterNotifyFuzzTest()
95 Uri uri(string(reinterpret_cast<const char*>(data + pos), size in CmdUnregisterNotifyFuzzTest()
73 CmdRegisterNotifyFuzzTest(shared_ptr<FileAccessServiceStub> fileAccessServiceStub, const uint8_t *data, size_t size) CmdRegisterNotifyFuzzTest() argument
86 CmdUnregisterNotifyFuzzTest(shared_ptr<FileAccessServiceStub> fileAccessServiceStub, const uint8_t *data, size_t size) CmdUnregisterNotifyFuzzTest() argument
106 CmdGetExensionProxyFuzzTest(shared_ptr<FileAccessServiceStub> fileAccessServiceStub, const uint8_t *data, size_t size) CmdGetExensionProxyFuzzTest() argument
122 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/communication/nfc/test/fuzztest/tags_test/nfcsdkcommon/nfcsdkcommon_fuzzer/
H A Dnfcsdkcommon_fuzzer.cpp36 void FuzzIsLittleEndian(const uint8_t* data, size_t size) in FuzzIsLittleEndian() argument
42 void FuzzStringToInt(const uint8_t* data, size_t size) in FuzzStringToInt() argument
45 std::string src = NfcSdkCommon::BytesVecToHexString(data, size); in FuzzStringToInt()
50 void FuzzHexStringToAsciiString(const uint8_t* data, size_t size) in FuzzHexStringToAsciiString() argument
53 std::string src = NfcSdkCommon::BytesVecToHexString(data, size); in FuzzHexStringToAsciiString()
57 void FuzzGetCurrentTime(const uint8_t* data, size_t size) in FuzzGetCurrentTime() argument
63 void FuzzGetRelativeTime(const uint8_t* data, size_t size) in FuzzGetRelativeTime() argument
69 void FuzzCodeMiddlePart(const uint8_t* data, size_t size) in FuzzCodeMiddlePart() argument
72 std::string src = NfcSdkCommon::BytesVecToHexString(data, size); in FuzzCodeMiddlePart()
78 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
[all...]
/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/
H A Dsvcrestoredepsmanager_fuzzer.cpp33 void GetInfo(const uint8_t *data, size_t size, vector<BJsonEntityCaps::BundleInfo> &info) in GetInfo() argument
35 size_t base = size; in GetInfo()
36 if (size >= U32_AT_SIZE) { in GetInfo()
37 base = (size + 1) / REDUNDENT_SIZE; in GetInfo()
40 for (size_t i = 0; i < size; i++) { in GetInfo()
42 int len = size / SPLITE_SIZE; in GetInfo()
60 if (size >= sizeof(bool)) { in GetInfo()
64 if (size >= sizeof(int64_t)) { in GetInfo()
68 if (size >= sizeof(int64_t)) { in GetInfo()
75 bool SvcRestoreDepsManagerFuzzTest(const uint8_t *data, size_t size) in SvcRestoreDepsManagerFuzzTest() argument
112 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/ltp/libs/libltpipc/
H A Dlibmsgctl.c32 int i, size; in doreader() local
52 size = msgrcv(id, &buffer, 100, type, 0); in doreader()
53 if (size < 0) { in doreader()
67 if (buffer.data.len + 1 != size) { in doreader()
71 buffer.data.len + 1, size); in doreader()
75 if (verify(buffer.data.pbytes, (key % 255), size - 1, child)) { in doreader()
88 int i, size; in dowriter() local
110 size = (lrand48() % 99); in dowriter()
111 } while (size == 0); in dowriter()
112 fill_buffer(buffer.data.pbytes, (key % 255), size); in dowriter()
126 fill_buffer(char *buf, char val, int size) fill_buffer() argument
136 verify(char *buf, char val, int size, int child) verify() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DSizedMRUCache.h27 const Value *put(const Key &key, Value &&value, size_t size) in put() argument
29 if (size > mMaximumTotalSize) in put()
37 auto retVal = mStore.Put(key, ValueAndSize(std::move(value), size)); in put()
38 mCurrentSize += size; in put()
58 if (index < mStore.size()) in getAt()
84 mCurrentSize -= existing->second.size; in eraseByKey()
89 size_t entryCount() const { return mStore.size(); } in entryCount()
91 size_t size() const { return mCurrentSize; } in size() function in angle::final
109 mCurrentSize -= iter->second.size; in shrinkToSize()
121 ValueAndSize() : value(), size(
132 size_t size; global() member
[all...]
/third_party/python/Lib/turtledemo/
H A Dfractalcurves.py22 def hilbert(self, size, level, parity):
27 self.hilbert(size, level - 1, -parity)
29 self.forward(size)
31 self.hilbert(size, level - 1, parity)
33 self.forward(size)
34 self.hilbert(size, level - 1, parity)
37 self.forward(size)
38 self.hilbert(size, level - 1, -parity)
87 size = 6
88 ft.setpos(-33*size,
[all...]
/third_party/skia/gm/
H A Dshallowgradient.cpp24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() argument
25 SkPoint pts[] = { { 0, 0 }, { size.width(), size.height() } }; in shader_linear()
29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() argument
30 SkPoint center = { size.width()/2, size.height()/2 }; in shader_radial()
31 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, in shader_radial()
35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() argument
36 SkPoint center = { size.width()/2, size in shader_conical()
41 shader_sweep(const SkColor colors[], int count, const SkSize& size) shader_sweep() argument
66 SkSize size = SkSize::Make(r.width(), r.height()); global() variable
[all...]
/foundation/ability/dmsfwk/test/fuzztest/dschedsoftbussession_fuzzer/
H A Ddschedsoftbussession_fuzzer.cpp40 int32_t Get32Data(const uint8_t* ptr, size_t size) in Get32Data() argument
42 if (size > FOO_MAX_LEN || size < U32_AT_SIZE) { in Get32Data()
45 char *ch = static_cast<char*>(malloc(size + 1)); in Get32Data()
49 (void)memset_s(ch, size + 1, 0x00, size + 1); in Get32Data()
50 if (memcpy_s(ch, size + 1, ptr, size) != EOK) { in Get32Data()
61 void FuzzOnBytesReceived(const uint8_t* data, size_t size) in FuzzOnBytesReceived() argument
63 if ((data == nullptr) || (size < U32_AT_SIZ in FuzzOnBytesReceived()
83 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/ability/ability_base/test/fuzztest/wantfirst_fuzzer/
H A Dwantfirst_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
45 std::string entity(data, size); in DoSomethingInterestingWithMyAPI()
49 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
51 std::string deviceId(data, size); in DoSomethingInterestingWithMyAPI()
53 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI()
62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
70 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
71 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
75 char* ch = reinterpret_cast<char *>(malloc(size in LLVMFuzzerTestOneInput()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dlinear_vector.h21 #include "base/geometry/size.h"
36 LinearVector longLinearVector = linearVector.size() > this->size() ? linearVector : *this; in operator +()
37 const LinearVector* shortLinearVector = linearVector.size() <= this->size() ? &linearVector : this; in operator +()
38 for (size_t i = 0; i < shortLinearVector->size(); ++i) { in operator +()
46 LinearVector longLinearVector = linearVector.size() > this->size() ? linearVector : *this; in operator -()
47 const LinearVector* shortLinearVector = linearVector.size() <= this->size() in operator -()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/overlaymgrhostimpl_fuzzer/
H A Doverlaymgrhostimpl_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
36 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI()
39 std::string targetModuleName(data, size); in DoSomethingInterestingWithMyAPI()
42 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI()
54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
61 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
65 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
66 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
70 char* ch = static_cast<char*>(malloc(size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixmanagerhostipml_fuzzer/
H A Dquickfixmanagerhostipml_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
45 std::string targetPath(data, size); in DoSomethingInterestingWithMyAPI()
47 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
50 std::string fileName(data, size); in DoSomethingInterestingWithMyAPI()
52 std::string path(data, size); in DoSomethingInterestingWithMyAPI()
63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
70 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
71 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
75 char* ch = (char*)malloc(size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleoverlaymgr_fuzzer/
H A Dbundleoverlaymgr_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
32 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
38 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI()
41 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI()
44 std::string targetModuleName(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
64 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
68 char* ch = static_cast<char*>(malloc(size in LLVMFuzzerTestOneInput()
[all...]

Completed in 13 milliseconds

1...<<21222324252627282930>>...1252