Searched defs:buf (Results 1 - 25 of 180) sorted by relevance

12345678

/frameworks/base/core/java/android/database/
H A DCharArrayBuffer.java27 public CharArrayBuffer(char[] buf) { argument
28 data = buf;
/frameworks/compile/linkloader/include/
H A DELFSectionStrTab.h32 std::vector<char> buf; member in class:ELFSectionStrTab
44 return &*buf.begin() + index;
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/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/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/native/include/utils/
H A DCompat.h35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
36 return pread(fd, buf, nbytes, offset);
/frameworks/av/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h91 const DrmBuffer& buf, const String8& mimeType);
444 * @param[in] buf Data to initiate decrypt session
450 const DrmBuffer& buf, const String8& mimeType) {
449 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, const DrmBuffer& buf, const String8& mimeType) argument
/frameworks/av/services/audioflinger/
H A DAudioWatchdog.cpp27 char buf[32]; local
30 ctime_r(&mMostRecent, buf);
32 strcpy(buf, "N/A\n");
35 mUnderruns, mLogs, buf);
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java50 * @param buf a byte array containing data
52 public BitwiseInputStream(byte buf[]) { argument
53 mBuf = buf;
54 mEnd = buf.length << 3;
/frameworks/base/tools/aapt/
H A Dprintapk.cpp31 void* buf; local
58 buf = malloc(size);
59 if (buf == NULL) {
64 amt = read(fd, buf, size);
72 zip = init_zipfile(buf, size);
/frameworks/compile/slang/
H A Dslang-data.c47 unsigned char buf[256]; local
48 unsigned char *ptr = buf;
50 size_t nread = fread(buf, sizeof(char), sizeof(buf), infile);
74 fprintf(outfile, "\\x%02x", buf[i]);
80 if (nread != sizeof(buf)) {
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp72 sp<GraphicBuffer> buf; local
81 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
89 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
H A DSurface_test.cpp99 ANativeWindowBuffer* buf = 0; local
101 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf);
108 &buf));
111 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1));
116 &buf));
117 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
/frameworks/native/libs/utils/
H A DSharedBuffer.cpp61 SharedBuffer* buf = const_cast<SharedBuffer*>(this); local
62 if (buf->mSize == newSize) return buf;
63 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
64 if (buf != NULL) {
65 buf->mSize = newSize;
66 return buf;
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...]
/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/rs/tests/
H A Dcompute.cpp41 uint32_t *buf = new uint32_t[t->getCount()]; local
43 buf[ct] = ct | (ct << 16);
45 //ain->copy1DRangeFrom(0, 128*128, (int32_t *)buf, 128*128*4);
46 ain->copy1DRangeFromUnchecked(0, t->getCount(), buf, t->getCount()*4);
/frameworks/support/v4/java/android/support/v4/util/
H A DLogWriter.java51 @Override public void write(char[] buf, int offset, int count) { argument
53 char c = buf[offset + i];
/frameworks/support/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...]
/frameworks/base/core/java/android/net/
H A DDhcpInfo.java68 private static void putAddress(StringBuffer buf, int addr) { argument
69 buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress());
/frameworks/base/core/java/android/util/
H A DLogWriter.java64 @Override public void write(char[] buf, int offset, int count) { argument
66 char c = buf[offset + i];
/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...]
/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.h53 char buf[1]; local
54 ssize_t nRead = ::read(receiveFd, buf, 1);
/frameworks/native/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...]

Completed in 4813 milliseconds

12345678