/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.h | 35 virtual int serializePayloadSize(uint8_t *buf); 36 virtual void serializePayload(uint8_t *buf)=0; 38 uint64_t serializeInto(uint8_t *buf); 55 const sp<ABuffer> &buf, 83 void serializePayload(uint8_t *buf); 90 void serializePayload(uint8_t *buf); 96 void serializePayload(uint8_t *buf); 102 void serializePayload(uint8_t *buf); 112 void serializePayload(uint8_t *buf); 118 int serializePayloadSize(uint8_t *buf); [all...] |
H A D | WebmElement.cpp | 85 int WebmElement::serializePayloadSize(uint8_t *buf) { argument 86 return serializeCodedUnsigned(encodeUnsigned(mSize), buf); 89 uint64_t WebmElement::serializeInto(uint8_t *buf) { argument 90 uint8_t *cur = buf; 97 return cur - buf; 101 uint8_t buf[8]; local 103 return sizeOf(mId) + serializePayloadSize(buf) + mSize; 108 uint8_t *buf = new uint8_t[size]; local 109 serializeInto(buf); 110 return buf; 114 uint8_t buf[8]; local 141 serializePayload(uint8_t *buf) argument 155 serializePayload(uint8_t *buf) argument 175 serializePayload(uint8_t *buf) argument 185 serializePayload(uint8_t *buf) argument 206 serializePayload(uint8_t *buf) argument 207 serializeCodedUnsigned(encodeUnsigned(mTrackNum), buf); local 222 serializePayloadSize(uint8_t *buf) argument 226 serializePayload(uint8_t *buf) argument 241 serializePayloadSize(uint8_t *buf) argument 248 serializePayload(uint8_t *buf) argument 307 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument 369 sp<ABuffer> buf = new ABuffer((void *)data, size); // note: buf does not own data local [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_SystemProperties.cpp | 35 char buf[PROPERTY_VALUE_MAX]; local 45 len = property_get(key, buf, ""); 49 rvJ = env->NewStringUTF(buf); 71 char buf[PROPERTY_VALUE_MAX]; local 82 len = property_get(key, buf, ""); 84 result = strtol(buf, &end, 0); 85 if (end == buf) { 101 char buf[PROPERTY_VALUE_MAX]; local 112 len = property_get(key, buf, ""); 114 result = strtoll(buf, 131 char buf[PROPERTY_VALUE_MAX]; local [all...] |
H A D | android_app_admin_SecurityLog.cpp | 55 uint8_t buf[MAX_EVENT_PAYLOAD]; local 61 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline 64 buf[0] = EVENT_TYPE_STRING; 65 memcpy(&buf[1], &len, sizeof(len)); 66 memcpy(&buf[1 + sizeof(len)], str, len); 67 buf[1 + sizeof(len) + len] = '\n'; 70 return __android_log_security_bwrite(tag, buf, 2 + sizeof(len) + len); 79 uint8_t buf[MAX_EVENT_PAYLOAD]; local 80 const size_t max = sizeof(buf) - 1; // leave room for final newline 91 buf[po [all...] |
H A D | android_hardware_SerialPort.cpp | 172 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...] |
/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 34 char buf[5]; local 37 utf16_to_utf8(&c, 1, buf, sizeof(buf)); 38 out->append(buf, strlen(buf));
|
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/native/libs/gui/tests/ |
H A D | SurfaceTextureFBO.h | 59 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, argument 65 buf[offset + 0] = r; 66 buf[offset + 1] = g; 67 buf[offset + 2] = b; 68 buf[offset + 3] = a;
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 187 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument 191 r ^= buf[i]; 233 uint8_t* buf = new uint8_t [fileSize]; local 234 if (!buf) { 242 int err = mBlobCache->flatten(buf + headerSize, cacheSize); 246 delete [] buf; 253 memcpy(buf, cacheFileMagic, 4); 254 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); 255 *crc = crc32c(buf + headerSize, cacheSize); 257 if (write(fd, buf, fileSiz 301 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, local [all...] |
/frameworks/support/compat/java/android/support/v4/os/ |
H A D | LocaleHelper.java | 62 StringBuilder buf = new StringBuilder(); 63 buf.append(locale.getLanguage()); 66 buf.append("-"); 67 buf.append(locale.getCountry()); 70 return buf.toString();
|
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 168 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { argument 172 status_t err = buf.nextUint32(&i); 186 err = buf.nextUint32(&i); 192 err = buf.nextUint32(&i); 198 err = buf.nextUint32(&i); 204 err = buf.nextPath(path); 216 err = buf.nextPath(path); 226 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { argument 230 status_t err = buf.nextUint16(&data16); 236 err = buf 296 IdmapBuffer buf; local [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ZipUtils.h | 39 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen, 41 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen, 43 static bool inflateToBuffer(void *in, void* buf, long uncompressedLen,
|
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
H A D | LargeAssetTest.java | 71 byte[] buf = new byte[4]; 74 int num = is.read(buf, 0, 4); 80 int value = (buf[3] << 24) + ((buf[2] & 0xFF) << 16) 81 + ((buf[1] & 0xFF) << 8) + (buf[0] & 0xFF);
|
/frameworks/av/media/img_utils/src/ |
H A D | ByteArrayOutput.cpp | 32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 33 if (mByteArray.appendArray(buf + offset, count) < 0) {
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | IndentingPrintWriter.java | 95 final char[] buf = new char[len]; 96 s.getChars(off, len - off, buf, 0); 97 write(buf, 0, len); 101 public void write(char[] buf, int offset, int count) { argument 109 char ch = buf[lineEnd++]; 113 super.write(buf, lineStart, lineEnd - lineStart); 129 super.write(buf, lineStart, lineEnd - lineStart); 140 super.write(buf, lineStart, lineEnd - lineStart);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 329 byte[] buf; field in class:TestWebServer.Worker 356 buf = new byte[BUF_SIZE]; 426 buf[i] = 0; 450 buf[read] = (byte)data; 455 if (buf[read++]==(byte)'\n') { 477 byte[] buf = new byte[length]; 481 count = is.read(buf, read, length-read); 510 if (buf[0] == (byte)'G' && 511 buf[1] == (byte)'E' && 512 buf[ [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Measurement.cpp | 32 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, argument 58 advances + (start - layoutStart), buf, start, count, i)) { 72 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument 74 return getRunAdvance(advances, buf, start, start, count, offset); 85 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument 90 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) { 107 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) { 108 // "getRunAdvance(layout, buf, start, count, i) - advance" but more efficient 109 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i)
|
/frameworks/rs/ |
H A D | rsThreadIO.cpp | 79 uint32_t buf; local 81 data = &buf; 82 dataLen = sizeof(buf); 89 uint32_t buf; local 91 data = &buf; 92 dataLen = sizeof(buf); 105 uint8_t buf[2 * 1024]; local 106 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; 107 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)]; 134 r = mToCore.read(&buf[ [all...] |
/frameworks/av/services/mediaresourcemanager/ |
H A D | ServiceLog.cpp | 36 char buf[64]; local 37 strftime(buf, sizeof(buf), "%m-%d %T", localtime(&now)); 38 mLogs.add(String8::format("%s %s", buf, log.string()));
|
/frameworks/base/cmds/incidentd/src/ |
H A D | Reporter.cpp | 41 write_all(int fd, uint8_t const* buf, size_t size) argument 44 ssize_t amt = ::write(fd, buf, size); 49 buf += amt; 95 ReportRequestSet::write(uint8_t const* buf, size_t size) argument 104 err = write_all(request->fd, buf, size); 114 err = write_all(mMainFd, buf, size); 131 char buf[100]; local 139 strftime(buf, sizeof(buf), "/incident-%Y%m%d-%H%M%S", localtime(&mStartTime)); 140 mFilename = INCIDENT_DIRECTORY + buf; [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | MultiTapKeyListener.java | 237 public void onSpanChanged(Spannable buf, argument 240 buf.removeSpan(TextKeyListener.ACTIVE); 241 removeTimeouts(buf); 245 private static void removeTimeouts(Spannable buf) { argument 246 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class); 253 buf.removeSpan(t); 270 Spannable buf = mBuffer; 272 if (buf != null) { 273 int st = Selection.getSelectionStart(buf); [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 32 inline void FrameOutput::setValueLE(uint8_t* buf, uint32_t value) { argument 37 buf[0] = (uint8_t) value; 38 buf[1] = (uint8_t) (value >> 8); 39 buf[2] = (uint8_t) (value >> 16); 40 buf[3] = (uint8_t) (value >> 24); 193 void FrameOutput::reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount) { argument 199 const uint8_t* readPtr = buf; 201 *buf++ = *readPtr++; 202 *buf++ = *readPtr++; 203 *buf [all...] |
/frameworks/native/opengl/tests/gl2_jni/jni/ |
H A D | gl_code.cpp | 48 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 D | gl_code.cpp | 48 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...] |