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

12345678910

/frameworks/base/libs/utils/
H A DTextOutput.cpp46 char buf[16]; local
47 sprintf(buf, "%d", val);
48 to.print(buf, strlen(buf));
54 char buf[16]; local
55 sprintf(buf, "%ld", val);
56 to.print(buf, strlen(buf));
62 char buf[16]; local
63 sprintf(buf, "
70 char buf[16]; local
78 char buf[32]; local
86 char buf[32]; local
94 char buf[64]; local
116 char buf[16]; local
133 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument
[all...]
H A DString8.cpp63 SharedBuffer* buf = SharedBuffer::alloc(1); local
64 char* str = (char*)buf->data();
66 gEmptyStringBuf = buf;
82 SharedBuffer* buf = SharedBuffer::alloc(len+1); local
83 LOG_ASSERT(buf, "Unable to allocate shared buffer");
84 if (buf) {
85 char* str = (char*)buf->data();
105 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); local
106 LOG_ASSERT(buf, "Unable to allocate shared buffer");
107 if (!buf) {
127 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); local
318 char* buf = lockBuffer(oldLength + n); local
332 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local
347 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local
365 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local
404 char* buf = lockBuffer(len); local
428 char* buf = lockBuffer(len); local
469 char* buf = lockBuffer(len); local
485 const char*const buf = mString; local
510 const char* buf = str; local
600 char* buf = lockBuffer(len+1+newlen); local
623 char * buf = lockBuffer(len); local
[all...]
/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...]
H A Dandroid_os_SystemProperties.cpp31 char buf[PROPERTY_VALUE_MAX]; local
41 len = property_get(key, buf, "");
45 rvJ = env->NewStringUTF(buf);
67 char buf[PROPERTY_VALUE_MAX]; local
77 len = property_get(key, buf, "");
80 if (sscanf(buf, "%d", &temp) == 1)
95 char buf[PROPERTY_VALUE_MAX]; local
105 len = property_get(key, buf, "");
108 if (sscanf(buf, "%lld", &temp) == 1)
123 char buf[PROPERTY_VALUE_MA local
[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/base/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/base/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/compile/linkloader/include/
H A DMemChunk.h25 unsigned char *buf; member in class:MemChunk
40 return buf;
44 return buf;
48 return buf[index];
52 return buf[index];
/frameworks/base/libs/utils/tests/
H A DBlobCache_test.cpp47 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
49 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4));
50 ASSERT_EQ('e', buf[0]);
51 ASSERT_EQ('f', buf[1]);
52 ASSERT_EQ('g', buf[2]);
53 ASSERT_EQ('h', buf[3]);
57 char buf[2] = { 0xee, 0xee }; local
60 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2));
61 ASSERT_EQ('c', buf[0]);
62 ASSERT_EQ('d', buf[
69 char buf[6] = { 0xee, 0xee, 0xee, 0xee, 0xee, 0xee }; local
81 char buf[3] = { 0xee, 0xee, 0xee }; local
95 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
106 char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; local
118 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
131 char buf[MAX_VALUE_SIZE+1]; local
285 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
351 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
368 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
387 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
406 char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
[all...]
/frameworks/base/media/libstagefright/codecs/aacenc/src/asm/ARMV7/
H A DR4R8First_v7.s40 VADD.S32 d4, d0, d1 @ r0 = buf[0] + buf[2]@i0 = buf[1] + buf[3]@
41 VSUB.S32 d5, d0, d1 @ r1 = buf[0] - buf[2]@i1 = buf[1] - buf[3]@
42 VSUB.S32 d7, d2, d3 @ r2 = buf[4] - buf[
[all...]
/frameworks/base/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp163 ANativeWindowBuffer* buf; local
164 ASSERT_EQ(OK, mANW->dequeueBuffer(mANW.get(), &buf));
165 EXPECT_EQ(1, buf->width);
166 EXPECT_EQ(1, buf->height);
167 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format);
168 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf));
172 ANativeWindowBuffer* buf; local
174 ASSERT_EQ(OK, mANW->dequeueBuffer(mANW.get(), &buf));
175 EXPECT_EQ(16, buf->width);
176 EXPECT_EQ(8, buf
182 ANativeWindowBuffer* buf; local
192 ANativeWindowBuffer* buf; local
202 ANativeWindowBuffer* buf; local
218 ANativeWindowBuffer* buf; local
235 ANativeWindowBuffer* buf; local
245 ANativeWindowBuffer* buf[2]; local
265 ANativeWindowBuffer* buf[2]; local
290 android_native_buffer_t* buf[3]; local
313 android_native_buffer_t* buf[3]; local
334 android_native_buffer_t* buf[3]; local
355 android_native_buffer_t* buf[3]; local
380 android_native_buffer_t* buf[3]; local
401 android_native_buffer_t* buf[3]; local
462 android_native_buffer_t* buf[3]; local
485 android_native_buffer_t* buf[3]; local
515 android_native_buffer_t* buf[3]; local
546 android_native_buffer_t* buf[3]; local
[all...]
/frameworks/compile/linkloader/lib/
H A DMemChunk.cpp38 MemChunk::MemChunk() : buf((unsigned char *)MAP_FAILED), buf_size(0) {
42 if (buf != MAP_FAILED) {
43 munmap(buf, buf_size);
49 buf = (unsigned char *)mmap((void *)StartAddr, size,
54 buf = (unsigned char *)mmap(0, size,
60 if (buf == MAP_FAILED) {
73 if (buf != MAP_FAILED) {
74 dump_hex(buf, buf_size, 0, buf_size);
80 int ret = mprotect((void *)buf, buf_size, prot);
87 FLUSH_CPU_CACHE(buf, bu
[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/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
351 Mdct_Long(int *buf) argument
369 Mdct_Short(int *buf) argument
[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/utils/
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/helper/
H A DDebugHelper.c13 char buf[LOG_BUF_SIZE]; local
16 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap);
19 return __android_log_write(prio, tag, buf);
/frameworks/base/telephony/java/com/android/internal/telephony/cat/
H A DResponseData.java36 public abstract void format(ByteArrayOutputStream buf); argument
38 public static void writeLength(ByteArrayOutputStream buf, int length) { argument
43 buf.write(0x81);
45 buf.write(length);
59 public void format(ByteArrayOutputStream buf) { argument
62 buf.write(tag); // tag
63 buf.write(1); // length
64 buf.write(id); // identifier of item chosen
98 public void format(ByteArrayOutputStream buf) { argument
99 if (buf
168 format(ByteArrayOutputStream buf) argument
206 format(ByteArrayOutputStream buf) argument
[all...]
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/
H A Dlaunchtestxlw.rs21 uint8_t *buf;
24 uint8_t *p = buf;
/frameworks/base/tools/aapt/
H A DZipEntry.cpp405 unsigned char buf[kLFHLen]; local
410 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) {
415 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) {
421 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]);
422 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]);
423 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]);
424 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]);
425 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]);
426 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]);
427 mCompressedSize = ZipEntry::getLongLE(&buf[
471 unsigned char buf[kLFHLen]; local
539 unsigned char buf[kCDELen]; local
629 unsigned char buf[kCDELen]; local
[all...]
H A DZipEntry.h116 static inline unsigned short getShortLE(const unsigned char* buf) { argument
117 return buf[0] | (buf[1] << 8);
119 static inline unsigned long getLongLE(const unsigned char* buf) { argument
120 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
122 static inline void putShortLE(unsigned char* buf, short val) { argument
123 buf[
126 putLongLE(unsigned char* buf, long val) argument
[all...]

Completed in 1155 milliseconds

12345678910