Searched refs:buf (Results 101 - 125 of 465) sorted by relevance

1234567891011>>

/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/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DDecoder.java26 public Decoder(byte[] buf) { argument
27 this(ByteBuffer.wrap(buf));
30 public Decoder(ByteBuffer buf) { argument
31 mBuf = buf;
/frameworks/minikin/app/
H A DHyphTool.cpp27 uint8_t* buf = new uint8_t[size]; local
28 size_t read_size = fread(buf, 1, size, f);
32 delete[] buf;
35 return Hyphenator::loadBinary(buf, minPrefix, minSuffix);
/frameworks/minikin/tests/util/
H A DUnicodeUtils.h19 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size,
/frameworks/native/include/binder/
H A DDebug.h37 void printHexData(int32_t indent, const void *buf, size_t length,
/frameworks/native/libs/binder/include/binder/
H A DDebug.h37 void printHexData(int32_t indent, const void *buf, size_t length,
/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/minikin/tests/unittest/
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);
/frameworks/base/libs/androidfw/
H A DAsset.cpp113 char buf[64]; local
114 snprintf(buf, sizeof(buf), ": %dK\n", (int)size);
115 res.append(buf);
487 ssize_t _FileAsset::read(void* buf, size_t count) argument
516 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count);
520 //printf("buf read\n");
521 memcpy(buf, (char*)mBuf + mOffset, count);
539 actual = fread(buf, 1, count, mFp);
624 unsigned char* buf; local
710 unsigned char* buf = new unsigned char[mLength]; local
812 read(void* buf, size_t count) argument
900 unsigned char* buf = NULL; local
[all...]
H A DBackupHelpers.cpp223 char* buf = (char*)malloc(bufsize); local
235 free(buf);
245 free(buf);
251 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) {
256 err = dataStream->WriteEntityData(buf, amt);
258 free(buf);
266 memset(buf, 0, bufsize);
270 err = dataStream->WriteEntityData(buf, amt);
272 free(buf);
281 free(buf);
316 char* buf = (char*)malloc(bufsize); local
444 calc_tar_checksum(char* buf, size_t buf_size) argument
460 write_pax_header_entry(char* buf, size_t buf_size, const char* key, const char* value) argument
553 char* buf = (char *)calloc(1,BUFSIZE); local
748 void* buf = m_buf; local
[all...]
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp341 int32_t* buf = static_cast<int32_t*>(buffer);
342 buf[0] = 'GBFR';
343 buf[1] = width;
344 buf[2] = height;
345 buf[3] = stride;
346 buf[4] = format;
347 buf[5] = static_cast<int32_t>(layerCount);
348 buf[6] = usage;
349 buf[7] = static_cast<int32_t>(mId >> 32);
350 buf[
378 int const* buf = static_cast<int const*>(buffer); local
[all...]
/frameworks/native/libs/gui/tests/
H A DGLTest.cpp269 char* buf = (char*) malloc(infoLen); local
270 if (buf) {
271 glGetShaderInfoLog(shader, infoLen, NULL, buf);
272 printf("Shader compile log:\n%s\n", buf);
273 free(buf);
277 char* buf = (char*) malloc(0x1000); local
278 if (buf) {
279 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
280 printf("Shader compile log:\n%s\n", buf);
281 free(buf);
321 char* buf = (char*) malloc(bufLength); local
[all...]
/frameworks/av/media/libmedia/
H A DCharacterEncodingDetector.cpp90 char buf[1024]; local
91 buf[0] = 0;
103 strlcat(buf, value, sizeof(buf));
105 strlcat(buf, " ", sizeof(buf));
112 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so
114 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf));
116 ucsdet_setText(csd, buf, strlen(buf),
[all...]
/frameworks/av/media/libstagefright/filters/
H A DGraphicBufferListener.cpp131 sp<GraphicBuffer> buf; local
134 return buf;
137 buf = mBufferSlot[item.mSlot];
138 CHECK(buf.get() != NULL);
140 return buf;
/frameworks/base/libs/hwui/
H A DGpuMemoryTracker.cpp112 char buf[128]; local
114 snprintf(buf, 128, "hwui_%s", TYPE_NAMES[type]);
116 ATRACE_INT(buf, stats.totalSize);
117 snprintf(buf, 128, "hwui_%s_count", TYPE_NAMES[type]);
118 ATRACE_INT(buf, stats.count);
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DUtils.java146 char[] buf = new char[array.length * 3 - 1];
152 buf[bufIndex++] = ':';
154 buf[bufIndex++] = HEX_DIGITS[(b >>> 4) & 0x0F];
155 buf[bufIndex++] = HEX_DIGITS[b & 0x0F];
157 return new String(buf);
/frameworks/minikin/include/minikin/
H A DLayout.h74 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
78 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
96 // The i parameter is an offset within the buf relative to start, it is < count, where
117 static float doLayoutRunCached(const uint16_t* buf, size_t runStart, size_t runLength,
122 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
127 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetShaderSource.cpp98 char* buf = (char*) malloc(shaderLen); local
99 if (buf == NULL) {
103 glGetShaderSource(shader, shaderLen, NULL, buf);
104 jstring result = _env->NewStringUTF(buf);
105 free(buf);
/frameworks/base/cmds/idmap/
H A Didmap.cpp242 char buf[1024];
243 buf[0] = '\0';
245 strncat(buf, argv[i], sizeof(buf) - 1);
246 strncat(buf, " ", sizeof(buf) - 1);
248 ALOGD("%s:%d: uid=%d gid=%d argv=%s\n", __FILE__, __LINE__, getuid(), getgid(), buf);
/frameworks/base/libs/common_time/
H A Dutils.cpp122 char buf[1024]; local
128 res = snprintf(buf, sizeof(buf), "\n%s\n", mHeader);
130 write(fd, buf, res);
153 res = snprintf(buf, sizeof(buf), "[%2zu] %s.%03ld :: %s%s\n",
160 write(fd, buf, res);
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_client.cpp255 int BufferHubQueue::AddBuffer(const std::shared_ptr<BufferHubBuffer>& buf, argument
274 const int ret = epoll_fd_.Control(EPOLL_CTL_ADD, buf->event_fd(), &event);
281 buffers_[slot] = buf;
287 auto& buf = buffers_[slot]; local
288 if (buf == nullptr) {
293 const int ret = epoll_fd_.Control(EPOLL_CTL_DEL, buf->event_fd(), nullptr);
307 void BufferHubQueue::Enqueue(const std::shared_ptr<BufferHubBuffer>& buf, argument
319 buffer_info.buffer = buf;
333 std::shared_ptr<BufferHubBuffer> buf;
341 std::swap(buffer_info.buffer, buf);
432 AddBuffer(const std::shared_ptr<BufferProducer>& buf, size_t slot) argument
474 OnBufferReady(const std::shared_ptr<BufferHubBuffer>& buf, LocalHandle* release_fence) argument
554 AddBuffer(const std::shared_ptr<BufferConsumer>& buf, size_t slot) argument
609 OnBufferReady(const std::shared_ptr<BufferHubBuffer>& buf, LocalHandle* acquire_fence) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessList.java289 ByteBuffer buf = ByteBuffer.allocate(4 * (2*mOomAdj.length + 1));
290 buf.putInt(LMK_TARGET);
292 buf.putInt((mOomMinFree[i]*1024)/PAGE_SIZE);
293 buf.putInt(mOomAdj[i]);
296 writeLmkd(buf);
635 ByteBuffer buf = ByteBuffer.allocate(4 * 4);
636 buf.putInt(LMK_PROCPRIO);
637 buf.putInt(pid);
638 buf.putInt(uid);
639 buf
674 writeLmkd(ByteBuffer buf) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DProgram.cpp155 char* buf = new char[infoLen]; local
156 if (buf) {
157 glGetShaderInfoLog(shader, infoLen, NULL, buf);
158 ALOGE("Compile log: %s", buf);
159 delete[] buf;
186 char* buf = new char[bufLength]; local
187 if (buf) {
188 glGetProgramInfoLog(program, bufLength, NULL, buf);
189 ALOGE("Link log: %s", buf);
190 delete[] buf;
[all...]
/frameworks/base/tools/aapt/
H A DApkBuilder.cpp95 char* buf = packageConfigStr.lockBuffer(len); local
96 for (char* end = buf + len; buf < end; ++buf) {
97 if (*buf == '-') {
98 *buf = '_';
/frameworks/native/cmds/installd/tests/
H A Dinstalld_service_test.cpp81 struct stat buf; local
82 ::stat(StringPrintf("/data/local/tmp/user/0/%s", path).c_str(), &buf);
83 return buf.st_gid;
87 struct stat buf; local
88 ::stat(StringPrintf("/data/local/tmp/user/0/%s", path).c_str(), &buf);
89 return buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISGID);

Completed in 1864 milliseconds

1234567891011>>