/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 275 char* buf = m_key.lockBuffer(size); local 276 if (buf == NULL) { 280 int amt = read(m_fd, buf, size+1);
|
H A D | BackupHelpers.cpp | 227 char* buf = (char*)malloc(bufsize); local 239 free(buf); 249 free(buf); 255 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { 260 err = dataStream->WriteEntityData(buf, amt); 262 free(buf); 270 memset(buf, 0, bufsize); 274 err = dataStream->WriteEntityData(buf, amt); 276 free(buf); 285 free(buf); 320 char* buf = (char*)malloc(bufsize); local 460 calc_tar_checksum(char* buf) argument 475 write_pax_header_entry(char* buf, const char* key, const char* value) argument 552 char* buf = (char *)calloc(1,BUFSIZE); local 748 void* buf = m_buf; local [all...] |
H A D | ResourceTypes.cpp | 4485 char buf[128]; local 4491 buf[i++] = *s++; 4498 if (buf[0] < '0' && buf[0] > '9' && buf[0] != '.') { 4502 buf[i] = 0; 4504 float f = strtof(buf, (char**)&end);
|
H A D | ZipUtils.cpp | 36 static inline unsigned long get4LE(const unsigned char* buf) { argument 37 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 52 * "buf" must hold at least "uncompressedLen" bytes. 54 /*static*/ template<typename T> bool inflateToBuffer(T& reader, void* buf, argument 77 zstream.next_out = (Bytef*) buf; 216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument 220 return ::inflateToBuffer<FileReader>(reader, buf, 224 inflateToBuffer(int fd, void* buf, long uncompressedLen, long compressedLen) argument 232 inflateToBuffer(void* in, void* buf, long uncompressedLen, long compressedLen) argument 316 unsigned char buf[8]; local [all...] |
/frameworks/base/libs/common_time/ |
H A D | common_time_server.cpp | 611 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...] |
H A D | common_time_server.h | 316 char* buf, size_t bufLen);
|
H A D | diag_thread.cpp | 275 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...] |
H A D | utils.cpp | 122 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/base/libs/hwui/ |
H A D | DrawProfiler.cpp | 222 char buf[PROPERTY_VALUE_MAX] = {'\0',}; local 223 if (property_get(PROPERTY_PROFILE, buf, "") > 0) { 224 if (!strcmp(buf, PROPERTY_PROFILE_VISUALIZE_BARS)) { 226 } else if (!strcmp(buf, "true")) {
|
H A D | OpenGLRenderer.cpp | 398 char buf[BUFFER_SIZE]; local 401 vsnprintf(buf, BUFFER_SIZE, fmt, ap); 404 eventMark(buf);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 62 char buf[PROPERTY_VALUE_MAX]; local 63 int len = property_get(PROPERTY_RENDER_DIRTY_REGIONS, buf, "true"); 64 return !strncasecmp("true", buf, len);
|
H A D | RenderThread.cpp | 193 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local 196 while ((n = receiver->getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { 198 const DisplayEventReceiver::Event& ev = buf[i];
|
/frameworks/base/libs/hwui/utils/ |
H A D | TraceUtils.h | 42 char buf[BUFFER_SIZE]; local 45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); 48 ATRACE_BEGIN(buf);
|
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 183 byte[] buf = sb.toString().getBytes(); 184 parcel.writeInt(buf.length); 185 parcel.writeByteArray(buf);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 393 jobject *buf) const { 396 *buf = NULL; 425 *buf = byteBuffer; 430 JNIEnv *env, bool input, size_t index, jobject *buf) const { 443 env, !input /* readOnly */, input /* clearBuffer */, buffer, buf); 447 JNIEnv *env, bool input, size_t index, jobject *buf) const { 461 *buf = NULL; 514 *buf = env->NewObject(imageClazz.get(), imageConstructID, 524 *buf = NULL;
|
H A D | android_media_MediaCodec.h | 99 JNIEnv *env, bool input, size_t index, jobject *buf) const; 142 jobject *buf) const;
|
H A D | android_mtp_MtpDatabase.cpp | 769 char buf[1024]; local 771 entry->tag, entry->format, entry->size, exif_entry_get_value(entry, buf, sizeof(buf)));
|
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument 173 return asset->mAsset->read(buf, (size_t)count);
|
/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...] |
H A D | GLES31Ext.java | 285 // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 292 String buf 445 // C function void glBlendEquationiEXT ( GLuint buf, GLenum mode ) 448 int buf, 452 // C function void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 455 int buf, 460 // C function void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst ) 463 int buf, 468 // C function void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha ) 471 int buf, 447 glBlendEquationiEXT( int buf, int mode ) argument 454 glBlendEquationSeparateiEXT( int buf, int modeRGB, int modeAlpha ) argument 462 glBlendFunciEXT( int buf, int src, int dst ) argument 470 glBlendFuncSeparateiEXT( int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ) argument [all...] |
H A D | GLLogWrapper.java | 130 private void formattedAppend(StringBuilder buf, int value, int format) { argument 133 buf.append(value); 136 buf.append(Float.intBitsToFloat(value)); 139 buf.append(value / 65536.0f); 145 StringBuilder buf = new StringBuilder(); 146 buf.append("{\n"); 150 buf.append(" [" + index + "] = "); 152 buf.append("out of bounds"); 154 formattedAppend(buf, arr[index], format); 156 buf 198 toString(int n, FloatBuffer buf) argument 208 toString(int n, int format, IntBuffer buf) argument 220 toString(int n, ShortBuffer buf) argument 230 arg(String name, int n, FloatBuffer buf) argument 234 arg(String name, int n, IntBuffer buf) argument 238 arg(String name, int n, ShortBuffer buf) argument [all...] |
H A D | GLSurfaceView.java | 1780 @Override public void write(char[] buf, int offset, int count) { argument 1782 char c = buf[offset + i];
|
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
H A D | ObbBackupService.java | 88 byte[] buf = new byte[4]; 89 out.write(buf);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
H A D | CountedDataInputStream.java | 126 byte buf[] = new byte[n]; 127 readOrThrow(buf); 128 return new String(buf, "UTF8"); 132 byte buf[] = new byte[n]; 133 readOrThrow(buf); 134 return new String(buf, charset);
|