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

1234567891011

/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/base/core/java/android/database/
H A DCharArrayBuffer.java27 public CharArrayBuffer(char[] buf) { argument
28 data = buf;
/frameworks/minikin/tests/
H A DWordBreakerTests.cpp39 uint16_t buf[] = {'h', 'e', 'l', 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
42 breaker.setText(buf, NELEM(buf));
49 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
57 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
60 breaker.setText(buf, NELEM(buf));
66 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
73 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ local
76 breaker.setText(buf, NELE
89 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU local
102 uint16_t buf[] = { local
131 uint16_t buf[] = { local
148 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l' ,'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', local
165 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
184 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', local
208 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
227 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
246 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; local
265 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', local
291 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', '~', 'c', ',', 'd', local
351 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; local
367 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; local
383 uint16_t buf[] = {'/', 'a', '@', 'b'}; local
[all...]
H A DGraphemeBreakTests.cpp25 uint16_t buf[BUF_SIZE]; local
28 ParseUnicode(buf, BUF_SIZE, src, &size, &offset);
29 return GraphemeBreak::isGraphemeBreak(buf, 0, size, offset);
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 DMinikinFontForTest.cpp56 void* buf = malloc(tableSize); local
57 if (buf == nullptr) {
60 mTypeface->getTableData(tag, 0, tableSize, buf);
62 return buf;
H A DUnicodeUtils.cpp23 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size, argument
37 buf[output_ix++] = (uint16_t)src[input_ix++];
56 buf[output_ix++] = codepoint;
60 buf[output_ix++] = U16_LEAD(codepoint);
61 buf[output_ix++] = U16_TRAIL(codepoint);
86 uint16_t buf[BUF_SIZE]; local
89 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset);
92 EXPECT_EQ(buf[0], 0x000D);
93 EXPECT_EQ(buf[1], 0xD83D);
94 EXPECT_EQ(buf[
[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) {
15 glGetShaderInfoLog(shader, infoLen, NULL, buf);
16 jstring result = _env->NewStringUTF(buf);
17 free(buf);
H A DglDebugMessageInsertKHR.cpp1 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */
4 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) {
11 if (!buf) {
14 _exceptionMessage = "buf == null";
17 _nativebuf = _env->GetStringUTFChars(buf, 0);
18 _length = _env->GetStringUTFLength(buf);
31 _env->ReleaseStringUTFChars(buf, _nativebuf);
3 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument
/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/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/hwui/tests/common/
H A DTestContext.cpp87 DisplayEventReceiver::Event buf[100]; local
88 while (mDisplayEventReceiver.getEvents(buf, 100) > 0) { }
/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/base/services/core/jni/
H A Dcom_android_server_am_ActivityManagerService.cpp67 char buf[17]; local
68 while (fgets(buf, 16, fg_cpuset_file)) {
71 if (buf[i] == '\n') {
72 buf[i] = 0;
76 if (write(boost_cpuset_fd, buf, i) < 0) {
112 char buf[17]; local
113 while (fgets(buf, 16, boost_cpuset_file)) {
114 //ALOGE("Appending FD %s to fg", buf);
117 if (buf[i] == '\n') {
118 buf[
[all...]
/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[32]; local
148 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument
[all...]
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp44 uint8_t 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 uint8_t 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 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
97 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local
[all...]
/frameworks/rs/tests/cppallocation/
H A Dcompute.cpp38 uint32_t* buf = new uint32_t[numElems]; local
40 buf[ct] = (uint32_t)ct;
43 ain->copy1DRangeFrom(0, numElems, buf);
47 aout->copy1DRangeTo(0, numElems, buf);
50 if (buf[ct] != ct * 2) {
51 printf("Mismatch at location %d: %u\n", ct, buf[ct]);

Completed in 408 milliseconds

1234567891011