/frameworks/base/graphics/java/android/graphics/ |
H A D | TemporaryBuffer.java | 26 char[] buf; 29 buf = sTemp; 33 if (buf == null || buf.length < len) { 34 buf = ArrayUtils.newUnpaddedCharArray(len); 37 return buf;
|
/frameworks/minikin/tests/unittest/ |
H A D | UnicodeUtilsTest.cpp | 25 uint16_t buf[BUF_SIZE]; local 28 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset); 31 EXPECT_EQ(buf[0], 0x000D); 32 EXPECT_EQ(buf[1], 0xD83D); 33 EXPECT_EQ(buf[2], 0xDC31); 34 EXPECT_EQ(buf[3], 'a');
|
/frameworks/base/core/java/android/database/ |
H A D | CharArrayBuffer.java | 27 public CharArrayBuffer(char[] buf) { argument 28 data = buf;
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glDebugMessageInsertKHR.java | 1 // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 8 String buf
|
H A D | glGetProgramInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
H A D | glGetProgramPipelineInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
H A D | glGetShaderInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 16 glGetShaderInfoLog(shader, infoLen, &outLen, buf); 17 jstring result = _env->NewStringUTF(outLen == 0 ? "" : buf); 18 free(buf);
|
H A D | glDebugMessageInsertKHR.cpp | 1 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */ 4 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) { 11 if (!buf) { 14 _exceptionMessage = "buf == null"; 17 _nativebuf = _env->GetStringUTFChars(buf, 0); 18 _length = _env->GetStringUTFLength(buf); 31 _env->ReleaseStringUTFChars(buf, _nativebuf); 3 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument
|
/frameworks/native/opengl/tests/EGLTest/ |
H A D | egl_cache_test.cpp | 48 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 50 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); 51 ASSERT_EQ(0xee, buf[0]); 52 ASSERT_EQ(0xee, buf[1]); 53 ASSERT_EQ(0xee, buf[2]); 54 ASSERT_EQ(0xee, buf[3]); 58 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 61 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); 62 ASSERT_EQ('e', buf[0]); 63 ASSERT_EQ('f', buf[ 69 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 98 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
/frameworks/ml/nn/driver/cache/nnCache/ |
H A D | nnCache_test.cpp | 65 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 67 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); 68 ASSERT_EQ(0xee, buf[0]); 69 ASSERT_EQ(0xee, buf[1]); 70 ASSERT_EQ(0xee, buf[2]); 71 ASSERT_EQ(0xee, buf[3]); 75 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 78 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); 79 ASSERT_EQ('e', buf[0]); 80 ASSERT_EQ('f', buf[ 86 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 129 unsigned char buf[MAX_VALUE_SIZE]; local 198 uint8_t buf[10]; local 214 uint8_t buf[10]; local 228 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
/frameworks/base/libs/protoutil/src/ |
H A D | protobuf.cpp | 46 write_raw_varint(uint8_t* buf, uint64_t val) argument 48 uint8_t* p = buf; 61 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) argument 63 buf = write_raw_varint(buf, (fieldId << FIELD_ID_SHIFT) | WIRE_TYPE_LENGTH_DELIMITED); 64 buf = write_raw_varint(buf, size); 65 return buf;
|
/frameworks/native/opengl/libs/EGL/ |
H A D | BlobCache_test.cpp | 56 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 58 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); 59 ASSERT_EQ('e', buf[0]); 60 ASSERT_EQ('f', buf[1]); 61 ASSERT_EQ('g', buf[2]); 62 ASSERT_EQ('h', buf[3]); 66 unsigned char buf[2] = { 0xee, 0xee }; local 69 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); 70 ASSERT_EQ('c', buf[0]); 71 ASSERT_EQ('d', buf[ 78 unsigned char buf[6] = { 0xee, 0xee, 0xee, 0xee, 0xee, 0xee }; local 90 unsigned char buf[3] = { 0xee, 0xee, 0xee }; local 104 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 115 unsigned char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; local 127 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 140 char buf[MAX_VALUE_SIZE+1]; local 294 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 362 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 379 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 398 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 417 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
H A D | FileBlobCache.cpp | 32 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument 36 r ^= buf[i]; 80 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, local 82 if (buf == MAP_FAILED) { 91 if (memcmp(buf, cacheFileMagic, 4) != 0) { 96 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); 97 if (crc32c(buf + headerSize, cacheSize) != *crc) { 103 int err = unflatten(buf + headerSize, cacheSize); 107 munmap(buf, fileSize); 112 munmap(buf, fileSiz 147 uint8_t* buf = new uint8_t [fileSize]; local [all...] |
/frameworks/native/libs/ui/ |
H A D | HdrCapabilities.cpp | 44 int32_t* const buf = static_cast<int32_t*>(buffer); local 45 reinterpret_cast<float&>(buf[0]) = mMaxLuminance; 46 reinterpret_cast<float&>(buf[1]) = mMaxAverageLuminance; 47 reinterpret_cast<float&>(buf[2]) = mMinLuminance; 48 buf[3] = static_cast<int32_t>(mSupportedHdrTypes.size()); 50 buf[4 + i] = static_cast<int32_t>(mSupportedHdrTypes[i]); 66 int32_t const * const buf = static_cast<int32_t const *>(buffer); local 67 const size_t itemCount = size_t(buf[3]); 74 mMaxLuminance = reinterpret_cast<float const&>(buf[0]); 75 mMaxAverageLuminance = reinterpret_cast<float const&>(buf[ [all...] |
/frameworks/base/core/java/android/net/util/ |
H A D | IpUtils.java | 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { argument 48 final int bufPosition = buf.position(); 52 buf.position(start); 53 ShortBuffer shortBuf = buf.asShortBuffer(); 56 buf.position(bufPosition); 66 short b = buf.get(start); 83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { 85 partial += intAbs(buf.getShort(headerOffset + 12)); 86 partial += intAbs(buf.getShort(headerOffset + 14)); 87 partial += intAbs(buf 82 pseudoChecksumIPv4( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument 92 pseudoChecksumIPv6( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument 101 ipversion(ByteBuffer buf, int headerOffset) argument 105 ipChecksum(ByteBuffer buf, int headerOffset) argument 110 transportChecksum(ByteBuffer buf, int protocol, int ipOffset, int transportOffset, int transportLen) argument 132 udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) argument 137 tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, int transportLen) argument [all...] |
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | IntegralToString.java | 139 char[] buf = new char[bufLen]; 144 buf[--cursor] = DIGITS[radix * q - i]; 149 buf[--cursor] = '-'; 152 return new String(buf, cursor, bufLen - cursor); 209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen]; 217 buf[--cursor] = ONES[r]; 218 buf[--cursor] = TENS[r]; 227 buf[--cursor] = DIGITS[r]; 232 buf[--cursor] = '-'; 236 sb.append(buf, curso 393 intIntoCharArray(char[] buf, int cursor, int n) argument [all...] |
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
H A D | BCHeaderField.h | 48 bool Write(uint8_t* buf, size_t buf_len) { argument 57 WriteFixedSubfield(static_cast<FixedSubfield>(ID_), buf); 59 buf + sizeof(FixedSubfield)); 60 memcpy(buf + kTagLenSize, data_, len_); 63 memset(buf + fields_len, 0, pad_len); 68 bool Read(const uint8_t* buf, size_t buf_len) { argument 71 ReadFixedSubfield(&field, buf); 73 ReadFixedSubfield(&field, buf + sizeof(FixedSubfield)); 76 memcpy(data_, buf + kTagLenSize, len_); 89 static size_t GetDataSizeFromSerialized(const uint8_t* buf) { argument 106 WriteFixedSubfield(FixedSubfield value, uint8_t* buf) argument 110 ReadFixedSubfield(FixedSubfield* value, const uint8_t* buf) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProviderTest.java | 39 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length]; 42 int count = in.read(buf); 43 assertEquals(buf.length, count); 46 assertTrue(Arrays.equals(MemoryFileProvider.TEST_BLOB, buf)); 59 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length]; 60 int count = in.read(buf); 61 assertEquals(buf.length, count); 62 assertTrue(Arrays.equals(MemoryFileProvider.TEST_BLOB, buf)); 72 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length]; 75 int count = in.read(buf); [all...] |
/frameworks/compile/libbcc/lib/ |
H A D | Properties.h | 45 char buf[PROP_VALUE_MAX]; local 46 property_get(str, buf, "0"); 47 return atoi(buf);
|
/frameworks/native/libs/gui/tests/ |
H A D | FillBuffer.h | 26 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride); 29 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, 32 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride);
|
H A D | SurfaceTextureClient_test.cpp | 221 ANativeWindowBuffer* buf; local 222 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 223 EXPECT_EQ(1, buf->width); 224 EXPECT_EQ(1, buf->height); 225 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); 226 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); 231 ANativeWindowBuffer* buf; local 234 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 235 EXPECT_EQ(16, buf->width); 236 EXPECT_EQ(8, buf 243 ANativeWindowBuffer* buf; local 255 ANativeWindowBuffer* buf; local 267 ANativeWindowBuffer* buf; local 286 ANativeWindowBuffer* buf; local 305 ANativeWindowBuffer* buf; local 315 ANativeWindowBuffer* buf[2]; local 336 ANativeWindowBuffer* buf[2]; local 363 android_native_buffer_t* buf[3]; local 387 android_native_buffer_t* buf[3]; local 408 android_native_buffer_t* buf[3]; local 429 android_native_buffer_t* buf[3]; local 453 android_native_buffer_t* buf[3]; local 474 android_native_buffer_t* buf[3]; local 507 android_native_buffer_t* buf; local 555 android_native_buffer_t* buf[3]; local 578 android_native_buffer_t* buf[3]; local 609 android_native_buffer_t* buf[3]; local [all...] |
H A D | FillBuffer.cpp | 25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument 39 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; 41 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; 43 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = 44 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = 45 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = 46 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = 54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, argument 66 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = inside ? 240 : 64; 70 buf[yuvTexOffset [all...] |
/frameworks/base/core/java/android/net/ |
H A D | KeepalivePacketData.java | 107 ByteBuffer buf = ByteBuffer.allocate(length); 108 buf.order(ByteOrder.BIG_ENDIAN); 109 buf.putShort((short) 0x4500); // IP version and TOS 110 buf.putShort((short) length); 111 buf.putInt(0); // ID, flags, offset 112 buf.put((byte) 64); // TTL 113 buf.put((byte) OsConstants.IPPROTO_UDP); 114 int ipChecksumOffset = buf.position(); 115 buf.putShort((short) 0); // IP checksum 116 buf [all...] |
/frameworks/minikin/include/minikin/ |
H A D | Measurement.h | 24 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, 27 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count,
|
/frameworks/av/media/img_utils/src/ |
H A D | EndianUtils.cpp | 48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 50 if((res = mOutput->write(buf, offset, count)) == OK) { 56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument 57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count); 61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \ 62 return writeHelper<_type_>(buf, offset, count); \ 72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument 74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count); 77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument 79 return writeHelper<uint64_t>(reinterpret_cast<const uint64_t*>(buf), offse [all...] |