Home
last modified time | relevance | path

Searched refs:mBuffer (Results 1 – 25 of 45) sorted by relevance

12

/packages/services/Car/evs/sampleDriver/
DEvsGlDisplay.cpp58 if (mBuffer.memHandle) { in forceShutdown()
66 alloc.free(mBuffer.memHandle); in forceShutdown()
67 mBuffer.memHandle = nullptr; in forceShutdown()
165 if (!mBuffer.memHandle) { in getTargetBuffer()
179 mBuffer.width = mGlWrapper.getWidth(); in getTargetBuffer()
180 mBuffer.height = mGlWrapper.getHeight(); in getTargetBuffer()
181 mBuffer.format = HAL_PIXEL_FORMAT_RGBA_8888; in getTargetBuffer()
182 mBuffer.usage = GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; in getTargetBuffer()
183 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in getTargetBuffer()
184 mBuffer.pixelSize = 4; in getTargetBuffer()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp41 nextPos, mBuffer.size()); in createAndGetAllChildDicNodes()
47 mBuffer.data(), &nextPos); in createAndGetAllChildDicNodes()
51 nextPos, mBuffer.size(), i, childCount); in createAndGetAllChildDicNodes()
104 pos, mBuffer.size()); in getCodePointsAndProbabilityAndReturnCodePointCount()
110 mBuffer.data(), &pos); ptNodeCount > 0; --ptNodeCount) { in getCodePointsAndProbabilityAndReturnCodePointCount()
113 AKLOGE("PtNode position is invalid. pos: %d, dict size: %zd", pos, mBuffer.size()); in getCodePointsAndProbabilityAndReturnCodePointCount()
119 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(mBuffer.data(), &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
121 mBuffer.data(), codePointTable, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
128 mBuffer.data(), codePointTable, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
135 mBuffer.data(), codePointTable, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
[all …]
Dpatricia_trie_policy.h48 mBuffer(mMmappedBuffer->getReadOnlyByteArrayView().skip(mHeaderPolicy.getSize())), in PatriciaTriePolicy()
49 mBigramListPolicy(mBuffer), mShortcutListPolicy(mBuffer), in PatriciaTriePolicy()
50 mPtNodeReader(mBuffer, &mBigramListPolicy, &mShortcutListPolicy, in PatriciaTriePolicy()
52 mPtNodeArrayReader(mBuffer), mTerminalPtNodePositionsForIteratingWords(), in PatriciaTriePolicy()
158 const ReadOnlyByteArrayView mBuffer; variable
Dver2_pt_node_array_reader.cpp25 if (ptNodeArrayPos < 0 || ptNodeArrayPos >= static_cast<int>(mBuffer.size())) { in readPtNodeArrayInfoAndReturnIfValid()
28 ptNodeArrayPos, mBuffer.size()); in readPtNodeArrayInfoAndReturnIfValid()
34 mBuffer.data(), &readingPos); in readPtNodeArrayInfoAndReturnIfValid()
42 if (forwordLinkPos < 0 || forwordLinkPos >= static_cast<int>(mBuffer.size())) { in readForwardLinkAndReturnIfValid()
45 forwordLinkPos, mBuffer.size()); in readForwardLinkAndReturnIfValid()
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleExtractor.java229 protected final byte[] mBuffer = new byte[1024]; field in MpegTsSampleExtractor.CcParser
263 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
265 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
266 buffer.get(mBuffer, 0, size); in mayParseClosedCaption()
270 if (mBuffer[j] == 0 in mayParseClosedCaption()
271 && mBuffer[j + 1] == 0 in mayParseClosedCaption()
272 && mBuffer[j + 2] == 1 in mayParseClosedCaption()
273 && (mBuffer[j + 3] & 0xff) == 0xb2) { in mayParseClosedCaption()
276 if (mBuffer[j + 4] == 'G' in mayParseClosedCaption()
277 && mBuffer[j + 5] == 'A' in mayParseClosedCaption()
[all …]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DArrayInitializerFormatter.java31 private final StringBuilder mBuffer = new StringBuilder(); field in ArrayInitializerFormatter
48 if (mBuffer.length() == 0) { in flush()
54 mIndent, mResourceNames[mStartIndexOfBuffer], mBuffer); in flush()
56 final String startElement = mBuffer.toString() in flush()
57 .substring(0, mBuffer.length() - mLastElement.length()) in flush()
68 mIndent, mBuffer, in flush()
71 mBuffer.setLength(0); in flush()
89 mBuffer.append(' '); in outElement()
90 mBuffer.append(element); in outElement()
95 mBuffer.append('\n'); in outElement()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_pt_node_array_reader.cpp27 if (ptNodeArrayPos < 0 || ptNodeArrayPos >= mBuffer->getTailPosition()) { in readPtNodeArrayInfoAndReturnIfValid()
30 ptNodeArrayPos, mBuffer->getTailPosition()); in readPtNodeArrayInfoAndReturnIfValid()
34 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodeArrayPos); in readPtNodeArrayInfoAndReturnIfValid()
35 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid()
38 readingPos -= mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid()
43 readingPos += mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid()
56 if (forwordLinkPos < 0 || forwordLinkPos >= mBuffer->getTailPosition()) { in readForwardLinkAndReturnIfValid()
59 forwordLinkPos, mBuffer->getTailPosition()); in readForwardLinkAndReturnIfValid()
63 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(forwordLinkPos); in readForwardLinkAndReturnIfValid()
64 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid()
[all …]
Dver4_patricia_trie_node_reader.cpp32 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
35 ptNodePos, mBuffer->getTailPosition()); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
39 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
40 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
44 pos -= mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
62 terminalIdFieldPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
68 childrenPosFieldPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
73 childrenPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
76 pos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifOutputStream.java82 private ByteBuffer mBuffer = ByteBuffer.allocate(4); field in ExifOutputStream
107 int byteNeeded = requestByteCount - mBuffer.position(); in requestByteToBuffer()
109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
142 if (mBuffer.position() < 2) { in write()
145 mBuffer.rewind(); in write()
146 if (mBuffer.getShort() != JpegHeader.SOI) { in write()
149 out.write(mBuffer.array(), 0, 2); in write()
151 mBuffer.rewind(); in write()
161 if (mBuffer.position() == 2) { in write()
162 short tag = mBuffer.getShort(); in write()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifOutputStream.java82 private ByteBuffer mBuffer = ByteBuffer.allocate(4); field in ExifOutputStream
107 int byteNeeded = requestByteCount - mBuffer.position(); in requestByteToBuffer()
109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
142 if (mBuffer.position() < 2) { in write()
145 mBuffer.rewind(); in write()
146 if (mBuffer.getShort() != JpegHeader.SOI) { in write()
149 out.write(mBuffer.array(), 0, 2); in write()
151 mBuffer.rewind(); in write()
161 if (mBuffer.position() == 2) { in write()
162 short tag = mBuffer.getShort(); in write()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_pt_node_array_reader.cpp36 if (ptNodeArrayPos < 0 || ptNodeArrayPos >= mBuffer->getTailPosition()) { in readPtNodeArrayInfoAndReturnIfValid()
39 ptNodeArrayPos, mBuffer->getTailPosition()); in readPtNodeArrayInfoAndReturnIfValid()
43 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodeArrayPos); in readPtNodeArrayInfoAndReturnIfValid()
44 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid()
47 readingPos -= mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid()
52 readingPos += mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid()
65 if (forwordLinkPos < 0 || forwordLinkPos >= mBuffer->getTailPosition()) { in readForwardLinkAndReturnIfValid()
68 forwordLinkPos, mBuffer->getTailPosition()); in readForwardLinkAndReturnIfValid()
72 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(forwordLinkPos); in readForwardLinkAndReturnIfValid()
73 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid()
[all …]
Dver4_patricia_trie_node_reader.cpp41 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
44 ptNodePos, mBuffer->getTailPosition()); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
48 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
49 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
53 pos -= mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
71 terminalIdFieldPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
85 childrenPosFieldPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
90 childrenPos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
93 pos += mBuffer->getOriginalBufferSize(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifOutputStream.java83 private final ByteBuffer mBuffer = ByteBuffer.allocate(4); field in ExifOutputStream
108 int byteNeeded = requestByteCount - mBuffer.position(); in requestByteToBuffer()
110 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
143 if (mBuffer.position() < 2) { in write()
146 mBuffer.rewind(); in write()
147 if (mBuffer.getShort() != JpegHeader.SOI) { in write()
150 out.write(mBuffer.array(), 0, 2); in write()
152 mBuffer.rewind(); in write()
162 if (mBuffer.position() == 2) { in write()
163 short tag = mBuffer.getShort(); in write()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp129 const int newPtNodeArrayPos = mBuffer->getTailPosition(); in createAndInsertNodeIntoPtNodeArray()
130 if (!DynamicPtWritingUtils::writeForwardLinkPositionAndAdvancePosition(mBuffer, in createAndInsertNodeIntoPtNodeArray()
146 const int movedPos = mBuffer->getTailPosition(); in setPtNodeProbability()
166 const int newPtNodeArrayPos = mBuffer->getTailPosition(); in createChildrenPtNodeArrayAndAChildPtNode()
177 int writingPos = mBuffer->getTailPosition(); in createNewPtNodeArrayWithAChildPtNode()
178 if (!DynamicPtWritingUtils::writePtNodeArraySizeAndAdvancePosition(mBuffer, in createNewPtNodeArrayWithAChildPtNode()
190 if (!DynamicPtWritingUtils::writeForwardLinkPositionAndAdvancePosition(mBuffer, in createNewPtNodeArrayWithAChildPtNode()
210 const int firstPartOfReallocatedPtNodePos = mBuffer->getTailPosition(); in reallocatePtNodeAndAddNewPtNodes()
237 if (!DynamicPtWritingUtils::writePtNodeArraySizeAndAdvancePosition(mBuffer, in reallocatePtNodeAndAddNewPtNodes()
262 if (!DynamicPtWritingUtils::writeForwardLinkPositionAndAdvancePosition(mBuffer, in reallocatePtNodeAndAddNewPtNodes()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java60 private ByteBuffer mBuffer; field in BinaryDictDecoderUtils.ByteBufferDictBuffer
63 mBuffer = buffer; in ByteBufferDictBuffer()
68 return mBuffer.get() & 0xFF; in readUnsignedByte()
73 return mBuffer.getShort() & 0xFFFF; in readUnsignedShort()
84 return mBuffer.getInt(); in readInt()
89 return mBuffer.position(); in position()
94 mBuffer.position(newPos); in position()
99 mBuffer.put(b); in put()
104 return mBuffer.limit(); in limit()
109 return mBuffer.capacity(); in capacity()
/packages/apps/Camera2/src/com/android/camera/async/
DRefCountedBufferQueueController.java25 private final RefCountBase<BufferQueueController> mBuffer; field in RefCountedBufferQueueController
28 mBuffer = new RefCountBase<BufferQueueController>(stream, 1); in RefCountedBufferQueueController()
33 mBuffer.get().update(element); in update()
38 return mBuffer.get().isClosed(); in isClosed()
42 mBuffer.addRef(); in addRef()
47 mBuffer.close(); in close()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.h173 return mBuffer.isNearSizeLimit(); in isNearSizeLimit()
279 BufferWithExtendableBuffer mBuffer; variable
352 return mBuffer.readUint(FIELD0_SIZE, ROOT_BITMAP_ENTRY_POS + entryIndex * ENTRY_SIZE); in readField0()
356 return mBuffer.readUint(FIELD1_SIZE, in readField1()
361 return mBuffer.readUint(FIELD1_SIZE, (entryCount - 1) * FIELD1_SIZE); in readEmptyTableLink()
365 return mBuffer.writeUint(tableIndex, FIELD1_SIZE, (entryCount - 1) * FIELD1_SIZE); in writeEmptyTableLink()
369 return mBuffer.writeUint(data, FIELD0_SIZE, in writeField0()
374 return mBuffer.writeUint(data, FIELD1_SIZE, in writeField1()
392 return (mBuffer.getTailPosition() - ROOT_BITMAP_ENTRY_POS) / ENTRY_SIZE; in getTailEntryIndex()
Dtrie_map.cpp43 TrieMap::TrieMap() : mBuffer(MAX_BUFFER_SIZE) { in TrieMap()
44 mBuffer.extend(ROOT_BITMAP_ENTRY_POS); in TrieMap()
49 : mBuffer(buffer, BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE) {} in TrieMap()
52 AKLOGI("BufSize: %d", mBuffer.getTailPosition()); in dump()
113 return DictFileWritingUtils::writeBufferToFileTail(file, &mBuffer); in save()
245 if (!mBuffer.extend(entryCount * ENTRY_SIZE)) { in allocateTable()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DByteArrayDictBuffer.java26 private byte[] mBuffer; field in ByteArrayDictBuffer
30 mBuffer = buffer; in ByteArrayDictBuffer()
36 return mBuffer[mPosition++] & 0xFF; in readUnsignedByte()
69 mBuffer[mPosition++] = b; in put()
74 return mBuffer.length - 1; in limit()
79 return mBuffer.length; in capacity()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/shortcut/
Dshortcut_list_policy.h31 explicit ShortcutListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in ShortcutListPolicy()
40 ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mBuffer, &listPos); in getStartPos()
48 ShortcutListReadingUtils::getFlagsAndForwardPointer(mBuffer, pos); in getNextShortcut()
57 mBuffer, maxCodePointCount, outCodePoint, pos); in getNextShortcut()
63 ::getShortcutListSizeAndForwardPointer(mBuffer, pos); in skipAllShortcuts()
70 const ReadOnlyByteArrayView mBuffer; variable
/packages/apps/TV/src/com/android/tv/tuner/cc/
DCea708Parser.java137 private final StringBuffer mBuffer = new StringBuffer(); field in Cea708Parser
215 mBuffer.setLength(0); in clear()
232 if (mBuffer.length() > 0) { in emitCaptionBuffer()
233 mListener.emitEvent(new CaptionEvent(CAPTION_EMIT_TYPE_BUFFER, mBuffer.toString())); in emitCaptionBuffer()
234 mBuffer.setLength(0); in emitCaptionBuffer()
412 mBuffer.append((char) data[pos + 1]); in parseC0()
417 mBuffer.append(value); in parseC0()
446 mBuffer.append('\n'); in parseC0()
719 mBuffer.append(MUSIC_NOTE_CHAR); in parseG0()
722 mBuffer.append((char) mCommand); in parseG0()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/
Dbigram_list_policy.h31 BigramListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in BigramListPolicy()
38 if (!BigramListReadWriteUtils::getBigramEntryPropertiesAndAdvancePosition(mBuffer, &flags, in getNextBigram()
40 AKLOGE("Cannot read bigram entry. bufSize: %zd, pos: %d. ", mBuffer.size(), *pos); in getNextBigram()
50 return BigramListReadWriteUtils::skipExistingBigrams(mBuffer, pos); in skipAllBigrams()
56 const ReadOnlyByteArrayView mBuffer; variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content_global_counters.h32 : mBuffer(buffer, 0 /* maxAdditionalBufferSize */), in LanguageModelDictContentGlobalCounters()
33 mTotalCount(readValue(mBuffer, TOTAL_COUNT_INDEX)), in LanguageModelDictContentGlobalCounters()
34 mMaxValueOfCounters(readValue(mBuffer, MAX_VALUE_OF_COUNTERS_INDEX)) {} in LanguageModelDictContentGlobalCounters()
37 : mBuffer(0 /* maxAdditionalBufferSize */), mTotalCount(0), mMaxValueOfCounters(0) {} in LanguageModelDictContentGlobalCounters()
88 BufferWithExtendableBuffer mBuffer; variable
/packages/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java172 private final ByteBuffer mBuffer; field in PdfRenderService.RenderThread
185 mBuffer = ByteBuffer.allocate(mWidth * mRowsPerStripe * 4); in RenderThread()
234 mBuffer.clear(); in writeRgb()
235 bitmap.copyPixelsToBuffer(mBuffer); in writeRgb()
239 byte array[] = mBuffer.array(); in writeRgb()
248 out.write(mBuffer.array(), 0, to); in writeRgb()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DDiscourseLogger.java32 private String[] mBuffer; field in DiscourseLogger
42 mBuffer = new String[mBufferSize]; in initBuffer()
47 mBuffer[mPos] = s; in addLine()
91 String s = mBuffer[pos]; in getLines()

12