Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 126) sorted by relevance

123456

/system/update_engine/payload_generator/
Dannotated_operation.cc42 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 …]
Dab_generator.cc94 if (aop.op.dst_extents_size() > 1) { in FragmentOperations()
95 if (aop.op.type() == InstallOperation::SOURCE_COPY) { in FragmentOperations()
99 if (IsAReplaceOperation(aop.op.type())) { in FragmentOperations()
113 InstallOperation original_op = original_aop.op; in SplitSourceCopy()
150 new_aop.op = new_op; in SplitSourceCopy()
166 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 …]
Dpayload_file_unittest.cc54 aop.op.set_data_offset(8); in TEST_F()
55 aop.op.set_data_length(3); in TEST_F()
58 aop.op.set_data_offset(7); in TEST_F()
59 aop.op.set_data_length(1); in TEST_F()
63 aop.op.set_data_offset(0); in TEST_F()
64 aop.op.set_data_length(6); in TEST_F()
77 EXPECT_EQ(0U, part0_aops[0].op.data_offset()); in TEST_F()
78 EXPECT_EQ(3U, part0_aops[0].op.data_length()); in TEST_F()
79 EXPECT_EQ(3U, part0_aops[1].op.data_offset()); in TEST_F()
80 EXPECT_EQ(1U, part0_aops[1].op.data_length()); in TEST_F()
[all …]
Ddelta_diff_utils_unittest.cc187 new_visited_blocks_.AddRepeatedExtents(aop.op.dst_extents()); in TEST_F()
220 InstallOperation op; in TEST_F() local
230 &op)); in TEST_F()
233 EXPECT_TRUE(op.has_type()); in TEST_F()
236 EXPECT_EQ(expected_type, op.type()); in TEST_F()
237 EXPECT_FALSE(op.has_data_offset()); in TEST_F()
238 EXPECT_FALSE(op.has_data_length()); in TEST_F()
239 EXPECT_EQ(0, op.src_extents_size()); in TEST_F()
240 EXPECT_FALSE(op.has_src_length()); in TEST_F()
241 EXPECT_EQ(1, op.dst_extents_size()); in TEST_F()
[all …]
Dab_generator_unittest.cc82 InstallOperation op; in TestSplitReplaceOrReplaceXzOperation() local
83 op.set_type(orig_type); in TestSplitReplaceOrReplaceXzOperation()
84 *(op.add_dst_extents()) = in TestSplitReplaceOrReplaceXzOperation()
86 *(op.add_dst_extents()) = in TestSplitReplaceOrReplaceXzOperation()
102 op.set_data_offset(0); in TestSplitReplaceOrReplaceXzOperation()
103 op.set_data_length(op_blob.size()); in TestSplitReplaceOrReplaceXzOperation()
106 aop.op = op; in TestSplitReplaceOrReplaceXzOperation()
133 InstallOperation first_op = result_ops[0].op; in TestSplitReplaceOrReplaceXzOperation()
163 InstallOperation second_op = result_ops[1].op; in TestSplitReplaceOrReplaceXzOperation()
248 first_aop.op = first_op; in TestMergeReplaceOrReplaceXzOperations()
[all …]
Dfull_update_generator_unittest.cc85 EXPECT_EQ(1, aops[i].op.dst_extents_size()); in TEST_F()
88 aops[i].op.dst_extents(0).start_block()) in TEST_F()
91 aops[i].op.dst_extents(0).num_blocks()); in TEST_F()
92 if (aops[i].op.type() != InstallOperation::REPLACE) { in TEST_F()
93 EXPECT_EQ(InstallOperation::REPLACE_XZ, aops[i].op.type()); in TEST_F()
116 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
118 utils::BlocksInExtents(aops[1].op.dst_extents())); in TEST_F()
138 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
Dpayload_file.cc120 if (!aop.op.has_data_offset()) in WritePayload()
122 if (aop.op.data_offset() != next_blob_offset) { in WritePayload()
123 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() in WritePayload()
126 next_blob_offset += aop.op.data_length(); in WritePayload()
160 *partition->add_operations() = aop.op; in WritePayload()
283 if (!aop.op.has_data_offset()) in ReorderDataBlobs()
285 CHECK(aop.op.has_data_length()); in ReorderDataBlobs()
286 brillo::Blob buf(aop.op.data_length()); in ReorderDataBlobs()
287 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset()); in ReorderDataBlobs()
291 TEST_AND_RETURN_FALSE(AddOperationHash(&aop.op, buf)); in ReorderDataBlobs()
[all …]
/system/update_engine/scripts/update_payload/
Dapplier.py231 def _ApplyReplaceOperation(self, op, op_name, out_data, part_file, part_size): argument
248 if op.type == common.OpType.REPLACE_BZ:
251 elif op.type == common.OpType.REPLACE_XZ:
258 for ex, ex_name in common.ExtentIter(op.dst_extents,
294 def _ApplyZeroOperation(self, op, op_name, part_file): argument
310 for ex, ex_name in common.ExtentIter(op.dst_extents, base_name):
314 def _ApplySourceCopyOperation(self, op, op_name, old_part_file, argument
330 (op_name, op.type))
335 in_data = _ReadExtents(old_part_file, op.src_extents, block_size)
338 _WriteExtents(new_part_file, in_data, op.dst_extents, block_size,
[all …]
Dchecker_unittest.py588 op = mock.create_autospec(update_metadata_pb2.InstallOperation)
589 op.type = common.OpType.REPLACE
592 op.src_extents = []
595 op, data_length, (data_length + block_size - 1) // block_size,
599 op.src_extents = ['bar']
602 op, data_length, (data_length + block_size - 1) // block_size, 'foo')
605 op.src_extents = []
608 op, None, (data_length + block_size - 1) // block_size, 'foo')
611 op.src_extents = ['bar']
614 op, data_length, (data_length + block_size - 1) // block_size + 1,
[all …]
Dchecker.py753 def _CheckReplaceOperation(self, op, data_length, total_dst_blocks, op_name): argument
771 if op.src_extents:
778 if op.type == common.OpType.REPLACE:
790 def _CheckZeroOperation(self, op, op_name): argument
801 if op.src_extents:
803 if op.data_length:
805 if op.data_offset:
808 def _CheckAnyDiffOperation(self, op, data_length, total_dst_blocks, op_name): argument
834 if op.type == common.OpType.SOURCE_BSDIFF and self.minor_version <= 3:
835 if not op.HasField('src_length') or not op.HasField('dst_length'):
[all …]
Dtest_utils.py208 op = operations.add()
209 op.type = op_type
211 _SetMsgField(op, 'data_offset', data_offset)
212 _SetMsgField(op, 'data_length', data_length)
214 self._AddExtents(op.src_extents, src_extents)
215 _SetMsgField(op, 'src_length', src_length)
217 self._AddExtents(op.dst_extents, dst_extents)
218 _SetMsgField(op, 'dst_length', dst_length)
220 _SetMsgField(op, 'data_sha256_hash', data_sha256_hash)
/system/bt/bta/gatt/
Dbta_gattc_queue.cc106 gatt_operation& op = gatt_ops.front(); in gatt_execute_next_op() local
108 if (op.type == GATT_READ_CHAR) { in gatt_execute_next_op()
111 data->cb = op.read_cb; in gatt_execute_next_op()
112 data->cb_data = op.read_cb_data; in gatt_execute_next_op()
113 BTA_GATTC_ReadCharacteristic(conn_id, op.handle, GATT_AUTH_REQ_NONE, in gatt_execute_next_op()
116 } else if (op.type == GATT_READ_DESC) { in gatt_execute_next_op()
119 data->cb = op.read_cb; in gatt_execute_next_op()
120 data->cb_data = op.read_cb_data; in gatt_execute_next_op()
121 BTA_GATTC_ReadCharDescr(conn_id, op.handle, GATT_AUTH_REQ_NONE, in gatt_execute_next_op()
124 } else if (op.type == GATT_WRITE_CHAR) { in gatt_execute_next_op()
[all …]
/system/media/audio_utils/
Dfifo_index.cpp36 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/
Dnfa_rw_api.cc75 p_msg->op = NFA_RW_OP_DETECT_NDEF; in NFA_RwDetectNDef()
120 p_msg->op = NFA_RW_OP_READ_NDEF; in NFA_RwReadNDef()
162 p_msg->op = NFA_RW_OP_WRITE_NDEF; in NFA_RwWriteNDef()
197 p_msg->op = NFA_RW_OP_PRESENCE_CHECK; in NFA_RwPresenceCheck()
230 p_msg->op = NFA_RW_OP_FORMAT_TAG; in NFA_RwFormatTag()
286 p_msg->op = NFA_RW_OP_SET_TAG_RO; in NFA_RwSetTagReadOnly()
345 p_msg->op = NFA_RW_OP_DETECT_LOCK_TLV; in NFA_RwLocateTlv()
347 p_msg->op = NFA_RW_OP_DETECT_MEM_TLV; in NFA_RwLocateTlv()
349 p_msg->op = NFA_RW_OP_DETECT_NDEF; in NFA_RwLocateTlv()
384 p_msg->op = NFA_RW_OP_T1T_RID; in NFA_RwT1tRid()
[all …]
/system/media/audio_utils/include/audio_utils/
Dfifo_index.h66 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);
Dfutex.h35 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/
Dmips_opcode.h55 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/security/keystore/
Dkeymaster_worker.cpp340 auto op = operationMap_.removeOperation(token, false /* wasOpSuccessful */); in abort() local
341 if (op) { in abort()
342 keyStore_->getAuthTokenTable().MarkCompleted(op->handle); in abort()
343 return KS_HANDLE_HIDL_ERROR(keymasterDevice_, keymasterDevice_->abort(op->handle)); in abort()
552 KeymasterWorker::getOperationAuthTokenIfNeeded(std::shared_ptr<Operation> op) { in getOperationAuthTokenIfNeeded() argument
553 if (!op) return ErrorCode::INVALID_OPERATION_HANDLE; in getOperationAuthTokenIfNeeded()
555 if (op->authTokenFuture.valid()) { in getOperationAuthTokenIfNeeded()
557 op->authTokenFuture.wait(); in getOperationAuthTokenIfNeeded()
558 auto rc = op->authTokenFuture.get(); in getOperationAuthTokenIfNeeded()
562 op->authTokenFuture = {}; in getOperationAuthTokenIfNeeded()
[all …]
Doperation.cpp46 auto op = entry->second; in getOperation() local
49 return op; in getOperation()
65 auto op = entry->second; in removeOperation() local
66 operationUploader.uploadOpAsProto(*op, wasSuccessful); in removeOperation()
71 removeOperationTracking(token, op->appToken); in removeOperation()
72 return op; in removeOperation()
Doperation_proto_handler.cpp108 void OperationProtoHandler::uploadOpAsProto(Operation& op, bool wasOpSuccessful) { in uploadOpAsProto() argument
111 determinePurpose(op.purpose, &operationConfig); in uploadOpAsProto()
112 checkKeyCharacteristics(op.characteristics.softwareEnforced, &operationConfig); in uploadOpAsProto()
113 checkKeyCharacteristics(op.characteristics.hardwareEnforced, &operationConfig); in uploadOpAsProto()
114 checkOpCharacteristics(op.params, &operationConfig); in uploadOpAsProto()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc258 *(aop.op.add_src_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
259 *(aop.op.add_dst_extents()) = ExtentForRange(0, num_blocks); in GenerateSourceCopyPayload()
260 aop.op.set_type(InstallOperation::SOURCE_COPY); in GenerateSourceCopyPayload()
264 aop.op.set_src_sha256_hash(src_hash.data(), src_hash.size()); in GenerateSourceCopyPayload()
459 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
460 aop.op.set_data_offset(0); in TEST_F()
461 aop.op.set_data_length(expected_data.size()); in TEST_F()
462 aop.op.set_type(InstallOperation::REPLACE); in TEST_F()
481 *(aop.op.add_dst_extents()) = ExtentForRange(0, 1); in TEST_F()
482 aop.op.set_data_offset(0); in TEST_F()
[all …]
/system/update_engine/scripts/
Dpayload_info.py149 for op_count, op in enumerate(operations):
150 print(' %d: %s' % (op_count, op_dict[op.type]))
151 if op.HasField('data_offset'):
152 print(' Data offset: %s' % op.data_offset)
153 if op.HasField('data_length'):
154 print(' Data length: %s' % op.data_length)
155 if op.src_extents:
156 _DisplayExtents(op.src_extents, 'Source')
157 if op.dst_extents:
158 _DisplayExtents(op.dst_extents, 'Destination')
/system/netd/server/
DIdletimerControllerTest.cpp44 const char *op = add ? "-A" : "-D"; in makeAddRemoveCommands() local
48 " --timeout 12345 --label hello --send_nl_msg 1", op), in makeAddRemoveCommands()
52 " --timeout 12345 --label hello --send_nl_msg 1", op), in makeAddRemoveCommands()
/system/tools/aidl/
Daidl_const_expressions.cpp41 if (op == string(#__op__)) { \
46 if (op == string(#__op__)) { \
73 bool handleUnary(const AidlConstantValue& context, const string& op, T val, int64_t* out) { in handleUnary() argument
78 AIDL_FATAL(context) << "Could not handleUnary for " << op << " " << val; in handleUnary()
82 bool handleUnary<bool>(const AidlConstantValue& context, const string& op, bool val, int64_t* out) { in handleUnary() argument
87 if (op == "~") { in handleUnary()
91 AIDL_FATAL(context) << "Could not handleUnary for " << op << " " << val; in handleUnary()
96 bool handleBinaryCommon(const AidlConstantValue& context, T lval, const string& op, T rval, in handleBinaryCommon() argument
114 AIDL_FATAL(context) << "Could not handleBinaryCommon for " << lval << " " << op << " " << rval; in handleBinaryCommon()
119 bool handleShift(const AidlConstantValue& context, T lval, const string& op, int64_t rval, in handleShift() argument
[all …]
/system/core/libappfuse/
DEpollController.cc54 bool EpollController::InvokeControl(int op, int fd, int events, void* data) const { in InvokeControl() argument
59 if (epoll_ctl(poll_fd_, op, fd, &event) == -1) { in InvokeControl()
60 PLOG(ERROR) << "epoll_ctl() error op=" << op; in InvokeControl()

123456