| /frameworks/ml/nn/runtime/ |
| ModelBuilder.h | 40 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/libs/binder/ |
| Debug.cpp | 152 char buffer[32]; local 153 char* end = typetostring(typeCode, buffer); 155 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); 194 char buffer[256]; local 195 static const size_t maxBytesPerLine = (sizeof(buffer)-1-11-4)/(3+1); 213 char* c = buffer; 285 func(cookie, buffer);
|
| /frameworks/native/libs/binder/include/binder/ |
| TextOutput.h | 105 inline const void* buffer() const; 194 inline const void* HexDump::buffer() const { return mBuffer; } function in class:android::HexDump
|
| /frameworks/native/libs/gui/ |
| StreamSplitter.cpp | 113 // 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 eventually, and move on to the next outpu 194 sp<GraphicBuffer> buffer; local [all...] |
| /frameworks/native/libs/gui/tests/ |
| BufferItemConsumer_test.cpp | 103 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/ |
| Gralloc2.cpp | 93 ALOGE("buffer descriptor contains invalid usage bits 0x%" PRIx64, 156 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 157 auto ret = mMapper->freeBuffer(buffer); 161 buffer, error); 172 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 173 auto ret = mMapperV2_1->validateBufferSize(buffer, descriptorInfo, stride); 189 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 190 auto ret = mMapperV2_1->getTransportSize(buffer, 205 buffer, error); 212 auto buffer = const_cast<native_handle_t*>(bufferHandle) local 247 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 281 auto buffer = const_cast<native_handle_t*>(bufferHandle); local [all...] |
| /frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
| buffer_hub_client.h | 50 // 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 buffer state [all...] |
| /frameworks/native/libs/vr/libdvr/tests/ |
| dvr_named_buffer-test.cpp | 156 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/vulkan/include/vulkan/ |
| vulkan_android.h | 91 struct AHardwareBuffer* buffer; member in struct:VkImportAndroidHardwareBufferInfoANDROID 107 typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties); 113 const struct AHardwareBuffer* buffer,
|
| /frameworks/opt/net/lowpan/lowpan_hdlc_adapter/ |
| lowpan_hdlc_adapter.cpp | 84 uint8_t buffer[kMaxFrameSize*2 + 5]; // every character escaped, escaped crc, and frame marker variable 91 bufferIndex += hdlc_write_byte(buffer + bufferIndex, c); 96 bufferIndex += hdlc_write_byte(buffer + bufferIndex, uint8_t(fcs & 0xFF)); 97 bufferIndex += hdlc_write_byte(buffer + bufferIndex, uint8_t((fcs >> 8) & 0xFF)); 99 buffer[bufferIndex++] = HDLC_BYTE_FLAG; 103 if (write(mFd, buffer, bufferIndex) != bufferIndex) { 193 uint8_t buffer[LOWPAN_HDLC_ADAPTER_MAX_FRAME_SIZE]; variable 201 ssize_t bytesRead = read(mFd, buffer, sizeof(buffer)); 211 feedBytes(buffer, bytesRead) [all...] |
| /frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
| PropertyNodesVerifierElem.java | 287 StringBuffer buffer = new StringBuffer(); local 293 buffer.append(';'); 295 buffer.append(propValueElem); 298 return buffer.toString();
|
| /frameworks/rs/ |
| rsList.h | 71 if ((void*)p >= (void*)&buffer->next) { 72 buffer = buffer->next; 73 if (buffer != nullptr) { 74 p = &buffer->data.typed; 83 return p == other.p && buffer == other.buffer && list == other.list; 87 return p != other.p || buffer != other.buffer || list != other.list; 97 p(p_), buffer(buffer_), list(list_) { 101 LinkedBuffer* buffer; member in class:android::renderscript::List::iterator [all...] |
| /frameworks/support/collection/src/main/java/androidx/collection/ |
| LongSparseArray.java | 380 StringBuilder buffer = new StringBuilder(mSize * 28); local 381 buffer.append('{'); 384 buffer.append(", "); 387 buffer.append(key); 388 buffer.append('='); 391 buffer.append(value); 393 buffer.append("(this Map)"); 396 buffer.append('}'); 397 return buffer.toString();
|
| /frameworks/support/compat/src/main/java/androidx/core/graphics/ |
| TypefaceCompatApi24Impl.java | 109 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, 113 family, buffer, ttcIndex, null /* variation axis */, weight, style); 139 ByteBuffer buffer = bufferCache.get(uri); local 140 if (buffer == null) { 141 buffer = TypefaceCompatUtil.mmap(context, cancellationSignal, uri); 142 bufferCache.put(uri, buffer); 144 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(), 158 final ByteBuffer buffer = local 160 if (buffer == null) { 163 if (!addFontWeightStyle(family, buffer, e.getTtcIndex(), e.getWeight(), e.isItalic())) [all...] |
| /frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
| Selection.java | 222 StringBuilder buffer = new StringBuilder(size() * 28); local 223 buffer.append("Selection{") 229 return buffer.toString();
|
| /frameworks/wilhelm/src/android/util/ |
| AacAdtsExtractor.cpp | 241 SL_LOGE("Can't seek in AAC ADTS buffer queue"); 252 MediaBufferBase *buffer; local 253 status_t err = mGroup->acquire_buffer(&buffer); 259 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), 264 buffer->release(); 265 buffer = NULL; 269 buffer->set_range(0, frameSizeWithoutHeader); 270 buffer->meta_data().setInt64(kKeyTime, mCurrentTimeUs); 271 buffer->meta_data().setInt32(kKeyIsSyncFrame, 1); 276 *out = buffer; [all...] |
| /frameworks/wilhelm/tests/sandbox/ |
| 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[i++] = (sampleMono + 32768) >> 8 [all...] |
| /hardware/broadcom/libbt/src/ |
| upio.c | 294 char buffer = '0'; local 299 buffer = '0'; 303 buffer = '1'; 338 sz = write(fd, &buffer, 1); 368 char buffer; local 396 buffer = '1'; 400 buffer = '0'; 410 if (write(fd, &buffer, 1) < 0) 495 buffer = '0'; 498 buffer = '1' [all...] |
| /hardware/intel/common/libmix/mix_video/src/ |
| mixbufferpool.c | 11 * @short_description: MI-X Input Buffer Pool 214 * @returns: MIX_RESULT_SUCCESS if successful in creating the buffer pool 216 * Use this method to create a new buffer pool, consisting of a GSList of 217 * buffer objects that represents a pool of buffers. 229 //buffer pool is in use; return error; need proper cleanup 254 MixBuffer *buffer = NULL; local 258 buffer = mix_buffer_new(); 260 if (buffer == NULL) { 269 mix_buffer_set_pool(buffer, obj); 272 obj->free_list = g_slist_append(obj->free_list, buffer); 421 MixBuffer *buffer = NULL; local [all...] |
| /hardware/intel/common/libva/test/putsurface/ |
| putsurface_wayland.c | 143 struct wl_buffer *buffer; local 159 va_status = vaGetSurfaceBufferWl(va_dpy, va_surface, VA_FRAME_PICTURE, &buffer); 163 wl_surface_attach(wl_drawable->surface, buffer, 0, 0);
|
| /hardware/intel/img/hwcomposer/merrifield/common/planes/ |
| DisplayPlane.cpp | 55 WTRACE("buffer count %d is too small", bufferCount); 59 // create buffer cache, adding few extra slots as buffer rendering is async 60 // buffer could still be queued in the display pipeline such that they 74 // so invoking it only there is buffer to invalidate. 167 DataBuffer *buffer; local 178 WTRACE("invalid buffer handle"); 182 // do not need to update the buffer handle 186 // if no update then do Not need set data buffer 190 buffer = bm->lockDataBuffer(handle) [all...] |
| /hardware/intel/img/hwcomposer/moorefield_hdmi/common/base/ |
| HwcLayer.cpp | 57 mZOrder(index + 1), // 0 is reserved for frame buffer target 242 // if not a FB layer & a plane was attached update plane's data buffer 258 DLOGTRACE("failed to set data buffer, reset handle to 0!!"); 261 // typical case: rotated buffer is not ready or handle is null 265 // if buffer is not ready overlay will still be attached to this layer 267 WLOGTRACE("ignoring result of data buffer setting for protected video"); 323 DataBuffer *buffer = bm->lockDataBuffer((uint32_t)mLayer->handle); local 324 if (!buffer) { 325 ELOGTRACE("failed to get buffer"); 327 mFormat = buffer->getFormat() [all...] |
| /hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/ |
| DisplayPlane.cpp | 61 WLOGTRACE("buffer count %d is too small", bufferCount); 65 // create buffer cache, adding few extra slots as buffer rendering is async 66 // buffer could still be queued in the display pipeline such that they 80 // so invoking it only there is buffer to invalidate. 183 DataBuffer *buffer; local 194 WLOGTRACE("invalid buffer handle"); 198 // do not need to update the buffer handle 202 // if no update then do Not need set data buffer 206 buffer = bm->lockDataBuffer(handle) [all...] |
| /hardware/interfaces/graphics/mapper/2.0/utils/vts/ |
| MapperVts.cpp | 43 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 44 native_handle_close(buffer); 45 native_handle_delete(buffer); 50 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 51 EXPECT_EQ(Error::NONE, mMapper->freeBuffer(buffer)) << "failed to free buffer " << buffer; 87 ASSERT_EQ(count, tmpBuffers.size()) << "invalid buffer array"; 142 << "failed to import buffer %p" << rawHandle.getNativeHandle(); 154 auto buffer = const_cast<native_handle_t*>(bufferHandle) local 168 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 194 auto buffer = const_cast<native_handle_t*>(bufferHandle); local 220 auto buffer = const_cast<native_handle_t*>(bufferHandle); local [all...] |
| /hardware/interfaces/sensors/1.0/default/ |
| Sensors.cpp | 37 struct stat buffer; local 38 return (stat (name.c_str(), &buffer) == 0);
|