/packages/services/Car/evs/sampleDriver/ |
D | EvsGlDisplay.cpp | 60 if (mBuffer.memHandle) { in forceShutdown() 68 alloc.free(mBuffer.memHandle); in forceShutdown() 69 mBuffer.memHandle = nullptr; in forceShutdown() 167 if (!mBuffer.memHandle) { in getTargetBuffer() 181 mBuffer.width = mGlWrapper.getWidth(); in getTargetBuffer() 182 mBuffer.height = mGlWrapper.getHeight(); in getTargetBuffer() 183 mBuffer.format = HAL_PIXEL_FORMAT_RGBA_8888; in getTargetBuffer() 184 mBuffer.usage = GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; in getTargetBuffer() 185 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in getTargetBuffer() 186 mBuffer.pixelSize = 4; in getTargetBuffer() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 41 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 …]
|
D | ver2_pt_node_array_reader.cpp | 25 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()
|
D | patricia_trie_policy.h | 48 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
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsSampleExtractor.java | 244 protected final byte[] mBuffer = new byte[1024]; field in MpegTsSampleExtractor.CcParser 278 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption() 280 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption() 281 buffer.get(mBuffer, 0, size); in mayParseClosedCaption() 285 if (mBuffer[j] == 0 in mayParseClosedCaption() 286 && mBuffer[j + 1] == 0 in mayParseClosedCaption() 287 && mBuffer[j + 2] == 1 in mayParseClosedCaption() 288 && (mBuffer[j + 3] & 0xff) == 0xb2) { in mayParseClosedCaption() 291 if (mBuffer[j + 4] == 'G' in mayParseClosedCaption() 292 && mBuffer[j + 5] == 'A' in mayParseClosedCaption() [all …]
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | ArrayInitializerFormatter.java | 31 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/ |
D | ver4_pt_node_array_reader.cpp | 27 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 …]
|
D | ver4_patricia_trie_node_reader.cpp | 32 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/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_pt_node_array_reader.cpp | 36 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 …]
|
D | ver4_patricia_trie_node_reader.cpp | 41 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/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifOutputStream.java | 82 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/ |
D | ExifOutputStream.java | 82 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/Messaging/src/com/android/messaging/util/exif/ |
D | ExifOutputStream.java | 83 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/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver2DictEncoder.java | 46 private byte[] mBuffer; field in Ver2DictEncoder 56 mBuffer = null; in Ver2DictEncoder() 171 mBuffer = new byte[bufferSize]; in writeDictionary() 180 mOutStream.write(mBuffer, 0, mPosition); in writeDictionary() 188 if (mBuffer == null || position < 0 || position >= mBuffer.length) return; in setPosition() 205 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, encodedPtNodeCount, in writePtNodeCount() 213 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, in writePtNodeFlags() 220 mPosition = CharEncoding.writeCharArray(codePoints, mBuffer, mPosition, in writeCharacters() 223 mBuffer[mPosition++] = FormatSpec.PTNODE_CHARACTERS_TERMINATOR; in writeCharacters() 229 mPosition = BinaryDictEncoderUtils.writeUIntToBuffer(mBuffer, mPosition, frequency, in writeFrequency() [all …]
|
D | BinaryDictDecoderUtils.java | 60 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/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 129 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/apps/Camera2/src/com/android/camera/async/ |
D | RefCountedBufferQueueController.java | 25 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/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/ |
D | FileTunerHal.java | 52 private final byte[] mBuffer = new byte[MIN_READ_UNIT]; field in FileTunerHal 190 if (mBuffer[0] != TS_SYNC_BYTE) { in nativeWriteInBuffer() 199 if (mBuffer[i] == TS_SYNC_BYTE) { in nativeWriteInBuffer() 200 int pid = ((mBuffer[i + 1] & 0x1f) << 8) + (mBuffer[i + 2] & 0xff); in nativeWriteInBuffer() 202 System.arraycopy(mBuffer, i, javaBuffer, destPos, TS_PACKET_SIZE); in nativeWriteInBuffer() 231 readSize = mAccessFile.read(mBuffer, 0, mBuffer.length); in readInternal()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | ByteArrayDictBuffer.java | 26 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/ |
D | shortcut_list_policy.h | 31 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/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.h | 173 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()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/ |
D | bigram_list_policy.h | 31 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/ |
D | language_model_dict_content_global_counters.h | 32 : 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/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | Cea708Parser.java | 136 private final StringBuffer mBuffer = new StringBuffer(); field in Cea708Parser 229 mBuffer.setLength(0); in clear() 246 if (mBuffer.length() > 0) { in emitCaptionBuffer() 247 mListener.emitEvent(new CaptionEvent(CAPTION_EMIT_TYPE_BUFFER, mBuffer.toString())); in emitCaptionBuffer() 248 mBuffer.setLength(0); in emitCaptionBuffer() 427 mBuffer.append((char) data[pos + 1]); in parseC0() 430 mBuffer.append(value); in parseC0() 459 mBuffer.append('\n'); in parseC0() 820 mBuffer.append(MUSIC_NOTE_CHAR); in parseG0() 823 mBuffer.append((char) mCommand); in parseG0() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/render/ |
D | PdfRenderService.java | 180 private final ByteBuffer mBuffer; field in PdfRenderService.RenderThread 193 mBuffer = ByteBuffer.allocate(mWidth * mRowsPerStripe * 4); in RenderThread() 244 mBuffer.clear(); in writeRgb() 245 bitmap.copyPixelsToBuffer(mBuffer); in writeRgb() 249 byte[] array = mBuffer.array(); in writeRgb() 258 out.write(mBuffer.array(), 0, to); in writeRgb()
|