/frameworks/base/cmds/incidentd/src/ |
H A D | protobuf.cpp | 20 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 D | CharArrayBuffer.java | 27 public CharArrayBuffer(char[] buf) { argument 28 data = buf;
|
/frameworks/minikin/tests/unittest/ |
H A D | UnicodeUtilsTest.cpp | 25 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 D | LayoutUtilsTest.cpp | 26 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 D | MeasurementTests.cpp | 25 uint16_t buf[BUF_SIZE]; local 28 ParseUnicode(buf, BUF_SIZE, src, &size, &offset); 29 return getRunAdvance(advances, buf, 0, size, offset);
|
H A D | WordBreakerTests.cpp | 40 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 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) { 16 glGetShaderInfoLog(shader, infoLen, &outLen, buf); 17 jstring result = _env->NewStringUTF(outLen == 0 ? "" : buf); 18 free(buf);
|
/frameworks/compile/libbcc/lib/ |
H A D | Properties.h | 45 char buf[PROP_VALUE_MAX]; local 46 property_get(str, buf, "0"); 47 return atoi(buf);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 56 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 D | egl_cache_test.cpp | 48 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 D | ByteArrayOutput.cpp | 32 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 D | FileInput.cpp | 48 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 D | FileOutput.cpp | 47 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 D | AudioWatchdog.cpp | 30 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 D | ServiceLog.cpp | 36 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 D | BitwiseInputStream.java | 50 * @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 D | Util.cpp | 34 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 D | TraceUtils.h | 42 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 D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
/frameworks/native/cmds/lshal/ |
H A D | NullableOStream.h | 57 S& buf() const { function in class:android::lshal::NullableOStream
|
/frameworks/native/include/gui/ |
H A D | IGraphicBufferConsumer.h | 133 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 D | TextOutput.cpp | 51 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) argument 52 : mBuffer(buf)
|
/frameworks/native/libs/gui/include/gui/ |
H A D | IGraphicBufferConsumer.h | 133 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);
|