| /third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/ |
| H A D | CalculateCRC32.java | 54 public static int computeCRC32(String buffer) { in computeCRC32() argument 55 return computeCRC32(buffer, 0xFFFFFFFF); in computeCRC32() 58 public static int computeCRC32(byte buffer[]) { in computeCRC32() argument 59 return computeCRC32(buffer, 0xFFFFFFFF); in computeCRC32() 62 public static int computeCRC32(String buffer, int crc){ in computeCRC32() argument 63 return computeCRC32(buffer.getBytes(), crc); in computeCRC32() 66 public static int computeCRC32(byte buffer[], int crc) { in computeCRC32() argument 67 return computeCRC32(buffer, 0, buffer.length, crc); in computeCRC32() 70 public static int computeCRC32(byte buffer[], in argument [all...] |
| /third_party/skia/third_party/externals/harfbuzz/util/ |
| H A D | shape-consumer.hh | 48 buffer = hb_buffer_create (); in init() 50 output.init (buffer, app); in init() 66 populate_buffer (buffer, text, text_len, app.text_before, app.text_after); in consume_line() 68 output.consume_text (buffer, text, text_len, utf8_clusters); in consume_line() 69 if (!shape (app.font, buffer, &error)) in consume_line() 73 if (hb_buffer_get_content_type (buffer) == HB_BUFFER_CONTENT_TYPE_GLYPHS) in consume_line() 80 output.consume_glyphs (buffer, text, text_len, utf8_clusters); in consume_line() 86 output.finish (buffer, app); in finish() 87 hb_buffer_destroy (buffer); in finish() 88 buffer in finish() 97 hb_buffer_t *buffer = nullptr; global() member [all...] |
| /third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
| H A D | memory_output_stream.cc | 27 void MemoryOutputStream::Write(std::vector<uint8_t>* buffer) { in Write() argument 28 store_.insert(store_.end(), buffer->begin(), buffer->end()); in Write() 31 void MemoryOutputStream::Write(std::vector<uint8_t>* buffer, in Write() argument 34 assert(buffer); in Write() 37 buffer->begin() + offset, in Write() 38 buffer->begin() + offset + length); in Write() 46 void MemoryOutputStream::Write(uint8_t* buffer, int32_t offset, int32_t length) { in Write() argument 47 assert(buffer); in Write() 49 store_.insert(store_.end(), buffer in Write() [all...] |
| /foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
| H A D | paste_data.cpp | 433 bool PasteData::Encode(std::vector<std::uint8_t> &buffer) in Encode() argument 435 Init(buffer); in Encode() 437 bool ret = Write(buffer, TAG_PROPS, props_); in Encode() 438 ret = Write(buffer, TAG_RECORDS, records_) && ret; in Encode() 439 ret = Write(buffer, TAG_DRAGGED_DATA_FLAG, isDraggedData_) && ret; in Encode() 440 ret = Write(buffer, TAG_LOCAL_PASTE_FLAG, isLocalPaste_) && ret; in Encode() 441 ret = Write(buffer, TAG_DELAY_DATA_FLAG, isDelayData_) && ret; in Encode() 442 ret = Write(buffer, TAG_DEVICE_ID, deviceId_) && ret; in Encode() 443 ret = Write(buffer, TAG_PASTE_ID, pasteId_) && ret; in Encode() 444 ret = Write(buffer, TAG_DELAY_RECORD_FLA in Encode() 491 Decode(const std::vector<std::uint8_t> &buffer) Decode() argument 645 Encode(std::vector<std::uint8_t> &buffer) Encode() argument 661 Decode(const std::vector<std::uint8_t> &buffer) Decode() argument 671 DecodeTag(const std::vector<std::uint8_t> &buffer) DecodeTag() argument [all...] |
| /test/xts/hats/hdf/camera/cameraHdi/buffer_manager/ |
| H A D | buffer_manager_utest.cpp | 66 OHOS::SurfaceBuffer* buffer = consumer->AcquireBuffer(); in HWTEST_F() 67 if (buffer != nullptr) { in HWTEST_F() 68 consumer->ReleaseBuffer(buffer); in HWTEST_F() 69 std::cout << "receive a buffer ..." << std::endl; in HWTEST_F() 87 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() 88 consumer->AcquireBuffer(buffer, flushFence, timestamp, damage); in HWTEST_F() 89 if (buffer != nullptr) { in HWTEST_F() 90 SurfaceError ret = consumer->ReleaseBuffer(buffer, -1); in HWTEST_F() 92 std::cout << "receive a buffer ..." << std::endl; in HWTEST_F() 161 std::shared_ptr<IBuffer> buffer; in HWTEST_F() local 228 auto buffer = bufferPool->AcquireBuffer(); HWTEST_F() local 282 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(); HWTEST_F() local 573 std::shared_ptr<IBuffer> buffer = nullptr; EnqueueBufferNonBlock() local 594 DequeueBuffer(std::shared_ptr<IBuffer>& buffer) DequeueBuffer() argument 730 DeliverBuffer(std::shared_ptr<IBuffer>& buffer) DeliverBuffer() argument 783 Deliver(std::shared_ptr<IBuffer>& buffer) Deliver() argument 792 Receive(std::shared_ptr<IBuffer>& buffer) Receive() argument 805 Process(std::shared_ptr<IBuffer>& buffer) Process() argument 818 Deliver(std::shared_ptr<IBuffer>& buffer) Deliver() argument 827 Process(std::shared_ptr<IBuffer>& buffer) Process() argument [all...] |
| /foundation/graphic/graphic_surface/surface/test/fuzztest/nativebuffer_fuzzer/ |
| H A D | nativebuffer_fuzzer.cpp | 47 OH_NativeBuffer* buffer = OH_NativeBuffer_Alloc(&config); in DoSomethingInterestingWithMyAPI() local 48 CreateNativeWindowBufferFromNativeBuffer(buffer); in DoSomethingInterestingWithMyAPI() 49 OH_NativeBuffer_GetSeqNum(buffer); in DoSomethingInterestingWithMyAPI() 50 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in DoSomethingInterestingWithMyAPI() 51 OH_NativeBuffer_Reference(buffer); in DoSomethingInterestingWithMyAPI() 52 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI() 53 OH_NativeBuffer_Map(buffer, &virAddr); in DoSomethingInterestingWithMyAPI() 54 OH_NativeBuffer_Unmap(buffer); in DoSomethingInterestingWithMyAPI() 55 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI() 56 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI() [all...] |
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/ |
| H A D | WireWGPUDevicePropertiesTests.cpp | 32 std::vector<char> buffer; in TEST_F() local 33 buffer.resize(sentWGPUDevicePropertiesSize); in TEST_F() 34 dawn_wire::SerializeWGPUDeviceProperties(&sentWGPUDeviceProperties, buffer.data()); in TEST_F() 38 buffer.data(), buffer.size())); in TEST_F() 44 // Test that deserialization if the buffer is just one byte too small fails. 50 std::vector<char> buffer; in TEST_F() local 51 buffer.resize(sentWGPUDevicePropertiesSize); in TEST_F() 52 dawn_wire::SerializeWGPUDeviceProperties(&sentWGPUDeviceProperties, buffer.data()); in TEST_F() 56 buffer in TEST_F() [all...] |
| /third_party/skia/third_party/externals/libwebp/src/dec/ |
| H A D | buffer_dec.c | 41 static VP8StatusCode CheckDecBuffer(const WebPDecBuffer* const buffer) { in CheckDecBuffer() argument 43 const WEBP_CSP_MODE mode = buffer->colorspace; in CheckDecBuffer() 44 const int width = buffer->width; in CheckDecBuffer() 45 const int height = buffer->height; in CheckDecBuffer() 49 const WebPYUVABuffer* const buf = &buffer->u.YUVA; in CheckDecBuffer() 75 const WebPRGBABuffer* const buf = &buffer->u.RGBA; in CheckDecBuffer() 87 static VP8StatusCode AllocateBuffer(WebPDecBuffer* const buffer) { in AllocateBuffer() argument 88 const int w = buffer->width; in AllocateBuffer() 89 const int h = buffer->height; in AllocateBuffer() 90 const WEBP_CSP_MODE mode = buffer in AllocateBuffer() 152 WebPFlipBuffer(WebPDecBuffer* const buffer) WebPFlipBuffer() argument 177 WebPAllocateDecBuffer(int width, int height, const WebPDecoderOptions* const options, WebPDecBuffer* const buffer) WebPAllocateDecBuffer() argument 229 WebPInitDecBufferInternal(WebPDecBuffer* buffer, int version) WebPInitDecBufferInternal() argument 238 WebPFreeDecBuffer(WebPDecBuffer* buffer) WebPFreeDecBuffer() argument [all...] |
| /foundation/multimedia/av_codec/services/media_engine/filters/ |
| H A D | surface_decoder_adapter.cpp | 53 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
56 surfaceDecoderAdapter->OnInputBufferAvailable(index, buffer);
62 void OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
65 MEDIA_LOG_D("OnOutputBuffer flag " PUBLIC_LOG_D32, buffer->flag_);
66 surfaceDecoderAdapter->OnOutputBufferAvailable(index, buffer);
67 if (buffer->flag_ == 1) {
294 void SurfaceDecoderAdapter::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer)
in OnInputBufferAvailable() argument 296 FALSE_RETURN_MSG(buffer != nullptr && buffer->meta_ != nullptr, "meta_ is nullptr.");
in OnInputBufferAvailable() 298 ", flag: %{public}u", index, buffer in OnInputBufferAvailable() 323 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument [all...] |
| /third_party/skia/third_party/externals/libpng/contrib/examples/ |
| H A D | simpleover.c | 52 png_uint_16p buffer; member 104 png_imagep image, const png_uint_16 *buffer) in sprite_op() 133 const png_uint_16 *in_pixel = buffer + (y * image->width + x)*4; in sprite_op() 141 png_uint_16 *out_pixel = sprite->buffer + in sprite_op() 190 /* Read the arguments and create this sprite. The sprite buffer has already in create_sprite() 192 * composes them onto the sprite buffer (the code in the function above) in create_sprite() 219 png_uint_16p buffer; in create_sprite() local 223 buffer = malloc(PNG_IMAGE_SIZE(image)); in create_sprite() 225 if (buffer != NULL) in create_sprite() 227 if (png_image_finish_read(&image, NULL/*background*/, buffer, in create_sprite() 103 sprite_op(const struct sprite *sprite, int x_offset, int y_offset, png_imagep image, const png_uint_16 *buffer) sprite_op() argument 550 png_bytep buffer; main() local [all...] |
| /third_party/skia/third_party/externals/harfbuzz/src/ |
| H A D | hb-ot-shape-complex-thai.cc | 222 hb_buffer_t *buffer, in do_thai_pua_shaping() 233 hb_glyph_info_t *info = buffer->info; in do_thai_pua_shaping() 234 unsigned int count = buffer->len; in do_thai_pua_shaping() 255 buffer->unsafe_to_break (base, i); in do_thai_pua_shaping() 266 hb_buffer_t *buffer, in preprocess_text_thai() 324 buffer->clear_output (); in preprocess_text_thai() 325 unsigned int count = buffer->len; in preprocess_text_thai() 326 for (buffer->idx = 0; buffer->idx < count /* No need for: && buffer in preprocess_text_thai() 221 do_thai_pua_shaping(const hb_ot_shape_plan_t *plan HB_UNUSED, hb_buffer_t *buffer, hb_font_t *font) do_thai_pua_shaping() argument 265 preprocess_text_thai(const hb_ot_shape_plan_t *plan, hb_buffer_t *buffer, hb_font_t *font) preprocess_text_thai() argument [all...] |
| /third_party/mesa3d/src/gallium/auxiliary/pipebuffer/ |
| H A D | pb_bufmgr_cache.c | 49 * Wrapper around a pipe buffer which adds delayed destruction. 54 struct pb_buffer *buffer; member 89 /* the buffer won't be added if mgr is NULL */ in pb_cache_manager_remove_buffer() 94 * Actually destroy the buffer. 102 pb_reference(&buf->buffer, NULL); in _pb_cache_buffer_destroy() 114 pb_reference(&buf->buffer, NULL); in pb_cache_buffer_destroy() 128 return pb_map(buf->buffer, flags, flush_ctx); in pb_cache_buffer_map() 136 pb_unmap(buf->buffer); in pb_cache_buffer_unmap() 146 return pb_validate(buf->buffer, vl, flags); in pb_cache_buffer_validate() 155 pb_fence(buf->buffer, fenc in pb_cache_buffer_fence() [all...] |
| /third_party/pcre2/pcre2/src/ |
| H A D | pcre2_fuzzsupport.c | 215 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local 216 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput() 217 printf("Match failed: error %d: %s\n", errorcode, buffer); in LLVMFuzzerTestOneInput() 252 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local 253 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput() 254 printf("Match failed: error %d: %s\n", errorcode, buffer); in LLVMFuzzerTestOneInput() 269 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local 270 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput() 272 printf("Error %d at offset %lu: %s\n", errorcode, erroroffset, buffer); in LLVMFuzzerTestOneInput() 274 if (strstr((const char *)buffer, "interna in LLVMFuzzerTestOneInput() 305 unsigned char *buffer; main() local [all...] |
| /foundation/communication/ipc/ipc/test/serializer/ |
| H A D | utils_serializer_test.cpp | 128 uint8_t buffer[BUFFER_SIZE] = {0}; in HWTEST_F() local 146 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F() 149 ret = write(fd[1], buffer, io.bufferCur - io.bufferBase); in HWTEST_F() 158 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F() 161 ret = read(fd[0], buffer, BUFFER_SIZE); in HWTEST_F() 225 uint8_t buffer[BUFFER_SIZE] = {0}; in HWTEST_F() local 241 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F() 244 ret = write(fd[1], buffer, io.bufferCur - io.bufferBase); in HWTEST_F() 252 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F() 254 ret = read(fd[0], buffer, BUFFER_SIZ in HWTEST_F() 267 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 318 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 373 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 420 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 470 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 520 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 569 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 624 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 679 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 733 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 789 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 841 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 887 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 931 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 969 uint8_t buffer[SMALL_BUFFER_SIZE] = { 0 }; HWTEST_F() local 1003 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 1043 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 1084 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local 1135 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1151 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1168 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1184 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1201 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1217 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1234 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1251 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1268 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1285 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1302 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1319 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1336 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1353 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1370 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local 1387 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local [all...] |
| /base/tee/tee_client/services/authentication/ |
| H A D | tee_get_native_cert.c | 24 static int SetPathToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, const char *path) in SetPathToBuf() argument 34 tloge("buffer overflow for pathLen\n"); in SetPathToBuf() 38 ret = memcpy_s(buffer, *inputLen, &pathLen, sizeof(pathLen)); in SetPathToBuf() 44 buffer += sizeof(pathLen); in SetPathToBuf() 50 tloge("buffer overflow for path\n"); in SetPathToBuf() 54 ret = memcpy_s(buffer, *inputLen, path, num); in SetPathToBuf() 66 static int SetUidToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) in SetUidToBuf() argument 74 tloge("buffer overflow for pubkeyLen\n"); in SetUidToBuf() 78 ret = memcpy_s(buffer, *inputLen, &pubkeyLen, sizeof(pubkeyLen)); in SetUidToBuf() 84 buffer in SetUidToBuf() 105 SetUserInfoToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) SetUserInfoToBuf() argument 117 TeeGetNativeCert(int caPid, unsigned int caUid, uint32_t *len, uint8_t *buffer) TeeGetNativeCert() argument [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-icu-transcode.js | 8 const buffer = require('buffer'); 22 const dest = buffer.transcode(orig, 'utf8', test); 29 const dest = buffer.transcode(Buffer.from(tests.ucs2), 'ucs2', 'utf8'); 36 const utf8_to_ucs2 = buffer.transcode(utf8, 'utf8', 'ucs2'); 37 const ucs2_to_utf8 = buffer.transcode(ucs2, 'ucs2', 'utf8'); 45 () => buffer.transcode(null, 'utf8', 'ascii'), 55 () => buffer.transcode(Buffer.from('a'), 'b', 'utf8'), 60 () => buffer.transcode(Buffer.from('a'), 'uf8', 'b'), 65 buffer [all...] |
| /third_party/ltp/testcases/kernel/security/tomoyo/ |
| H A D | tomoyo_accept_test.c | 66 static char buffer[1024]; in test() local 67 memset(buffer, 0, sizeof(buffer)); in test() 68 snprintf(buffer, sizeof(buffer) - 1, "/tmp/file:a=%d:t=%d:c=%d:m=%d", in test() 70 fprintf(exception_fp, "deny_rewrite %s\n", buffer); in test() 74 fprintf(domain_fp, "delete %d %s\n", i, buffer); in test() 78 unlink(buffer); in test() 80 close(open(buffer, O_CREAT, 0644)); in test() 82 fd = open(buffer, flag in test() [all...] |
| /third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/ |
| H A D | SegmentedGrowableMemoryByteArray.java | 47 * chained memory buffer used internally. That initial buffer is 2^(low bits) 48 * in size and each subsequent buffer is roughly double the preceding one. If 53 * @param lowBits the number of bits to use as the initial buffer index 67 byte[] buffer = this.buffer(bufferIndex); in internalPut() 68 buffer[bufferOffset] = b; in internalPut() 77 byte[] buffer = this.buffer(bufferIndex); in internalPut() 78 int copyLength = Math.min(length - copyCount, buffer in internalPut() 148 private byte[] buffer(int index) { buffer() method in SegmentedGrowableMemoryByteArray [all...] |
| /foundation/window/window_manager/utils/src/ |
| H A D | surface_draw.cpp | 46 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, bufferWidth, bufferHeight); in DrawImage() local 47 if (buffer == nullptr || buffer->GetVirAddr() == nullptr) { in DrawImage() 50 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); in DrawImage() 51 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), imagePath)) { in DrawImage() 57 .w = buffer->GetWidth(), in DrawImage() 58 .h = buffer->GetHeight(), in DrawImage() 61 OHOS::SurfaceError ret = layer->FlushBuffer(buffer, -1, flushConfig); in DrawImage() 77 sptr<OHOS::SurfaceBuffer> buffer in DrawImage() local 108 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, bufferWidth, bufferHeight); DrawColor() local 142 sptr<OHOS::SurfaceBuffer> buffer; GetSurfaceBuffer() local 276 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, winWidth, winHeight); DrawImageRect() local 298 DoDrawImageRect(sptr<OHOS::SurfaceBuffer> buffer, const Rect& rect, std::shared_ptr<Media::PixelMap> pixelMap, uint32_t color, bool fillWindow) DoDrawImageRect() argument 388 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, screenWidth, screenHeight); DrawMasking() local [all...] |
| /foundation/distributedhardware/distributed_camera/services/channel/src/ |
| H A D | dcamera_softbus_session.cpp | 107 int32_t DCameraSoftbusSession::OnDataReceived(std::shared_ptr<DataBuffer>& buffer) in OnDataReceived() argument 109 auto recvDataFunc = [this, buffer]() mutable { in OnDataReceived() 110 DealRecvData(buffer); in OnDataReceived() 118 void DCameraSoftbusSession::DealRecvData(std::shared_ptr<DataBuffer>& buffer) in DealRecvData() argument 121 PostData(buffer); in DealRecvData() 124 PackRecvData(buffer); in DealRecvData() 128 void DCameraSoftbusSession::PackRecvData(std::shared_ptr<DataBuffer>& buffer) in PackRecvData() argument 130 if (buffer == nullptr) { in PackRecvData() 131 DHLOGE("Data buffer is null"); in PackRecvData() 135 if (buffer in PackRecvData() 165 AssembleNoFrag(std::shared_ptr<DataBuffer>& buffer, SessionDataHeader& headerPara) AssembleNoFrag() argument 188 AssembleFrag(std::shared_ptr<DataBuffer>& buffer, SessionDataHeader& headerPara) AssembleFrag() argument 278 PostData(std::shared_ptr<DataBuffer>& buffer) PostData() argument 307 SendData(DCameraSessionMode mode, std::shared_ptr<DataBuffer>& buffer) SendData() argument 354 UnPackSendData(std::shared_ptr<DataBuffer>& buffer, DCameraSendFuc memberFunc) UnPackSendData() argument 451 SendBytes(std::shared_ptr<DataBuffer>& buffer) SendBytes() argument 469 SendStream(std::shared_ptr<DataBuffer>& buffer) SendStream() argument [all...] |
| /third_party/FreeBSD/sbin/fsck_msdosfs/ |
| H A D | fat.c | 583 u_char *buffer; in checkdirty() local 593 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty() 594 if (buffer == NULL) { in checkdirty() 604 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty() 614 if (buffer[0] != boot->bpbMedia || buffer[1] != 0xff) in checkdirty() 617 if ((buffer[2] & 0xf8) != 0xf8 || (buffer[3] & 0x3f) != 0x3f) in checkdirty() 620 if (buffer[2] != 0xff || (buffer[ in checkdirty() 647 u_char *buffer; cleardirty() local 809 u_char *buffer, *p; readfat() local [all...] |
| /third_party/protobuf/src/google/protobuf/stubs/ |
| H A D | strutil.cc | 51 // char buffer[32]; 52 // snprintf(buffer, 32, "%.*g\n", FLT_DIG, 1.23e10f); 69 // string manipulation is all in relation to the protocol buffer and C++ 439 // a dest buffer. This should be used for non performance critical 802 // Offset into buffer where FastInt64ToBuffer places the end of string 806 char *FastInt64ToBuffer(int64 i, char* buffer) { 810 char* p = buffer + kFastInt64ToBufferOffset; 844 // Offset into buffer where FastInt32ToBuffer places the end of string 851 char *FastInt32ToBuffer(int32 i, char* buffer) { in FastInt32ToBuffer() argument 855 char* p = buffer in FastInt32ToBuffer() 889 FastHexToBuffer(int i, char* buffer) FastHexToBuffer() argument 902 InternalFastHexToBuffer(uint64 value, char* buffer, int num_byte) InternalFastHexToBuffer() argument 919 FastHex64ToBuffer(uint64 value, char* buffer) FastHex64ToBuffer() argument 923 FastHex32ToBuffer(uint32 value, char* buffer) FastHex32ToBuffer() argument 966 FastUInt32ToBufferLeft(uint32 u, char* buffer) FastUInt32ToBufferLeft() argument 1048 FastInt32ToBufferLeft(int32 i, char* buffer) FastInt32ToBufferLeft() argument 1059 FastUInt64ToBufferLeft(uint64 u64, char* buffer) FastUInt64ToBufferLeft() argument 1101 FastInt64ToBufferLeft(int64 i, char* buffer) FastInt64ToBufferLeft() argument 1120 char buffer[kFastToBufferSize]; SimpleItoa() local 1127 char buffer[kFastToBufferSize]; SimpleItoa() local 1134 char buffer[kFastToBufferSize]; SimpleItoa() local 1141 char buffer[kFastToBufferSize]; SimpleItoa() local 1148 char buffer[kFastToBufferSize]; SimpleItoa() local 1155 char buffer[kFastToBufferSize]; SimpleItoa() local 1203 char buffer[kDoubleToBufferSize]; SimpleDtoa() local 1208 char buffer[kFloatToBufferSize]; SimpleFtoa() local 1218 DelocalizeRadix(char* buffer) DelocalizeRadix() argument 1245 DoubleToBuffer(double value, char* buffer) DoubleToBuffer() argument 1363 FloatToBuffer(float value, char* buffer) FloatToBuffer() argument [all...] |
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
| H A D | single_ver_serialize_manager.h | 34 static int Serialization(uint8_t *buffer, uint32_t length, const Message *inMsg); 36 static int DeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg); 44 static int DataSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg); 45 static int ControlSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg); 47 static int DataDeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg); 48 static int ControlDeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg); 53 static int DataPacketSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg); 62 static int DataPacketDeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg); 69 static int AckPacketSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg); 73 static int AckPacketDeSerialization(const uint8_t *buffer, uint32_ [all...] |
| /third_party/skia/third_party/externals/harfbuzz/test/api/ |
| H A D | test-shape.c | 75 hb_buffer_t *buffer; in test_font() local 80 buffer = hb_buffer_create (); in test_font() 81 hb_buffer_set_direction (buffer, HB_DIRECTION_LTR); in test_font() 82 hb_buffer_add_utf8 (buffer, TesT, 4, 0, 4); in test_font() 84 hb_shape (font, buffer, NULL, 0); in test_font() 86 len = hb_buffer_get_length (buffer); in test_font() 87 glyphs = hb_buffer_get_glyph_infos (buffer, NULL); in test_font() 88 positions = hb_buffer_get_glyph_positions (buffer, NULL); in test_font() 108 hb_buffer_destroy (buffer); in test_font() 146 hb_buffer_t *buffer; in test_shape_clusters() local [all...] |
| /base/telephony/sms_mms/services/sms/gsm/ |
| H A D | gsm_sms_param_decode.cpp | 38 bool GsmSmsParamDecode::DecodeAddressPdu(SmsReadBuffer &buffer, struct AddressNumber *resultNum) in DecodeAddressPdu() argument 50 if (!buffer.ReadByte(oneByte) || oneByte >= BCD_TO_DIGITAL * (MAX_ADDRESS_LEN + 1)) { in DecodeAddressPdu() 62 if (!buffer.PickOneByte(oneByte)) { in DecodeAddressPdu() 69 return DecodeAddressAlphaNum(buffer, resultNum, bcdLen, addrLen); in DecodeAddressPdu() 71 return DecodeAddressInternationalNum(buffer, resultNum, bcdLen); in DecodeAddressPdu() 73 return DecodeAddressDefaultNum(buffer, resultNum, bcdLen); in DecodeAddressPdu() 78 SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen, uint8_t addrLen) in DecodeAddressAlphaNum() 85 if (!buffer.ReadByte(oneByte)) { in DecodeAddressAlphaNum() 93 if (!buffer.ReadByte(oneByte)) { in DecodeAddressAlphaNum() 112 SmsReadBuffer &buffer, struc in DecodeAddressInternationalNum() 77 DecodeAddressAlphaNum( SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen, uint8_t addrLen) DecodeAddressAlphaNum() argument 111 DecodeAddressInternationalNum( SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen) DecodeAddressInternationalNum() argument 139 DecodeAddressDefaultNum(SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen) DecodeAddressDefaultNum() argument 265 DecodeDcsPdu(SmsReadBuffer &buffer, struct SmsDcs *smsDcs) DecodeDcsPdu() argument 412 DecodeTimePdu(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) DecodeTimePdu() argument 448 DecodeTimePduPartData(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) DecodeTimePduPartData() argument 488 DecodeTimePduData(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) DecodeTimePduData() argument [all...] |