| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
| ClipRegion2Activity.java | 43 StringBuffer buffer = new StringBuffer(); local 45 buffer.append(LOREM_IPSUM); 47 return buffer;
|
| ClipRegion3Activity.java | 43 StringBuffer buffer = new StringBuffer(); local 45 buffer.append(LOREM_IPSUM); 47 return buffer;
|
| /frameworks/compile/mclinker/lib/Target/AArch64/ |
| AArch64GOT.cpp | 119 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());
|
| /frameworks/compile/mclinker/lib/Target/ARM/ |
| ARMGOT.cpp | 116 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local 120 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) { 122 *buffer = static_cast<uint32_t>(got->getValue());
|
| /frameworks/compile/mclinker/lib/Target/Mips/ |
| MipsPLT.cpp | 82 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/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
| LongStatsCollector.java | 48 long[] buffer = new long[size]; local 50 buffer[i] = mAllValues.get(i); 53 Arrays.sort(buffer); 56 median = (size % 2 == 0) ? (buffer[midPoint - 1] + buffer[midPoint]) / 2 : buffer[midPoint];
|
| /frameworks/ml/nn/runtime/test/ |
| TestValidation.cpp | 189 char buffer[20]; local 190 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(nullptr, 0, buffer, sizeof(buffer)), 192 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, nullptr, sizeof(buffer)), 195 // This should fail, since buffer is not the size of a float32. 196 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeof(buffer)), 200 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeof(float)), 204 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 1, buffer, sizeof(float)), 209 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeof(float)) 277 char buffer[20]; local 435 char buffer[20]; local 458 char buffer[20]; local [all...] |
| /frameworks/native/cmds/dumpstate/ |
| DumpstateInternal.cpp | 173 char buffer[65536]; local 174 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); 176 android::base::WriteFully(out_fd, buffer, bytes_read); 177 newline = (buffer[bytes_read - 1] == '\n');
|
| /frameworks/native/libs/gui/tests/ |
| StreamSplitter_test.cpp | 74 // Never allow the output BufferQueue to allocate a buffer 83 sp<GraphicBuffer> buffer; local 87 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); 90 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, 93 ASSERT_EQ(OK, buffer->unlock()); 100 // Now that we have dequeued/allocated one buffer, prevent any further 117 // received the buffer back from the output BufferQueue 145 // Never allow the output BufferQueues to allocate a buffer 155 sp<GraphicBuffer> buffer; local 159 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); 219 sp<GraphicBuffer> buffer; local [all...] |
| /frameworks/native/libs/ui/ |
| GraphicBufferAllocator.cpp | 59 char buffer[SIZE]; local 60 snprintf(buffer, SIZE, "Allocated buffers:\n"); 61 result.append(buffer); 66 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %4u | %8X | 0x%" PRIx64 72 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %4u | %8X | 0x%" PRIx64 78 result.append(buffer); 81 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0); 82 result.append(buffer); 102 // make sure to not allocate a N x 0 or 0 x N buffer, since this is 103 // allowed from an API stand-point allocate a 1x1 buffer instead [all...] |
| /frameworks/native/libs/vr/libbufferhub/ |
| ion_buffer.cpp | 80 sp<GraphicBuffer> buffer = local 82 if (buffer->initCheck() != OK) { 83 ALOGE("IonBuffer::Aloc: Failed to allocate buffer"); 86 buffer_ = buffer; 110 sp<GraphicBuffer> buffer = local 113 if (buffer->initCheck() != OK) { 114 ALOGE("IonBuffer::Import: Failed to import buffer"); 117 buffer_ = buffer;
|
| /frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
| buffer_wrapper.h | 32 BufferWrapper(pointer buffer, size_type capacity, size_type size) 33 : buffer_(&buffer[0]), 37 BufferWrapper(pointer buffer, size_type size) 38 : BufferWrapper(buffer, size, size) {} 113 BufferWrapper(const BufferType& buffer) : buffer_(buffer) {} 114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) 115 : buffer_(buffer, allocator) {} 116 BufferWrapper(BufferType&& buffer) : buffer_(std::move(buffer)) {} 142 BufferType& buffer() { return buffer_; } function in class:android::pdx::rpc::BufferWrapper 143 const BufferType& buffer() const { return buffer_; } function in class:android::pdx::rpc::BufferWrapper [all...] |
| /frameworks/native/libs/vr/libvrsensor/include/dvr/ |
| pose_client.h | 25 // Returned by the async pose ring buffer access API. 27 // Read-only pointer to the pose ring buffer. The current pose is in this 28 // buffer at element buffer[current_frame & (buffer_size - 1)]. The next 36 volatile const DvrPoseAsync* buffer; member in struct:DvrPoseRingBufferInfo 42 // Number of elements in buffer. At least 8 and greater than min_future_count. 43 // Guaranteed to be a power of two. The total size of the buffer in bytes is: 142 // Get access to the shared memory pose ring buffer. 147 // |out_buffer| will be set to a pointer to the buffer. 148 // |out_fd| will be set to the gralloc buffer file descriptor, which i [all...] |
| /frameworks/native/opengl/libagl/ |
| TextureObjectManager.h | 51 status_t setImage(ANativeWindowBuffer* buffer); 83 ANativeWindowBuffer* buffer; member in class:android::EGLTextureObject
|
| /frameworks/native/services/surfaceflinger/ |
| MessageQueue.cpp | 151 DisplayEventReceiver::Event buffer[8]; local 152 while ((n = DisplayEventReceiver::getEvents(&mEventTube, buffer, 8)) > 0) { 154 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
|
| /frameworks/rs/driver/ |
| rsdCore.cpp | 371 void* buffer = calloc(size, sizeof(char)); local 372 return buffer;
|
| /hardware/akm/AK8975_FS/libsensors/ |
| AdxlSensor.cpp | 89 char buffer[2]; local 97 buffer[0] = '\0'; 98 buffer[1] = '\0'; 101 if(enabled) buffer[0] = '0'; 103 if(!enabled) buffer[0] = '1'; 105 if (buffer[0] != '\0') { 107 err = write_sys_attribute(input_sysfs_path, buffer, 1); 111 ALOGD("AdxlSensor: Control set %s", buffer); 132 char buffer[16]; local 157 bytes = sprintf(buffer, "%d", rate_val) [all...] |
| AkmSensor.cpp | 82 char buffer[2]; local 99 buffer[0] = '\0'; 100 buffer[1] = '\0'; 103 if(enabled) buffer[0] = '1'; 105 if(!enabled) buffer[0] = '0'; 108 if (buffer[0] != '\0') { 109 err = write_sys_attribute(input_sysfs_path, buffer, 1); 114 &input_sysfs_path[input_sysfs_path_len], buffer); 117 if (buffer[0] == '1') { 140 char buffer[32] local [all...] |
| /hardware/google/av/codec2/vndk/bufferpool/vts/ |
| single.cpp | 49 // Number of iteration for buffer allocation test. 52 // Number of iteration for buffer recycling test. 101 // Buffer allocation test. 102 // Check whether each buffer allocation is done successfully with 103 // unique buffer id. 109 std::shared_ptr<BufferPoolData> buffer[kNumAllocationTest]; local 112 status = mManager->allocate(mConnectionId, vecParams, &allocHandle, &buffer[i]); 117 ASSERT_TRUE(buffer[i]->mId != buffer[j]->mId); 123 // Buffer recycle test 132 std::shared_ptr<BufferPoolData> buffer; local [all...] |
| /hardware/intel/img/hwcomposer/merrifield/common/buffers/ |
| BufferManager.cpp | 51 // create buffer pool 54 ETRACE("failed to create gralloc buffer cache"); 63 // create a dummy data buffer 66 DEINIT_AND_RETURN_FALSE("failed to create data buffer"); 78 // unmap & delete all cached buffer mappers 109 d.append("Buffer Manager status: pool size %d\n", mBufferPool->getCacheSize()); 113 d.append("Buffer %d: handle %#x, (%dx%d), format %d, refCount %d\n", 131 void BufferManager::unlockDataBuffer(DataBuffer *buffer) 141 void BufferManager::put(DataBuffer *buffer) 143 delete buffer; 244 DataBuffer *buffer = NULL; local [all...] |
| /hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/ |
| BufferManager.cpp | 51 // create buffer pool 54 ELOGTRACE("failed to create gralloc buffer cache"); 63 // create a dummy data buffer 66 DEINIT_AND_RETURN_FALSE("failed to create data buffer"); 78 // unmap & delete all cached buffer mappers 109 d.append("Buffer Manager status: pool size %d\n", mBufferPool->getCacheSize()); 113 d.append("Buffer %d: handle %#x, (%dx%d), format %d, refCount %d\n", 131 void BufferManager::unlockDataBuffer(DataBuffer * /* buffer */) 141 void BufferManager::put(DataBuffer *buffer) 143 delete buffer; 244 DataBuffer *buffer = NULL; local [all...] |
| /hardware/interfaces/automotive/evs/1.0/vts/functional/ |
| FrameHandler.cpp | 91 // Return the oldest buffer we're holding 97 BufferDesc buffer = mHeldBuffers.front(); local 99 mCamera->doneWithFrame(buffer); 143 // Get the output buffer we'll use to display the imagery 151 printf("Didn't get target buffer - frame lost\n"); 152 ALOGE("Didn't get requested output buffer -- skipping this frame."); 154 // Copy the contents of the of buffer.memHandle into tgtBuffer 157 // Send the target buffer back for display 160 printf("HIDL error on display buffer (%s)- frame lost\n", 166 ALOGE("We encountered error %d when returning a buffer to the display!" [all...] |
| /hardware/interfaces/bluetooth/1.0/default/ |
| async_fd_watcher.cc | 115 uint8_t buffer[] = {0}; local 116 if (TEMP_FAILURE_RETRY(write(notification_write_fd_, &buffer, 1)) < 0) { 172 char buffer[] = {0}; local 173 TEMP_FAILURE_RETRY(read(notification_listen_fd_, buffer, 1));
|
| /hardware/interfaces/camera/common/1.0/default/ |
| HandleImporter.cpp | 153 auto buffer = const_cast<native_handle_t*>(buf); local 154 mMapper->lock(buffer, cpuUsage, accessRegion, acquireFenceHandle, 185 auto buffer = const_cast<native_handle_t*>(buf); local 186 mMapper->lockYCbCr(buffer, cpuUsage, accessRegion, acquireFenceHandle, 203 auto buffer = const_cast<native_handle_t*>(buf); local 205 buffer, [&](const auto& tmpError, const auto& tmpReleaseFence) {
|
| /hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/ |
| Gralloc0Hal.h | 118 for (auto buffer : buffers) { 119 int result = mDevice->free(mDevice, buffer); 121 ALOGE("failed to free buffer %p: %d", buffer, result); 133 const native_handle_t* buffer = nullptr; local 136 info.usage, &buffer, &stride); 139 *outBuffer = buffer;
|