Searched defs:buf (Results 101 - 125 of 270) sorted by relevance

1234567891011

/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp249 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/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp211 ANativeWindowBuffer *buf; local
213 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd);
215 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0);
232 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst));
242 buf->stride, buf->height,
254 size_t dst_y_size = buf->stride * buf->height;
255 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
256 size_t dst_c_size = dst_c_stride * buf
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaFormat.cpp174 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/av/services/camera/libcameraservice/api1/client2/
H A DJpegProcessor.cpp347 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/base/cmds/idmap/
H A Dinspect.cpp167 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { argument
171 status_t err = buf.nextUint32(&i);
185 err = buf.nextUint32(&i);
191 err = buf.nextUint32(&i);
197 err = buf.nextUint32(&i);
203 err = buf.nextPath(path);
215 err = buf.nextPath(path);
225 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { argument
229 status_t err = buf.nextUint16(&data16);
235 err = buf
295 IdmapBuffer buf; local
[all...]
H A Dscan.cpp148 char *buf = new char[uncompLen]; local
149 if (NULL == buf) {
155 if (inflater.read(buf, uncompLen) < 0) {
157 delete[] buf;
162 int priority = parse_manifest(buf, static_cast<size_t>(uncompLen), target_package_name);
163 delete[] buf;
/frameworks/base/core/java/android/util/jar/
H A DStrictJarVerifier.java125 public void write(byte[] buf, int off, int nbytes) { argument
126 digest.update(buf, off, nbytes);
258 * @param buf
262 void addMetaEntry(String name, byte[] buf) { argument
263 metaEntries.put(name.toUpperCase(Locale.US), buf);
/frameworks/base/core/java/com/android/internal/os/
H A DInstallerConnection.java51 private final byte buf[] = new byte[1024]; field in class:InstallerConnection
93 String s = new String(buf, 0, replyLength);
237 if (!readFully(buf, 2)) {
241 final int len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8);
242 if ((len < 1) || (len > buf.length)) {
248 if (!readFully(buf, len)) {
258 if ((len < 1) || (len > buf.length)) {
262 buf[0] = (byte) (len & 0xff);
263 buf[
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastPrintWriter.java33 public void write(char[] buf, int offset, int count) throws IOException { argument
311 private void appendLocked(char[] buf, int i, final int length) throws IOException { argument
317 appendLocked(buf, i, next < end ? BUFFER_LEN : (end - i));
327 System.arraycopy(buf, i, mText, pos, length);
568 * @param buf
576 * offset + count} is greater than the length of {@code buf}.
579 public void write(char[] buf, int offset, int count) { argument
582 appendLocked(buf, offset, count);
H A DFastXmlSerializer.java100 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/base/core/jni/android/graphics/
H A DFontFamily.cpp207 const void* buf = asset->getBuffer(false); local
208 if (NULL == buf) {
214 SkAutoTUnref<SkData> data(SkData::NewWithProc(buf, asset->getLength(), releaseAsset, asset));
223 return addSkTypeface(fontFamily, face, buf, bufSize, /* ttcIndex */ 0);
/frameworks/base/core/jni/
H A Dandroid_app_admin_SecurityLog.cpp55 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 Dandroid_database_CursorWindow.cpp230 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...]
H A Dandroid_net_LocalSocketImpl.cpp177 * Reads data from a socket into buf, processing any ancillary data
189 unsigned char *buf = (unsigned char *)buffer; local
197 iv.iov_base = buf;
241 void *buf, size_t len)
245 unsigned char *buffer = (unsigned char *)buf;
336 unsigned char buf; local
338 err = socket_read_all(env, object, fd, &buf, 1);
350 return (jint)buf;
240 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
H A Dandroid_util_EventLog.cpp88 uint8_t buf[MAX_EVENT_PAYLOAD]; local
94 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline
97 buf[0] = EVENT_TYPE_STRING;
98 memcpy(&buf[1], &len, sizeof(len));
99 memcpy(&buf[1 + sizeof(len)], str, len);
100 buf[1 + sizeof(len) + len] = '\n';
103 return android_bWriteLog(tag, buf, 2 + sizeof(len) + len);
116 uint8_t buf[MAX_EVENT_PAYLOAD]; local
117 const size_t max = sizeof(buf) - 1; // leave room for final newline
128 buf[po
[all...]
/frameworks/base/libs/androidfw/
H A DBackupData.cpp269 char* buf = m_key.lockBuffer(size); local
270 if (buf == NULL) {
274 int amt = read(m_fd, buf, size+1);
H A DZipUtils.cpp36 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/hwui/
H A DProperties.cpp72 char buf[PROPERTY_VALUE_MAX] = {'\0',}; local
74 if (property_get(key, buf, "") > 0) {
75 return atoi(buf);
81 char buf[PROPERTY_VALUE_MAX] = {'\0',}; local
83 if (property_get(key, buf, "") > 0) {
84 return atof(buf);
/frameworks/base/libs/hwui/renderthread/
H A DRenderThread.cpp215 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local
218 while ((n = receiver->getEvents(buf, EVENT_BUFFER_SIZE)) > 0) {
220 const DisplayEventReceiver::Event& ev = buf[i];
/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.cpp96 void* operator new(size_t /*size*/, void* buf) { return buf; } argument
240 void* buf = malloc(pageSize); local
241 return new (buf) Page();
/frameworks/base/native/android/
H A Dasset_manager.cpp171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument
173 return asset->mAsset->read(buf, (size_t)count);
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp50 void clearBuffer(Buffer* buf, uint32_t pixel) { argument
51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4);
54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument
55 if (y>0 && y<ssize_t(buf->h)) {
56 uint32_t* bits = buf->pixels + y * buf->s;
57 if (x>=0 && x<ssize_t(buf->w)) {
61 if ((x+W)>=0 && (x+W)<ssize_t(buf
67 drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) argument
84 drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) argument
105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument
[all...]
/frameworks/base/tools/aapt/
H A DZipEntry.h116 static inline unsigned short getShortLE(const unsigned char* buf) { argument
117 return buf[0] | (buf[1] << 8);
119 static inline unsigned long getLongLE(const unsigned char* buf) { argument
120 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
122 static inline void putShortLE(unsigned char* buf, short val) { argument
123 buf[
126 putLongLE(unsigned char* buf, long val) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DStaticLayout_Delegate.java56 /*package*/ static long nLoadHyphenator(ByteBuffer buf, int offset) { argument
57 return Hyphenator_Delegate.loadHyphenator(buf, offset);
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DIntegralToString.java139 char[] buf = new char[bufLen];
144 buf[--cursor] = DIGITS[radix * q - i];
149 buf[--cursor] = '-';
152 return new String(buf, cursor, bufLen - cursor);
209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen];
217 buf[--cursor] = ONES[r];
218 buf[--cursor] = TENS[r];
227 buf[--cursor] = DIGITS[r];
232 buf[--cursor] = '-';
236 sb.append(buf, curso
393 intIntoCharArray(char[] buf, int cursor, int n) argument
[all...]

Completed in 528 milliseconds

1234567891011