/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | crypto_toolbox_test.cc | 59 std::reverse(std::begin(k), std::end(k)); in TEST() 60 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 81 std::reverse(std::begin(k), std::end(k)); in TEST() 82 std::reverse(std::begin(m), std::end(m)); in TEST() 83 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 107 std::reverse(std::begin(k), std::end(k)); in TEST() 108 std::reverse(std::begin(m), std::end(m)); in TEST() 109 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 127 std::reverse(std::begin(k), std::end(k)); in TEST() 128 std::reverse(std::begin(m), std::end(m)); in TEST() [all …]
|
D | crypto_toolbox.cc | 45 auto it = msg.begin(); in f4() 66 auto it = msg.begin(); in calculate_mac_key_or_ltk() 70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk() 71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk() 109 auto it = msg.begin(); in f6() 113 it = std::copy(r.begin(), r.end(), it); in f6() 114 it = std::copy(n2.begin(), n2.end(), it); in f6() 115 it = std::copy(n1.begin(), n1.end(), it); in f6() 128 auto it = msg.begin(); in g2() 129 it = std::copy(y.begin(), y.end(), it); in g2() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | crypto_toolbox_test.cc | 68 std::reverse(std::begin(k), std::end(k)); in TEST() 69 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 93 std::reverse(std::begin(k), std::end(k)); in TEST() 94 std::reverse(std::begin(m), std::end(m)); in TEST() 95 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 122 std::reverse(std::begin(k), std::end(k)); in TEST() 123 std::reverse(std::begin(m), std::end(m)); in TEST() 124 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 147 std::reverse(std::begin(k), std::end(k)); in TEST() 148 std::reverse(std::begin(m), std::end(m)); in TEST() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/ |
D | packet_view.cc | 39 Iterator<little_endian> PacketView<little_endian>::begin() const { in begin() function in bluetooth::packet::PacketView 72 std::forward_list<View> PacketView<little_endian>::GetSubviewList(size_t begin, size_t end) const { in GetSubviewList() argument 73 ASSERT(begin <= end); in GetSubviewList() 78 size_t length = end - begin; in GetSubviewList() 80 if (begin >= fragment.size()) { in GetSubviewList() 81 begin -= fragment.size(); in GetSubviewList() 83 View view(fragment, begin, begin + std::min(length, fragment.size() - begin)); in GetSubviewList() 86 begin = 0; in GetSubviewList() 93 PacketView<true> PacketView<little_endian>::GetLittleEndianSubview(size_t begin, size_t end) const { in GetLittleEndianSubview() argument 94 return PacketView<true>(GetSubviewList(begin, end)); in GetLittleEndianSubview() [all …]
|
D | packet_view_unittest.cc | 134 auto general_case = packet.begin(); in TEST() 148 auto general_case = packet.begin(); in TEST() 177 auto plus_eq = this->packet->begin(); in TYPED_TEST() 185 auto plus_plus = this->packet->begin(); in TYPED_TEST() 193 auto plus_plus = this->packet->begin(); in TYPED_TEST() 203 auto plus = this->packet->begin(); in TYPED_TEST() 252 auto begin = this->packet->begin(); in TYPED_TEST() local 254 int difference = end - begin; in TYPED_TEST() 256 int neg_difference = begin - end; in TYPED_TEST() 261 auto begin = this->packet->begin(); in TYPED_TEST() local [all …]
|
D | view.cc | 24 View::View(std::shared_ptr<const std::vector<uint8_t>> data, size_t begin, size_t end) in View() argument 25 : data_(data), begin_(begin < data_->size() ? begin : data_->size()), in View() 28 View::View(const View& view, size_t begin, size_t end) : data_(view.data_) { in View() argument 29 begin_ = (begin < view.size() ? begin : view.size()); in View()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 155 auto it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST() 161 EXPECT_EQ(3, gaugeProducer.mPastBuckets.begin() in TEST() 163 .mAggregatedAtoms.begin() in TEST() 166 .begin() in TEST() 173 it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST() 181 ASSERT_EQ(2UL, gaugeProducer.mPastBuckets.begin()->second.size()); in TEST() 182 auto it2 = gaugeProducer.mPastBuckets.begin() in TEST() 184 .mAggregatedAtoms.begin() in TEST() 187 .begin(); in TEST() 198 ASSERT_EQ(3UL, gaugeProducer.mPastBuckets.begin()->second.size()); in TEST() [all …]
|
/packages/services/Car/cpp/evs/manager/1.1/ |
D | VirtualCamera.cpp | 265 auto halCamera = mHalCamera.begin()->second.promote(); in getCameraInfo() 341 auto iter = mHalCamera.begin(); in startVideoStream() 357 auto rb = mHalCamera.begin(); in startVideoStream() 372 auto pHwCamera = mHalCamera.begin()->second.promote(); in startVideoStream() 464 auto& frameQueue = mFramesHeld.begin()->second; in doneWithFrame() 465 auto it = frameQueue.begin(); in doneWithFrame() 482 auto pHwCamera = mHalCamera.begin()->second.promote(); in doneWithFrame() 487 << mHalCamera.begin()->first << " is not valid."; in doneWithFrame() 556 auto pHwCamera = mHalCamera.begin()->second.promote(); in getExtendedInfo() 560 LOG(WARNING) << mHalCamera.begin()->first << " is invalid."; in getExtendedInfo() [all …]
|
/packages/services/Car/cpp/evs/manager/aidl/src/ |
D | VirtualCamera.cpp | 64 auto it = std::find_if(mFramesHeld[buffer.deviceId].begin(), in doneWithFrame() 118 std::find(displayStateRange.begin(), displayStateRange.end(), state) == in forcePrimaryClient() 125 auto pHwCamera = mHalCamera.begin()->second.lock(); in forcePrimaryClient() 127 LOG(ERROR) << "Camera device " << mHalCamera.begin()->first << " is not alive."; in forcePrimaryClient() 145 auto pHwCamera = mHalCamera.begin()->second.lock(); in getCameraInfo() 164 auto pHwCamera = mHalCamera.begin()->second.lock(); in getExtendedInfo() 166 LOG(ERROR) << "Camera device " << mHalCamera.begin()->first << " is not alive."; in getExtendedInfo() 182 auto pHwCamera = mHalCamera.begin()->second.lock(); in getIntParameter() 184 LOG(ERROR) << "Camera device " << mHalCamera.begin()->first << " is not alive."; in getIntParameter() 201 auto pHwCamera = mHalCamera.begin()->second.lock(); in getIntParameterRange() [all …]
|
/packages/services/Car/tools/emulator/ |
D | user_action_generator.py | 124 def _adjustContinuousProperty(self, prop, begin, end, listener): argument 132 if begin < end: 133 begin = areaConfig.min if begin < areaConfig.min else begin 136 begin = areaConfig.max if begin > areaConfig.max else begin 139 for value in self._range(begin, end): 152 def _range(self, begin, end): argument 153 if begin < end: 154 i = begin 159 i = begin
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | slice.mod.py | 27 begin=Input("begin", "TENSOR_INT32", "{1}"), 36 begin=Input("begin", "TENSOR_INT32", "{2}"), 45 begin=Input("begin", "TENSOR_INT32", "{3}"), 54 begin=Input("begin", "TENSOR_INT32", "{4}"), 63 begin=Input("begin", "TENSOR_INT32", "{4}"), 72 begin=Input("begin", "TENSOR_INT32", "{4}"), 81 begin=Input("begin", "TENSOR_INT32", "{4}"), 90 begin=Input("begin", "TENSOR_INT32", "{4}"), 99 model = Model().Operation("SLICE", test_case.inp, test_case.begin, 103 test_case.begin: test_case.begin_data,
|
/packages/modules/NeuralNetworks/common/ |
D | LegacyHalUtils.cpp | 245 ret.reserve(kOperandTypeRange.end() - kOperandTypeRange.begin()); in nonExtensionOperandPerformance() 251 std::sort(ret.begin(), ret.end(), in nonExtensionOperandPerformance() 267 std::lower_bound(operandPerformance->begin(), operandPerformance->end(), type, in update() 288 const auto it = std::lower_bound(operandPerformance.begin(), operandPerformance.end(), type, in lookup() 331 return std::all_of(std::begin(kQuantized8PerformanceConsistentWithP), in isQuantized8PerformanceConsistentWithP() 343 return std::all_of(std::begin(kQuantized8PerformanceConsistentWithP), in isQuantized8PerformanceConsistentWithP() 355 std::transform(std::begin(kQuantized8PerformanceConsistentWithP), in makeQuantized8PerformanceConsistentWithP() 356 std::end(kQuantized8PerformanceConsistentWithP), ret.begin(), in makeQuantized8PerformanceConsistentWithP() 630 std::sort(opPerf.begin(), opPerf.end(), in convertToV1_2() 650 std::sort(opPerf.begin(), opPerf.end(), in convertToV1_2() [all …]
|
/packages/modules/adb/ |
D | benchmark_device.py | 73 begin = time.time() 76 speeds.append(size_mb / float(end - begin)) 89 begin = time.time() 92 speeds.append(size_mb / float(end - begin)) 108 begin = time.time() 111 speeds.append(file_size_mb / float(end - begin)) 126 begin = time.time() 129 speeds.append(file_size_mb / float(end - begin)) 139 begin = time.time() 143 speeds.append(file_size_mb / float(end - begin))
|
D | types.h | 40 Block(Iterator begin, Iterator end) : Block(end - begin) { in Block() 41 std::copy(begin, end, data_.get()); in Block() 71 void assign(InputIt begin, InputIt end) { in assign() 73 allocate(end - begin); in assign() 74 std::copy(begin, end, data_.get()); in assign() 90 char* begin() { return data_.get(); } in begin() function 91 const char* begin() const { return data_.get(); } in begin() function 208 const char* begin = block.data(); in iterate_blocks() local 213 begin += begin_offset_; in iterate_blocks() 216 callback(begin, length); in iterate_blocks() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | field_list.h | 40 FieldList(Iterator begin, Iterator end) { in FieldList() argument 41 while (begin != end) { in FieldList() 42 AppendField(*begin); in FieldList() 43 begin++; in FieldList() 67 field_list_.insert(field_list_.begin(), field); in PrependField() 72 for (auto it = begin(); it != end(); it++) { in GetFieldsBeforePayloadOrBody() 85 for (it = begin(); it != end(); it++) { in GetFieldsAfterPayloadOrBody() 163 FieldListIterator begin() const { in begin() function 164 return field_list_.begin(); in begin()
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | iterator_test.cc | 72 Iterator general_case = packet->begin(); in TEST_F() 82 Iterator general_case = packet->begin(); in TEST_F() 92 ASSERT_EQ(static_cast<size_t>(packet->end() - packet->begin()), in TEST_P() 95 auto it = packet->begin(); in TEST_P() 150 Iterator plus_eq = packet->begin(); in TEST_P() 163 Iterator plus_plus = packet->begin(); in TEST_P() 173 Iterator plus_plus = packet->begin(); in TEST_P() 183 Iterator plus = packet->begin(); in TEST_P() 283 Iterator minus_eq = packet->begin(); in TEST_P() 294 Iterator minus_minus = packet->begin(); in TEST_P() [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | lru_cache.h | 122 list_map_.splice(list_map_.begin(), list_map_, iter); in find() 142 list_map_.begin()->second = std::move(value); in insert_or_assign() 151 list_map_.insert_or_assign(list_map_.begin(), key, std::move(value)); in insert_or_assign() 173 auto pair = list_map_.try_emplace(list_map_.begin(), key, std::forward<Args>(args)...); in try_emplace() 194 inline iterator begin() { in begin() function 195 return list_map_.begin(); in begin() 199 inline const_iterator begin() const { in begin() function 200 return list_map_.begin(); in begin()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestPartitioningRandom.cpp | 417 std::generate(biasValue.begin(), biasValue.end(), [this] { return randFrac(); }); in makeRnnSpecialInput() 599 if (std::all_of(supportedOperations.begin(), supportedOperations.end(), in prepareModel_1_3() 784 normalOperationInputKinds.begin(), normalOperationInputKinds.end(), in TEST_P() 821 if (std::none_of(normalOperationInputKinds.begin(), normalOperationInputKinds.end(), in TEST_P() 849 decltype(deadOperands.begin()) deadOperandI; in TEST_P() 851 deadOperandI = deadOperands.begin(); in TEST_P() 883 std::generate(value.begin(), value.end(), in TEST_P() 915 operationOutputs.begin(), operationOutputs.end(), in TEST_P() 939 std::for_each(operationOutputs.begin(), operationOutputs.end(), in TEST_P() 1016 if (std::any_of(modelOutputs.begin(), modelOutputs.end(), in TEST_P() [all …]
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | LayerNormLSTMTest.cpp | 103 auto it = input_shapes.begin(); in LayerNormLSTMOpModel() 134 auto it2 = output_shapes.begin(); in LayerNormLSTMOpModel() 160 it2 = output_shapes.begin(); in LayerNormLSTMOpModel() 172 void Set##X(const std::vector<float>& f) { X##_.insert(X##_.end(), f.begin(), f.end()); } 180 std::fill(OutputStateIn_.begin(), OutputStateIn_.end(), 0.f); in ResetOutputState() 181 std::fill(OutputStateOut_.begin(), OutputStateOut_.end(), 0.f); in ResetOutputState() 185 std::fill(CellStateIn_.begin(), CellStateIn_.end(), 0.f); in ResetCellState() 186 std::fill(CellStateOut_.begin(), CellStateOut_.end(), 0.f); in ResetCellState() 189 void SetInput(int offset, const float* begin, const float* end) { in SetInput() argument 190 for (; begin != end; begin++, offset++) { in SetInput() [all …]
|
D | SVDFTest.cpp | 183 auto it = input_shapes.begin(); in SVDFOpModel() 205 auto it2 = output_shapes.begin(); in SVDFOpModel() 226 it2 = output_shapes.begin(); in SVDFOpModel() 274 void Set##X(const std::vector<float>& f) { X##_.insert(X##_.end(), f.begin(), f.end()); } 280 void SetInput(int offset, float* begin, float* end) { in SetInput() argument 281 for (; begin != end; begin++, offset++) { in SetInput() 282 Input_[offset] = *begin; in SetInput() 288 std::fill(StateIn_.begin(), StateIn_.end(), 0.f); in ResetState() 289 std::fill(StateOut_.begin(), StateOut_.end(), 0.f); in ResetState()
|
/packages/modules/Bluetooth/tools/rootcanal/lib/crypto/ |
D | crypto.cc | 17 std::reverse_copy(key.begin(), key.end(), key_reversed.begin()); in aes_128() 18 std::reverse_copy(message.begin(), message.end(), message_reversed.begin()); in aes_128() 24 std::reverse(output.begin(), output.end()); in aes_128()
|
/packages/modules/Bluetooth/system/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 49 auto it = msg.begin(); in f4() 66 auto it = msg.begin(); in calculate_mac_key_or_ltk() 70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk() 71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk() 117 auto it = msg.begin(); in f6() 121 it = std::copy(r.begin(), r.end(), it); in f6() 122 it = std::copy(n2.begin(), n2.end(), it); in f6() 123 it = std::copy(n1.begin(), n1.end(), it); in f6() 140 auto it = msg.begin(); in g2() 141 it = std::copy(y.begin(), y.end(), it); in g2()
|
/packages/modules/Bluetooth/system/main/shim/ |
D | utils.cc | 32 auto begin = raw_data.begin() + offset; in parse_gap_data() local 33 auto end = begin + len + 1; // 1 byte for len in parse_gap_data() 34 auto data_copy = std::make_shared<std::vector<uint8_t>>(begin, end); in parse_gap_data() 37 hci::GapData::Parse(&gap_data, packet.begin()); in parse_gap_data()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_count_e2e_test.cpp | 70 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST() 71 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST() 74 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST() 187 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST() 188 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST() 191 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST() 258 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST() 259 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST() 283 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST() 284 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomVariable.cpp | 67 auto head = lower == kInvalidValue ? mChoices.begin() in setRange() 68 : std::lower_bound(mChoices.begin(), mChoices.end(), lower); in setRange() 70 : std::upper_bound(mChoices.begin(), mChoices.end(), upper); in setRange() 72 if (head != mChoices.begin() || tail != mChoices.end()) { in setRange() 84 auto it = std::set_intersection(lhs.mChoices.begin(), lhs.mChoices.end(), rhs.mChoices.begin(), in operator &() 85 rhs.mChoices.end(), result.begin()); in operator &() 86 result.resize(it - result.begin()); in operator &() 172 return (*(range->rbegin()) - *(range->begin()) + 1) == static_cast<int>(range->size()); in isContinuous() 186 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval() 226 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval() [all …]
|