Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 25 of 76) sorted by relevance

1234

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DHeartRateFormatter.kt58 return if (record.samples.size == 1) { in <lambda>()
59 formatSampleValue(R.string.heart_rate_value, record.samples.first().beatsPerMinute) in <lambda>()
71 return if (record.samples.size == 1) { in <lambda>()
72 formatSampleValue(R.string.heart_rate_long_value, record.samples.first().beatsPerMinute) in <lambda>()
84 val samples = in <lambda>() constant
85 record.samples.sortedBy { it.time }.map { formatSample(record.metadata.id, it) } in <lambda>()
87 if (samples.isNotEmpty()) { in <lambda>()
88 addAll(samples) in <lambda>()
115 val min = record.samples.minOf { it.beatsPerMinute } in <lambda>()
116 val max = record.samples.maxOf { it.beatsPerMinute } in <lambda>()
DStepsCadenceFormatter.kt58 return formatRange(R.string.steps_per_minute, record.samples) in formatValue()
66 return formatRange(R.string.steps_per_minute_long, record.samples) in formatA11yValue()
70 return record.samples.sortedBy { it.time }.map { formatSample(record.metadata.id, it) } in formatRecordDetails()
90 private fun formatRange(@StringRes res: Int, samples: List<StepsCadenceRecordSample>): String { in formatRange()
91 return if (samples.isEmpty()) { in formatRange()
94 val avrStepsCadence = samples.sumOf { it.rate } / samples.size in formatRange()
DPowerFormatter.kt60 return format(R.string.watt_format, record.samples) in <lambda>()
67 return format(R.string.watt_format_long, record.samples) in <lambda>()
71 return record.samples in <lambda>()
76 private fun format(@StringRes res: Int, samples: List<PowerRecordSample>): String { in <lambda>()
77 if (samples.isEmpty()) { in <lambda>()
80 val avrPower = samples.sumOf { it.power.inWatts } / samples.size in <lambda>()
DSpeedFormatter.kt62 return formatRecord(res, record.samples, unitPreferences) in formatValue()
70 return formatRecord(res, record.samples, unitPreferences) in formatA11yValue()
74 return record.samples in formatRecordDetails()
100 samples: List<SpeedRecordSample>, in formatRecord()
103 if (samples.isEmpty()) { in formatRecord()
106 val averageSpeed = samples.sumOf { it.speed.inMetersPerSecond } / samples.size in formatRecord()
DCyclingPedalingCadenceFormatter.kt76 return record.samples in <lambda>()
99 if (record.samples.isEmpty()) { in <lambda>()
103 val min = record.samples.minOf { it.revolutionsPerMinute } in <lambda>()
104 val max = record.samples.maxOf { it.revolutionsPerMinute } in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DListInputField.kt124 val samples: ArrayList<Any> = ArrayList() in getFieldValue() constant
131 samples.add( in getFieldValue()
137 samples.add(HeartRateSample(dataPointString.toLong(), instant.getFieldValue())) in getFieldValue()
140 samples.add( in getFieldValue()
145 samples.add( in getFieldValue()
150 samples.add( in getFieldValue()
155 samples.add( in getFieldValue()
162 samples.add( in getFieldValue()
170 samples.add( in getFieldValue()
181 return samples in getFieldValue()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DMedAvgFilter.java192 protected Sample averageSortedSamples(Collection<Sample> samples) { in averageSortedSamples() argument
193 int size = samples.size(); in averageSortedSamples()
201 long instantEpoch = samples.stream().findFirst().get().timeMs; in averageSortedSamples()
203 for (Sample s: samples) { in averageSortedSamples()
DMedAvgRotationFilter.java54 protected Sample averageSortedSamples(Collection<Sample> samples) { in averageSortedSamples() argument
55 Sample result = super.averageSortedSamples(samples); in averageSortedSamples()
/packages/modules/NeuralNetworks/common/random/
Dguarded_philox_random.h56 random::PhiloxRandom ReserveSamples128(int64 samples);
59 random::PhiloxRandom ReserveSamples32(int64 samples) { in ReserveSamples32() argument
60 return ReserveSamples128((samples + 3) / 4); in ReserveSamples32()
Dguarded_philox_random.cc41 random::PhiloxRandom GuardedPhiloxRandom::ReserveSamples128(int64 samples) { in ReserveSamples128() argument
45 generator_.Skip(samples); in ReserveSamples128()
/packages/modules/DnsResolver/
Dres_stats.cpp65 switch (stats->samples[i].rcode) { in android_net_res_stats_aggregate()
70 rtt_sum += stats->samples[i].rtt; in android_net_res_stats_aggregate()
100 last = stats->samples[stats->sample_next - 1].at; in android_net_res_stats_aggregate()
102 last = stats->samples[stats->sample_count - 1].at; in android_net_res_stats_aggregate()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java46 public int findDominantColorByHue(Bitmap bitmap, int samples) { in findDominantColorByHue() argument
49 int sampleStride = (int) Math.sqrt((height * width) / samples); in findDominantColorByHue()
86 if (pixelCount < samples) { in findDominantColorByHue()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DCyclingPedalingCadenceRecordInternal.java51 public CyclingPedalingCadenceRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument
52 Objects.requireNonNull(samples); in setSamples()
54 (Set<CyclingPedalingCadenceRecordSample>) samples; in setSamples()
DStepsCadenceRecordInternal.java50 public StepsCadenceRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument
51 Objects.requireNonNull(samples); in setSamples()
52 this.mStepsCadenceRecordSamples = (Set<StepsCadenceRecordSample>) samples; in setSamples()
DSpeedRecordInternal.java59 public SpeedRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument
60 Objects.requireNonNull(samples); in setSamples()
61 this.mSpeedRecordSamples = (Set<SpeedRecordSample>) samples; in setSamples()
DPowerRecordInternal.java59 public PowerRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument
60 Objects.requireNonNull(samples); in setSamples()
61 this.mPowerRecordSamples = (Set<PowerRecordSample>) samples; in setSamples()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DSeriesRecordHelper.java61 List<? extends SeriesRecordInternal.Sample> samples = record.getSamples().stream().toList(); in getChildTableUpsertRequests() local
62 List<UpsertTableRequest> requests = new ArrayList<>(samples.size()); in getChildTableUpsertRequests()
63 samples.forEach( in getChildTableUpsertRequests()
/packages/apps/TV/tuner/sampletunertvinput/
DAndroid.bp65 required: ["com.android.tv.samples.sampletunertvinput.xml"],
70 name: "com.android.tv.samples.sampletunertvinput.xml",
72 src: "com.android.tv.samples.sampletunertvinput.xml",
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DPowerFormatterTest.kt110 private fun getPowerRecord(samples: List<Double>): PowerRecord { in getPowerRecord()
114 NOW.plusSeconds(samples.size.toLong()), in getPowerRecord()
115 samples.map { PowerRecord.PowerRecordSample(Power.fromWatts(it), NOW) }) in getPowerRecord()
DStepsCadenceFormatterTest.kt116 private fun getStepsCadence(samples: List<Double>): StepsCadenceRecord { in <lambda>()
120 NOW.plusSeconds(samples.size.toLong() + 1), in <lambda>()
121 samples.map { rate -> in <lambda>()
DSpeedFormatterTest.kt177 private fun getSpeedRecord(samples: List<Double>): SpeedRecord { in <lambda>()
181 NOW.plusSeconds(samples.size.toLong() + 1), in <lambda>()
182 samples.mapIndexed { index, value -> in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DStepsCadenceRecord.java285 Set<StepsCadenceRecordInternal.StepsCadenceRecordSample> samples = in toRecordInternal() local
289 samples.add( in toRecordInternal()
294 recordInternal.setSamples(samples); in toRecordInternal()
DCyclingPedalingCadenceRecord.java295 Set<CyclingPedalingCadenceRecordInternal.CyclingPedalingCadenceRecordSample> samples = in toRecordInternal() local
300 samples.add( in toRecordInternal()
305 recordInternal.setSamples(samples); in toRecordInternal()
DSpeedRecord.java291 Set<SpeedRecordInternal.SpeedRecordSample> samples = new HashSet<>(getSamples().size()); in toRecordInternal() local
294 samples.add( in toRecordInternal()
299 recordInternal.setSamples(samples); in toRecordInternal()
DPowerRecord.java323 Set<PowerRecordInternal.PowerRecordSample> samples = new HashSet<>(getSamples().size()); in toRecordInternal() local
326 samples.add( in toRecordInternal()
331 recordInternal.setSamples(samples); in toRecordInternal()

1234