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

1234567891011>>

/frameworks/base/cmds/incidentd/src/
H A Dprotobuf.cpp20 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;
/frameworks/base/core/java/android/database/
H A DCharArrayBuffer.java27 public CharArrayBuffer(char[] buf) { argument
28 data = buf;
/frameworks/minikin/tests/unittest/
H A DUnicodeUtilsTest.cpp25 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');
H A DLayoutUtilsTest.cpp26 uint16_t buf[BUF_SIZE]; local
30 ParseUnicode(buf, BUF_SIZE, query_str, &size, &expected_breakpoint);
32 getNextWordBreakForCache(buf, offset_in, size))
38 uint16_t buf[BUF_SIZE]; local
42 ParseUnicode(buf, BUF_SIZE, query_str, &size, &expected_breakpoint);
44 getPrevWordBreakForCache(buf, offset_in, size))
H A DMeasurementTests.cpp25 uint16_t buf[BUF_SIZE]; local
28 ParseUnicode(buf, BUF_SIZE, src, &size, &offset);
29 return getRunAdvance(advances, buf, 0, size, offset);
H A DWordBreakerTests.cpp40 uint16_t buf[] = {'h', 'e', 'l', 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
43 breaker.setText(buf, NELEM(buf));
50 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
58 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
61 breaker.setText(buf, NELEM(buf));
67 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
75 uint16_t buf[] = {'s', 'u', 'g', 'a', 'r', '-', 'f', 'r', 'e', 'e'}; local
78 breaker.setText(buf, NELE
87 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ local
103 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU local
116 uint16_t buf[] = { local
145 uint16_t buf[] = { local
163 uint16_t buf[] = { local
217 uint16_t buf[BUF_SIZE]; local
242 uint16_t buf[BUF_SIZE]; local
259 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l' ,'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', local
276 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
295 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', local
319 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
338 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
357 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; local
376 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', local
402 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', '~', 'c', ',', 'd', local
462 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; local
478 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; local
494 uint16_t buf[] = {'/', 'a', '@', 'b'}; local
[all...]
/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 DglGetProgramPipelineInfoLog.cpp10 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 DglGetShaderInfoLog.cpp10 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/compile/libbcc/lib/
H A DProperties.h45 char buf[PROP_VALUE_MAX]; local
46 property_get(str, buf, "0");
47 return atoi(buf);
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGLToGL_test.cpp56 sp<GraphicBuffer> buf = mST->getCurrentBuffer(); local
58 ASSERT_EQ(texWidth, buf->getHeight());
59 ASSERT_EQ(texHeight, buf->getWidth());
61 ASSERT_EQ(texWidth, buf->getWidth());
62 ASSERT_EQ(texHeight, buf->getHeight());
74 buf = mST->getCurrentBuffer();
76 ASSERT_EQ(texWidth, buf->getWidth());
77 ASSERT_EQ(texHeight, buf->getHeight());
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp48 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/av/media/img_utils/src/
H A DByteArrayOutput.cpp32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
33 if (mByteArray.appendArray(buf + offset, count) < 0) {
H A DFileInput.cpp48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { argument
54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp);
H A DFileOutput.cpp47 status_t FileOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp);
/frameworks/av/services/audioflinger/
H A DAudioWatchdog.cpp30 char buf[32]; local
33 ctime_r(&mMostRecent, buf);
35 strcpy(buf, "N/A\n");
38 mUnderruns, mLogs, buf);
/frameworks/av/services/mediaresourcemanager/
H A DServiceLog.cpp36 char buf[64]; local
37 strftime(buf, sizeof(buf), "%m-%d %T", localtime(&now));
38 mLogs.add(String8::format("%s %s", buf, log.string()));
/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/libs/androidfw/
H A DUtil.cpp34 char buf[5]; local
37 utf16_to_utf8(&c, 1, buf, sizeof(buf));
38 out->append(buf, strlen(buf));
/frameworks/base/libs/hwui/utils/
H A DTraceUtils.h42 char buf[BUFFER_SIZE]; local
45 vsnprintf(buf, BUFFER_SIZE, fmt, ap);
48 ATRACE_BEGIN(buf);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java26 public ByteBufferInputStream(ByteBuffer buf) { argument
27 mBuf = buf;
/frameworks/native/cmds/lshal/
H A DNullableOStream.h57 S& buf() const { function in class:android::lshal::NullableOStream
/frameworks/native/include/gui/
H A DIGraphicBufferConsumer.h133 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display,
136 status_t releaseHelper(int buf, uint64_t frameNumber, const sp<Fence>& releaseFence) { argument
137 return releaseBuffer(buf, frameNumber, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, releaseFence);
/frameworks/native/libs/binder/
H A DTextOutput.cpp51 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) argument
52 : mBuffer(buf)
/frameworks/native/libs/gui/include/gui/
H A DIGraphicBufferConsumer.h133 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display,
136 status_t releaseHelper(int buf, uint64_t frameNumber, const sp<Fence>& releaseFence) { argument
137 return releaseBuffer(buf, frameNumber, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, releaseFence);

Completed in 2859 milliseconds

1234567891011>>