/frameworks/wilhelm/src/android/util/ |
H A D | AacAdtsExtractor.cpp | 266 SL_LOGE("Can't seek in AAC ADTS buffer queue"); 277 MediaBuffer *buffer; local 278 status_t err = mGroup->acquire_buffer(&buffer); 284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), 289 buffer->release(); 290 buffer = NULL; 294 buffer->set_range(0, frameSizeWithoutHeader); 295 buffer->meta_data()->setInt64(kKeyTime, mCurrentTimeUs); 296 buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1); 301 *out = buffer; [all...] |
/frameworks/wilhelm/src/ |
H A D | interfaces.c | 136 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument 141 strcpy(buffer, "MPH"); 142 strcpy(&buffer[3], infix); 143 strcat(buffer, "_"); 144 strcat(buffer, interface_names[MPH]);
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 46 // Storage area for the buffer queues 71 // Called after audio recorder fills a buffer with data 78 // We should only be called when a recording buffer is done 82 char *buffer = rxBuffers[rxFront]; local 84 // Remove buffer from record queue 90 ssize_t actual = audio_utils_fifo_write(&fifo, buffer, (size_t) bufSizeInFrames); 99 actual = audio_utils_fifo_write(&fifo2, buffer, (size_t) bufSizeInFrames); 105 // Enqueue this same buffer for the recorder to fill again. 106 result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, buffer, bufSizeInBytes); 115 rxBuffers[rxRear] = buffer; 172 char *buffer = txBuffers[txFront]; local 455 char *buffer = freeBuffers[freeFront]; local 519 char *buffer = freeBuffers[freeFront]; local 552 short buffer[bufSizeInFrames * channels]; local [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | configbq.c | 17 // Test various buffer queue configurations 145 // generate a sine wave buffer, ascending in half-steps for each format 147 static unsigned char buffer[N]; local 156 buffer[i++] = (sampleLeft + 32768) >> 8; 157 buffer[i++] = (sampleRight + 32768) >> 8; 160 buffer[i++] = sampleLeft & 0xFF; 161 buffer[i++] = sampleLeft >> 8; 162 buffer[i++] = sampleRight & 0xFF; 163 buffer[i++] = sampleRight >> 8; 170 buffer[ [all...] |
H A D | intbufq.c | 17 /* interactive buffer queue test program */ 175 frame_t *buffer; local 189 buffer = sine; 193 buffer = square; 197 buffer = half; 213 buffer = sawtooth; 217 result = (*playerBufferqueue)->Enqueue(playerBufferqueue, buffer, size);
|
H A D | multiplay.c | 65 static char buffer[32]; local 68 sprintf(buffer, "%d", (int) result); 69 return buffer;
|
H A D | playbq.c | 17 // Play an audio file using buffer queue 42 unsigned which; // which buffer to use next 70 static SLuint32 squeeze(void *buffer, SLuint32 nbytes) argument 74 swab(buffer, buffer, nbytes); 77 memcpy_to_u8_from_i16((uint8_t *) buffer, (const int16_t *) buffer, 81 memcpy_to_p24_from_i32((uint8_t *) buffer, (const int32_t *) buffer, 88 // This callback is called each time a buffer finishe 94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local 497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local [all...] |
H A D | playbq.cpp | 17 // Play an audio file using buffer queue 42 unsigned which; // which buffer to use next 70 static SLuint32 squeeze(void *buffer, SLuint32 nbytes) argument 74 swab(buffer, buffer, nbytes); 77 memcpy_to_u8_from_i16((uint8_t *) buffer, (const int16_t *) buffer, 81 memcpy_to_p24_from_i32((uint8_t *) buffer, (const int32_t *) buffer, 88 // This callback is called each time a buffer finishe 94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local 497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local [all...] |
/frameworks/wilhelm/tools/hashgen/ |
H A D | frag3.c | 4 extern void MPH_to_MPH_string(unsigned MPH, char buffer[40]); 18 char buffer[40]; local 19 buffer[39] = 'x'; 20 MPH_to_MPH_string(MPH, buffer); 21 assert('x' == buffer[39]); 22 printf(" %s", buffer);
|
H A D | interfaces.c | 136 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument 141 strcpy(buffer, "MPH"); 142 strcpy(&buffer[3], infix); 143 strcat(buffer, "_"); 144 strcat(buffer, interface_names[MPH]);
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 465 public int read(byte[] buffer, int offset, int count) throws IOException { argument 466 int result = super.read(buffer, offset, count);
|
H A D | PoolingByteArrayOutputStream.java | 69 * Ensures there is enough space in the buffer for the given number of additional bytes. 72 /* Can the buffer handle @i more bytes, if not expand it */ 83 public synchronized void write(byte[] buffer, int offset, int len) { argument 85 super.write(buffer, offset, len);
|
/frameworks/webview/chromium/plat_support/ |
H A D | graphic_buffer_impl.cpp | 38 GraphicBufferImpl* buffer = new GraphicBufferImpl( local 40 if (buffer->InitCheck() != NO_ERROR) { 41 delete buffer; 44 return reinterpret_cast<intptr_t>(buffer); 49 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 50 delete buffer; 55 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 56 return buffer->Map(mode, vaddr); 61 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 62 return buffer 67 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 73 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local [all...] |
/frameworks/rs/driver/ |
H A D | rsdCore.cpp | 364 void* buffer = calloc(size, sizeof(char)); local 365 return buffer;
|
H A D | rsdVertexArray.h | 35 uint32_t buffer; member in class:RsdVertexArray::Attrib
|
/frameworks/rs/ |
H A D | rsContext.cpp | 229 char buffer[128]; local 230 sprintf(buffer, "Avg fps %u, Frame %i ms, Script %i ms", mAverageFPS, mTimeMSLastFrame, mTimeMSLastScript); 233 uint32_t bufferLen = strlen(buffer); 239 mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 6); 242 mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 7);
|
H A D | rsList.h | 71 if ((void*)p >= (void*)&buffer->next) { 72 buffer = buffer->next; 73 if (buffer != nullptr) { 74 p = &buffer->data.typed; 83 return p == other.p && buffer == other.buffer && list == other.list; 87 return p != other.p || buffer != other.buffer || list != other.list; 97 p(p_), buffer(buffer 101 LinkedBuffer* buffer; member in class:android::renderscript::List::iterator [all...] |
/frameworks/support/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... .InputStream in
java.io.OutputStream out
byte[] buffer
int len
static synthetic java.io.File access ... |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | RIL.java | 543 * <code>buffer</code> and the length of the final message (less header) 547 * @param buffer Buffer to fill in. Must be as large as maximum 552 private static int readRilMessage(InputStream is, byte[] buffer) argument 563 countRead = is.read(buffer, offset, remaining); 574 messageLength = ((buffer[0] & 0xff) << 24) 575 | ((buffer[1] & 0xff) << 16) 576 | ((buffer[2] & 0xff) << 8) 577 | (buffer[3] & 0xff); 579 // Then, re-use the buffer and read in the message itself 583 countRead = is.read(buffer, offse 599 byte[] buffer; field in class:RIL.RILReceiver [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SimpleSessionDescription.java | 138 StringBuilder buffer = new StringBuilder(); 139 mFields.write(buffer); 141 media.write(buffer); 143 return buffer.toString(); 368 private void write(StringBuilder buffer) { argument 369 buffer.append("m=").append(mType).append(' ').append(mPort); 371 buffer.append('/').append(mPortCount); 373 buffer.append(' ').append(mProtocol); 375 buffer.append(' ').append(format); 377 buffer 513 write(StringBuilder buffer) argument [all...] |
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AudioGroup.cpp | 64 // We use a circular array to implement jitter buffer. The simplest way is doing 70 // jitter buffer. For a stream at 8000Hz it takes 32 kilobytes. These numbers 184 // Allocate jitter buffer. 288 int32_t buffer[4] = { local 295 buffer[3] |= htonl(1 << 23); 298 sendto(mSocket, buffer, sizeof(buffer), MSG_DONTWAIT, 305 int32_t buffer[mSampleCount + 3]; local 309 memset(buffer, 0, sizeof(buffer)); 411 __attribute__((aligned(4))) uint8_t buffer[2048]; local 887 AudioTrack::Buffer buffer; local 903 AudioRecord::Buffer buffer; local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiLogger.java | 66 /** ring buffer flags; keep these consistent with wifi_logger.h */ 89 /** minimum buffer size for each of the log levels */ 158 if (DBG) Log.d(TAG, "There is no per packet ring buffer"); 167 if (DBG) Log.d(TAG, "There is no per packet ring buffer"); 287 builder.append("ring-buffer = ").append(ringName).append("\n"); 294 byte[] buffer = new byte[size]; 297 System.arraycopy(buffers[i], 0, buffer, index, buffers[i].length); 301 builder.append(compressToBase64(buffer)); 360 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { 361 WifiLogger.this.onRingBufferData(status, buffer); 370 onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) argument 377 onWifiAlert(int errorCode, byte[] buffer) argument 449 startLoggingRingBuffer(WifiNative.RingBufferStatus buffer) argument 463 stopLoggingRingBuffer(WifiNative.RingBufferStatus buffer) argument [all...] |
H A D | WifiNative.java | 637 // huge string buffer while the amount we really want is generally pretty small 2436 void onRingBufferData(RingBufferStatus status, byte[] buffer); argument 2437 void onWifiAlert(int errorCode, byte[] buffer); argument 2443 private static void onRingBufferData(RingBufferStatus status, byte[] buffer) { argument 2446 handler.onRingBufferData(status, buffer); 2450 private static void onWifiAlert(byte[] buffer, int errorCode) { argument 2453 handler.onWifiAlert(errorCode, buffer); 2587 private static void onWifiFwMemoryAvailable(byte[] buffer) { argument 2588 mFwMemoryDump = buffer; 2590 Log.d(TAG, "onWifiFwMemoryAvailable is called and buffer lengt [all...] |
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 1637 //char *buffer = NULL; 1640 char *buffer = (char *)malloc(buffer_length); local 1641 if (!buffer) return NULL; 1642 memset(buffer, 0, buffer_length); 1648 free(buffer); 1652 wifi_error result = hal_fn.wifi_get_driver_version(handle, buffer, buffer_length); 1655 ALOGD("buffer is %p, length is %d", buffer, buffer_length); 1656 JNIObject<jstring> driver_version = helper.newStringUTF(buffer); 1657 free(buffer); 1671 char *buffer = (char *)malloc(buffer_length); local 1759 on_ring_buffer_data(char *ring_name, char *buffer, int buffer_size, wifi_ring_buffer_status *status) argument 1797 on_alert_data(wifi_request_id id, char *buffer, int buffer_size, int err_code) argument 1854 on_firmware_memory_dump(char *buffer, int buffer_size) argument 1893 on_driver_state_dump(char *buffer, int buffer_size) argument [all...] |
/frameworks/opt/net/wifi/service/lib/ |
H A D | wifi_hal_stub.cpp | 214 wifi_error wifi_get_firmware_version_stub( wifi_interface_handle iface, char *buffer, argument 233 wifi_error wifi_get_driver_version_stub(wifi_interface_handle iface, char *buffer, argument
|