Searched refs:buf (Results 51 - 75 of 271) sorted by relevance

1234567891011

/frameworks/rs/
H A DrsThreadIO.cpp81 uint32_t buf; local
83 data = &buf;
84 dataLen = sizeof(buf);
91 uint32_t buf; local
93 data = &buf;
94 dataLen = sizeof(buf);
108 uint8_t buf[2 * 1024]; local
109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0];
110 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)];
138 r = mToCore.read(&buf[
[all...]
/frameworks/support/renderscript/v8/rs_support/
H A DrsThreadIO.cpp81 uint32_t buf; local
83 data = &buf;
84 dataLen = sizeof(buf);
91 uint32_t buf; local
93 data = &buf;
94 dataLen = sizeof(buf);
108 uint8_t buf[2 * 1024]; local
109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0];
110 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)];
138 r = mToCore.read(&buf[
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp136 static int readFromFile(const char* path, char* buf, size_t size) argument
146 ssize_t count = read(fd, buf, size);
148 while (count > 0 && buf[count-1] == '\n')
150 buf[count] = '\0';
152 buf[0] = '\0';
162 char buf[SIZE]; local
165 if (readFromFile(path, buf, SIZE) > 0) {
166 if (buf[0] != '0') {
176 char buf[SIZE]; local
179 if (readFromFile(path, buf, SIZ
188 char buf[SIZE]; local
211 char buf[SIZE]; local
248 char buf[20]; local
[all...]
/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java234 public void onSpanChanged(Spannable buf, argument
237 buf.removeSpan(TextKeyListener.ACTIVE);
238 removeTimeouts(buf);
242 private static void removeTimeouts(Spannable buf) { argument
243 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class);
250 buf.removeSpan(t);
267 Spannable buf = mBuffer;
269 if (buf != null) {
270 int st = Selection.getSelectionStart(buf);
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java54 public void write(char[] buf, int offset, int count) { argument
59 char ch = buf[lineEnd++];
62 super.write(buf, lineStart, lineEnd - lineStart);
70 super.write(buf, lineStart, lineEnd - lineStart);
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/core/jni/
H A Dandroid_hardware_SerialPort.cpp172 jbyte* buf = (jbyte *)malloc(length); local
173 if (!buf) {
178 int ret = read(fd, buf, length);
181 env->SetByteArrayRegion(buffer, 0, ret, buf);
184 free(buf);
195 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); local
196 if (!buf) {
201 int ret = read(fd, buf, length);
211 jbyte* buf = (jbyte *)malloc(length); local
212 if (!buf) {
229 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); local
[all...]
H A Dandroid_net_wifi_Wifi.cpp54 char buf[BUF_SIZE]; local
57 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args);
63 if (doCommand(ifname, buf, reply, sizeof(reply)) != 0) {
71 char buf[BUF_SIZE]; local
74 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args);
80 if (doCommand(ifname, buf, reply, sizeof(reply)) != 0) {
88 char buf[BUF_SIZE]; local
91 int byteCount = vsnprintf(buf, sizeo
144 char buf[EVENT_BUF_SIZE]; local
[all...]
/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp48 char* buf = (char*) malloc(infoLen); local
49 if (buf) {
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
52 shaderType, buf);
53 free(buf);
87 char* buf = (char*) malloc(bufLength); local
88 if (buf) {
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
91 free(buf);
[all...]
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp48 char* buf = (char*) malloc(infoLen); local
49 if (buf) {
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
52 shaderType, buf);
53 free(buf);
87 char* buf = (char*) malloc(bufLength); local
88 if (buf) {
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
91 free(buf);
[all...]
/frameworks/native/opengl/libs/EGL/
H A Degl_cache.cpp203 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument
207 r ^= buf[i];
249 uint8_t* buf = new uint8_t [fileSize]; local
250 if (!buf) {
258 status_t err = mBlobCache->flatten(buf + headerSize, cacheSize, NULL,
263 delete [] buf;
270 memcpy(buf, cacheFileMagic, 4);
271 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4);
272 *crc = crc32c(buf + headerSize, cacheSize);
274 if (write(fd, buf, fileSiz
317 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, local
[all...]
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp159 void checkPixel(const CpuConsumer::LockedBuffer &buf, argument
162 switch(buf.format) {
165 uint16_t *bPtr = (uint16_t*)buf.data;
166 bPtr += y * buf.stride + x;
183 ADD_FAILURE() << "Unknown format for check:" << buf.format;
190 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
195 void fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) { argument
196 ALOGVV("fillBayerRawBuffer: %p with %d x %d, stride %d", buf, w, h ,stride);
201 uint16_t *bPtr1 = ((uint16_t*)buf) + stride*y;
220 void checkBayerRawBuffer(const CpuConsumer::LockedBuffer &buf) { argument
[all...]
/frameworks/native/libs/gui/
H A DCpuConsumer.cpp78 int buf = b.mBuf; local
89 err = mSlots[buf].mGraphicBuffer->lock(
92 &mBufferPointers[buf]);
94 if (mBufferPointers[buf] != NULL && err != OK) {
100 nativeBuffer->data = reinterpret_cast<uint8_t*>(mBufferPointers[buf]);
101 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth();
102 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight();
103 nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat();
104 nativeBuffer->stride = mSlots[buf].mGraphicBuffer->getStride();
/frameworks/base/services/common_time/
H A Ddiag_thread.cpp275 char buf[1024]; local
279 snprintf(buf, sizeof(buf), "E,%lld,%lld,%lld,%d\n",
284 buf[sizeof(buf) - 1] = 0;
287 write(data_fd_, buf, strlen(buf));
295 char buf[1024]; local
297 snprintf(buf, sizeof(buf),
[all...]
/frameworks/native/opengl/tests/gl2_yuvtex/
H A Dgl2_yuvtex.cpp94 char* buf = (char*) malloc(infoLen); local
95 if (buf) {
96 glGetShaderInfoLog(shader, infoLen, NULL, buf);
98 shaderType, buf);
99 free(buf);
103 char* buf = (char*) malloc(0x1000); local
104 if (buf) {
105 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
107 shaderType, buf);
108 free(buf);
142 char* buf = (char*) malloc(bufLength); local
203 char* buf = NULL; local
[all...]
/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/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 DTestHelpers.h53 char buf[1]; local
54 ssize_t nRead = ::read(receiveFd, buf, 1);
/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/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/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/base/libs/androidfw/
H A DBackupHelpers.cpp227 char* buf = (char*)malloc(bufsize); local
241 free(buf);
251 free(buf);
257 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) {
262 err = dataStream->WriteEntityData(buf, amt);
264 free(buf);
272 memset(buf, 0, bufsize);
276 err = dataStream->WriteEntityData(buf, amt);
278 free(buf);
287 free(buf);
318 char* buf = (char*)malloc(bufsize); local
457 calc_tar_checksum(char* buf) argument
472 write_pax_header_entry(char* buf, const char* key, const char* value) argument
549 char* buf = (char *)calloc(1,BUFSIZE); local
742 void* buf = m_buf; local
[all...]
H A DAsset.cpp69 char buf[64]; local
70 sprintf(buf, ": %dK\n", (int)size);
71 res.append(buf);
436 ssize_t _FileAsset::read(void* buf, size_t count) argument
465 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count);
469 //printf("buf read\n");
470 memcpy(buf, (char*)mBuf + mOffset, count);
488 actual = fread(buf, 1, count, mFp);
573 unsigned char* buf; local
582 buf
659 unsigned char* buf = new unsigned char[mLength]; local
760 read(void* buf, size_t count) argument
848 unsigned char* buf = NULL; local
[all...]
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java141 public int read(byte[] buf, int offset, int length) throws IOException { argument
153 encode(mBuf, 0, buf, offset, n, mMax);
163 public int read(byte[] buf) throws IOException { argument
164 return read(buf, 0, buf.length);
/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);

Completed in 345 milliseconds

1234567891011