/system/update_engine/payload_generator/ |
D | delta_diff_utils_unittest.cc | 177 InstallOperation op; in TEST_F() local 185 &op)); in TEST_F() 188 EXPECT_TRUE(op.has_type()); in TEST_F() 189 EXPECT_EQ(InstallOperation::MOVE, op.type()); in TEST_F() 190 EXPECT_FALSE(op.has_data_offset()); in TEST_F() 191 EXPECT_FALSE(op.has_data_length()); in TEST_F() 192 EXPECT_EQ(1, op.src_extents_size()); in TEST_F() 193 EXPECT_EQ(kBlockSize, op.src_length()); in TEST_F() 194 EXPECT_EQ(1, op.dst_extents_size()); in TEST_F() 195 EXPECT_EQ(kBlockSize, op.dst_length()); in TEST_F() [all …]
|
D | ab_generator.cc | 92 if (aop.op.dst_extents_size() > 1) { in FragmentOperations() 93 if (aop.op.type() == InstallOperation::SOURCE_COPY) { in FragmentOperations() 97 if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations() 112 InstallOperation original_op = original_aop.op; in SplitSourceCopy() 149 new_aop.op = new_op; in SplitSourceCopy() 165 InstallOperation original_op = original_aop.op; in SplitAReplaceOp() 186 new_aop.op = new_op; in SplitAReplaceOp() 208 bool last_is_a_replace = IsAReplaceOperation(last_aop.op.type()); in MergeOperations() 210 if (last_aop.op.dst_extents_size() <= 0 || in MergeOperations() 211 curr_aop.op.dst_extents_size() <= 0) { in MergeOperations() [all …]
|
D | inplace_generator_unittest.cc | 58 out->aop.op.set_type(type); in GenVertex() 60 StoreExtents(src_extents, out->aop.op.mutable_src_extents()); in GenVertex() 61 StoreExtents(dst_extents, out->aop.op.mutable_dst_extents()); in GenVertex() 96 void OpAppendExtent(InstallOperation* op, uint64_t start, uint64_t length) { in OpAppendExtent() argument 97 Extent* extent = op->add_src_extents(); in OpAppendExtent() 158 InstallOperation& op = vertex.aop.op; in TEST_F() local 159 OpAppendExtent(&op, 4, 3); in TEST_F() 160 OpAppendExtent(&op, kSparseHole, 4); // Sparse hole in file in TEST_F() 161 OpAppendExtent(&op, 3, 1); in TEST_F() 162 OpAppendExtent(&op, 7, 3); in TEST_F() [all …]
|
D | annotated_operation.cc | 42 op.clear_data_offset(); in SetOperationBlob() 43 op.clear_data_length(); in SetOperationBlob() 48 op.set_data_offset(data_offset); in SetOperationBlob() 49 op.set_data_length(blob.size()); in SetOperationBlob() 58 os << InstallOperationTypeName(aop.op.type()) << " " << aop.op.data_length(); in operator <<() 59 if (aop.op.data_length() > 0) in operator <<() 60 os << " @" << aop.op.data_offset(); in operator <<() 64 if (aop.op.src_extents_size() != 0) { in operator <<() 66 OutputExtents(&os, aop.op.src_extents()); in operator <<() 68 if (aop.op.dst_extents_size() != 0) { in operator <<() [all …]
|
D | payload_file_unittest.cc | 61 aop.op.set_data_offset(8); in TEST_F() 62 aop.op.set_data_length(3); in TEST_F() 65 aop.op.set_data_offset(7); in TEST_F() 66 aop.op.set_data_length(1); in TEST_F() 70 aop.op.set_data_offset(0); in TEST_F() 71 aop.op.set_data_length(6); in TEST_F() 84 EXPECT_EQ(0U, part0_aops[0].op.data_offset()); in TEST_F() 85 EXPECT_EQ(3U, part0_aops[0].op.data_length()); in TEST_F() 86 EXPECT_EQ(3U, part0_aops[1].op.data_offset()); in TEST_F() 87 EXPECT_EQ(1U, part0_aops[1].op.data_length()); in TEST_F() [all …]
|
D | ab_generator_unittest.cc | 82 InstallOperation op; in TestSplitReplaceOrReplaceBzOperation() local 83 op.set_type(orig_type); in TestSplitReplaceOrReplaceBzOperation() 84 *(op.add_dst_extents()) = ExtentForRange(op_ex1_start_block, in TestSplitReplaceOrReplaceBzOperation() 86 *(op.add_dst_extents()) = ExtentForRange(op_ex2_start_block, in TestSplitReplaceOrReplaceBzOperation() 88 op.set_dst_length(op_ex1_num_blocks + op_ex2_num_blocks); in TestSplitReplaceOrReplaceBzOperation() 103 op.set_data_offset(0); in TestSplitReplaceOrReplaceBzOperation() 104 op.set_data_length(op_blob.size()); in TestSplitReplaceOrReplaceBzOperation() 107 aop.op = op; in TestSplitReplaceOrReplaceBzOperation() 137 InstallOperation first_op = result_ops[0].op; in TestSplitReplaceOrReplaceBzOperation() 166 InstallOperation second_op = result_ops[1].op; in TestSplitReplaceOrReplaceBzOperation() [all …]
|
D | payload_file.cc | 118 if (!aop.op.has_data_offset()) in WritePayload() 120 if (aop.op.data_offset() != next_blob_offset) { in WritePayload() 121 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() << " != " in WritePayload() 124 next_blob_offset += aop.op.data_length(); in WritePayload() 145 *partition->add_operations() = aop.op; in WritePayload() 155 *manifest_.add_kernel_install_operations() = aop.op; in WritePayload() 162 *manifest_.add_install_operations() = aop.op; in WritePayload() 296 if (!aop.op.has_data_offset()) in ReorderDataBlobs() 298 CHECK(aop.op.has_data_length()); in ReorderDataBlobs() 299 brillo::Blob buf(aop.op.data_length()); in ReorderDataBlobs() [all …]
|
D | full_update_generator_unittest.cc | 88 EXPECT_EQ(1, aops[i].op.dst_extents_size()); in TEST_F() 91 aops[i].op.dst_extents(0).start_block()) in TEST_F() 94 aops[i].op.dst_extents(0).num_blocks()); in TEST_F() 95 if (aops[i].op.type() != InstallOperation::REPLACE) { in TEST_F() 96 EXPECT_EQ(InstallOperation::REPLACE_BZ, aops[i].op.type()); in TEST_F() 119 BlocksInExtents(aops[0].op.dst_extents())); in TEST_F() 121 BlocksInExtents(aops[1].op.dst_extents())); in TEST_F() 141 BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
|
D | inplace_generator.cc | 103 CHECK(v.aop.op.has_type()); in CheckGraph() 113 ExpandExtents(vertex->aop.op.src_extents()); in SubstituteBlocks() 134 vertex->aop.op.clear_src_extents(); in SubstituteBlocks() 136 StoreExtents(new_extents, vertex->aop.op.mutable_src_extents()); in SubstituteBlocks() 175 graph->back().aop.op.set_type(InstallOperation::MOVE); in CutEdges() 177 graph->back().aop.op.mutable_src_extents()); in CutEdges() 179 graph->back().aop.op.mutable_dst_extents()); in CutEdges() 180 graph->back().aop.op.set_src_length( in CutEdges() 182 graph->back().aop.op.set_dst_length(graph->back().aop.op.src_length()); in CutEdges() 281 InstallOperation_Type type = (*graph)[op_index].aop.op.type(); in MoveAndSortFullOpsToBack() [all …]
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 219 def _ApplyReplaceOperation(self, op, op_name, out_data, part_file, part_size): argument 236 if op.type == common.OpType.REPLACE_BZ: 242 for ex, ex_name in common.ExtentIter(op.dst_extents, 280 def _ApplyMoveOperation(self, op, op_name, part_file): argument 298 in_data = _ReadExtents(part_file, op.src_extents, block_size) 301 _WriteExtents(part_file, in_data, op.dst_extents, block_size, 304 def _ApplyBsdiffOperation(self, op, op_name, patch_data, new_part_file): argument 318 self._ApplyDiffOperation(op, op_name, patch_data, new_part_file, 321 def _ApplySourceCopyOperation(self, op, op_name, old_part_file, argument 337 (op_name, op.type)) [all …]
|
D | checker_unittest.py | 566 op = self.mox.CreateMock( 568 op.type = common.OpType.REPLACE 571 op.src_extents = [] 574 op, data_length, (data_length + block_size - 1) / block_size, 578 op.src_extents = ['bar'] 582 op, data_length, (data_length + block_size - 1) / block_size, 'foo') 585 op.src_extents = [] 589 op, None, (data_length + block_size - 1) / block_size, 'foo') 592 op.src_extents = ['bar'] 596 op, data_length, (data_length + block_size - 1) / block_size + 1, 'foo') [all …]
|
D | checker.py | 703 def _CheckReplaceOperation(self, op, data_length, total_dst_blocks, op_name): argument 716 if op.src_extents: 723 if op.type == common.OpType.REPLACE: 735 def _CheckMoveOperation(self, op, data_offset, total_src_blocks, argument 761 src_extent_iter = iter(op.src_extents) 762 dst_extent_iter = iter(op.dst_extents) 864 def _CheckAnySourceOperation(self, op, total_src_blocks, op_name): argument 880 if self.minor_version >= 3 and op.src_sha256_hash is None: 883 def _CheckOperation(self, op, op_name, is_last, old_block_counters, argument 908 op.src_extents, old_usable_size, old_block_counters, [all …]
|
D | block_tracer.py | 57 for op, op_name in common.OperationIter(operations, base_name, 63 for dst_ex, dst_ex_name in common.ExtentIter(op.dst_extents, 82 if op.type != common.OpType.MOVE: 86 for src_ex, src_ex_name in common.ExtentIter(op.src_extents,
|
D | test_utils.py | 195 op = operations.add() 196 op.type = op_type 198 _SetMsgField(op, 'data_offset', data_offset) 199 _SetMsgField(op, 'data_length', data_length) 201 self._AddExtents(op.src_extents, src_extents) 202 _SetMsgField(op, 'src_length', src_length) 204 self._AddExtents(op.dst_extents, dst_extents) 205 _SetMsgField(op, 'dst_length', dst_length) 207 _SetMsgField(op, 'data_sha256_hash', data_sha256_hash)
|
/system/media/audio_utils/ |
D | fifo_index.cpp | 36 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) in wait() argument 38 return sys_futex(&mIndex, op, expected, timeout, NULL, 0); in wait() 41 int audio_utils_fifo_index::wake(int op, int waiters) in wake() argument 43 return sys_futex(&mIndex, op, waiters, NULL, NULL, 0); in wake() 84 void RefIndexDeferredStoreReleaseDeferredWake::wakeDeferred(int op, int waiters) in wakeDeferred() argument 90 if (op == FUTEX_WAKE) { in wakeDeferred() 109 void RefIndexDeferredStoreReleaseDeferredWake::wakeNow(int op, int waiters) in wakeNow() argument 111 wakeDeferred(op, waiters); in wakeNow() 155 int RefIndexCachedLoadAcquireDeferredWait::wait(int op, const struct timespec *timeout) in wait() argument 160 int err = mIndex.wait(op, mValue /*expected*/, timeout); in wait()
|
/system/nfc/src/nfa/rw/ |
D | nfa_rw_api.c | 69 p_msg->op = NFA_RW_OP_DETECT_NDEF; in NFA_RwDetectNDef() 114 p_msg->op = NFA_RW_OP_READ_NDEF; in NFA_RwReadNDef() 156 p_msg->op = NFA_RW_OP_WRITE_NDEF; in NFA_RwWriteNDef() 191 p_msg->op = NFA_RW_OP_PRESENCE_CHECK; in NFA_RwPresenceCheck() 224 p_msg->op = NFA_RW_OP_FORMAT_TAG; in NFA_RwFormatTag() 279 p_msg->op = NFA_RW_OP_SET_TAG_RO; in NFA_RwSetTagReadOnly() 338 p_msg->op = NFA_RW_OP_DETECT_LOCK_TLV; in NFA_RwLocateTlv() 340 p_msg->op = NFA_RW_OP_DETECT_MEM_TLV; in NFA_RwLocateTlv() 342 p_msg->op = NFA_RW_OP_DETECT_NDEF; in NFA_RwLocateTlv() 377 p_msg->op = NFA_RW_OP_T1T_RID; in NFA_RwT1tRid() [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | fifo_index.h | 66 int wait(int op, uint32_t expected, const struct timespec *timeout); 77 int wake(int op, int waiters = 1); 127 void wakeDeferred(int op, int waiters = 1); 130 void wakeNow(int op, int waiters = 1); 184 int wait(int op, const struct timespec *timeout);
|
D | futex.h | 35 int sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, in sys_futex() argument 39 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); in sys_futex() 43 (void) op; in sys_futex()
|
/system/core/libpixelflinger/codeflinger/ |
D | mips_opcode.h | 55 unsigned op: 6; member 60 unsigned op: 6; member 69 unsigned op: 6; member 79 unsigned op: 6; /* always '0x11' */ member 84 unsigned op: 6; member 91 unsigned op: 6; member 96 unsigned op: 6; member 105 unsigned op: 6; /* always '0x11' */ member
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 347 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 348 aop.op.set_data_offset(0); in TEST_F() 349 aop.op.set_data_length(expected_data.size()); in TEST_F() 350 aop.op.set_type(InstallOperation::REPLACE); in TEST_F() 366 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 367 aop.op.set_data_offset(0); in TEST_F() 368 aop.op.set_data_length(expected_data.size()); in TEST_F() 369 aop.op.set_type(InstallOperation::REPLACE); in TEST_F() 390 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F() 391 aop.op.set_data_offset(0); in TEST_F() [all …]
|
/system/tools/hidl/ |
D | ConstantExpression.cpp | 31 #define OPEQ(__y__) STREQ(op, __y__) 99 T handleUnary(const char *op, T val) { in handleUnary() argument 105 SHOULD_NOT_REACH() << "Could not handleUnary for " << op << " " << val; in handleUnary() 110 T handleBinaryCommon(T lval, const char *op, T rval) { in handleBinaryCommon() argument 128 << lval << " " << op << " " << rval; in handleBinaryCommon() 133 T handleShift(T lval, const char *op, int64_t rval) { in handleShift() argument 139 << lval << " " << op << " " << rval; in handleShift() 143 bool handleLogical(bool lval, const char *op, bool rval) { in handleLogical() argument 148 << lval << " " << op << " " << rval; in handleLogical() 247 ConstantExpression::ConstantExpression(const char *op, in ConstantExpression() argument [all …]
|
/system/netd/server/ |
D | FirewallController.cpp | 159 const char* op; in setInterfaceRule() local 161 op = "-I"; in setInterfaceRule() 164 op = "-D"; in setInterfaceRule() 172 StringPrintf("%s fw_INPUT -i %s -j RETURN", op, iface), in setInterfaceRule() 173 StringPrintf("%s fw_OUTPUT -o %s -j RETURN", op, iface), in setInterfaceRule() 195 const char* op; in setUidRule() local 201 op = (rule == ALLOW)? "-I" : "-D"; in setUidRule() 205 op = (rule == DENY)? "-A" : "-D"; in setUidRule() 230 op, chainName.c_str(), uid, target); in setUidRule()
|
D | IdletimerControllerTest.cpp | 67 const char *op = add ? "-A" : "-D"; in makeAddRemoveCommands() local 71 " --timeout 12345 --label hello --send_nl_msg 1", op), in makeAddRemoveCommands() 75 " --timeout 12345 --label hello --send_nl_msg 1", op), in makeAddRemoveCommands()
|
/system/core/libunwindstack/ |
D | DwarfOp.cpp | 66 const auto* op = &kCallbackTable[cur_op_]; in Decode() local 67 const auto handle_func = op->handle_func; in Decode() 74 if (dwarf_version < op->supported_version) { in Decode() 80 if (stack_.size() < op->num_required_stack_values) { in Decode() 86 for (size_t i = 0; i < op->num_operands; i++) { in Decode() 88 if (!memory_->ReadEncodedValue<AddressType>(op->operands[i], &value)) { in Decode() 109 const auto* op = &kCallbackTable[cur_op]; in GetLogInfo() local 110 if (op->handle_func == nullptr) { in GetLogInfo() 113 log_string = op->name; in GetLogInfo() 115 for (size_t i = 0; i < op->num_operands; i++) { in GetLogInfo() [all …]
|
/system/core/fastboot/ |
D | engine.cpp | 55 unsigned op; member 103 static Action *queue_action(unsigned op, const char *fmt, ...) in queue_action() argument 126 a->op = op; in queue_action() 382 if (a->op == OP_DOWNLOAD) { in fb_execute_queue() 386 } else if (a->op == OP_DOWNLOAD_FD) { in fb_execute_queue() 390 } else if (a->op == OP_COMMAND) { in fb_execute_queue() 394 } else if (a->op == OP_QUERY) { in fb_execute_queue() 398 } else if (a->op == OP_NOTICE) { in fb_execute_queue() 400 } else if (a->op == OP_DOWNLOAD_SPARSE) { in fb_execute_queue() 404 } else if (a->op == OP_WAIT_FOR_DISCONNECT) { in fb_execute_queue() [all …]
|