Searched defs:buffer (Results 276 - 300 of 765) sorted by relevance

<<11121314151617181920>>

/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbDeviceManager.cpp47 char buffer[256]; local
49 buffer[0] = 0;
50 ioctl(fd, cmd, buffer);
51 if (buffer[0]) {
52 jstring obj = env->NewStringUTF(buffer);
/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/base/services/net/java/android/net/util/
H A DConnectivityPacketSummary.java49 public static String summarize(MacAddress hwaddr, byte[] buffer) { argument
50 return summarize(hwaddr, buffer, buffer.length);
55 public static String summarize(MacAddress macAddr, byte[] buffer, int length) { argument
56 if ((macAddr == null) || (buffer == null)) return null;
57 length = Math.min(length, buffer.length);
58 return (new ConnectivityPacketSummary(macAddr, buffer, length)).toString();
61 private ConnectivityPacketSummary(MacAddress macAddr, byte[] buffer, int length) { argument
63 mBytes = buffer;
/frameworks/base/telecomm/java/android/telecom/
H A DCallAudioState.java222 StringBuffer buffer = new StringBuffer();
224 listAppend(buffer, "EARPIECE");
227 listAppend(buffer, "BLUETOOTH");
230 listAppend(buffer, "WIRED_HEADSET");
233 listAppend(buffer, "SPEAKER");
236 return buffer.toString();
285 private static void listAppend(StringBuffer buffer, String str) { argument
286 if (buffer.length() > 0) {
287 buffer.append(", ");
289 buffer
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPngChunkFilter.cpp82 bool PngChunkFilter::ConsumeWindow(const void** buffer, size_t* len) { argument
86 *buffer = data_.data() + window_start_;
94 bool PngChunkFilter::Next(const void** buffer, size_t* len) { argument
100 if (ConsumeWindow(buffer, len)) {
158 if (ConsumeWindow(buffer, len)) {
/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/ml/nn/runtime/
H A DExecutionBuilder.h49 // buffer is valid
56 void* buffer; member in struct:android::nn::ModelArgumentInfo
58 int setFromPointer(const Operand& operand, const ANeuralNetworksOperandType* type, void* buffer,
71 int setInput(uint32_t index, const ANeuralNetworksOperandType* type, const void* buffer,
75 int setOutput(uint32_t index, const ANeuralNetworksOperandType* type, void* buffer,
H A DModelBuilder.h40 int setOperandValue(uint32_t index, const void* buffer, size_t length);
126 const void* buffer; member in struct:android::nn::ModelBuilder::LargeValue
128 // Operand index and buffer pointer for all the large operand values of this model.
/frameworks/native/cmds/dumpstate/
H A DDumpstateInternal.cpp173 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/
H A DBufferItem.cpp120 static void writeAligned(void*& buffer, size_t& size, T value) { argument
121 size -= FlattenableUtils::align<alignof(T)>(buffer);
122 FlattenableUtils::write(buffer, size, value);
126 void*& buffer, size_t& size, int*& fds, size_t& count) const {
134 uint32_t& flags = *static_cast<uint32_t*>(buffer);
137 FlattenableUtils::advance(buffer, size, sizeof(uint32_t));
141 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
143 size -= FlattenableUtils::align<4>(buffer);
147 status_t err = mFence->flatten(buffer, size, fds, count);
149 size -= FlattenableUtils::align<4>(buffer);
125 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
188 readAligned(const void*& buffer, size_t& size, T& value) argument
193 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
H A DStreamSplitter.cpp113 // If there are too many outstanding buffers, we block until a buffer is
128 // Acquire and detach the buffer from the input
132 "acquiring buffer from input failed (%d)", status);
134 ALOGV("acquired buffer %#" PRIx64 " from input",
139 "detaching buffer from input failed (%d)", status);
141 // Initialize our reference count for this buffer
151 // Attach and queue the buffer to each of the outputs
159 // buffer eventually, and move on to the next output
166 "attaching buffer to output failed (%d)", status);
174 // buffer eventuall
194 sp<GraphicBuffer> buffer; local
278 BufferTracker(const sp<GraphicBuffer>& buffer) argument
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferItemConsumer_test.cpp103 BufferItem buffer; local
104 status_t ret = mBIC->acquireBuffer(&buffer, 0, false);
107 ALOGV("acquireBuffer: slot=%d", buffer.mSlot);
108 *outSlot = buffer.mSlot;
113 BufferItem buffer; local
114 buffer.mSlot = slot;
115 buffer.mGraphicBuffer = mBuffers[slot];
116 status_t ret = mBIC->releaseBuffer(buffer, Fence::NO_FENCE);
131 // Test that detaching buffer from consumer side triggers onBufferFreed.
134 // Producer: generate a dummy buffer
[all...]
/frameworks/native/libs/ui/
H A DFence.cpp142 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument
148 FlattenableUtils::write(buffer, size, static_cast<uint32_t>(getFdCount()));
156 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument
167 FlattenableUtils::read(buffer, size, numFds);
H A DFenceTime.cpp228 void*& buffer, size_t& size, int*& fds, size_t& count) const {
233 FlattenableUtils::write(buffer, size, state);
238 return fence->flatten(buffer, size, fds, count);
240 FlattenableUtils::write(buffer, size, signalTime);
248 void const*& buffer, size_t& size, int const*& fds, size_t& count) {
253 FlattenableUtils::read(buffer, size, state);
259 return fence->unflatten(buffer, size, fds, count);
264 FlattenableUtils::read(buffer, size, signalTime);
227 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
247 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
H A DGraphicBufferAllocator.cpp59 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 instea
[all...]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dbuffer_hub_client.h50 // of the buffer in virtual memory. The caller should only access/modify the
55 // buffer.
58 // Gets a blob buffer that was created with BufferProducer::CreateBlob.
63 // Gets a blob buffer that was created with BufferProducer::CreateBlob.
71 // memory gralloc buffers to GPU buffer objects.
73 // Current GPU vendor puts the buffer allocation in one FD. If we change GPU
76 // a GL context in the pose service to allocate this buffer or to use the
107 IonBuffer* buffer() { return &buffer_; } function in class:android::dvr::BufferHubBuffer
108 const IonBuffer* buffer() const { return &buffer_; } function in class:android::dvr::BufferHubBuffer
112 // Returns the buffer buffe
[all...]
/frameworks/native/libs/vr/libbufferhub/
H A Dion_buffer.cpp80 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/libdisplay/include/private/dvr/
H A Dshared_buffer_helpers.h13 // The buffer usage type for mapped shared buffers.
16 // Holds the memory for the mapped shared buffer. Unlocks and releases the
20 // This constructor will create a display client and get the buffer from it.
24 CPUMappedBuffer(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode);
27 CPUMappedBuffer(IonBuffer* buffer, CPUUsageMode mode);
36 // Attempt mapping this buffer to the CPU addressable space.
37 // This will create a display client and see if the buffer exists.
38 // If the buffer has not been setup yet, you will need to try again later.
46 // If we are polling the display client, the buffer key here.
62 // Represents a broadcast ring inside a mapped shared memory buffer
72 CPUMappedBroadcastRing(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode) argument
75 CPUMappedBroadcastRing(IonBuffer* buffer, CPUUsageMode mode) argument
[all...]
/frameworks/native/libs/vr/libdvr/tests/
H A Ddvr_named_buffer-test.cpp156 void* buffer; local
157 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer);
159 ASSERT_NE(nullptr, buffer);
160 // Verify that the buffer pointer is at least 16 byte aligned.
161 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(buffer) & (16 - 1));
163 uint64_t* data = static_cast<uint64_t*>(buffer);
178 // Get the buffer and check that all the data is still present.
189 void* buffer; local
190 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer);
192 ASSERT_NE(nullptr, buffer);
230 void* buffer; local
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dbuffer_wrapper.h32 BufferWrapper(pointer buffer, size_type capacity, size_type size) argument
33 : buffer_(&buffer[0]),
37 BufferWrapper(pointer buffer, size_type size) argument
38 : BufferWrapper(buffer, size, size) {}
113 BufferWrapper(const BufferType& buffer) : buffer_(buffer) {} argument
114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) argument
115 : buffer_(buffer, allocator) {}
116 BufferWrapper(BufferType&& buffer) : buffer_(std::move(buffer)) {} argument
117 BufferWrapper(BufferType&& buffer, const Allocator& allocator) argument
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
150 WrapBuffer(T* buffer, SizeType size) argument
155 WrapBuffer(void* buffer, SizeType size) argument
160 WrapBuffer(const void* buffer, SizeType size) argument
167 WrapBuffer( std::vector<T, Allocator>&& buffer) argument
[all...]
H A Dstring_wrapper.h34 StringWrapper(pointer buffer, size_type capacity, size_type size) argument
35 : buffer_(&buffer[0]),
39 StringWrapper(pointer buffer, size_type size) argument
40 : StringWrapper(buffer, size, size) {}
42 explicit StringWrapper(pointer buffer) argument
43 : StringWrapper(buffer, std::strlen(buffer)) {}
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp151 DisplayEventReceiver::Event buffer[8]; local
152 while ((n = DisplayEventReceiver::getEvents(&mEventTube, buffer, 8)) > 0) {
154 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {

Completed in 124 milliseconds

<<11121314151617181920>>