/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/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) { 15 glGetShaderInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 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/libs/binder/ |
H A D | TextOutput.cpp | 49 char buf[16]; local 50 sprintf(buf, "%d", val); 51 to.print(buf, strlen(buf)); 57 char buf[16]; local 58 sprintf(buf, "%ld", val); 59 to.print(buf, strlen(buf)); 65 char buf[16]; local 66 sprintf(buf, " 73 char buf[16]; local 81 char buf[32]; local 89 char buf[32]; local 97 char buf[64]; local 119 char buf[32]; local 148 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | ByteArrayPool.java | 93 byte[] buf = mBuffersBySize.get(i); 94 if (buf.length >= len) { 95 mCurrentSize -= buf.length; 97 mBuffersByLastUse.remove(buf); 98 return buf; 108 * @param buf the buffer to return to the pool. 110 public synchronized void returnBuf(byte[] buf) { argument 111 if (buf == null || buf.length > mSizeLimit) { 114 mBuffersByLastUse.add(buf); [all...] |
H A D | PoolingByteArrayOutputStream.java | 53 buf = mPool.getBuf(Math.max(size, DEFAULT_SIZE)); 58 mPool.returnBuf(buf); 59 buf = null; 65 mPool.returnBuf(buf); 73 if (count + i <= buf.length) { 77 System.arraycopy(buf, 0, newbuf, 0, count); 78 mPool.returnBuf(buf); 79 buf = newbuf;
|
/frameworks/native/opengl/tests/EGLTest/ |
H A D | egl_cache_test.cpp | 44 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); 47 ASSERT_EQ(0xee, buf[0]); 48 ASSERT_EQ(0xee, buf[1]); 49 ASSERT_EQ(0xee, buf[2]); 50 ASSERT_EQ(0xee, buf[3]); 54 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); 58 ASSERT_EQ('e', buf[0]); 59 ASSERT_EQ('f', buf[ 65 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 97 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/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/compile/libbcc/include/bcc/Support/ |
H A D | Properties.h | 29 char buf[PROPERTY_VALUE_MAX]; local 30 property_get(str, buf, "0"); 31 return atoi(buf);
|
/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/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/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 | 218 ANativeWindowBuffer* buf; local 219 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 220 EXPECT_EQ(1, buf->width); 221 EXPECT_EQ(1, buf->height); 222 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); 223 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); 227 ANativeWindowBuffer* buf; local 230 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 231 EXPECT_EQ(16, buf->width); 232 EXPECT_EQ(8, buf 238 ANativeWindowBuffer* buf; local 249 ANativeWindowBuffer* buf; local 260 ANativeWindowBuffer* buf; local 278 ANativeWindowBuffer* buf; local 296 ANativeWindowBuffer* buf; local 306 ANativeWindowBuffer* buf[2]; local 326 ANativeWindowBuffer* buf[2]; local 352 android_native_buffer_t* buf[3]; local 375 android_native_buffer_t* buf[3]; local 395 android_native_buffer_t* buf[3]; local 415 android_native_buffer_t* buf[3]; local 439 android_native_buffer_t* buf[3]; local 459 android_native_buffer_t* buf[3]; local 490 android_native_buffer_t* buf; local 538 android_native_buffer_t* buf[3]; local 560 android_native_buffer_t* buf[3]; local 590 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/services/core/jni/ |
H A D | com_android_server_am_ActivityManagerService.cpp | 67 char buf[17]; local 68 while (fgets(buf, 16, fg_cpuset_file)) { 71 if (buf[i] == '\n') { 72 buf[i] = 0; 76 if (write(boost_cpuset_fd, buf, i) < 0) { 112 char buf[17]; local 113 char *curBuf = buf; 114 while (fgets(buf, 16, boost_cpuset_file)) { 115 //ALOGE("Appending FD %s to fg", buf); 118 if (buf[ [all...] |
/frameworks/minikin/include/minikin/ |
H A D | Measurement.h | 24 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, size_t offset); 26 size_t getOffsetForAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count,
|