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

1234567891011

/frameworks/base/services/common_time/
H A Dcommon_time_server.cpp611 uint8_t buf[256]; local
616 mSocket, buf, sizeof(buf), 0,
627 if (pkt.deserializePacket(buf, recvBytes, mSyncGroupID) < 0) {
631 hexDumpToString(buf, static_cast<size_t>(recvBytes), hex, sizeof(hex));
784 uint8_t buf[256]; local
785 ssize_t bufSz = pkt.serializePacket(buf, sizeof(buf));
790 mSocket, buf, bufSz, 0,
910 uint8_t buf[25 local
1071 uint8_t buf[256]; local
1118 uint8_t buf[256]; local
1156 uint8_t buf[256]; local
1388 sockaddrToString(const sockaddr_storage& addr, bool addrValid, char* buf, size_t bufLen) argument
[all...]
/frameworks/base/services/java/com/android/server/pm/
H A DPackageSignatures.java190 StringBuffer buf = new StringBuffer(128);
191 buf.append("PackageSignatures{");
192 buf.append(Integer.toHexString(System.identityHashCode(this)));
193 buf.append(" [");
196 if (i > 0) buf.append(", ");
197 buf.append(Integer.toHexString(
201 buf.append("]}");
202 return buf.toString();
H A DInstaller.java39 byte buf[] = new byte[1024]; field in class:Installer
116 if (!readBytes(buf, 2))
118 len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8);
124 if (!readBytes(buf, len))
135 buf[0] = (byte) (len & 0xff);
136 buf[1] = (byte) ((len >> 8) & 0xff);
138 mOut.write(buf, 0, 2);
169 String s = new String(buf, 0, buflen);
/frameworks/native/include/gui/
H A DBufferQueue.h121 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf);
125 // location pointed to by the buf argument and a status of OK is returned.
126 // If no slot is available then a status of -EBUSY is returned and buf is
154 // returned in buf.
160 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, bool async,
178 virtual status_t queueBuffer(int buf,
186 virtual void cancelBuffer(int buf, const sp<Fence>& fence);
241 virtual status_t releaseBuffer(int buf, uint64_t frameNumber,
/frameworks/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp87 char* buf = (char*) malloc(infoLen); local
88 if (buf) {
89 glGetShaderInfoLog(shader, infoLen, NULL, buf);
91 shaderType, buf);
92 free(buf);
126 char* buf = (char*) malloc(bufLength); local
127 if (buf) {
128 glGetProgramInfoLog(program, bufLength, NULL, buf);
129 fprintf(stderr, "Could not link program:\n%s\n", buf);
130 free(buf);
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp44 char* buf = (char*) malloc(infoLen); local
45 if (buf) {
46 glGetShaderInfoLog(shader, infoLen, NULL, buf);
47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf);
48 free(buf);
94 char* buf = (char*) malloc(bufLength); local
95 if (buf) {
96 glGetProgramInfoLog(program, bufLength, NULL, buf);
97 ALOGE("Could not link program:\n%s\n", buf);
98 free(buf);
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTexture_test.cpp305 char* buf = (char*) malloc(infoLen); local
306 if (buf) {
307 glGetShaderInfoLog(shader, infoLen, NULL, buf);
308 printf("Shader compile log:\n%s\n", buf);
309 free(buf);
313 char* buf = (char*) malloc(0x1000); local
314 if (buf) {
315 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
316 printf("Shader compile log:\n%s\n", buf);
317 free(buf);
357 char* buf = (char*) malloc(bufLength); local
685 fillYV12Buffer(uint8_t* buf, int w, int h, int stride) argument
715 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
1533 sp<GraphicBuffer> buf = mST->getCurrentBuffer(); local
[all...]
H A DBufferQueue_test.cpp72 sp<GraphicBuffer> buf; local
81 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
89 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java332 byte[] buf = value.getBytes(US_ASCII);
333 byte[] finalBuf = buf;
334 if (buf.length > 0) {
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays
336 .copyOf(buf, buf.length + 1);
836 protected void getBytes(byte[] buf) { argument
837 getBytes(buf,
850 getBytes(byte[] buf, int offset, int length) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp227 char buf[32]; local
228 snprintf(buf, sizeof(buf), "%lld", value);
229 return env->NewStringUTF(buf);
232 char buf[32]; local
233 snprintf(buf, sizeof(buf), "%g", value);
234 return env->NewStringUTF(buf);
316 char buf[32]; local
317 snprintf(buf, sizeo
321 char buf[32]; local
[all...]
H A Dandroid_util_Log.cpp65 char buf[PROPERTY_VALUE_MAX]; local
66 if (property_get(key.string(), buf, "") <= 0) {
67 buf[0] = '\0';
70 int logLevel = toLevel(buf);
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java116 byte[] buf = new byte[bufSize];
135 buf = new byte[bufSize];
137 changeSet.readEntityData(buf, 0, dataSize);
141 entity.write(buf, 0, dataSize);
249 byte[] buf = new byte[size];
250 in.read(buf);
254 out.writeEntityData(buf, size);
/frameworks/native/opengl/tests/gl_yuvtex/
H A Dgl_yuvtex.cpp98 char* buf = NULL; local
99 status_t err = yuvTexBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf));
109 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity;
111 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity;
113 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity;
115 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] =
116 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] =
117 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] =
118 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity;
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
H A DGLCHeader.cpp171 void* buf = _env->GetDirectBufferAddress(buffer); local
172 if (buf) {
175 buf = ((char*) buf) + (position << elementSizeShift);
181 buf = getPointer(_env, buffer, &array, &remaining, &offset);
183 releasePointer(_env, array, buf, 0);
185 buf = buf + offset;
191 return buf;
/frameworks/rs/tests/latency/
H A Dlatency.cpp68 uint32_t *buf = new uint32_t[numElems]; local
94 ain->copy1DFrom(buf);
96 aout->copy1DTo(buf);
/frameworks/native/libs/gui/
H A DGLConsumer.cpp231 int buf = mCurrentTexture; local
232 if (buf != BufferQueue::INVALID_BUFFER_SLOT) {
234 ST_LOGV("releaseTexImage: (slot=%d, mAttached=%d)", buf, mAttached);
240 ST_LOGE("syncForReleaseLocked failed (slot=%d), err=%d", buf, err);
248 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR);
336 status_t GLConsumer::releaseBufferLocked(int buf, argument
344 buf, graphicBuffer, display, eglFence);
345 mEglSlots[buf].mEglFence = EGL_NO_SYNC_KHR;
365 int buf local
[all...]
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
H A DLowStorageTest.java86 byte buf[] = new byte[mBlockSize * NO_OF_BLOCKS_TO_FILL];
87 fs.write(buf);
92 byte buf[] = new byte[(noOfBlockToFill % NO_OF_BLOCKS_TO_FILL) * mBlockSize];
93 fs.write(buf);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.h36 virtual bool reject(const sp<GraphicBuffer>& buf,
/frameworks/base/core/java/android/net/http/
H A DRequest.java282 byte[] buf = null;
294 buf = mConnection.getBuf();
296 int lowWater = buf.length / 2;
314 len = nis.read(buf, count, buf.length - count);
322 mEventHandler.data(buf, count);
332 mEventHandler.data(buf, count);
342 mEventHandler.data(buf, count);
/frameworks/native/cmds/installd/
H A Dcommands.c881 char buf[PKG_PATH_MAX+1]; local
915 buf[PKG_PATH_MAX] = 0;
919 while (bufi < bufe && buf[bufi] != '\n') {
923 buf[bufi] = 0;
924 ALOGV("Processing line: %s\n", buf+bufp);
926 while (bufp < bufi && isspace(buf[bufp])) {
930 if (buf[bufp] == '#' || bufp == bufi) {
935 UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp);
939 ALOGV("Move file: %s (from %s to %s)\n", buf+bufp, srcpkg, dstpkg);
940 if (!create_move_path(srcpath, srcpkg, buf
[all...]
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java933 char[] buf = new char[len];
935 getChars(0, len, buf, 0);
936 return new String(buf);
945 char[] buf = new char[end - start];
946 getChars(start, end, buf, 0);
947 return new String(buf);
1119 char[] buf = TextUtils.obtain(end - start);
1121 getChars(start, end, buf, 0);
1122 c.drawText(buf, 0, end - start, x, y, p);
1123 TextUtils.recycle(buf);
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java99 private void append(char[] buf, int i, final int length) throws IOException { argument
104 append(buf, i, next<end ? BUFFER_LEN : (end-i));
114 System.arraycopy(buf, i, mText, pos, length);
148 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument
155 char c = buf[pos];
159 if (lastPos < pos) append(buf, lastPos, pos-lastPos);
163 if (lastPos < pos) append(buf, lastPos, pos-lastPos);
372 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument
378 escapeAndAppendString(buf, start, len);
380 mLineStart = buf[star
[all...]
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp319 char* buf = new char[infoLen]; local
320 if (buf) {
321 glGetShaderInfoLog(shader, infoLen, NULL, buf);
322 fprintf(stderr, "Shader compile log:\n%s\n", buf);
323 delete[] buf;
389 char* buf = new char[bufLength]; local
390 if (buf) {
391 glGetProgramInfoLog(program, bufLength, NULL, buf);
392 fprintf(stderr, "Program link log:\n%s\n", buf);
393 delete[] buf;
[all...]
/frameworks/native/opengl/tests/gl2_copyTexImage/
H A Dgl2_copyTexImage.cpp87 char* buf = (char*) malloc(infoLen); local
88 if (buf) {
89 glGetShaderInfoLog(shader, infoLen, NULL, buf);
91 shaderType, buf);
92 free(buf);
126 char* buf = (char*) malloc(bufLength); local
127 if (buf) {
128 glGetProgramInfoLog(program, bufLength, NULL, buf);
129 fprintf(stderr, "Could not link program:\n%s\n", buf);
130 free(buf);
[all...]
/frameworks/av/camera/tests/
H A DProCameraTests.cpp271 CpuConsumer::LockedBuffer buf; local
274 if (OK == (ret = consumer->lockNextBuffer(&buf))) {
277 ", dataPtr = " << (void*)buf.data <<
278 ", timestamp = " << buf.timestamp << std::endl;
280 EXPECT_OK(consumer->unlockBuffer(buf));
1012 CpuConsumer::LockedBuffer buf; local
1013 EXPECT_OK(consumer->lockNextBuffer(&buf));
1016 ", dataPtr = " << (void*)buf.data <<
1017 ", timestamp = " << buf.timestamp << std::endl;
1019 EXPECT_OK(consumer->unlockBuffer(buf));
1148 CpuConsumer::LockedBuffer buf; local
1202 CpuConsumer::LockedBuffer buf; local
[all...]

Completed in 5617 milliseconds

1234567891011