/frameworks/av/services/audioflinger/ |
H A D | TrackBase.h | 42 // where to allocate the data buffer 46 ALLOC_PIPE, // do not allocate; use the pipe buffer 47 ALLOC_LOCAL, // allocate a local buffer 48 ALLOC_NONE, // do not allocate:use the buffer passed to TrackBase constructor 64 void *buffer, 84 void* buffer() const { return mBuffer; } function in class:TrackBase 96 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, int64_t pts) = 0; 97 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer); 143 void* mBuffer; // start of track buffer, typically in shared memory 155 const size_t mFrameCount;// size of track buffer give [all...] |
H A D | test-resample.cpp | 47 fprintf(stderr," -v verbose : log buffer provider calls\n"); 275 virtual status_t getNextBuffer(Buffer* buffer, argument 278 size_t requestedFrames = buffer->frameCount; 280 buffer->frameCount = mNumFrames - mNextFrame; 284 printf("mPvalue[%zu]=%zu not %zu\n", mNextPidx-1, provided, buffer->frameCount); 285 if (provided < buffer->frameCount) { 286 buffer->frameCount = provided; 295 requestedFrames, (size_t) (mNumFrames - mNextFrame), buffer->frameCount); 297 mUnrel = buffer->frameCount; 298 if (buffer 306 releaseBuffer(Buffer* buffer) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 621 private synchronized native void nativeSetThumbnail(ByteBuffer buffer, int width, int height); argument
|
/frameworks/base/core/java/android/net/http/ |
H A D | RequestHandle.java | 397 * @return HEX buffer representation. 399 private String bufferToHex(byte[] buffer) { argument 403 if (buffer != null) { 404 int length = buffer.length; 409 byte l = (byte) (buffer[i] & 0x0F); 410 byte h = (byte)((buffer[i] & 0xF0) >> 4);
|
/frameworks/base/core/java/android/nfc/ |
H A D | NdefRecord.java | 506 ByteBuffer buffer = ByteBuffer.allocate(1 + languageCodeBytes.length + textBytes.length); 509 buffer.put(status); 510 buffer.put(languageCodeBytes); 511 buffer.put(textBytes); 513 return new NdefRecord(TNF_WELL_KNOWN, RTD_TEXT, null, buffer.array()); 590 ByteBuffer buffer = ByteBuffer.wrap(data); 591 NdefRecord[] rs = parse(buffer, true); 593 if (buffer.remaining() > 0) { 659 ByteBuffer buffer = ByteBuffer.allocate(getByteLength()); 660 writeToByteBuffer(buffer, tru 784 parse(ByteBuffer buffer, boolean ignoreMbMe) argument 936 writeToByteBuffer(ByteBuffer buffer, boolean mb, boolean me) argument [all...] |
/frameworks/base/core/java/android/speech/ |
H A D | SpeechRecognizer.java | 475 public void onBufferReceived(final byte[] buffer) { argument 476 Message.obtain(mInternalHandler, MSG_BUFFER_RECEIVED, buffer).sendToTarget();
|
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 190 * Use a manual buffer to easily read and unread upcoming characters, and 192 * We decode literals directly out of this buffer, so it must be at least as 195 private final char[] buffer = new char[1024]; field in class:JsonReader 200 * The offset of the first character in the buffer. 221 * and length in the buffer. 682 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { 723 // Before clobbering the old characters, update where buffer starts 725 if (buffer[i] == '\n') { 735 System.arraycopy(buffer, pos, buffer, [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfEditor.cpp | 131 static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCount) { argument 132 char* writeBuffer = static_cast<char*>(const_cast<void*>(buffer)); 141 "Error writing to buffer: %d", errno); 150 static int writeBlock(FPDF_FILEWRITE* owner, const void* buffer, unsigned long size) { argument 152 const bool success = writeAllBytes(writer->dstFd, buffer, size);
|
/frameworks/base/core/jni/ |
H A D | android_hardware_SensorManager.cpp | 166 ASensorEvent buffer[16]; local 167 while ((n = q->read(buffer, 16)) > 0) { 169 if (buffer[i].type == SENSOR_TYPE_STEP_COUNTER) { 171 float value = float(buffer[i].u64.step_counter); 174 env->SetFloatArrayRegion(mScratch, 0, 16, buffer[i].data); 177 if (buffer[i].type == SENSOR_TYPE_META_DATA) { 182 buffer[i].meta_data.sensor); 185 switch (buffer[i].type) { 190 status = buffer[i].vector.status; 193 status = buffer[ [all...] |
H A D | android_net_LocalSocketImpl.cpp | 492 void *buffer, size_t len) 498 unsigned char *buf = (unsigned char *)buffer; 499 // Enough buffer for a pile of fd's. We throw an exception if 500 // this buffer is too small. 545 * Writes all the data in the specified buffer to the specified socket. 554 unsigned char *buffer = (unsigned char *)buf; local 604 iv.iov_base = buffer; 619 buffer += ret; 663 jbyteArray buffer, jint off, jint len, jobject fileDescriptor) 669 if (fileDescriptor == NULL || buffer 491 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument 662 socket_readba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument 729 socket_writeba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument [all...] |
H A D | android_opengl_GLES10Ext.cpp | 99 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 106 position = _env->GetIntField(buffer, positionID); 107 limit = _env->GetIntField(buffer, limitID); 108 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 111 getBasePointerID, buffer); 118 getBaseArrayID, buffer); 120 getBaseArrayOffsetID, buffer); 133 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 136 jint position = _env->GetIntField(buffer, positionI [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.cpp | 373 const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) { 374 thread.eglManager().setTextureAtlas(buffer, map, mapSize); 372 setTextureAtlas(RenderThread& thread, const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) argument
|
H A D | RenderProxy.cpp | 397 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) { argument 398 CanvasContext::setTextureAtlas(*args->thread, args->buffer, args->map, args->size); 399 args->buffer->decStrong(0); 403 void RenderProxy::setTextureAtlas(const sp<GraphicBuffer>& buffer, int64_t* map, size_t size) { argument 406 args->buffer = buffer.get(); 407 args->buffer->incStrong(0);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 105 public abstract void setData(ByteBuffer buffer, int offset, int length); argument 107 public void setData(ByteBuffer buffer) { argument 108 setData(buffer, 0, buffer.limit());
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 155 public static final long crc64Long(byte[] buffer) { argument 157 for (int k = 0, n = buffer.length; k < n; ++k) { 158 crc = sCrcTable[(((int) crc) ^ buffer[k]) & 0xff] ^ (crc >> 8);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 125 // Delete the specified buffer object, similar to unloadTexture. 182 * Generates buffers and uploads the buffer data. 184 * @param buffer The buffer to upload 185 * @return The buffer ID that was generated. 187 public abstract int uploadBuffer(java.nio.FloatBuffer buffer); argument 190 * Generates buffers and uploads the element array buffer data. 192 * @param buffer The buffer to upload 193 * @return The buffer I 195 uploadBuffer(java.nio.ByteBuffer buffer) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | AssetAtlasService.java | 100 // the buffer will be written to using OpenGL (from JNI) so we can leave 114 // Holds the atlas' data. This buffer can be mapped to 222 * 5. Render assets in the buffer 247 * @param buffer The buffer to render the atlas entries into 254 private boolean renderAtlas(GraphicBuffer buffer, Atlas atlas, int packCount) { argument 262 final Canvas canvas = acquireCanvas(buffer.getWidth(), buffer.getHeight()); 304 result = nUploadAtlas(buffer, mNativeBitmap); 323 * Returns a Canvas for the specified buffer 373 nUploadAtlas(GraphicBuffer buffer, long bitmap) argument [all...] |
/frameworks/base/tools/aidl/ |
H A D | aidl_language.h | 110 buffer_type buffer; member in union:lexer_type
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMELFAttributeData.cpp | 1012 char *buffer = pBuf; local 1022 buffer)) { 1035 buffer)) { 1047 !ELFAttributeData::WriteAttribute(tag, value, buffer)) { 1057 !ELFAttributeData::WriteAttribute(tag, value, buffer)) { 1069 !ELFAttributeData::WriteAttribute(tag, value, buffer)) { 1074 return (buffer - pBuf);
|
/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86LDBackend.cpp | 181 unsigned char* buffer = pRegion.begin(); local 188 memcpy(buffer, llvm::cast<PLTEntryBase>((*it)).getValue(), plt0_size); 197 memcpy(buffer + RegionSize, plt1->getValue(), EntrySize); 513 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local 520 ie = m_pGOT->end(); it != ie; ++it, ++buffer) { 522 *buffer = static_cast<uint32_t>(got->getValue()); 536 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local 543 ie = m_pGOTPLT->end(); it != ie; ++it, ++buffer) { 545 *buffer = static_cast<uint32_t>(got->getValue()); 713 uint64_t* buffer local 737 uint64_t* buffer = reinterpret_cast<uint64_t*>(pRegion.begin()); local [all...] |
/frameworks/native/cmds/servicemanager/ |
H A D | binder.c | 52 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size); 54 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++); 83 #define BIO_F_SHARED 0x01 /* needs to be buffer freed */ 174 binder_uintptr_t buffer; member in struct:__anon1172 180 data.buffer = buffer_to_free; 189 data.txn.data.ptr.buffer = (uintptr_t)&status; 195 data.txn.data.ptr.buffer = (uintptr_t)reply->data0; 243 binder_send_reply(bs, &reply, txn->data.ptr.buffer, res); 328 fprintf(stderr,"binder: txn buffer overflow\n"); 338 writebuf.txn.data.ptr.buffer 454 uintptr_t buffer; member in struct:__anon1175 [all...] |
/frameworks/native/libs/binder/ |
H A D | MemoryDealer.cpp | 436 char buffer[SIZE]; local 437 snprintf(buffer, SIZE, " %s (%p, size=%u)\n", 440 result.append(buffer); 448 snprintf(buffer, SIZE, " %3u: %p | 0x%08X | 0x%08X | %s %s\n", 454 result.append(buffer); 462 snprintf(buffer, SIZE, 464 result.append(buffer);
|
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferConsumer.cpp | 88 static void writeBoolAsInt(void*& buffer, size_t& size, bool b) { argument 89 FlattenableUtils::write(buffer, size, static_cast<int32_t>(b)); 92 static bool readBoolFromInt(void const*& buffer, size_t& size) { argument 94 FlattenableUtils::read(buffer, size, i); 99 void*& buffer, size_t& size, int*& fds, size_t& count) const { 107 uint32_t& flags = *static_cast<uint32_t*>(buffer); 110 FlattenableUtils::advance(buffer, size, sizeof(uint32_t)); 114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); 116 size -= FlattenableUtils::align<4>(buffer); 120 status_t err = mFence->flatten(buffer, siz 98 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 145 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument 218 acquireBuffer(BufferItem *buffer, nsecs_t presentWhen) argument 245 attachBuffer(int* slot, const sp<GraphicBuffer>& buffer) argument 445 sp<GraphicBuffer> buffer = new GraphicBuffer(); local [all...] |
H A D | IGraphicBufferProducer.cpp | 159 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer) { argument 162 data.write(*buffer.get()); 284 sp<GraphicBuffer> buffer; local 285 int result = requestBuffer(bufferIdx, &buffer); 286 reply->writeInt32(buffer != 0); 287 if (buffer != 0) { 288 reply->write(*buffer); 327 sp<GraphicBuffer> buffer; local 329 int32_t result = detachNextBuffer(&buffer, &fence); 332 reply->writeInt32(buffer ! 345 sp<GraphicBuffer> buffer = new GraphicBuffer(); local 447 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 463 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 229 // switch back to previously bound buffer if necessary 254 // free previously bound buffer if any 264 ElementArrayBuffer *buffer = mElementArrayBuffers.valueFor(bufferId); local 265 if (buffer == NULL) { 269 *data = buffer->getBuffer(); 270 *size = buffer->getSize(); 276 ElementArrayBuffer *buffer = mElementArrayBuffers.valueFor(bufferId); local 277 if (buffer != NULL) { 278 buffer->updateSubBuffer(offset, data, size); 283 ElementArrayBuffer *buffer local [all...] |