/packages/modules/adb/daemon/ |
D | usb.cpp | 459 void PrepareReadBlock(IoReadBlock* block, uint64_t id) { in PrepareReadBlock() 460 block->pending = false; in PrepareReadBlock() 461 if (block->payload.capacity() >= kUsbReadSize) { in PrepareReadBlock() 462 block->payload.resize(kUsbReadSize); in PrepareReadBlock() 464 block->payload = Block(kUsbReadSize); in PrepareReadBlock() 466 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock() 467 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload.data()); in PrepareReadBlock() 468 block->control.aio_nbytes = block->payload.size(); in PrepareReadBlock() 472 IoReadBlock block; in CreateReadBlock() local 473 PrepareReadBlock(&block, id); in CreateReadBlock() [all …]
|
D | services.cpp | 228 Block block(len); in Ready() local 229 memset(block.data(), 0, block.size()); in Ready() 230 peer->enqueue(peer, std::move(block)); in Ready()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnectionService.java | 78 HfpClientDeviceBlock block = null; 79 if ((block = createBlockForDevice(device)) == null) { 89 HfpClientDeviceBlock block = mDeviceBlocks.remove(device); 90 if (block == null) { 94 block.cleanup(); 96 block = null; 103 HfpClientDeviceBlock block = findBlockForDevice(call.getDevice()); 104 if (block == null) { 112 block.handleCall(call); 119 HfpClientDeviceBlock block = findBlockForDevice(device); [all …]
|
/packages/modules/GeoTZ/s2storage/ |
D | README.md | 16 A "block file" is a general-purpose file format containing a small amount of header information, 22 2. Next are the block infos, which hold metadata about all blocks in the file such as their ID, 23 a type ID, (optional) arbitrary "extra" bytes, and size / offset information for the block. 30 Packed tables are a way of arranging block data to store tables of key-ordered key / value pairs in 41 The TZ S2 data file is a type of block file that uses packed tables. It overlays additional rules, 42 block types, etc. on top of the general block file format. 51 It is designed to be flexible and parameterized / self describing: the header block contains format 79 Suffix table block IDs are calculated by taking the prefix of the S2 cell ID being sought and 80 applying a fixed offset. The block info and block data for the cell's suffix table can be accessed 81 directly using the block's ID. [all …]
|
/packages/modules/adb/ |
D | types_test.cpp | 27 auto block = IOVector::block_type(); in create_block() local 28 block.resize(len); in create_block() 29 memset(&(block)[0], value, len); in create_block() 30 return block; in create_block() 34 static IOVector::block_type copy_block(const T& block) { in copy_block() argument 36 copy.assign(block.begin(), block.end()); in copy_block() 48 auto block = create_block('x', 100); in TEST() local 50 bc.append(copy_block(block)); in TEST() 53 ASSERT_EQ(block, coalesced); in TEST()
|
D | types.h | 145 explicit IOVector(block_type&& block) { append(std::move(block)); } in IOVector() 182 void append(block_type&& block) { in append() 183 if (block.size() == 0) { in append() 186 CHECK_NE(0ULL, block.size()); in append() 187 chain_length_ += block.size(); in append() 188 chain_.emplace_back(std::move(block)); in append() 207 const auto& block = chain_[i]; in iterate_blocks() local 208 const char* begin = block.data(); in iterate_blocks() 209 size_t length = block.size(); in iterate_blocks() 212 CHECK_GE(block.size(), begin_offset_); in iterate_blocks()
|
D | transport_fd.cpp | 96 auto block = IOVector::block_type(MAX_PAYLOAD); in Run() local 97 rc = adb_read(fd_.get(), &block[0], block.size()); in Run() 105 block.resize(rc); in Run() 106 read_buffer_.append(std::move(block)); in Run()
|
D | types.cpp | 96 block_type block(chain_[start_index_].begin() + begin_offset_, in take_front() local 98 res.append(std::move(block)); in take_front() 103 block_type block(chain_[start_index_].begin() + len, chain_[start_index_].end()); in take_front() local 107 chain_length_ += block.size(); in take_front() 108 chain_[start_index_] = std::move(block); in take_front()
|
/packages/modules/NeuralNetworks/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 | 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)
|
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)
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/read/ |
D | BlockMatcher.java | 17 package com.android.timezone.location.storage.block.read; 26 public BlockMatcher(Block block) { in BlockMatcher() argument 27 mBlock = block; in BlockMatcher() 31 public boolean matches(Block block) { in matches() argument 32 return mBlock.getId() == block.getId() in matches() 33 && mBlock.getType() == block.getType(); in matches()
|
D | BlockTest.java | 17 package com.android.timezone.location.storage.block.read; 36 Block block = new Block(id, type, blockData); in visit() local 38 block.visit(mockVisitor); in visit() 42 inOrder.verify(mockVisitor).visit(argThat(new BlockMatcher(block))); in visit()
|
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/timezone/location/tools/dump/ |
D | BlockFileDumper.java | 21 import com.android.timezone.location.storage.block.read.Block; 22 import com.android.timezone.location.storage.block.read.BlockFileReader.BlockFileVisitor; 23 import com.android.timezone.location.storage.block.read.BlockInfo; 58 public void visitBlock(Block block) throws VisitException { in visitBlock() argument 60 DumpUtils.generateDumpFile(mOutputDir, "block_", block.getId(), mBlockCount); in visitBlock() 61 block.visit(new BlockDumper(blockFile)); in visitBlock()
|
D | BlockDumper.java | 19 import com.android.timezone.location.storage.block.read.Block; 31 public void visit(Block block) { in visit() argument 32 println("id=" + block.getId()); in visit() 33 println("type=" + block.getType()); in visit() 34 println("block size=" + block.getData().getSize()); in visit()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | SuffixTableBlockMatcher.java | 35 public boolean matches(SuffixTableBlock block) { in matches() argument 36 if (mSuffixTableBlock.getPrefix() != block.getPrefix() in matches() 37 || mSuffixTableBlock.getTzIdSetBank() != block.getTzIdSetBank() in matches() 38 || mSuffixTableBlock.getEntryCount() != block.getEntryCount()) { in matches() 43 SuffixTableBlock.Entry actualEntry = block.getEntryByIndex(i); in matches()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/ |
D | BlockFileTest.java | 17 package com.android.timezone.location.storage.block; 25 import com.android.timezone.location.storage.block.read.Block; 26 import com.android.timezone.location.storage.block.read.BlockData; 27 import com.android.timezone.location.storage.block.read.BlockFileReader; 28 import com.android.timezone.location.storage.block.read.BlockInfo; 29 import com.android.timezone.location.storage.block.read.BlockMatcher; 30 import com.android.timezone.location.storage.block.write.BlockFileWriter;
|
/packages/modules/adb/client/ |
D | usb_libusb.cpp | 104 Block block; member 111 Block block; member 227 self->HandlePacket(*self->incoming_header_, std::move(read_block->block)); in payload_read_cb() 271 read->block.resize(length); in SubmitRead() 272 read->transfer->buffer = reinterpret_cast<unsigned char*>(read->block.data()); in SubmitRead() 281 void SubmitWrite(Block&& block) REQUIRES(write_mutex_) { in SubmitWrite() 287 write->block = std::move(block); in SubmitWrite() 294 reinterpret_cast<unsigned char*>(write->block.data()), in SubmitWrite() 295 write->block.size(), &write_cb, write.get(), 0); in SubmitWrite()
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/ |
D | TzS2RangeFileReader.java | 19 import com.android.timezone.location.storage.block.read.Block; 20 import com.android.timezone.location.storage.block.read.BlockFileReader; 21 import com.android.timezone.location.storage.block.read.BlockInfo; 187 Block block = mBlockFileReader.getBlock(prefix + mFileFormat.getSuffixTableBlockIdOffset()); in getSuffixTableBlockForPrefix() local 189 SuffixTableBlock.createPopulated(mFileFormat, block.getData()); in getSuffixTableBlockForPrefix()
|
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/block/write/ |
D | BlockWriter.java | 17 package com.android.timezone.location.storage.block.write; 19 import com.android.timezone.location.storage.block.read.BlockData; 20 import com.android.timezone.location.storage.block.read.BlockInfo;
|
D | BlockFileWriter.java | 17 package com.android.timezone.location.storage.block.write; 19 import com.android.timezone.location.storage.block.read.BlockData; 20 import com.android.timezone.location.storage.block.read.BlockInfo;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 1072 private static boolean isCJKUnicodeBlock(UnicodeBlock block) { in isCJKUnicodeBlock() argument 1073 return block == UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS in isCJKUnicodeBlock() 1074 || block == UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A in isCJKUnicodeBlock() 1075 || block == UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B in isCJKUnicodeBlock() 1076 || block == UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION in isCJKUnicodeBlock() 1077 || block == UnicodeBlock.CJK_RADICALS_SUPPLEMENT in isCJKUnicodeBlock() 1078 || block == UnicodeBlock.CJK_COMPATIBILITY in isCJKUnicodeBlock() 1079 || block == UnicodeBlock.CJK_COMPATIBILITY_FORMS in isCJKUnicodeBlock() 1080 || block == UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS in isCJKUnicodeBlock() 1081 || block == UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT; in isCJKUnicodeBlock()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalPrintJob.java | 85 mPrintJob.block(printService.getString(R.string.waiting_to_send)); in LocalPrintJob() 218 mPrintJob.block(mPrintService.getString(R.string.connect_hint_text)); in onConnectionDelayed() 260 mPrintJob.block(mPrintService.getString(R.string.printer_not_encrypted)); in deliver() 313 mPrintJob.block(blockedReason); in handleJobStatus() 333 mPrintJob.block(mPrintService.getString(R.string.printer_bad_certificate)); in handleBadCertificate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorHueView.java | 188 int block = 16; in makeCheckPaint() local 189 int checkdim = block*2; in makeCheckPaint() 192 int y = i / (checkdim * block); in makeCheckPaint() 193 int x = (i / block) % 2; in makeCheckPaint()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | depth_to_space_float_3.mod.py | 3 block = Int32Scalar("block_size", 2) variable 6 model = model.Operation("DEPTH_TO_SPACE", i1, block).To(output)
|