/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifData.java | 229 byte[] buf = new byte[tag.getComponentCount()]; 230 tag.getBytes(buf); 233 System.arraycopy(buf, 0, code, 0, 8); 237 return new String(buf, 8, buf.length - 8, "US-ASCII"); 239 return new String(buf, 8, buf.length - 8, "EUC-JP"); 241 return new String(buf, 8, buf.length - 8, "UTF-16");
|
H A D | ExifModifier.java | 155 byte buf[] = tag.getStringByte(); 156 if (buf.length == tag.getComponentCount()) { 157 buf[buf.length - 1] = 0; 158 mByteBuffer.put(buf); 160 mByteBuffer.put(buf); 180 buf = new byte[tag.getComponentCount()]; 181 tag.getBytes(buf); 182 mByteBuffer.put(buf);
|
H A D | ExifTag.java | 332 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/tools/aapt/ |
H A D | ZipFile.cpp | 207 unsigned char* buf = NULL; local 223 buf = new unsigned char[EndOfCentralDir::kMaxEOCDSearch]; 224 if (buf == NULL) { 245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { 253 if (buf[i] == 0x50 && 254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) 256 ALOGV("+++ Found EOCD at buf+%d\n", i); 267 result = mEOCD.readBuf(buf + i, readAmount - i); 341 delete[] buf; 1141 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) cons 1153 void* buf = malloc(unlen); local 1217 readBuf(const unsigned char* buf, int len) argument 1261 unsigned char buf[kEOCDLen]; local [all...] |
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 209 char* buf = (char*) malloc(infoLen); local 210 if (buf) { 211 glGetShaderInfoLog(shader, infoLen, NULL, buf); 212 printf("Shader compile log:\n%s\n", buf); 213 free(buf); 217 char* buf = (char*) malloc(0x1000); local 218 if (buf) { 219 glGetShaderInfoLog(shader, 0x1000, NULL, buf); 220 printf("Shader compile log:\n%s\n", buf); 221 free(buf); 265 char* buf = (char*) malloc(bufLength); local 536 fillYV12Buffer(uint8_t* buf, int w, int h, int stride) argument 566 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument [all...] |
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
H A D | SoftVorbis.cpp | 249 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { 250 buf->data = (uint8_t *)data; 251 buf->size = size; 252 buf->refcount = 1; 253 buf->ptr.owner = NULL; 255 ref->buffer = buf; 285 ogg_buffer buf; local 291 &buf, &ref, &bits); 373 ogg_buffer buf; local 374 buf 247 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 347 bool checkJpegStart(uint8_t* buf) { argument 348 return buf[0] == MARK && buf[1] == SOI; 351 bool checkJpegEnd(uint8_t *buf) { argument 352 return buf[0] == MARK && buf[1] == EOI; 356 uint8_t checkJpegMarker(uint8_t *buf) { argument 357 if (buf[0] == MARK && buf[1] > 0 && buf[ [all...] |
/frameworks/av/media/img_utils/src/ |
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/base/libs/common_time/ |
H A D | common_time_server.cpp | 612 uint8_t buf[256]; local 617 mSocket, buf, sizeof(buf), 0, 628 if (pkt.deserializePacket(buf, recvBytes, mSyncGroupID) < 0) { 632 hexDumpToString(buf, static_cast<size_t>(recvBytes), hex, sizeof(hex)); 785 uint8_t buf[256]; local 786 ssize_t bufSz = pkt.serializePacket(buf, sizeof(buf)); 791 mSocket, buf, bufSz, 0, 911 uint8_t buf[25 local 1073 uint8_t buf[256]; local 1120 uint8_t buf[256]; local 1158 uint8_t buf[256]; local 1390 sockaddrToString(const sockaddr_storage& addr, bool addrValid, char* buf, size_t bufLen) argument [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.cpp | 87 DisplayEventReceiver::Event buf[100]; local 88 while (mDisplayEventReceiver.getEvents(buf, 100) > 0) { }
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageSignatures.java | 190 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();
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 1133 char[] buf = new char[hasTime ? 16 : 8]; 1136 buf[0] = toChar(n / 1000); 1138 buf[1] = toChar(n / 100); 1140 buf[2] = toChar(n / 10); 1142 buf[3] = toChar(n); 1145 buf[4] = toChar(n / 10); 1146 buf[5] = toChar(n % 10); 1149 buf[6] = toChar(n / 10); 1150 buf[7] = toChar(n % 10); 1153 return new String(buf, [all...] |
/frameworks/base/services/tests/servicestests/src/android/net/ |
H A D | IpUtilsTest.java | 37 private int getUnsignedByte(ByteBuffer buf, int offset) { argument 38 return buf.get(offset) & 0xff; 41 private int getChecksum(ByteBuffer buf, int offset) { argument 42 return getUnsignedByte(buf, offset) * 256 + getUnsignedByte(buf, offset + 1);
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 63 jobject buf, jint offset, jint limit) { 64 jobject globalBuf = env->NewGlobalRef(buf); 87 jobject buf = frameSequence->getRawByteBuffer(); local 88 if (buf != NULL) { 89 env->DeleteGlobalRef(buf); 62 nativeDecodeByteBuffer(JNIEnv* env, jobject clazz, jobject buf, jint offset, jint limit) argument
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGL_test.cpp | 45 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 49 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 50 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 51 buf->unlock(); 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), 95 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 99 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 100 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 101 buf->unlock(); 102 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 100 private void append(char[] buf, int i, final int length) throws IOException { argument 105 append(buf, i, next<end ? BUFFER_LEN : (end-i)); 115 System.arraycopy(buf, i, mText, pos, length); 149 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument 156 char c = buf[pos]; 160 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 164 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 375 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument 381 escapeAndAppendString(buf, start, len); 383 mLineStart = buf[star [all...] |
/frameworks/native/opengl/tests/gl2_basic/ |
H A D | gl2_basic.cpp | 87 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 D | fill_common.cpp | 44 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/opengl/tools/glgen/specs/gles11/ |
H A D | GLES31Ext.spec | 3 void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 18 void glBlendEquationiEXT ( GLuint buf, GLenum mode ) 19 void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 20 void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst ) 21 void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 230 char buf[32]; local 231 snprintf(buf, sizeof(buf), "%" PRId64, value); 232 return env->NewStringUTF(buf); 235 char buf[32]; local 236 snprintf(buf, sizeof(buf), "%g", value); 237 return env->NewStringUTF(buf); 319 char buf[32]; local 320 snprintf(buf, sizeo 324 char buf[32]; local [all...] |
/frameworks/native/vulkan/libvulkan/ |
H A D | debug_report.cpp | 106 char buf[1024]; local 107 int len = vsnprintf(buf, sizeof(buf), format, ap); 110 if (len >= static_cast<int>(sizeof(buf))) 111 memcpy(buf + sizeof(buf) - 4, "...", 4); 113 Message(flags, object_type, object, 0, 0, LOG_TAG, buf);
|
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 98 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 D | GLCHeader.cpp | 175 void* buf = _env->GetDirectBufferAddress(buffer); local 176 if (buf) { 179 buf = ((char*) buf) + (position << elementSizeShift); 185 buf = getPointer(_env, buffer, &array, &remaining, &offset); 187 releasePointer(_env, array, buf, 0); 189 buf = (char*)buf + offset; 195 return buf;
|
/frameworks/base/libs/androidfw/ |
H A D | DisplayEventDispatcher.cpp | 118 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local 120 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { 123 const DisplayEventReceiver::Event& ev = buf[i];
|