/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | usb.c | 49 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 D | SimpleFrame.java | 110 public void setData(ByteBuffer buffer, int offset, int length) { argument 112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
|
H A D | VertexFrame.java | 88 public void setData(ByteBuffer buffer, int offset, int length) { argument 90 byte[] bytes = buffer.array();
|
/frameworks/base/media/tests/audiotests/ |
H A D | shared_mem_test.cpp | 88 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 137 // fill buffer 142 buffer[i0] = ComputeSine( amplitude, phi);
|
/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 29 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); 58 "Error reading from buffer: %d", errno);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbDeviceManager.cpp | 54 char buffer[256]; local 56 buffer[0] = 0; 57 int length = ioctl(fd, cmd, buffer); 58 if (buffer[0]) { 59 jstring obj = env->NewStringUTF(buffer);
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64PLT.cpp | 155 unsigned char* buffer = pRegion.begin(); local 156 memcpy(buffer, llvm::cast<AArch64PLT0>((*it)).getValue(), 165 memcpy(buffer + result, plt1->getValue(), AArch64PLT1::EntrySize);
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMPLT.cpp | 154 unsigned char* buffer = pRegion.begin(); local 155 memcpy(buffer, llvm::cast<ARMPLT0>((*it)).getValue(), ARMPLT0::EntrySize); 163 memcpy(buffer + result, plt1->getValue(), ARMPLT1::EntrySize);
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonPLT.cpp | 186 unsigned char* buffer = pRegion.begin(); local 187 memcpy(buffer, llvm::cast<HexagonPLT0>((*it)).getValue(), HexagonPLT0::EntrySize); 195 memcpy(buffer + result, plt1->getValue(), HexagonPLT1::EntrySize);
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsPLT.cpp | 95 unsigned char* buffer = pRegion.begin(); local 96 memcpy(buffer, llvm::cast<MipsPLT0>((*it)).getValue(), MipsPLT0::EntrySize); 103 memcpy(buffer + result, plta->getValue(), MipsPLTA::EntrySize);
|
/frameworks/native/include/gui/ |
H A D | Surface.h | 81 /* Attaches a sideband buffer stream to the Surface's IGraphicBufferProducer. 114 ANativeWindowBuffer* buffer, int fenceFd); 116 ANativeWindowBuffer** buffer, int* fenceFd); 120 ANativeWindowBuffer* buffer, int fenceFd); 124 ANativeWindowBuffer* buffer); 126 ANativeWindowBuffer** buffer); 128 ANativeWindowBuffer* buffer); 130 ANativeWindowBuffer* buffer); 151 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd); 152 virtual int cancelBuffer(ANativeWindowBuffer* buffer, in 186 sp<GraphicBuffer> buffer; member in struct:android::Surface::BufferSlot [all...] |
/frameworks/native/include/media/hardware/ |
H A D | HDCPAPI.h | 63 // 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 D | Sensor.cpp | 346 status_t Sensor::flatten(void* buffer, size_t size) const { argument 351 flattenString8(buffer, size, mName); 352 flattenString8(buffer, size, mVendor); 353 FlattenableUtils::write(buffer, size, mVersion); 354 FlattenableUtils::write(buffer, size, mHandle); 355 FlattenableUtils::write(buffer, size, mType); 356 FlattenableUtils::write(buffer, size, mMinValue); 357 FlattenableUtils::write(buffer, size, mMaxValue); 358 FlattenableUtils::write(buffer, size, mResolution); 359 FlattenableUtils::write(buffer, siz 370 unflatten(void const* buffer, size_t size) argument 408 flattenString8(void*& buffer, size_t& size, const String8& string8) argument 416 unflattenString8(void const*& buffer, size_t& size, String8& outputString8) argument [all...] |
H A D | StreamSplitter.cpp | 110 // If there are too many outstanding buffers, we block until a buffer is 125 // Acquire and detach the buffer from the input 129 "acquiring buffer from input failed (%d)", status); 131 ALOGV("acquired buffer %#" PRIx64 " from input", 136 "detaching buffer from input failed (%d)", status); 138 // Initialize our reference count for this buffer 148 // Attach and queue the buffer to each of the outputs 156 // buffer eventually, and move on to the next output 163 "attaching buffer to output failed (%d)", status); 171 // buffer eventuall 191 sp<GraphicBuffer> buffer; local 275 BufferTracker(const sp<GraphicBuffer>& buffer) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 115 sp<GraphicBuffer> buffer; local 119 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); 122 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, 125 ASSERT_EQ(OK, buffer->unlock()); 172 // Acquire the third buffer, which should fail. 223 sp<GraphicBuffer> buffer; local 228 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); 233 // Can no longer request buffer from this slot 237 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, 240 ASSERT_EQ(OK, buffer 271 sp<GraphicBuffer> buffer; local 329 sp<GraphicBuffer> buffer; local [all...] |
H A D | StreamSplitter_test.cpp | 66 sp<GraphicBuffer> buffer = mAllocator->createGraphicBuffer(w, h, format, local 68 return buffer; 101 sp<GraphicBuffer> buffer; local 105 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); 108 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, 111 ASSERT_EQ(OK, buffer->unlock()); 167 sp<GraphicBuffer> buffer; local 171 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); 174 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, 177 ASSERT_EQ(OK, buffer 227 sp<GraphicBuffer> buffer; local [all...] |
/frameworks/native/libs/ui/ |
H A D | Fence.cpp | 137 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 141 FlattenableUtils::write(buffer, size, (uint32_t)getFdCount()); 149 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument 160 FlattenableUtils::read(buffer, size, numFds);
|
/frameworks/native/services/sensorservice/ |
H A D | SensorDevice.cpp | 118 ssize_t SensorDevice::poll(sensors_event_t* buffer, size_t count) { argument 123 buffer, count);
|
/frameworks/native/services/surfaceflinger/ |
H A D | MessageQueue.cpp | 147 * buffer updates on VSYNC and performs a refresh immediately 151 * perform the buffer updates immediately, but the refresh only 184 DisplayEventReceiver::Event buffer[8]; local 185 while ((n = DisplayEventReceiver::getEvents(mEventTube, buffer, 8)) > 0) { 187 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
|
/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...] |
/frameworks/av/camera/ |
H A D | ProCamera.cpp | 347 ALOGE("%s: Error while waiting for frame buffer: %d", 382 CpuConsumer::LockedBuffer buffer; local 383 if (si.cpuConsumer->lockNextBuffer(&buffer) != OK) { 387 si.cpuConsumer->unlockBuffer(buffer);
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 334 sp<ABuffer> buffer; local 335 while (format->findBuffer(StringPrintf("csd-%d", j).c_str(), &buffer)) { 336 state->mCSD.push_back(buffer); 431 ALOGV("dequeued input buffer on track %d", 451 ALOGV("dequeued output buffer on track %d", 531 ALOGI("track %d buffer late by %lld us, dropping.", 561 ALOGV("track %d buffer early by %lld us.", 603 CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) { 632 buffer->base() + info->mOffset, copy); 602 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
|
H A D | codec.cpp | 171 ALOGV("filling input buffer %d", index); 173 const sp<ABuffer> &buffer = state->mInBuffers.itemAt(index); local 175 err = extractor->readSampleData(buffer); 187 buffer->size(), 257 ALOGV("draining output buffer %d, time = %lld us",
|
H A D | recordvideo.cpp | 86 MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) { 95 status_t err = mGroup.acquire_buffer(buffer); 106 memset((*buffer)->data(), x, mSize); 109 (*buffer)->set_range(0, mSize); 110 (*buffer)->meta_data()->clear(); 111 (*buffer)->meta_data()->setInt64( 85 read( MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) argument
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 168 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
|