/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | HeartRateFormatter.kt | 58 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>()
|
D | StepsCadenceFormatter.kt | 58 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()
|
D | PowerFormatter.kt | 60 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>()
|
D | SpeedFormatter.kt | 62 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()
|
D | CyclingPedalingCadenceFormatter.kt | 76 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/ |
D | ListInputField.kt | 124 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/ |
D | MedAvgFilter.java | 192 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()
|
D | MedAvgRotationFilter.java | 54 protected Sample averageSortedSamples(Collection<Sample> samples) { in averageSortedSamples() argument 55 Sample result = super.averageSortedSamples(samples); in averageSortedSamples()
|
/packages/modules/NeuralNetworks/common/random/ |
D | guarded_philox_random.h | 56 random::PhiloxRandom ReserveSamples128(int64 samples); 59 random::PhiloxRandom ReserveSamples32(int64 samples) { in ReserveSamples32() argument 60 return ReserveSamples128((samples + 3) / 4); in ReserveSamples32()
|
D | guarded_philox_random.cc | 41 random::PhiloxRandom GuardedPhiloxRandom::ReserveSamples128(int64 samples) { in ReserveSamples128() argument 45 generator_.Skip(samples); in ReserveSamples128()
|
/packages/modules/DnsResolver/ |
D | res_stats.cpp | 65 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/ |
D | ColorExtractor.java | 46 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/ |
D | CyclingPedalingCadenceRecordInternal.java | 51 public CyclingPedalingCadenceRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument 52 Objects.requireNonNull(samples); in setSamples() 54 (Set<CyclingPedalingCadenceRecordSample>) samples; in setSamples()
|
D | StepsCadenceRecordInternal.java | 50 public StepsCadenceRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument 51 Objects.requireNonNull(samples); in setSamples() 52 this.mStepsCadenceRecordSamples = (Set<StepsCadenceRecordSample>) samples; in setSamples()
|
D | SpeedRecordInternal.java | 59 public SpeedRecordInternal setSamples(Set<? extends Sample> samples) { in setSamples() argument 60 Objects.requireNonNull(samples); in setSamples() 61 this.mSpeedRecordSamples = (Set<SpeedRecordSample>) samples; in setSamples()
|
D | PowerRecordInternal.java | 59 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/ |
D | SeriesRecordHelper.java | 61 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/ |
D | Android.bp | 65 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/ |
D | PowerFormatterTest.kt | 110 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()
|
D | StepsCadenceFormatterTest.kt | 116 private fun getStepsCadence(samples: List<Double>): StepsCadenceRecord { in <lambda>() 120 NOW.plusSeconds(samples.size.toLong() + 1), in <lambda>() 121 samples.map { rate -> in <lambda>()
|
D | SpeedFormatterTest.kt | 177 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/ |
D | StepsCadenceRecord.java | 285 Set<StepsCadenceRecordInternal.StepsCadenceRecordSample> samples = in toRecordInternal() local 289 samples.add( in toRecordInternal() 294 recordInternal.setSamples(samples); in toRecordInternal()
|
D | CyclingPedalingCadenceRecord.java | 295 Set<CyclingPedalingCadenceRecordInternal.CyclingPedalingCadenceRecordSample> samples = in toRecordInternal() local 300 samples.add( in toRecordInternal() 305 recordInternal.setSamples(samples); in toRecordInternal()
|
D | SpeedRecord.java | 291 Set<SpeedRecordInternal.SpeedRecordSample> samples = new HashSet<>(getSamples().size()); in toRecordInternal() local 294 samples.add( in toRecordInternal() 299 recordInternal.setSamples(samples); in toRecordInternal()
|
D | PowerRecord.java | 323 Set<PowerRecordInternal.PowerRecordSample> samples = new HashSet<>(getSamples().size()); in toRecordInternal() local 326 samples.add( in toRecordInternal() 331 recordInternal.setSamples(samples); in toRecordInternal()
|