Searched refs:buf (Results 1 - 25 of 275) sorted by relevance

1234567891011

/frameworks/base/core/jni/
H A Dandroid_server_Watchdog.cpp32 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...]
H A DTime.cpp90 char buf[257]; local
91 int n = strftime_tz(buf, 257, format, &(this->t), locale);
93 return String8(buf);
114 Time::format2445(short* buf, bool hasTime) const argument
119 buf[0] = next_char(&n, 1000);
120 buf[1] = next_char(&n, 100);
121 buf[2] = next_char(&n, 10);
122 buf[3] = tochar(n);
125 buf[4] = next_char(&n, 10);
126 buf[
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java26 char[] buf;
29 buf = sTemp;
33 if (buf == null || buf.length < len) {
34 buf = new char[ArrayUtils.idealCharArraySize(len)];
37 return buf;
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp44 char 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 char 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 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
97 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
[all...]
/frameworks/base/core/java/android/database/
H A DCharArrayBuffer.java27 public CharArrayBuffer(char[] buf) { argument
28 data = buf;
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetProgramInfoLog.cpp10 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 DglGetShaderInfoLog.cpp10 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);
/frameworks/native/libs/binder/
H A DTextOutput.cpp49 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[16]; local
148 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DByteArrayPool.java93 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 DPoolingByteArrayOutputStream.java53 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/av/media/libstagefright/codecs/aacenc/src/asm/ARMV7/
H A DR4R8First_v7.s44 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 DProperties.h29 char buf[PROPERTY_VALUE_MAX]; local
30 property_get(str, buf, "0");
31 return atoi(buf);
/frameworks/rs/cpu_ref/linkloader/lib/
H A DMemChunk.cpp47 MemChunk::MemChunk() : buf(NULL), buf_size(0), bVendorBuf(true) {
52 (*VendorFree)(buf);
56 munmap(buf, buf_size);
61 return (buf == 0 || buf == (unsigned char *)MAP_FAILED);
69 buf = (unsigned char*)(*VendorAlloc)(size, 0);
74 buf = (unsigned char *)mmap((void *)StartAddr, size,
79 buf = (unsigned char *)mmap(0, size,
100 dump_hex(buf, buf_size, 0, buf_size);
106 int ret = mprotect((void *)buf, buf_siz
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp216 ANativeWindowBuffer* buf; local
217 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
218 EXPECT_EQ(1, buf->width);
219 EXPECT_EQ(1, buf->height);
220 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format);
221 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
225 ANativeWindowBuffer* buf; local
227 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
228 EXPECT_EQ(16, buf->width);
229 EXPECT_EQ(8, buf
235 ANativeWindowBuffer* buf; local
245 ANativeWindowBuffer* buf; local
255 ANativeWindowBuffer* buf; local
271 ANativeWindowBuffer* buf; local
288 ANativeWindowBuffer* buf; local
298 ANativeWindowBuffer* buf[2]; local
318 ANativeWindowBuffer* buf[2]; local
343 android_native_buffer_t* buf[3]; local
366 android_native_buffer_t* buf[3]; local
386 android_native_buffer_t* buf[3]; local
406 android_native_buffer_t* buf[3]; local
430 android_native_buffer_t* buf[3]; local
450 android_native_buffer_t* buf[3]; local
480 android_native_buffer_t* buf; local
528 android_native_buffer_t* buf[3]; local
550 android_native_buffer_t* buf[3]; local
580 android_native_buffer_t* buf[3]; local
611 android_native_buffer_t* buf[3]; local
[all...]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DIntegralToString.java139 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 DBCHeaderField.h48 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 Dtransform.c42 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 DMemoryFileProviderTest.java39 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/base/core/java/android/net/dhcp/
H A DDhcpPacket.java251 InetAddress srcIp, short destUdp, short srcUdp, ByteBuffer buf,
262 buf.clear();
263 buf.order(ByteOrder.BIG_ENDIAN);
270 buf.put(IP_VERSION_HEADER_LEN);
271 buf.put(IP_TOS_LOWDELAY); // tos: IPTOS_LOWDELAY
272 ipLengthOffset = buf.position();
273 buf.putShort((short)0); // length
274 buf.putShort((short)0); // id
275 buf.putShort(IP_FLAGS_OFFSET); // ip offset: don't fragment
276 buf
250 fillInPacket(int encap, InetAddress destIp, InetAddress srcIp, short destUdp, short srcUdp, ByteBuffer buf, byte requestCode, boolean broadcast) argument
376 checksum(ByteBuffer buf, int seed, int start, int end) argument
418 addTlv(ByteBuffer buf, byte type, byte value) argument
427 addTlv(ByteBuffer buf, byte type, byte[] payload) argument
438 addTlv(ByteBuffer buf, byte type, InetAddress addr) argument
447 addTlv(ByteBuffer buf, byte type, List<InetAddress> addrs) argument
461 addTlv(ByteBuffer buf, byte type, Integer value) argument
472 addTlv(ByteBuffer buf, byte type, String str) argument
486 addTlvEnd(ByteBuffer buf) argument
540 readAsciiString(ByteBuffer buf, int byteCount) argument
[all...]
/frameworks/base/include/androidfw/
H A DZipUtils.h36 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
38 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
H A DObbFile.h106 static inline uint32_t get4LE(const unsigned char* buf) { argument
107 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
110 static inline void put4LE(unsigned char* buf, uint32_t val) { argument
111 buf[0] = val & 0xFF;
112 buf[1] = (val >> 8) & 0xFF;
113 buf[2] = (val >> 16) & 0xFF;
114 buf[
[all...]
/frameworks/compile/libbcc/lib/Support/
H A DSha1Util.cpp41 char buf[256]; local
43 ssize_t nread = file.read(buf, sizeof(buf));
51 reinterpret_cast<unsigned char *>(buf),
54 if (static_cast<size_t>(nread) < sizeof(buf)) {
/frameworks/rs/cpu_ref/linkloader/include/
H A DMemChunk.h29 unsigned char *buf; member in class:MemChunk
50 return buf;
54 return buf;
58 return buf[index];
62 return buf[index];
/frameworks/rs/cpu_ref/linkloader/android/
H A Dlibrsloader.h30 RSExecRef rsloaderCreateExec(unsigned char const *buf,
35 RSExecRef rsloaderLoadExecutable(unsigned char const *buf,
42 void rsloaderUpdateSectionHeaders(RSExecRef object, unsigned char *buf);
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp50 void clearBuffer(Buffer* buf, uint32_t pixel) { argument
51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4);
54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument
55 if (y>0 && y<ssize_t(buf->h)) {
56 uint32_t* bits = buf->pixels + y * buf->s;
57 if (x>=0 && x<buf->w) {
61 if ((x+W)>=0 && (x+W)<buf
67 drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) argument
84 drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) argument
105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument
[all...]

Completed in 912 milliseconds

1234567891011