/frameworks/base/cmds/incidentd/src/ |
H A D | protobuf.cpp | 20 write_raw_varint(uint8_t* buf, uint32_t val) argument 22 uint8_t* p = buf; 35 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) argument 37 buf = write_raw_varint(buf, (fieldId << 3) | 2); 38 buf = write_raw_varint(buf, size); 39 return buf;
|
H A D | protobuf.h | 26 uint8_t* write_raw_varint(uint8_t* buf, uint32_t val); 32 uint8_t* write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size);
|
/frameworks/base/core/jni/ |
H A D | android_server_Watchdog.cpp | 32 char buf[64]; local 34 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid); 35 int stackFd = open(buf, O_RDONLY); 38 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1); 39 write(outFd, buf, strlen(buf)); 43 while ((nBytes = read(stackFd, buf, sizeo 56 char buf[128]; local [all...] |
/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);
|
/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/base/services/core/java/com/android/server/connectivity/ |
H A D | KeepalivePacketData.java | 115 ByteBuffer buf = ByteBuffer.allocate(length); 116 buf.order(ByteOrder.BIG_ENDIAN); 117 buf.putShort((short) 0x4500); // IP version and TOS 118 buf.putShort((short) length); 119 buf.putInt(0); // ID, flags, offset 120 buf.put((byte) 64); // TTL 121 buf.put((byte) OsConstants.IPPROTO_UDP); 122 int ipChecksumOffset = buf.position(); 123 buf.putShort((short) 0); // IP checksum 124 buf [all...] |
/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...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/asm/ARMV7/ |
H A D | R4R8First_v7.s | 44 VADD.S32 d4, d0, d1 @ r0 = buf[0] + buf[2]@i0 = buf[1] + buf[3]@ 45 VSUB.S32 d5, d0, d1 @ r1 = buf[0] - buf[2]@i1 = buf[1] - buf[3]@ 46 VSUB.S32 d7, d2, d3 @ r2 = buf[4] - buf[ [all...] |
/frameworks/native/libs/ui/ |
H A D | HdrCapabilities.cpp | 45 int32_t* const buf = static_cast<int32_t*>(buffer); local 46 reinterpret_cast<float&>(buf[0]) = mMaxLuminance; 47 reinterpret_cast<float&>(buf[1]) = mMaxAverageLuminance; 48 reinterpret_cast<float&>(buf[2]) = mMinLuminance; 49 buf[3] = static_cast<int32_t>(mSupportedHdrTypes.size()); 51 buf[4 + i] = mSupportedHdrTypes[i]; 67 int32_t const * const buf = static_cast<int32_t const *>(buffer); local 68 const size_t itemCount = size_t(buf[3]); 75 mMaxLuminance = reinterpret_cast<float const&>(buf[0]); 76 mMaxAverageLuminance = reinterpret_cast<float const&>(buf[ [all...] |
/frameworks/base/services/net/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/base/tools/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/av/media/libstagefright/codecs/aacenc/src/ |
H A D | transform.c | 42 static void Shuffle(int *buf, int num, const unsigned char* bitTab) argument 48 part0 = buf; 49 part1 = buf + num; 73 static void Radix4First(int *buf, int num) argument 80 r0 = buf[0] + buf[2]; 81 r1 = buf[1] + buf[3]; 82 r2 = buf[0] - buf[ 108 Radix8First(int *buf, int num) argument 188 Radix4FFT(int *buf, int num, int bgn, int *twidTab) argument 357 Mdct_Long(int *buf) argument 375 Mdct_Short(int *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/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,
|