Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/packages/modules/StatsD/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp155 auto it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
161 EXPECT_EQ(3, gaugeProducer.mPastBuckets.begin() in TEST()
164 .mFields->begin() in TEST()
171 it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
179 ASSERT_EQ(2UL, gaugeProducer.mPastBuckets.begin()->second.size()); in TEST()
180 it = gaugeProducer.mPastBuckets.begin()->second.back().mGaugeAtoms.front().mFields->begin(); in TEST()
191 ASSERT_EQ(3UL, gaugeProducer.mPastBuckets.begin()->second.size()); in TEST()
192 it = gaugeProducer.mPastBuckets.begin()->second.back().mGaugeAtoms.front().mFields->begin(); in TEST()
322 EXPECT_EQ(1, gaugeProducer.mCurrentSlicedBucket->begin() in TEST_P()
324 .mFields->begin() in TEST_P()
[all …]
DValueMetricProducer_test.cpp81 ASSERT_EQ(expectedValues.size(), mPastBuckets.begin()->second.size()); in assertPastBucketValuesSingleKey()
83 const vector<PastValueBucket>& buckets = mPastBuckets.begin()->second; in assertPastBucketValuesSingleKey()
300 valueProducer->mCurrentSlicedBucket.begin()->second.intervals[0]; in TEST()
302 valueProducer->mCurrentBaseInfo.begin()->second.baseInfos[0]; in TEST()
309 EXPECT_EQ(8, valueProducer->mPastBuckets.begin()->second[0].values[0].long_value); in TEST()
310 EXPECT_EQ(bucketSizeNs, valueProducer->mPastBuckets.begin()->second[0].mConditionTrueNs); in TEST()
317 curInterval = valueProducer->mCurrentSlicedBucket.begin()->second.intervals[0]; in TEST()
318 curBaseInfo = valueProducer->mCurrentBaseInfo.begin()->second.baseInfos[0]; in TEST()
325 ASSERT_EQ(2UL, valueProducer->mPastBuckets.begin()->second.size()); in TEST()
326 EXPECT_EQ(8, valueProducer->mPastBuckets.begin()->second[0].values[0].long_value); in TEST()
[all …]
/packages/services/Car/cpp/evs/manager/1.1/
DVirtualCamera.cpp243 auto halCamera = mHalCamera.begin()->second.promote(); in getCameraInfo()
318 auto iter = mHalCamera.begin(); in startVideoStream()
335 auto rb = mHalCamera.begin(); in startVideoStream()
350 auto pHwCamera = mHalCamera.begin()->second.promote(); in startVideoStream()
440 auto& frameQueue = mFramesHeld.begin()->second; in doneWithFrame()
441 auto it = frameQueue.begin(); in doneWithFrame()
458 auto pHwCamera = mHalCamera.begin()->second.promote(); in doneWithFrame()
463 << mHalCamera.begin()->first in doneWithFrame()
536 auto pHwCamera = mHalCamera.begin()->second.promote(); in getExtendedInfo()
540 LOG(WARNING) << mHalCamera.begin()->first << " is invalid."; in getExtendedInfo()
[all …]
/packages/modules/NeuralNetworks/common/
DLegacyHalUtils.cpp244 ret.reserve(kOperandTypeRange.end() - kOperandTypeRange.begin()); in nonExtensionOperandPerformance()
250 std::sort(ret.begin(), ret.end(), in nonExtensionOperandPerformance()
266 std::lower_bound(operandPerformance->begin(), operandPerformance->end(), type, in update()
287 const auto it = std::lower_bound(operandPerformance.begin(), operandPerformance.end(), type, in lookup()
330 return std::all_of(std::begin(kQuantized8PerformanceConsistentWithP), in isQuantized8PerformanceConsistentWithP()
342 return std::all_of(std::begin(kQuantized8PerformanceConsistentWithP), in isQuantized8PerformanceConsistentWithP()
354 std::transform(std::begin(kQuantized8PerformanceConsistentWithP), in makeQuantized8PerformanceConsistentWithP()
355 std::end(kQuantized8PerformanceConsistentWithP), ret.begin(), in makeQuantized8PerformanceConsistentWithP()
629 std::sort(opPerf.begin(), opPerf.end(), in convertToV1_2()
649 std::sort(opPerf.begin(), opPerf.end(), in convertToV1_2()
[all …]
/packages/services/Car/tools/emulator/
Duser_action_generator.py124 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/
Dslice.mod.py27 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/adb/
Dbenchmark_device.py73 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))
Dtypes.h40 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/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp420 std::generate(biasValue.begin(), biasValue.end(), [this] { return randFrac(); }); in makeRnnSpecialInput()
602 if (std::all_of(supportedOperations.begin(), supportedOperations.end(), in prepareModel_1_3()
801 normalOperationInputKinds.begin(), normalOperationInputKinds.end(), in TEST_P()
838 if (std::none_of(normalOperationInputKinds.begin(), normalOperationInputKinds.end(), in TEST_P()
866 decltype(deadOperands.begin()) deadOperandI; in TEST_P()
868 deadOperandI = deadOperands.begin(); in TEST_P()
900 std::generate(value.begin(), value.end(), in TEST_P()
932 operationOutputs.begin(), operationOutputs.end(), in TEST_P()
956 std::for_each(operationOutputs.begin(), operationOutputs.end(), in TEST_P()
1033 if (std::any_of(modelOutputs.begin(), modelOutputs.end(), in TEST_P()
[all …]
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomVariable.cpp67 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 …]
/packages/modules/NeuralNetworks/common/operations/
DLayerNormLSTMTest.cpp102 auto it = input_shapes.begin(); in LayerNormLSTMOpModel()
133 auto it2 = output_shapes.begin(); in LayerNormLSTMOpModel()
159 it2 = output_shapes.begin(); in LayerNormLSTMOpModel()
171 void Set##X(const std::vector<float>& f) { X##_.insert(X##_.end(), f.begin(), f.end()); }
179 std::fill(OutputStateIn_.begin(), OutputStateIn_.end(), 0.f); in ResetOutputState()
180 std::fill(OutputStateOut_.begin(), OutputStateOut_.end(), 0.f); in ResetOutputState()
184 std::fill(CellStateIn_.begin(), CellStateIn_.end(), 0.f); in ResetCellState()
185 std::fill(CellStateOut_.begin(), CellStateOut_.end(), 0.f); in ResetCellState()
188 void SetInput(int offset, const float* begin, const float* end) { in SetInput() argument
189 for (; begin != end; begin++, offset++) { in SetInput()
[all …]
DSVDFTest.cpp183 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()
DLSTMTest.cpp96 auto it = input_shapes.begin(); in LSTMOpModel()
124 auto it2 = output_shapes.begin(); in LSTMOpModel()
149 it2 = output_shapes.begin(); in LSTMOpModel()
161 void Set##X(const std::vector<float>& f) { X##_.insert(X##_.end(), f.begin(), f.end()); }
168 std::fill(OutputStateIn_.begin(), OutputStateIn_.end(), 0.f); in ResetOutputState()
169 std::fill(OutputStateOut_.begin(), OutputStateOut_.end(), 0.f); in ResetOutputState()
173 std::fill(CellStateIn_.begin(), CellStateIn_.end(), 0.f); in ResetCellState()
174 std::fill(CellStateOut_.begin(), CellStateOut_.end(), 0.f); in ResetCellState()
177 void SetInput(int offset, float* begin, float* end) { in SetInput() argument
178 for (; begin != end; begin++, offset++) { in SetInput()
[all …]
DRNNTest.cpp169 void Set##X(const std::vector<float>& f) { X##_.insert(X##_.end(), f.begin(), f.end()); }
175 void SetInput(int offset, float* begin, float* end) { in SetInput() argument
176 for (; begin != end; begin++, offset++) { in SetInput()
177 Input_[offset] = *begin; in SetInput()
182 std::fill(HiddenStateIn_.begin(), HiddenStateIn_.end(), 0.f); in ResetHiddenState()
183 std::fill(HiddenStateOut_.begin(), HiddenStateOut_.end(), 0.f); in ResetHiddenState()
/packages/modules/StatsD/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp70 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 …]
DValueMetric_pull_e2e_test.cpp166 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
214 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
217 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
226 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
228 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
318 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
321 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
330 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
332 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
430 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp80 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
83 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
92 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
94 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
219 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
222 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
316 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
319 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
328 processor->mPullerManager->mReceivers.begin()->second.front().intervalNs); in TEST()
330 processor->mPullerManager->mReceivers.begin()->second.front().nextPullTimeNs; in TEST()
[all …]
/packages/apps/Nfc/nci/jni/
DHciEventManager.cpp108 return std::vector<uint8_t>(berTlv.begin() + 1, berTlv.end()); in getDataFromBerTlv()
112 return std::vector<uint8_t>(berTlv.begin() + 2, berTlv.end()); in getDataFromBerTlv()
117 return std::vector<uint8_t>(berTlv.begin() + 3, berTlv.end()); in getDataFromBerTlv()
122 return std::vector<uint8_t>(berTlv.begin() + 4, berTlv.end()); in getDataFromBerTlv()
128 return std::vector<uint8_t>(berTlv.begin() + 5, berTlv.end()); in getDataFromBerTlv()
163 std::vector<uint8_t> aid(event_buff.begin() + 2, in nfaHciCallback()
164 event_buff.begin() + aidlen + 2); in nfaHciCallback()
170 std::vector<uint8_t> berTlv(event_buff.begin() + berTlvStart, in nfaHciCallback()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp112 std::transform(testSubgraph.operations.begin(), testSubgraph.operations.end(), in createSubgraph()
113 operations.begin(), [](const TestOperation& op) -> V1_3::Operation { in createSubgraph()
128 const uint8_t* begin = buffer->get<uint8_t>(); in copyTestBuffers() local
129 const uint8_t* end = begin + buffer->size(); in copyTestBuffers()
130 std::copy(begin, end, output + offset); in copyTestBuffers()
144 std::transform(testModel.referenced.begin(), testModel.referenced.end(), refSubgraphs.begin(), in createModel()
241 const uint8_t* begin = op.data.get<uint8_t>(); in createRequest() local
242 const uint8_t* end = begin + op.data.size(); in createRequest()
243 std::copy(begin, end, inputPtr + inputs[i].location.offset); in createRequest()
DConverter.cpp48 return std::vector<float>(repeatedScale.begin(), repeatedScale.end()); in convert()
59 return std::vector<uint32_t>(repeatedDimension.begin(), repeatedDimension.end()); in convert()
102 std::transform(repeatedOperand.begin(), repeatedOperand.end(), std::back_inserter(testOperands), in convert()
109 return std::vector<uint32_t>(repeatedIndex.begin(), repeatedIndex.end()); in convert()
123 std::transform(repeatedOperation.begin(), repeatedOperation.end(), in convert()
138 std::for_each(operation.inputs.begin(), operation.inputs.end(), addConsumer); in calculateNumberOfConsumers()
140 std::for_each(operations.begin(), operations.end(), addAllConsumers); in calculateNumberOfConsumers()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp466 activeConfigsBroadcast.insert(activeConfigsBroadcast.end(), activeConfigs.begin(), in TEST()
483 auto metricIt = metricsManager1->mAllMetricProducers.begin(); in TEST()
493 metricIt = metricsManager1->mAllMetricProducers.begin(); in TEST()
509 metricIt = metricsManager2->mAllMetricProducers.begin(); in TEST()
519 metricIt = metricsManager2->mAllMetricProducers.begin(); in TEST()
535 metricIt = metricsManager3->mAllMetricProducers.begin(); in TEST()
545 metricIt = metricsManager3->mAllMetricProducers.begin(); in TEST()
573 EXPECT_TRUE(std::find(activeConfigsBroadcast.begin(), activeConfigsBroadcast.end(), cfgId1) != in TEST()
575 EXPECT_TRUE(std::find(activeConfigsBroadcast.begin(), activeConfigsBroadcast.end(), cfgId2) != in TEST()
577 EXPECT_TRUE(std::find(activeConfigsBroadcast.begin(), activeConfigsBroadcast.end(), cfgId3) != in TEST()
[all …]
/packages/providers/MediaProvider/jni/
DRedactionInfo.cpp47 std::sort(ranges.begin(), ranges.end()); in mergeOverlappingRedactionRanges()
70 std::sort(ranges.begin(), ranges.end()); in removeZeroSizeRedactionRanges()
100 std::sort(redaction_ranges_.begin(), redaction_ranges_.end()); in processRedactionRanges()
125 auto last_redaction = redaction_ranges_.begin(); in getOverlappingRedactionRanges()
126 for (auto iter = redaction_ranges_.begin(); iter != redaction_ranges_.end(); ++iter) { in getOverlappingRedactionRanges()
184 sorted_indices.insert(sorted_indices.begin(), read_start); in getReadRanges()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/
DSelection.cpp239 int32_t* begin = reinterpret_cast<int32_t*>(op->inputs[1]->buffer.data()); in sliceFinalizer() local
254 begin[i] = getUniform<int32_t>(0, inputSize - outputSize); in sliceFinalizer()
307 int32_t* begin = reinterpret_cast<int32_t*>(op->inputs[1]->buffer.data()); in stridedSliceFinalizer() local
327 begin[i] = getUniform<int32_t>(0, maxStart); in stridedSliceFinalizer()
329 int32_t minEnd = begin[i] + (outputSize - 1) * stride + 1; in stridedSliceFinalizer()
330 int32_t maxEnd = std::min(begin[i] + outputSize * stride, inputSize); in stridedSliceFinalizer()
334 beginMask[i] = (begin[i] == 0 && getBernoulli(0.2f)); in stridedSliceFinalizer()
339 if (beginMask[i]) begin[i] = getUniform<int32_t>(-inputSize, inputSize - 1); in stridedSliceFinalizer()
345 std::swap(begin[i], end[i]); in stridedSliceFinalizer()
347 begin[i]--; in stridedSliceFinalizer()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DMathUtil.java30 public static int lerp(int begin, int end, float percent) { in lerp() argument
31 return (int) (begin * (1 - percent) + end * percent); in lerp()
42 public static float lerp(float begin, float end, float percent) { in lerp() argument
43 return begin * (1 - percent) + end * percent; in lerp()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java159 protected void performInstanceExpansion(long begin, long end, String localTimezone, in performInstanceExpansion() argument
330 dates = rp.expand(eventTime, recur, begin, end); in performInstanceExpansion()
386 if ((dtendMillis < begin) || (dtstartMillis > end)) { in performInstanceExpansion()
530 protected void expandInstanceRangeLocked(long begin, long end, String localTimezone) { in expandInstanceRangeLocked() argument
537 Log.v(TAG, "Expanding events between " + begin + " and " + end); in expandInstanceRangeLocked()
540 Cursor entries = getEntries(begin, end); in expandInstanceRangeLocked()
542 performInstanceExpansion(begin, end, localTimezone, entries); in expandInstanceRangeLocked()
560 private Cursor getEntries(long begin, long end) { in getEntries() argument
565 String beginString = String.valueOf(begin); in getEntries()
589 String.valueOf(begin - MAX_ASSUMED_DURATION), in getEntries()
[all …]

12345678910>>...13