Searched defs:buffer (Results 226 - 250 of 475) sorted by relevance

1234567891011>>

/frameworks/av/services/audioflinger/tests/
H A Dtest-mixer.cpp40 " [-s sample-rate] [-o <output-file>] [-a <aux-buffer-file>] [-P csv]"
47 fprintf(stderr, " -a <aux-buffer-file>\n");
54 static int writeFile(const char *filename, const void *buffer, argument
73 (void) sf_writef_float(sf, (float*)buffer, frames);
75 (void) sf_writef_short(sf, (short*)buffer, frames);
194 // create the output buffer.
204 // create the aux buffer, if needed.
296 // Aux buffer is always in q4_27 format for now.
H A Dtest_utils.h88 /* Creates a type-independent audio buffer provider from
89 * a buffer base address, size, framesize, and input increment array.
91 * No allocation or deallocation of the provided buffer is done.
115 virtual android::status_t getNextBuffer(Buffer* buffer, int64_t pts __unused = kInvalidPTS) argument
117 size_t requestedFrames = buffer->frameCount;
119 buffer->frameCount = mNumFrames - mNextFrame;
124 mNextIdx-1, provided, buffer->frameCount);
125 if (provided < buffer->frameCount) {
126 buffer->frameCount = provided;
134 requestedFrames, mNumFrames - mNextFrame, buffer
145 releaseBuffer(Buffer* buffer) argument
191 T* buffer = reinterpret_cast<T*>(vbuffer); local
215 T *buffer = reinterpret_cast<T*>(vbuffer); local
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.cpp86 status_t Camera3OutputStream::getBufferLocked(camera3_stream_buffer *buffer) { argument
114 ALOGE("%s: Stream %d: Can't dequeue next output buffer: %s (%d)",
123 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
130 const camera3_stream_buffer &buffer,
134 status_t res = returnAnyBufferLocked(buffer, timestamp, /*output*/true);
146 const camera3_stream_buffer &buffer,
161 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
162 if (buffer.release_fence != -1) {
164 "there is an error", __FUNCTION__, mId, buffer.release_fence);
165 close(buffer
129 returnBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp) argument
145 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
[all...]
H A DCamera3Stream.cpp240 status_t Camera3Stream::getBuffer(camera3_stream_buffer *buffer) { argument
252 // Wait for new buffer returned back if we are running into the limit.
259 ALOGE("%s: wait for output buffer return timed out after %lldms", __FUNCTION__,
266 res = getBufferLocked(buffer);
268 fireBufferListenersLocked(*buffer, /*acquired*/true, /*output*/true);
274 status_t Camera3Stream::returnBuffer(const camera3_stream_buffer &buffer, argument
287 status_t res = returnBufferLocked(buffer, timestamp);
289 fireBufferListenersLocked(buffer, /*acquired*/false, /*output*/true);
296 status_t Camera3Stream::getInputBuffer(camera3_stream_buffer *buffer) { argument
308 // Wait for new buffer returne
330 returnInputBuffer(const camera3_stream_buffer &buffer) argument
[all...]
H A DCamera3ZslStream.cpp54 * Try to find the best candidate for a ZSL buffer.
104 * and we get an 'empty' result only if the ring buffer
130 status_t Camera3ZslStream::getInputBufferLocked(camera3_stream_buffer *buffer) { argument
162 ALOGE("%s: Stream %d: No input buffer was queued",
178 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
187 const camera3_stream_buffer &buffer,
195 return Camera3OutputStream::returnBufferCheckedLocked(buffer,
207 // Find the buffer we are returning
216 if (anb != NULL && &(anb->handle) == buffer.buffer) {
186 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
258 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument
[all...]
/frameworks/base/cmds/bootanimation/
H A DAudioPlayer.cpp210 void* buffer = NULL; local
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java219 byte[] buffer = new byte[1];
220 int result = read(buffer, 0, 1);
221 return result == -1 ? -1 : buffer[0] & 0xff;
225 public int read(byte[] buffer, int offset, int count) throws IOException { argument
229 int res = super.read(buffer, offset, count);
234 return super.read(buffer, offset, count);
238 public int read(byte[] buffer) throws IOException { argument
239 return read(buffer, 0, buffer.length);
300 public void write(byte[] buffer, in argument
313 write(byte[] buffer) argument
[all...]
H A DStringBlock.java170 SpannableString buffer = new SpannableString(str);
179 buffer.setSpan(new StyleSpan(Typeface.BOLD),
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC),
187 buffer.setSpan(new UnderlineSpan(),
191 buffer.setSpan(new TypefaceSpan("monospace"),
195 buffer.setSpan(new RelativeSizeSpan(1.25f),
199 buffer.setSpan(new RelativeSizeSpan(0.8f),
203 buffer.setSpan(new SubscriptSpan(),
207 buffer.setSpan(new SuperscriptSpan(),
211 buffer
355 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCursor.java242 * Retrieves the requested column text and stores it in the buffer provided.
243 * If the buffer size is not sufficient, a new char buffer will be allocated
246 * if the target column is null, return buffer
247 * @param buffer the buffer to copy the text into.
249 void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer); argument
H A DCursorWrapper.java117 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
118 mCursor.copyStringToBuffer(columnIndex, buffer);
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java130 * This method transfers data starting from index 0 in the buffer.
139 * @param buffer buffer for data portion of transaction,
147 int index, byte[] buffer, int length, int timeout) {
148 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout);
163 * @param buffer buffer for data portion of transaction,
165 * @param offset the index of the first byte in the buffer to send or receive
172 byte[] buffer, int offset, int length, int timeout) {
173 checkBounds(buffer, offse
146 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
171 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument
194 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument
211 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument
245 checkBounds(byte[] buffer, int start, int length) argument
260 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument
262 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java50 private static native int native_read(FileDescriptor fd, long address, byte[] buffer, argument
52 private static native void native_write(FileDescriptor fd, long address, byte[] buffer, argument
191 * @param buffer byte array to read bytes into.
193 * @param destOffset offset into the byte array buffer to read into.
198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
203 if (destOffset < 0 || destOffset > buffer.length || count < 0
204 || count > buffer.length - destOffset
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
216 * @param buffer byte array to write bytes from.
217 * @param srcOffset offset into the byte array buffer t
222 writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
303 read(byte buffer[], int offset, int count) argument
336 write(byte buffer[], int offset, int count) argument
[all...]
/frameworks/base/core/java/android/speech/
H A DRecognitionService.java247 * @param buffer a buffer containing a sequence of big-endian 16-bit integers representing a
250 public void bufferReceived(byte[] buffer) throws RemoteException { argument
251 mListener.onBufferReceived(buffer);
/frameworks/base/core/java/android/speech/tts/
H A DFileSynthesisCallback.java149 public int audioAvailable(byte[] buffer, int offset, int length) { argument
151 Log.d(TAG, "FileSynthesisRequest.audioAvailable(" + buffer + "," + offset
177 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java127 * buffer as well as those present in the key event.
132 * @param buffer The text buffer.
136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { argument
138 int metaState = MetaKeyKeyListener.getMetaState(buffer, event)
153 * @param buffer The text buffer.
160 protected boolean handleMovementKey(TextView widget, Spannable buffer, argument
165 return left(widget, buffer);
168 return leftWord(widget, buffer);
252 left(TextView widget, Spannable buffer) argument
264 right(TextView widget, Spannable buffer) argument
276 up(TextView widget, Spannable buffer) argument
288 down(TextView widget, Spannable buffer) argument
300 pageUp(TextView widget, Spannable buffer) argument
312 pageDown(TextView widget, Spannable buffer) argument
324 top(TextView widget, Spannable buffer) argument
336 bottom(TextView widget, Spannable buffer) argument
348 lineStart(TextView widget, Spannable buffer) argument
360 lineEnd(TextView widget, Spannable buffer) argument
365 leftWord(TextView widget, Spannable buffer) argument
370 rightWord(TextView widget, Spannable buffer) argument
384 home(TextView widget, Spannable buffer) argument
398 end(TextView widget, Spannable buffer) argument
466 scrollLeft(TextView widget, Spannable buffer, int amount) argument
487 scrollRight(TextView widget, Spannable buffer, int amount) argument
508 scrollUp(TextView widget, Spannable buffer, int amount) argument
535 scrollDown(TextView widget, Spannable buffer, int amount) argument
565 scrollPageUp(TextView widget, Spannable buffer) argument
585 scrollPageDown(TextView widget, Spannable buffer) argument
607 scrollTop(TextView widget, Spannable buffer) argument
625 scrollBottom(TextView widget, Spannable buffer) argument
645 scrollLineStart(TextView widget, Spannable buffer) argument
664 scrollLineEnd(TextView widget, Spannable buffer) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java41 * A buffer that is initialized when raw bytes are first written to this
43 * Between writes this buffer is always ready to receive data; ie. the
49 * A buffer that is initialized when raw bytes are first written to this
50 * stream. Between writes this buffer is always clear; ie. the position is
80 * Searches buffer for line breaks and logs a message for each one.
99 // Log the remainder of the buffer.
115 public void write(byte[] buffer) { argument
116 write(buffer, 0, buffer.length);
131 // copy some bytes from the array to the long-lived buffer
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp26 virtual size_t read(void* buffer, size_t size) { argument
28 if (NULL == buffer) {
53 return this->doRead(buffer, size);
61 size_t doRead(void* buffer, size_t size) { argument
92 reinterpret_cast<jbyte*>(buffer));
103 buffer = (void*)((char*)buffer + n);
191 virtual bool write(const void* buffer, size_t size) { argument
206 reinterpret_cast<const jbyte*>(buffer));
223 buffer
[all...]
H A DHarfBuzzNGFaceSkia.cpp146 char* buffer = reinterpret_cast<char*>(malloc(tableSize)); local
147 if (!buffer)
149 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
151 free(buffer);
155 return hb_blob_create(const_cast<char*>(buffer), tableSize,
156 HB_MEMORY_MODE_WRITABLE, buffer, free);
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp89 char buffer[16384]; local
93 int length = read(fd, buffer, sizeof(buffer));
100 memcpy(bytes, buffer, length);
170 jbyteArray buffer, jint start, jint length, jint timeout)
179 if (buffer) {
180 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL);
187 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0);
195 jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout)
204 if (buffer) {
168 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument
194 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) argument
[all...]
H A Dandroid_net_TrafficStats.cpp83 char buffer[384]; local
88 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
89 int matched = sscanf(buffer, "%31s %" SCNu64 " %" SCNu64 " %" SCNu64
127 char buffer[384]; local
132 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
133 if (sscanf(buffer,
H A Dandroid_view_GraphicBuffer.cpp103 GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { argument
106 sp<GraphicBuffer> buffer; member in class:android::GraphicBufferWrapper
124 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error));
125 if (buffer == NULL) {
130 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer);
167 sp<GraphicBuffer> buffer(wrapper->buffer);
176 rect.set(Rect(buffer
252 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
[all...]
H A Dandroid_view_TextureView.cpp77 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) { argument
79 info.fWidth = buffer.width;
80 info.fHeight = buffer.height;
81 switch (buffer.format) {
143 ANativeWindow_Buffer buffer; local
156 int32_t status = native_window_lock(window.get(), &buffer, &rect);
159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
162 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
164 if (buffer
[all...]
H A Dcom_android_internal_net_NetworkStatsFactory.cpp125 char buffer[384]; local
126 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
129 char* pos = buffer;
133 //ALOGI("Index #%d: %s", idx, buffer);
140 ALOGE("inconsistent idx=%d after lastIdx=%d: %s", idx, lastIdx, buffer);
158 ALOGE("bad iface: %s", buffer);
174 //ALOGI("skipping due to iface: %s", buffer);
198 //ALOGI("skipping due to tag: %s", buffer);
211 //ALOGI("skipping due to uid: %s", buffer);
[all...]
/frameworks/base/include/androidfw/
H A DCursorWindow.h42 * This class stores a set of rows from a database in a buffer. The begining of the
75 } buffer; member in union:android::CursorWindow::FieldSlot::__anon892
130 *outSizeIncludingNull = fieldSlot->data.buffer.size;
131 return static_cast<char*>(offsetToPtr(fieldSlot->data.buffer.offset));
135 *outSize = fieldSlot->data.buffer.size;
136 return offsetToPtr(fieldSlot->data.buffer.offset);
/frameworks/base/libs/common_time/
H A Dcommon_time_server_api.cpp281 res = snprintf(buffer, sizeof(buffer), a, b); \
282 buffer[sizeof(buffer) - 1] = 0; \
284 write(fd, buffer, res); \
293 char buffer[SIZE]; local
296 snprintf(buffer, SIZE, "Permission Denial: "
300 write(fd, buffer, strlen(buffer));
369 char buffer[SIZ local
408 char buffer[SIZE]; local
[all...]

Completed in 6375 milliseconds

1234567891011>>