Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp36 uint16_t buf[] = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; in TEST() local
53 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; in TEST() local
70 uint16_t buf[] = {'s', 'u', 'g', 'a', 'r', '-', 'f', 'r', 'e', 'e'}; in TEST() local
81 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ in TEST() local
96 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU in TEST() local
108 uint16_t buf[] = { in TEST() local
137 uint16_t buf[] = { in TEST() local
156 uint16_t buf[] = { in TEST() local
209 uint16_t buf[BUF_SIZE]; in TEST() local
234 uint16_t buf[BUF_SIZE]; in TEST() local
[all …]
DLayoutUtilsTest.cpp27 uint16_t buf[BUF_SIZE]; in ExpectNextWordBreakForCache() local
38 uint16_t buf[BUF_SIZE]; in ExpectPrevWordBreakForCache() local
/frameworks/base/core/java/android/net/util/
DIpUtils.java46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { in checksum()
83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4()
93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv6()
101 private static byte ipversion(ByteBuffer buf, int headerOffset) { in ipversion()
105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum()
110 private static short transportChecksum(ByteBuffer buf, int protocol, in transportChecksum()
132 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { in udpChecksum()
137 public static short tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, in tcpChecksum()
/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp220 ANativeWindowBuffer* buf; in TEST_F() local
230 ANativeWindowBuffer* buf; in TEST_F() local
242 ANativeWindowBuffer* buf; in TEST_F() local
254 ANativeWindowBuffer* buf; in TEST_F() local
266 ANativeWindowBuffer* buf; in TEST_F() local
285 ANativeWindowBuffer* buf; in TEST_F() local
304 ANativeWindowBuffer* buf; in TEST_F() local
314 ANativeWindowBuffer* buf[2]; in TEST_F() local
335 ANativeWindowBuffer* buf[2]; in TEST_F() local
362 android_native_buffer_t* buf[3]; in TEST_F() local
[all …]
DFillBuffer.cpp25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { in fillYV12Buffer()
54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, in fillYV12BufferRect()
78 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride) { in fillRGBA8Buffer()
98 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in produceOneRGBA8Frame() local
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp56 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
66 unsigned char buf[2] = { 0xee, 0xee }; in TEST_F() local
78 unsigned char buf[6] = { 0xee, 0xee, 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
90 unsigned char buf[3] = { 0xee, 0xee, 0xee }; in TEST_F() local
104 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
115 unsigned char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
127 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
140 char buf[MAX_VALUE_SIZE+1]; in TEST_F() local
163 char buf[bufSize]; in TEST_F() local
177 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
[all …]
DFileBlobCache.cpp34 static uint32_t crc32c(const uint8_t* buf, size_t len) { in crc32c()
82 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(nullptr, fileSize, in FileBlobCache() local
149 uint8_t* buf = new uint8_t [fileSize]; in writeToFile() local
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp85 int WebmElement::serializePayloadSize(uint8_t *buf) { in serializePayloadSize()
89 uint64_t WebmElement::serializeInto(uint8_t *buf) { in serializeInto()
101 uint8_t buf[8]; in totalSize() local
108 uint8_t *buf = new uint8_t[size]; in serialize() local
114 uint8_t buf[8]; in write() local
141 void WebmUnsigned::serializePayload(uint8_t *buf) { in serializePayload()
155 void WebmFloat::serializePayload(uint8_t *buf) { in serializePayload()
175 void WebmBinary::serializePayload(uint8_t *buf) { in serializePayload()
185 void WebmString::serializePayload(uint8_t *buf) { in serializePayload()
206 void WebmSimpleBlock::serializePayload(uint8_t *buf) { in serializePayload()
[all …]
/frameworks/base/libs/androidfw/
DZipUtils.cpp43 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
74 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
89 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
109 bool Append(uint8_t* buf, size_t bufSize) override { in Append()
125 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer()
133 /*static*/ bool ZipUtils::inflateToBuffer(int fd, void* buf, in inflateToBuffer()
141 /*static*/ bool ZipUtils::inflateToBuffer(const void* in, void* buf, in inflateToBuffer()
149 static inline unsigned long get4LE(const unsigned char* buf) { in get4LE()
227 unsigned char buf[8]; in examineGzip() local
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp120 char buf[TEST_PACKET_SIZE + 1]; in TYPED_TEST() local
129 char buf[size + 1]; in TYPED_TEST() local
142 char buf[TEST_PACKET_SIZE + 1]; in TYPED_TEST() local
152 char buf[size + 1]; in TYPED_TEST() local
168 char buf[size + 1]; in TYPED_TEST() local
185 char buf[size + 1]; in TYPED_TEST() local
206 char buf[size + 1]; in TYPED_TEST() local
227 char buf[size + 1]; in TYPED_TEST() local
261 char buf[size + sizeof(mtp_data_header) + 1]; in TYPED_TEST() local
290 char buf[size + sizeof(mtp_data_header) + 1]; in TYPED_TEST() local
[all …]
DPosixAsyncIO_test.cpp51 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() local
68 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() local
85 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() local
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache_test.cpp67 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
77 unsigned char buf[2] = {0xee, 0xee}; in TEST_P() local
109 unsigned char buf[6] = {0xee, 0xee, 0xee, 0xee, 0xee, 0xee}; in TEST_P() local
121 unsigned char buf[3] = {0xee, 0xee, 0xee}; in TEST_P() local
130 unsigned char buf[3] = {0xee, 0xee, 0xee}; in TEST_P() local
150 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
161 unsigned char buf[MAX_VALUE_SIZE + 1] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
173 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
203 unsigned char buf[MAX_VALUE_SIZE + 1]; in TEST_P() local
226 char buf[bufSize]; in TEST_P() local
[all …]
/frameworks/native/opengl/tests/EGLTest/
Degl_cache_test.cpp48 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
58 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
69 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
98 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
DBCHeaderField.h48 bool Write(uint8_t* buf, size_t buf_len) { in Write()
68 bool Read(const uint8_t* buf, size_t buf_len) { in Read()
89 static size_t GetDataSizeFromSerialized(const uint8_t* buf) { in GetDataSizeFromSerialized()
106 static void WriteFixedSubfield(FixedSubfield value, uint8_t* buf) { in WriteFixedSubfield()
110 static void ReadFixedSubfield(FixedSubfield* value, const uint8_t* buf) { in ReadFixedSubfield()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DResponseData.java43 public abstract void format(ByteArrayOutputStream buf); in format()
45 public static void writeLength(ByteArrayOutputStream buf, int length) { in writeLength()
66 public void format(ByteArrayOutputStream buf) { in format()
105 public void format(ByteArrayOutputStream buf) { in format()
189 public void format(ByteArrayOutputStream buf) { in format()
227 public void format(ByteArrayOutputStream buf) { in format()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache_test.cpp62 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
72 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
83 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
126 unsigned char buf[MAX_VALUE_SIZE]; in TEST_P() local
192 uint8_t buf[10]; in yesStringBlob() local
208 uint8_t buf[10]; in noStringBlob() local
221 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
/frameworks/native/services/surfaceflinger/
DClientCache.cpp53 ClientCacheBuffer& buf = bufItr->second; in getBuffer() local
110 ClientCacheBuffer* buf = nullptr; in erase() local
134 ClientCacheBuffer* buf = nullptr; in get() local
147 ClientCacheBuffer* buf = nullptr; in registerErasedRecipient() local
160 ClientCacheBuffer* buf = nullptr; in unregisterErasedRecipient() local
/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.h104 static bool checkStartOfFrame(uint8_t* buf) { in checkStartOfFrame()
109 static bool checkJpegStart(uint8_t* buf) { in checkJpegStart()
114 static bool checkJpegEnd(uint8_t *buf) { in checkJpegEnd()
120 static uint8_t checkJpegMarker(uint8_t *buf) { in checkJpegMarker()
/frameworks/av/media/img_utils/src/
DEndianUtils.cpp48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { in write()
56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { in write()
77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { in write()
/frameworks/base/core/jni/
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
/frameworks/native/libs/ui/
DHdrCapabilities.cpp44 int32_t* const buf = static_cast<int32_t*>(buffer); in flatten() local
66 int32_t const * const buf = static_cast<int32_t const *>(buffer); in unflatten() local
/frameworks/base/tools/aapt/
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
/frameworks/base/libs/protoutil/src/
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()
/frameworks/minikin/libs/minikin/
DMeasurement.cpp29 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, in getRunAdvance()
69 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getRunAdvance()
82 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DSparseInputStream.java71 ByteBuffer buf = readBuffer(in, CHUNK_HDR_SIZE); in readChunk() local
91 ByteBuffer buf = readBuffer(mIn, FILE_HDR_SIZE); in SparseInputStream() local
139 public int read(byte[] buf) throws IOException { in read()

12345678910>>...17