Searched defs:buffer (Results 201 - 225 of 569) sorted by relevance

1234567891011>>

/frameworks/base/libs/usb/tests/accessorytest/
H A Dusb.c49 char buffer[16384]; local
51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000);
55 fwrite(buffer, 1, ret, stdout);
68 char buffer[16384]; local
69 char *line = fgets(buffer, sizeof(buffer), stdin);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrame.java110 public void setData(ByteBuffer buffer, int offset, int length) { argument
112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
H A DVertexFrame.java88 public void setData(ByteBuffer buffer, int offset, int length) { argument
90 byte[] bytes = buffer.array();
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothMidiDevice.java203 public void writePacket(byte[] buffer, int count) { argument
209 System.arraycopy(buffer, 0, writeBuffer, 0, count);
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer
130 * Generate a mono buffer
134 void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi) argument
136 // fill buffer
138 buffer[i0] = ComputeSine( amplitude, phi);
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
30 char* writeBuffer = static_cast<char*>(buffer);
39 "Error writing to buffer: %d", errno);
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
49 char* readBuffer = static_cast<char*>(buffer);
62 "Error reading from buffer: %d", errno);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java62 public static String hexify(ByteBuffer buffer) { argument
63 if (buffer == null) { return "(null)"; }
65 buffer.array(), buffer.position(), buffer.remaining());
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64GOT.cpp119 uint64_t* buffer = reinterpret_cast<uint64_t*>(pRegion.begin()); local
123 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) {
125 *buffer = static_cast<uint64_t>(got->getValue());
H A DAArch64PLT.cpp151 unsigned char* buffer = pRegion.begin(); local
152 memcpy(buffer,
162 memcpy(buffer + result, plt1->getValue(), AArch64PLT1::EntrySize);
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMPLT.cpp145 unsigned char* buffer = pRegion.begin(); local
146 memcpy(buffer, llvm::cast<ARMPLT0>((*it)).getValue(), ARMPLT0::EntrySize);
154 memcpy(buffer + result, plt1->getValue(), ARMPLT1::EntrySize);
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsPLT.cpp82 unsigned char* buffer = pRegion.begin(); local
83 memcpy(buffer, llvm::cast<MipsPLT0>((*it)).getValue(), MipsPLT0::EntrySize);
90 memcpy(buffer + result, plta->getValue(), MipsPLTA::EntrySize);
/frameworks/minikin/libs/minikin/
H A DHbFontCache.cpp35 const void* buffer = font->GetTable(tag, &size, &destroy); local
36 if (buffer == nullptr) {
43 return hb_blob_create(reinterpret_cast<const char*>(buffer), size,
44 HB_MEMORY_MODE_READONLY, const_cast<void*>(buffer), destroy);
/frameworks/native/include/media/hardware/
H A DHDCPAPI.h63 // from an input byte-array buffer to an output byte-array buffer
66 // a native buffer to an output byte-array buffer. The format of the
67 // input native buffer is specific to vendor's encoder implementation.
100 // written to the buffer at "outData" (virtual address).
113 // at location "offset" are available in "buffer" (buffer handle). "size"
115 // encrypted bytes should be written to the buffer at "outData" (virtual
122 buffer_handle_t buffer, size_
121 encryptNative( buffer_handle_t buffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
[all...]
/frameworks/native/libs/gui/
H A DStreamSplitter.cpp111 // If there are too many outstanding buffers, we block until a buffer is
126 // Acquire and detach the buffer from the input
130 "acquiring buffer from input failed (%d)", status);
132 ALOGV("acquired buffer %#" PRIx64 " from input",
137 "detaching buffer from input failed (%d)", status);
139 // Initialize our reference count for this buffer
149 // Attach and queue the buffer to each of the outputs
157 // buffer eventually, and move on to the next output
164 "attaching buffer to output failed (%d)", status);
172 // buffer eventuall
192 sp<GraphicBuffer> buffer; local
276 BufferTracker(const sp<GraphicBuffer>& buffer) argument
[all...]
/frameworks/native/libs/ui/
H A DFence.cpp140 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument
146 FlattenableUtils::write(buffer, size, static_cast<uint32_t>(getFdCount()));
154 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument
165 FlattenableUtils::read(buffer, size, numFds);
H A DGraphicBufferAllocator.cpp60 char buffer[SIZE]; local
61 snprintf(buffer, SIZE, "Allocated buffers:\n");
62 result.append(buffer);
67 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %8X | 0x%08x\n",
71 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %8X | 0x%08x\n",
75 result.append(buffer);
78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f);
79 result.append(buffer);
81 mAllocDev->dump(mAllocDev, buffer, SIZE);
82 result.append(buffer);
[all...]
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp138 * buffer updates on VSYNC and performs a refresh immediately
142 * perform the buffer updates immediately, but the refresh only
171 DisplayEventReceiver::Event buffer[8]; local
172 while ((n = DisplayEventReceiver::getEvents(mEventTube, buffer, 8)) > 0) {
174 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
/frameworks/rs/driver/
H A DrsdCore.cpp364 void* buffer = calloc(size, sizeof(char)); local
365 return buffer;
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c17 // 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...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp331 sp<ABuffer> buffer; local
332 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) {
333 state->mCSD.push_back(buffer);
428 ALOGV("dequeued input buffer on track %zu",
448 ALOGV("dequeued output buffer on track %zu",
528 ALOGI("track %zu buffer late by %lld us, dropping.",
558 ALOGV("track %zu buffer early by %lld us.",
600 CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) {
629 buffer->base() + info->mOffset, copy);
599 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
H A Dcodec.cpp175 ALOGV("filling input buffer %zu", index);
177 const sp<ABuffer> &buffer = state->mInBuffers.itemAt(index); local
179 err = extractor->readSampleData(buffer);
191 buffer->size(),
261 ALOGV("draining output buffer %zu, time = %lld us",
H A Drecordvideo.cpp93 MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) {
102 status_t err = mGroup.acquire_buffer(buffer);
113 memset((*buffer)->data(), x, mSize);
116 (*buffer)->set_range(0, mSize);
117 (*buffer)->meta_data()->clear();
118 (*buffer)->meta_data()->setInt64(
92 read( MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) argument
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset);
167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset);
161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/include/media/
H A DIOMX.h90 // This will set *type to previous metadata buffer type on OMX error (not on binder error), and
91 // new metadata buffer type on success.
109 // Use |params| as an OMX buffer, but limit the size of the OMX buffer to |allottedSize|.
112 buffer_id *buffer, OMX_U32 allottedSize) = 0;
116 const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) = 0;
120 const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) = 0;
124 const sp<NativeHandle> &nativeHandle, buffer_id buffer) = 0;
126 // This will set *type to resulting metadata buffer type on OMX error (not on binder error) as
137 // This will set *type to resulting metadata buffer typ
225 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon47::__anon49
230 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon47::__anon50
[all...]

Completed in 2165 milliseconds

1234567891011>>