/frameworks/base/tools/aapt2/util/ |
D | BigBuffer.cpp | 29 Block& block = blocks_.back(); in NextBlockImpl() local 30 if (block.block_size_ - block.size >= size) { in NextBlockImpl() 31 void* out_buffer = block.buffer.get() + block.size; in NextBlockImpl() 32 block.size += size; in NextBlockImpl() 40 Block block = {}; in NextBlockImpl() local 43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]()); in NextBlockImpl() 44 CHECK(block.buffer); in NextBlockImpl() 46 block.size = size; in NextBlockImpl() 47 block.block_size_ = actual_size; in NextBlockImpl() 49 blocks_.push_back(std::move(block)); in NextBlockImpl() [all …]
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 64 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) in writeVia() argument 73 if (block == 0 || block > maxBlock) { in writeVia() 74 block = maxBlock; in writeVia() 76 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in writeVia() 80 if (count > block) { in writeVia() 81 count = block; in writeVia() 100 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument 109 if (block == 0 || block > maxBlock) { in readVia() 110 block = maxBlock; in readVia() 112 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in readVia() [all …]
|
D | AudioBufferProviderSource.cpp | 82 ssize_t AudioBufferProviderSource::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument 87 if (CC_UNLIKELY(block == 0)) { in readVia() 88 block = ~0; in readVia() 96 if (CC_LIKELY(count > block)) { in readVia() 97 count = block; in readVia()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | HlsSampleDecryptor.cpp | 326 AString HlsSampleDecryptor::aesBlockToStr(uint8_t block[AES_BLOCK_SIZE]) { in aesBlockToStr() 329 if (block == NULL) { in aesBlockToStr() 333 block[0], block[1], block[2], block[3], block[4], block[5], block[6], block[7], in aesBlockToStr() 334 block[8], block[9], block[10], block[11], block[12], block[13], block[14], block[15]); in aesBlockToStr()
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.h | 41 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block) in LinearBuffer() argument 42 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer() 44 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block, size_t size) in LinearBuffer() argument 45 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer() 50 explicit GraphicBuffer(const std::shared_ptr<C2GraphicBlock> &block) in GraphicBuffer() argument 51 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | ClientBlockHelper.cpp | 47 sp<GraphicBuffer> createGraphicBuffer(const C2ConstGraphicBlock& block) { in createGraphicBuffer() argument 57 block.handle(), &width, &height, &format, &usage, in createGraphicBuffer() 60 UnwrapNativeCodec2GrallocHandle(block.handle()); in createGraphicBuffer() 75 for (const C2ConstGraphicBlock& block : in forEachBlock() local 77 process(block); in forEachBlock() 105 status_t attachToBufferQueue(const C2ConstGraphicBlock& block, in attachToBufferQueue() argument 114 sp<GraphicBuffer> graphicBuffer = createGraphicBuffer(block); in attachToBufferQueue() 118 << " block dimension " << block.width() << "x" in attachToBufferQueue() 119 << block.height() in attachToBufferQueue() 140 bool getBufferQueueAssignment(const C2ConstGraphicBlock& block, in getBufferQueueAssignment() argument [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 302 ResXMLTree& block, bool _appendComment) in PendingAttribute() 304 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute() 328 ResXMLTree& block, in compileAttribute() argument 334 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute() 347 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute() 349 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute() 359 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute() 361 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute() 363 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute() 379 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute() [all …]
|
D | Resource.cpp | 230 ResXMLTree block; in parsePackage() local 231 status_t err = parseXMLResource(file, &block); in parsePackage() 238 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage() 246 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage() 249 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage() 251 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage() 252 String8(block.getElementName(&len)).string()); in parsePackage() 256 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage() 259 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage() 263 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | space_to_batch_quant8_signed.mod.py | 19 block = Parameter("block_size", "TENSOR_INT32", "{2}", [2, 2]) variable 23 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 49 block = Parameter("block_size", "TENSOR_INT32", "{2}", [3, 2]) variable 53 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 77 block = Parameter("block_size", "TENSOR_INT32", "{2}", [3, 2]) variable 81 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 109 block = Parameter("block_size", "TENSOR_INT32", "{2}", [3, 2]) variable 113 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output)
|
D | space_to_depth_quant8_signed.mod.py | 19 block = Int32Scalar("radius", 2) variable 22 model = model.Operation("SPACE_TO_DEPTH", i1, block).To(output) 38 block = Int32Scalar("radius", 2) variable 41 model = model.Operation("SPACE_TO_DEPTH", i1, block).To(output)
|
D | depth_to_space_quant8_signed.mod.py | 19 block = Int32Scalar("radius", 2) variable 22 model = model.Operation("DEPTH_TO_SPACE", i1, block).To(output) 39 block = Int32Scalar("radius", 2) variable 42 model = model.Operation("DEPTH_TO_SPACE", i1, block).To(output)
|
/frameworks/base/libs/androidfw/tests/ |
D | AppAsLib_test.cpp | 38 ssize_t block = table.getResource(app::R::integer::number1, &val); in TEST() local 39 ASSERT_GE(block, 0); in TEST() 57 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local 58 ASSERT_GE(block, 0); in TEST() 76 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local 77 ASSERT_GE(block, 0); in TEST()
|
D | Idmap_test.cpp | 64 ssize_t block = target_table_.getResource(R::string::test2, &val, false); in TEST_F() local 65 ASSERT_GE(block, 0); in TEST_F() 67 const ResStringPool* pool = target_table_.getTableStringBlock(block); in TEST_F() 81 ASSERT_NE(block, new_block); in TEST_F() 117 ssize_t block = table.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/); in TEST_F() local 118 ASSERT_GE(block, 0); in TEST_F() 123 block = target_table_.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/); in TEST_F() 124 ASSERT_LT(block, 0); in TEST_F()
|
D | ResTable_test.cpp | 181 ssize_t block = in TEST() local 183 ASSERT_GE(block, 0); in TEST() 187 ssize_t newBlock = table.resolveReference(&val, block); in TEST() 188 EXPECT_EQ(block, newBlock); in TEST() 202 ssize_t block = in TEST() local 204 ASSERT_GE(block, 0); in TEST() 217 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST() 218 ASSERT_GE(block, 0); in TEST() 235 ssize_t block = in TEST() local 237 ASSERT_GE(block, 0); in TEST() [all …]
|
D | Split_test.cpp | 87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 92 EXPECT_GE(block, 0); in TEST_F() 115 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 118 EXPECT_GE(block, 0); in TEST_F() 164 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 166 EXPECT_GE(block, 0); in TEST_F() 174 block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() 176 ASSERT_GE(block, 0); in TEST_F() 219 ssize_t block = table.getResource(R::string::test3, &val, MAY_NOT_BE_BAG); in TEST_F() local 220 EXPECT_LT(block, 0); in TEST_F() [all …]
|
D | TestHelpers.cpp | 62 ssize_t block = table.getResource(resource_id, &val, MAY_NOT_BE_BAG); in IsStringEqual() local 63 if (block < 0) { in IsStringEqual() 71 const ResStringPool* pool = table.getTableStringBlock(block); in IsStringEqual() 73 return AssertionFailure() << "table has no string pool for block " << block; in IsStringEqual()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | fastcodemb.h | 32 Int(*DCT)(Int block[ ], Int coeff[ ], approxDCT *); 55 Int getBlockSAV(Int block[]); 60 Int AppVCA1_dct(Int block[], Int out[ ], approxDCT *function); 61 Int AppVCA2_dct(Int block[], Int out[ ], approxDCT *function); 62 Int AppVCA3_dct(Int block[], Int out[ ], approxDCT *function); 63 Int AppVCA4_dct(Int block[], Int out[ ], approxDCT *function); 64 Int AppVCA5_dct(Int block[], Int out[ ], approxDCT *function); 97 void BlockIDCTMotionComp(Int *block, UChar *bitmapcol, UChar bitmaprow,
|
/frameworks/av/media/codec2/components/cmds/ |
D | codec2.cpp | 69 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block) in LinearBuffer() argument 70 : C2Buffer({ block->share(block->offset(), block->size(), ::C2Fence()) }) {} in LinearBuffer() 251 const C2ConstGraphicBlock block = output->data().graphicBlocks().front(); in play() local 252 native_handle_t *grallocHandle = UnwrapNativeCodec2GrallocHandle(block.handle()); in play() 256 block.width(), in play() 257 block.height(), in play() 261 block.width())); in play() 270 Rect(block.width(), block.height()), in play() 343 std::shared_ptr<C2LinearBlock> block; in play() local 347 &block); in play() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 165 _C2MappedBlock1DImpl(const _C2Block1DImpl &block, uint8_t *data, in _C2MappedBlock1DImpl() argument 167 : _C2Block1DImpl(block, offset, size), mData(data), mError(C2_OK) { } in _C2MappedBlock1DImpl() 333 std::shared_ptr<C2LinearBlock> *block /* nonnull */) { in fetchLinearBlock() argument 334 block->reset(); in fetchLinearBlock() 342 *block = _C2BlockFactory::CreateLinearBlock(alloc); in fetchLinearBlock() 386 const C2Block1D &block) { in GetLinearBlockPoolData() argument 387 if (block.mImpl) { in GetLinearBlockPoolData() 388 return block.mImpl->poolData(); in GetLinearBlockPoolData() 402 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc); in CreateLinearBlock() local 403 return block; in CreateLinearBlock() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 181 std::shared_ptr<C2LinearBlock> block; in encodeFrames() local 183 frameSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames() 184 if (status != C2_OK || !block) { in encodeFrames() 188 C2WriteView view = block->map().get(); in encodeFrames() 195 work->input.buffers.emplace_back(new LinearBuffer(block)); in encodeFrames() 197 std::shared_ptr<C2GraphicBlock> block; in encodeFrames() local 200 {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames() 201 if (status != C2_OK || !block) { in encodeFrames() 205 C2GraphicView view = block->map().get(); in encodeFrames() 217 work->input.buffers.emplace_back(new GraphicBuffer(block)); in encodeFrames()
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Component.cpp | 150 std::shared_ptr<C2LinearBlock>* block) { in fetchLinearBlock() argument 153 status = mBase->fetchLinearBlock(capacity, usage, block); in fetchLinearBlock() 161 std::shared_ptr<C2CircularBlock>* block) { in fetchCircularBlock() argument 164 status = mBase->fetchCircularBlock(capacity, usage, block); in fetchCircularBlock() 172 std::shared_ptr<C2GraphicBlock>* block) { in fetchGraphicBlock() argument 176 block); in fetchGraphicBlock() 592 const std::shared_ptr<C2LinearBlock> &block) { in createLinearBuffer() argument 593 return createLinearBuffer(block, block->offset(), block->size()); in createLinearBuffer() 597 const std::shared_ptr<C2LinearBlock> &block, size_t offset, size_t size) { in createLinearBuffer() argument 598 return C2Buffer::CreateLinearBuffer(block->share(offset, size, ::C2Fence())); in createLinearBuffer() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ConditionVariable.java | 92 public void block() in block() method in ConditionVariable 117 public boolean block(long timeoutMs) in block() method in ConditionVariable 137 this.block(); in block()
|
/frameworks/av/services/audioflinger/ |
D | StateQueue.cpp | 94 template<typename T> bool StateQueue<T>::push(StateQueue<T>::block_t block) in push() argument 103 if (block == BLOCK_UNTIL_ACKED) { in push() 126 if (block == BLOCK_NEVER) { in push() 158 if (block == BLOCK_UNTIL_ACKED) { in push()
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2BufferPriv.h | 42 std::shared_ptr<C2LinearBlock> *block /* nonnull */) override; 69 std::shared_ptr<C2GraphicBlock> *block /* nonnull */) override; 92 std::shared_ptr<C2LinearBlock> *block /* nonnull */) override; 99 std::shared_ptr<C2GraphicBlock> *block) override;
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | TarBackupReader.java | 103 byte[] block = new byte[512]; in readTarHeaders() 106 boolean gotHeader = readTarHeader(block); in readTarHeaders() 111 info.size = extractRadix(block, in readTarHeaders() 115 info.mtime = extractRadix(block, in readTarHeaders() 119 info.mode = extractRadix(block, in readTarHeaders() 124 info.path = extractString(block, in readTarHeaders() 127 String path = extractString(block, in readTarHeaders() 138 int typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR]; in readTarHeaders() 145 gotHeader = readTarHeader(block); in readTarHeaders() 151 typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR]; in readTarHeaders() [all …]
|