Home
last modified time | relevance | path

Searched refs:getBuffer (Results 1 – 25 of 43) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dformat_utils_test.cpp32 const std::vector<uint8_t> getBuffer(const int magicNumber, const int version, const uint16_t flags, in getBuffer() function
59 getBuffer(FormatUtils::MAGIC_NUMBER, FormatUtils::VERSION_2, 0, 0); in TEST()
65 getBuffer(FormatUtils::MAGIC_NUMBER, FormatUtils::VERSION_202, 0, 0); in TEST()
71 getBuffer(FormatUtils::MAGIC_NUMBER, FormatUtils::VERSION_402, 0, 0); in TEST()
77 getBuffer(FormatUtils::MAGIC_NUMBER, FormatUtils::VERSION_403, 0, 0); in TEST()
84 getBuffer(FormatUtils::MAGIC_NUMBER - 1, FormatUtils::VERSION_402, 0, 0); in TEST()
90 getBuffer(FormatUtils::MAGIC_NUMBER, 100, 0, 0); in TEST()
96 getBuffer(FormatUtils::MAGIC_NUMBER, FormatUtils::VERSION_402, 0, 0); in TEST()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java49 assertSame(data, rb.getBuffer(0)); in canAddAndRetrieveSingleElement()
60 assertSame(data1, rb.getBuffer(0)); in canAddAndRetrieveMultipleElements()
61 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
101 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
115 assertSame(data3, rb.getBuffer(0)); in appendPrunesMultipleBuffersIfNecessary()
140 assertSame(data2, rb.getBuffer(0)); in appendPrunesInFifoOrder()
141 assertSame(data3, rb.getBuffer(1)); in appendPrunesInFifoOrder()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalBuffer.cpp32 CHECK(srcPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
33 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
35 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos()
DSampleDriver.cpp322 CHECK(srcPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
323 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
325 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskJpegEncode.java81 ByteBuffer y_buffer = planeList.get(0).getBuffer(); in convertYUV420ImageToPackedNV21()
82 ByteBuffer u_buffer = planeList.get(1).getBuffer(); in convertYUV420ImageToPackedNV21()
83 ByteBuffer v_buffer = planeList.get(2).getBuffer(); in convertYUV420ImageToPackedNV21()
106 ByteBuffer y_buffer = planeList.get(0).getBuffer(); in convertYUV420ImageToPackedNV21()
107 ByteBuffer u_buffer = planeList.get(1).getBuffer(); in convertYUV420ImageToPackedNV21()
108 ByteBuffer v_buffer = planeList.get(2).getBuffer(); in convertYUV420ImageToPackedNV21()
DTaskConvertImageToRGBPreview.java267 ByteBuffer buf0 = planeList.get(0).getBuffer(); in colorInscribedDataCircleFromYuvImage()
268 ByteBuffer bufU = planeList.get(1).getBuffer(); // Downsampled by 2 in colorInscribedDataCircleFromYuvImage()
269 ByteBuffer bufV = planeList.get(2).getBuffer(); // Downsampled by 2 in colorInscribedDataCircleFromYuvImage()
556 ByteBuffer bufY = planeList.get(0).getBuffer(); in colorSubSampleFromYuvImage()
557 ByteBuffer bufU = planeList.get(1).getBuffer(); // Downsampled by 2 in colorSubSampleFromYuvImage()
558 ByteBuffer bufV = planeList.get(2).getBuffer(); // Downsampled by 2 in colorSubSampleFromYuvImage()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dterminal_position_lookup_table.cpp27 const int terminalPos = getBuffer()->readUint( in getTerminalPtNodePosition()
55 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
77 const int terminalPos = getBuffer()->readUint( in runGCTerminalIds()
Dsingle_dict_content.h50 const BufferWithExtendableBuffer *getBuffer() const { in getBuffer() function
Dterminal_position_lookup_table.h36 mSize(getBuffer()->getTailPosition() in TerminalPositionLookupTable()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dterminal_position_lookup_table.cpp37 const int terminalPos = getBuffer()->readUint( in getTerminalPtNodePosition()
65 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
88 const int terminalPos = getBuffer()->readUint( in runGCTerminalIds()
Dprobability_dict_content.cpp40 const BufferWithExtendableBuffer *const buffer = getBuffer(); in getProbabilityEntry()
70 int writingPos = getBuffer()->getTailPosition(); in setProbabilityEntry()
87 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
Dterminal_position_lookup_table.h44 mSize(getBuffer()->getTailPosition() in TerminalPositionLookupTable()
Dprobability_dict_content.h45 mSize(getBuffer()->getTailPosition() / getEntrySize()) {} in ProbabilityDictContent()
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java130 copyImagePlaneToBitmap(width, height, plane.getBuffer(), plane.getPixelStride(), in copyImagePlaneToBitmap()
234 Preconditions.checkState(plane.getBuffer().isDirect()); in compressJpegFromYUV420Image()
236 planeBuf[i] = plane.getBuffer(); in compressJpegFromYUV420Image()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_pt_node_array_reader.cpp35 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid()
64 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid()
Dver4_patricia_trie_node_writer.cpp39 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted()
70 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved()
115 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_pt_node_array_reader.cpp44 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid()
73 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid()
Dver4_patricia_trie_node_writer.cpp49 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted()
79 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved()
124 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTrackPlayer.java106 short[] buffer = getBuffer(); in startTrackLocked()
117 private short[] getBuffer() { in getBuffer() method in AudioTrackPlayer
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp228 CHECK(src->getBuffer() != nullptr); in copyHidlMemories()
229 CHECK(dst->getBuffer() != nullptr); in copyHidlMemories()
230 std::copy(src->getBuffer(), src->getBuffer() + src->getSize(), dst->getBuffer()); in copyHidlMemories()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Ddict_file_writing_utils.cpp132 if (originalBufSize > 0 && fwrite(buffer->getBuffer(false /* usesAdditionalBuffer */), in writeBufferToFile()
137 if (additionalBufSize > 0 && fwrite(buffer->getBuffer(true /* usesAdditionalBuffer */), in writeBufferToFile()
Dbuffer_with_extendable_buffer.cpp29 return ByteArrayUtils::readUint(getBuffer(readingPosIsInAdditionalBuffer), size, posInBuffer); in readUint()
47 getBuffer(readingPosIsInAdditionalBuffer), maxCodePointCount, in readCodePointsAndAdvancePosition()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidImageProxy.java55 mBuffer = imagePlane.getBuffer(); in Plane()
78 public ByteBuffer getBuffer() { in getBuffer() method in AndroidImageProxy.Plane
DImageProxy.java63 public ByteBuffer getBuffer(); in getBuffer() method
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriver.cpp229 CHECK(srcPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
230 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
232 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos()

12