/frameworks/native/libs/binder/tests/ |
H A D | binderTextOutputTest.cpp | 113 const char buf[16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; local 114 android::HexDump val(buf, sizeof(buf)); 119 const char buf[4] = {0x11,0x22,0x33,0x44}; local 120 android::HexDump val(buf, sizeof(buf), 4);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuScript.h | 177 char buf[PROP_VALUE_MAX]; local 180 android::renderscript::property_get("debug.rs.precision", buf, ""); 181 if (buf[0] != '\0') { 186 android::renderscript::property_get("debug.rs.forcerecompile", buf, "0"); 187 if ((::strcmp(buf, "1") == 0) || (::strcmp(buf, "true") == 0)) {
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 190 char* buf = (char*) malloc(len); local 192 if (buf == NULL) { 237 (char *)buf 249 result = _env->NewStringUTF(buf); 251 if (buf) { 252 free(buf); 286 char* buf = (char*) malloc(len); local 288 if (buf == NULL) { 310 (char *)buf 319 result = _env->NewStringUTF(buf); [all...] |
H A D | glGetActiveUniform.cpp | 192 char* buf = (char*) malloc(len); local 194 if (buf == NULL) { 240 (char *)buf 253 result = _env->NewStringUTF(buf); 255 if (buf) { 256 free(buf); 286 char* buf = (char*) malloc(len); local 288 if (buf == NULL) { 311 (char *)buf 320 result = _env->NewStringUTF(buf); [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMasRequestGetMessage.java | 63 byte[] buf = new byte[1024]; 67 while ((len = stream.read(buf)) != -1) { 68 baos.write(buf, 0, len);
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | ByteArrayOutput.h | 55 virtual status_t write(const uint8_t* buf, size_t offset, size_t count);
|
H A D | FileInput.h | 58 virtual ssize_t read(uint8_t* buf, size_t offset, size_t count);
|
H A D | FileOutput.h | 35 virtual status_t write(const uint8_t* buf, size_t offset, size_t count);
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaFormat.cpp | 174 sp<ABuffer> buf; local 175 if (format->mFormat->findBuffer(name, &buf)) { 176 *data = buf->data() + buf->offset(); 177 *outsize = buf->size(); 228 sp<ABuffer> buf = new ABuffer(size); local 229 memcpy(buf->data(), data, size); 230 buf->setRange(0, size); 232 format->mFormat->setBuffer(name, buf);
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupHelperDispatcher.cpp | 50 char* buf; local 103 buf = keyPrefix.lockBuffer(flattenedHeader.nameLength); 104 if (buf == NULL) { 109 amt = read(fd, buf, flattenedHeader.nameLength); 110 buf[flattenedHeader.nameLength] = 0; 176 const char* buf; local 195 buf = env->GetStringUTFChars(nameObj, NULL); 196 err = write(fd, buf, header.nameLength); 197 env->ReleaseStringUTFChars(nameObj, buf);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | EGLLogWrapper.java | 496 StringBuilder buf = new StringBuilder(); 497 buf.append("{\n"); 501 buf.append(" [" + index + "] = "); 503 buf.append("out of bounds"); 505 buf.append(arr[index]); 507 buf.append('\n'); 509 buf.append("}"); 510 return buf.toString(); 514 StringBuilder buf = new StringBuilder(); 515 buf [all...] |
/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);
|
/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/base/tools/bit/ |
H A D | print.cpp | 125 char* buf = (char*)malloc(size); local 129 vsnprintf(buf, size, format, args); 132 printf("%s%s\r", buf, g_escapeClearLine); 133 free(buf);
|
/frameworks/minikin/tests/util/ |
H A D | UnicodeUtils.cpp | 28 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size, argument 42 buf[output_ix++] = (uint16_t)src[input_ix++]; 63 buf[output_ix++] = codepoint; 67 buf[output_ix++] = U16_LEAD(codepoint); 68 buf[output_ix++] = U16_TRAIL(codepoint);
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerRejecter.cpp | 42 bool LayerRejecter::reject(const sp<GraphicBuffer>& buf, const BufferItem& item) { argument 43 if (buf == NULL) { 47 uint32_t bufWidth = buf->getWidth(); 48 uint32_t bufHeight = buf->getHeight();
|
H A D | LayerRejecter.h | 34 virtual bool reject(const sp<GraphicBuffer> &buf, const BufferItem &item);
|
/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 | 352 bool checkJpegStart(uint8_t* buf) { argument 353 return buf[0] == MARK && buf[1] == SOI; 356 bool checkJpegEnd(uint8_t *buf) { argument 357 return buf[0] == MARK && buf[1] == EOI; 361 uint8_t checkJpegMarker(uint8_t *buf) { argument 362 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, 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 1072 uint8_t buf[256]; local 1119 uint8_t buf[256]; local 1157 uint8_t buf[256]; local 1389 sockaddrToString(const sockaddr_storage& addr, bool addrValid, char* buf, size_t bufLen) argument [all...] |
/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();
|