Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 227) sorted by relevance

12345678910

/aosp14/system/core/libutils/
H A DSharedBuffer_test.cpp38 android::SharedBuffer* buf = in TEST() local
49 android::SharedBuffer* buf = android::SharedBuffer::alloc(SIZE_MAX / 2); in TEST() local
57 android::SharedBuffer* buf = android::SharedBuffer::alloc(0); in TEST() local
64 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() local
73 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() local
84 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() local
H A DString8.cpp48 SharedBuffer* buf = SharedBuffer::alloc(1); in getEmptyString() local
66 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() local
321 char* buf = lockBuffer(oldLength + n); in appendFormatV() local
334 SharedBuffer* buf; in real_append() local
399 char* buf = lockBuffer(size()); in removeAll() local
424 char* buf = lockBuffer(length); in toLower() local
437 char* buf = s.lockBuffer(len); in setPathName() local
451 const char*const buf = mString; in getPathLeaf() local
476 const char* buf = str; in walkPath() local
565 char* buf = lockBuffer(len+1+newlen); in appendPath() local
[all …]
H A DString16.cpp36 SharedBuffer* buf = SharedBuffer::alloc(size); in alloc() local
52 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t) * (u16len + 1))); in allocFromUTF8() local
75 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc((u16len + 1) * sizeof(char16_t))); in allocFromUTF16() local
191 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize((len + 1) * sizeof(char16_t))); in setTo() local
218 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size)); in append() local
246 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size)); in insert() local
305 SharedBuffer* buf; in edit() local
319 SharedBuffer* buf; in editResize() local
374 SharedBuffer* buf = static_cast<SharedBuffer*>(edit()); in replaceAll() local
/aosp14/system/core/fastboot/fuzzy_fastboot/
H A Dtransport_sniffer.cpp25 std::vector<char> buf(err, err + strlen(err)); in Read() local
32 std::vector<char> buf(cdata, cdata + ret); in Read() local
46 std::vector<char> buf(err, err + strlen(err)); in Write() local
53 std::vector<char> buf(cdata, cdata + len); in Write() local
68 std::vector<char> buf; in Reset() local
91 const auto msg = [&ret, no_print](const std::vector<char>& buf) { in CreateTrace()
174 std::vector<char> buf; in ProcessSerial() local
H A Dmain.cpp261 std::vector<char> buf(4096); in TEST_F() local
623 std::vector<char> buf; in TEST_F() local
647 std::vector<char> buf; in TEST_F() local
753 std::vector<char> buf; in TEST_F() local
782 std::vector<char> buf(size); in TEST_F() local
988 const std::vector<char> buf = { in TEST_F() local
1007 const std::vector<char> buf = { in TEST_F() local
1024 const std::vector<char> buf = { in TEST_F() local
1043 const std::vector<char> buf = { in TEST_F() local
1112 std::vector<char> buf; in TEST_F() local
[all …]
/aosp14/frameworks/base/libs/androidfw/
H A DZipUtils.cpp43 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const override { in ReadAtOffset()
74 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const override { in ReadAtOffset()
89 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const override { in ReadAtOffset()
114 bool Append(uint8_t* buf, size_t bufSize) override { in Append()
130 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer()
138 /*static*/ bool ZipUtils::inflateToBuffer(int fd, void* buf, in inflateToBuffer()
146 /*static*/ bool ZipUtils::inflateToBuffer(incfs::map_ptr<void> in, void* buf, in inflateToBuffer()
154 static inline unsigned long get4LE(const unsigned char* buf) { in get4LE()
232 unsigned char buf[8]; in examineGzip() local
H A DAsset.cpp113 char buf[64]; in getAssetAllocations() local
472 ssize_t _FileAsset::read(void* buf, size_t count) in read()
620 unsigned char* buf; in getIncFsBuffer() local
719 unsigned char* buf = new unsigned char[mLength]; in ensureAlignment() local
822 ssize_t _CompressedAsset::read(void* buf, size_t count) in read()
905 unsigned char* buf = NULL; in getBuffer() local
/aosp14/system/core/libcutils/
H A Dashmem-host.cpp37 static bool ashmem_validate_stat(int fd, struct stat* buf) { in ashmem_validate_stat()
56 struct stat buf; in ashmem_valid() local
90 struct stat buf; in ashmem_get_size_region() local
H A Dpartition_utils.cpp28 static int only_one_char(uint8_t *buf, int len, uint8_t c) in only_one_char()
43 uint8_t buf[4096]; in partition_wiped() local
H A Dfs.cpp134 char buf[BUF_SIZE]; in fs_read_atomic_int() local
165 char buf[BUF_SIZE]; in fs_write_atomic_int() local
210 char* buf = strdup(path); in fs_mkdirs() local
/aosp14/frameworks/base/core/java/android/ddm/
H A DDdmHandle.java33 public static String getString(ByteBuffer buf, int len) { in getString()
44 public static void putString(ByteBuffer buf, String str) { in putString()
/aosp14/system/core/gatekeeperd/
H A DGateKeeperResponse.cpp44 const uint8_t* buf = reinterpret_cast<const uint8_t*>(in->readInplace(length)); in readFromParcel() local
68 uint8_t* buf = reinterpret_cast<uint8_t*>(out->writeInplace(payload_.size())); in writeToParcel() local
/aosp14/system/core/debuggerd/crasher/
H A Dcrasher.cpp85 char buf[128]; in smash_stack() local
98 void* buf[1]; in overflow_stack() local
143 char buf[16]; in abuse_heap() local
237 char buf[1]; in do_action() local
282 char buf[10]; in do_action() local
/aosp14/frameworks/base/core/jni/
H A Dandroid_hardware_SerialPort.cpp172 jbyte* buf = (jbyte *)malloc(length); in android_hardware_SerialPort_read_array() local
195 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); in android_hardware_SerialPort_read_direct() local
211 jbyte* buf = (jbyte *)malloc(length); in android_hardware_SerialPort_write_array() local
229 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); in android_hardware_SerialPort_write_direct() local
/aosp14/system/core/healthd/
H A DBatteryMonitor_v1.cpp230 static int readFromFile(const String8& path, std::string* buf) { in readFromFile()
256 std::string buf; in readPowerSupplyType() local
272 std::string buf; in getBooleanField() local
283 std::string buf; in getIntField() local
343 std::string buf; in updateValues() local
472 std::string buf; in getChargeStatus() local
481 std::string buf; in getProperty() local
H A DBatteryMonitor.cpp286 static int readFromFile(const String8& path, std::string* buf) { in readFromFile()
316 std::string buf; in readPowerSupplyType() local
332 std::string buf; in getBooleanField() local
343 std::string buf; in getIntField() local
418 std::string buf; in updateValues() local
558 std::string buf; in getChargeStatus() local
583 std::string buf; in getChargingPolicy() local
608 std::string buf; in getProperty() local
/aosp14/frameworks/base/tools/aapt/
H A DZipEntry.cpp388 unsigned char buf[kLFHLen]; in read() local
454 unsigned char buf[kLFHLen]; in write() local
522 unsigned char buf[kCDELen]; in read() local
612 unsigned char buf[kCDELen]; in write() local
/aosp14/system/core/libasyncio/
H A DAsyncIO.cpp43 void io_prep(iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read) { in io_prep()
53 void io_prep_pread(struct iocb* iocb, int fd, void* buf, size_t count, long long offset) { in io_prep_pread()
57 void io_prep_pwrite(struct iocb* iocb, int fd, void* buf, size_t count, long long offset) { in io_prep_pwrite()
/aosp14/frameworks/base/libs/protoutil/src/
H A Dprotobuf.cpp46 write_raw_varint(uint8_t* buf, uint64_t val) in write_raw_varint()
61 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) in write_length_delimited_tag_header()
H A DEncodedBuffer.cpp103 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer() local
139 uint8_t* buf = NULL; in writeBuffer() local
218 EncodedBuffer::writeRaw(uint8_t const* buf, size_t size) in writeRaw()
241 uint8_t const* buf; in writeRaw() local
257 uint8_t const* buf; in writeRaw() local
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
H A DSparseInputStream.java71 ByteBuffer buf = readBuffer(in, CHUNK_HDR_SIZE); in readChunk() local
91 ByteBuffer buf = readBuffer(mIn, FILE_HDR_SIZE); in SparseInputStream() local
137 public int read(byte[] buf, int off, int len) throws IOException { in read()
/aosp14/frameworks/base/cmds/incidentd/src/
H A Dproto_util.cpp36 status_t write_header_section(int fd, const uint8_t* buf, size_t bufSize) { in write_header_section()
57 uint8_t buf[20]; in write_section_header() local
/aosp14/system/core/trusty/keymaster/set_attestation_ids/
H A Dset_attestation_ids.cpp40 std::string buf2string(const keymaster::Buffer& buf) { in buf2string()
65 void set_from_prop(keymaster::Buffer* buf, const std::string& prop) { in set_from_prop()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp53 const Typeface* typeface, const uint16_t* buf, in doLayout()
74 const uint16_t* buf, size_t bufSize, minikin::MinikinRect* out) { in getBounds()
86 const Typeface* typeface, const uint16_t* buf, size_t start, in measureText()
99 const Typeface* typeface, const uint16_t* buf, in getFontExtent()
/aosp14/system/core/debuggerd/
H A Dutil.cpp70 char buf[strlen("1970-01-01 00:00:00.123456789+0830") + 1]; in get_timestamp() local
80 char buf[BUFSIZ]; in iterate_tids() local

12345678910