Home
last modified time | relevance | path

Searched refs:tmpBuffer (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
H A DBinaryDictOffdeviceUtils.java157 final byte[] tmpBuffer = new byte[12]; in process()
158 if (tmpBuffer.length != input.read(tmpBuffer)) { in process()
167 + ((tmpBuffer[MAGIC_NUMBER_START_OFFSET + 1] & 0xFF) << 16) in process()
168 + ((tmpBuffer[MAGIC_NUMBER_START_OFFSET + 2] & 0xFF) << 8) in process()
169 + (tmpBuffer[MAGIC_NUMBER_START_OFFSET + 3] & 0xFF); in process()
173 final int version = ((tmpBuffer[VERSION_START_OFFSET] & 0xFF) << 8) in process()
174 + (tmpBuffer[VERSION_START_OFFSET + 1] & 0xFF); in process()
180 + ((tmpBuffer[HEADER_SIZE_OFFSET + 1] & 0xFF) << 16) in process()
181 + ((tmpBuffer[HEADER_SIZE_OFFSET + 2] & 0xFF) << 8) in process()
182 + (tmpBuffer[HEADER_SIZE_OFFSET + 3] & 0xFF); in process()
[all …]
/aosp12/hardware/google/gchips/gralloc3/src/
H A DGrallocAllocator.cpp110 buffer_handle_t tmpBuffer; in allocate() local
118 &tmpBuffer); in allocate()
124 1, &tmpBuffer, nullptr); in allocate()
134 mali_gralloc_query_getstride(tmpBuffer, &tmpStride); in allocate()
143 mali_gralloc_buffer_free(tmpBuffer); in allocate()
149 grallocBuffers.emplace_back(hidl_handle(tmpBuffer)); in allocate()
H A DGrallocWrapper.cpp66 [&](const auto& tmpError, const auto& tmpBuffer) in importBuffer()
73 *outBufferHandle = static_cast<buffer_handle_t>(tmpBuffer); in importBuffer()
/aosp12/hardware/google/gchips/gralloc4/src/hidl_common/
H A DAllocator.cpp52 buffer_handle_t tmpBuffer = nullptr; in allocate() local
60 allocResult = fb_allocator(&bufferDescriptor, &tmpBuffer); in allocate()
65 allocResult = mali_gralloc_buffer_allocate(grallocBufferDescriptor, 1, &tmpBuffer, nullptr); in allocate()
72 auto hnd = const_cast<private_handle_t *>(reinterpret_cast<const private_handle_t *>(tmpBuffer)); in allocate()
122 mali_gralloc_buffer_free(tmpBuffer); in allocate()
128 grallocBuffers.emplace_back(hidl_handle(tmpBuffer)); in allocate()
/aosp12/packages/apps/Nfc/src/com/android/nfc/snep/
H A DSnepMessenger.java59 byte[] tmpBuffer = Arrays.copyOfRange(buffer, 0, length); in sendMessage()
61 mSocket.send(tmpBuffer); in sendMessage()
87 tmpBuffer = Arrays.copyOfRange(buffer, offset, offset + length); in sendMessage()
89 mSocket.send(tmpBuffer); in sendMessage()
110 tmpBuffer = Arrays.copyOfRange(buffer, offset, offset + length); in sendMessage()
112 mSocket.send(tmpBuffer); in sendMessage()
/aosp12/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
H A DGralloc0Hal.h88 const native_handle_t* tmpBuffer; in allocateBuffers() local
90 error = allocateOneBuffer(descriptorInfo, &tmpBuffer, &tmpStride); in allocateBuffers()
95 buffers.push_back(tmpBuffer); in allocateBuffers()
H A DGralloc1Hal.h103 const native_handle_t* tmpBuffer; in allocateBuffers() local
105 error = allocateOneBuffer(desc, &tmpBuffer, &tmpStride); in allocateBuffers()
110 buffers.push_back(tmpBuffer); in allocateBuffers()
/aosp12/packages/apps/Nfc/src/com/android/nfc/ndefpush/
H A DNdefPushClient.java108 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); in push()
110 sock.send(tmpBuffer); in push()
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/
H A DHandoverClient.java117 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); in sendHandoverRequest()
119 sock.send(tmpBuffer); in sendHandoverRequest()
H A DHandoverServer.java225 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); in run()
226 mSock.send(tmpBuffer); in run()
/aosp12/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
H A DgenPCLm.cpp1632 void *tmpBuffer = NULL; in Encapsulate() local
1643 tmpBuffer = malloc(scanlineWidth * currStripHeight); in Encapsulate()
1644 if (!tmpBuffer) { in Encapsulate()
1649 memcpy(tmpBuffer, leftoverScanlineBuffer, scanlineWidth * numLeftoverScanlines); in Encapsulate()
1651 whereAreWe = (ubyte *) tmpBuffer + (scanlineWidth * numLeftoverScanlines); in Encapsulate()
1666 localInBuffer = tmpBuffer; in Encapsulate()
1685 if (tmpBuffer) { in Encapsulate()
1686 free(tmpBuffer); in Encapsulate()
1866 if (tmpBuffer) { in Encapsulate()
1867 free(tmpBuffer); in Encapsulate()
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/vts/
H A DMapperVts.cpp138 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer() argument
141 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
/aosp12/hardware/libhardware/modules/camera/3_4/arc/
H A Dexif_utils.cpp399 void* tmpBuffer = exif_mem_alloc(mem, size); in AddVariableLengthEntry() local
400 if (!tmpBuffer) { in AddVariableLengthEntry()
406 entry->data = static_cast<unsigned char*>(tmpBuffer); in AddVariableLengthEntry()
/aosp12/hardware/interfaces/graphics/mapper/3.0/utils/vts/
H A DMapperVts.cpp153 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer() argument
156 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
/aosp12/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/
H A Dvendor_graphicbuffer_meta.cpp317 get_mapper()->importBuffer(handle, [&](const auto& tmpError, const auto& tmpBuffer) { in import_buffer() argument
322 bufferHandle = static_cast<native_handle_t*>(tmpBuffer); in import_buffer()
/aosp12/hardware/interfaces/sensors/common/vts/utils/
H A DGrallocWrapper.cpp189 mMapper->importBuffer(rawHandle, [&](auto error, void* tmpBuffer) { in importBuffer() argument
194 bufferHandle = static_cast<native_handle_t*>(tmpBuffer); in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/4.0/utils/vts/
H A DMapperVts.cpp163 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer() argument
168 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
/aosp12/frameworks/ex/framesequence/jni/
H A DFrameSequence_webp.cpp336 Color8888* tmpBuffer = prevBuffer; in drawFrame() local
338 currBuffer = tmpBuffer; in drawFrame()
/aosp12/frameworks/native/libs/ui/
H A DGralloc2.cpp159 [&](const auto& tmpError, const auto& tmpBuffer) in importBuffer()
166 *outBufferHandle = static_cast<buffer_handle_t>(tmpBuffer); in importBuffer()
H A DGralloc3.cpp135 auto ret = mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer() argument
140 *outBufferHandle = static_cast<buffer_handle_t>(tmpBuffer); in importBuffer()
H A DGralloc4.cpp145 auto ret = mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer() argument
150 *outBufferHandle = static_cast<buffer_handle_t>(tmpBuffer); in importBuffer()
/aosp12/hardware/interfaces/camera/common/1.0/default/
H A DExif.cpp838 void* tmpBuffer = exif_mem_alloc(mem, size); in addVariableLengthEntry() local
839 if (!tmpBuffer) { in addVariableLengthEntry()
845 entry->data = static_cast<unsigned char*>(tmpBuffer); in addVariableLengthEntry()
/aosp12/frameworks/av/services/camera/libcameraservice/utils/
H A DExifUtils.cpp771 void* tmpBuffer = exif_mem_alloc(mem, size); in addVariableLengthEntry() local
772 if (!tmpBuffer) { in addVariableLengthEntry()
778 entry->data = static_cast<unsigned char*>(tmpBuffer); in addVariableLengthEntry()
/aosp12/frameworks/av/media/libstagefright/
H A DUtils.cpp64 sp<ABuffer> tmpBuffer = new (std::nothrow) ABuffer((*buffer)->size() + 4 + length + 1024); in copyNALUToABuffer() local
65 if (tmpBuffer.get() == NULL || tmpBuffer->base() == NULL) { in copyNALUToABuffer()
68 memcpy(tmpBuffer->data(), (*buffer)->data(), (*buffer)->size()); in copyNALUToABuffer()
69 tmpBuffer->setRange(0, (*buffer)->size()); in copyNALUToABuffer()
70 (*buffer) = tmpBuffer; in copyNALUToABuffer()
/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
H A DLauncherInstrumentation.java1731 final float tmpBuffer = 100f;
1735 return tmpBuffer;
1754 return Math.max(topRadius, bottomRadius) + tmpBuffer;

12