Home
last modified time | relevance | path

Searched refs:newRecord (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java282 NutritionRecord newRecord = newNutritionRecords.get(newNutritionRecords.size() - 1); in testReadNutritionRecordUsingFilters_dataFilter_correct() local
285 assertThat(newRecord.getUnsaturatedFat()).isEqualTo(testRecord.getUnsaturatedFat()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
286 assertThat(newRecord.getPotassium()).isEqualTo(testRecord.getPotassium()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
287 assertThat(newRecord.getThiamin()).isEqualTo(testRecord.getThiamin()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
288 assertThat(newRecord.getMealType()).isEqualTo(testRecord.getMealType()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
289 assertThat(newRecord.getTransFat()).isEqualTo(testRecord.getTransFat()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
290 assertThat(newRecord.getManganese()).isEqualTo(testRecord.getManganese()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
291 assertThat(newRecord.getEnergyFromFat()).isEqualTo(testRecord.getEnergyFromFat()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
292 assertThat(newRecord.getCaffeine()).isEqualTo(testRecord.getCaffeine()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
293 assertThat(newRecord.getDietaryFiber()).isEqualTo(testRecord.getDietaryFiber()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
[all …]
DBloodGlucoseRecordTest.java182 BloodGlucoseRecord newRecord = in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() local
184 assertThat(newRecord.equals(insertedRecord)).isTrue(); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct()
185 assertThat(newRecord.getSpecimenSource()).isEqualTo(insertedRecord.getSpecimenSource()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct()
186 assertThat(newRecord.getLevel()).isEqualTo(insertedRecord.getLevel()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct()
187 assertThat(newRecord.getRelationToMeal()).isEqualTo(insertedRecord.getRelationToMeal()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct()
188 assertThat(newRecord.getMealType()).isEqualTo(insertedRecord.getMealType()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct()
DBloodPressureRecordTest.java207 BloodPressureRecord newRecord = in testReadBloodPressureRecordUsingFilters_dataFilter_correct() local
209 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBloodPressureRecordUsingFilters_dataFilter_correct()
210 assertThat(newRecord.getMeasurementLocation()) in testReadBloodPressureRecordUsingFilters_dataFilter_correct()
212 assertThat(newRecord.getSystolic()).isEqualTo(testRecord.getSystolic()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct()
213 assertThat(newRecord.getDiastolic()).isEqualTo(testRecord.getDiastolic()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct()
214 assertThat(newRecord.getBodyPosition()).isEqualTo(testRecord.getBodyPosition()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct()
DPowerRecordTest.java187 PowerRecord newRecord = newPowerRecords.get(newPowerRecords.size() - 1); in testReadPowerRecordUsingFilters_dataFilter_correct() local
188 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadPowerRecordUsingFilters_dataFilter_correct()
189 for (int idx = 0; idx < newRecord.getSamples().size(); idx++) { in testReadPowerRecordUsingFilters_dataFilter_correct()
190 assertThat(newRecord.getSamples().get(idx).getTime().toEpochMilli()) in testReadPowerRecordUsingFilters_dataFilter_correct()
192 assertThat(newRecord.getSamples().get(idx).getPower()) in testReadPowerRecordUsingFilters_dataFilter_correct()
DBodyTemperatureRecordTest.java205 BodyTemperatureRecord newRecord = in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct() local
207 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct()
208 assertThat(newRecord.getMeasurementLocation()) in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct()
210 assertThat(newRecord.getTemperature()).isEqualTo(testRecord.getTemperature()); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct()
DCervicalMucusRecordTest.java190 CervicalMucusRecord newRecord = in testReadCervicalMucusRecordUsingFilters_dataFilter_correct() local
192 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct()
193 assertThat(newRecord.getSensation()).isEqualTo(testRecord.getSensation()); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct()
194 assertThat(newRecord.getAppearance()).isEqualTo(testRecord.getAppearance()); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct()
DVo2MaxRecordTest.java175 Vo2MaxRecord newRecord = newVo2MaxRecords.get(newVo2MaxRecords.size() - 1); in testReadVo2MaxRecordUsingFilters_dataFilter_correct() local
176 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadVo2MaxRecordUsingFilters_dataFilter_correct()
177 assertThat(newRecord.getMeasurementMethod()).isEqualTo(testRecord.getMeasurementMethod()); in testReadVo2MaxRecordUsingFilters_dataFilter_correct()
178 assertThat(newRecord.getVo2MillilitersPerMinuteKilogram()) in testReadVo2MaxRecordUsingFilters_dataFilter_correct()
DBasalBodyTemperatureRecordTest.java220 BasalBodyTemperatureRecord newRecord = in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct() local
222 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct()
223 assertThat(newRecord.getMeasurementLocation()) in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct()
225 assertThat(newRecord.getTemperature()).isEqualTo(testRecord.getTemperature()); in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct()
DStepsCadenceRecordTest.java201 StepsCadenceRecord newRecord = in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() local
203 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadStepsCadenceRecordUsingFilters_dataFilter_correct()
204 for (int idx = 0; idx < newRecord.getSamples().size(); idx++) { in testReadStepsCadenceRecordUsingFilters_dataFilter_correct()
205 assertThat(newRecord.getSamples().get(idx).getTime().toEpochMilli()) in testReadStepsCadenceRecordUsingFilters_dataFilter_correct()
207 assertThat(newRecord.getSamples().get(idx).getRate()) in testReadStepsCadenceRecordUsingFilters_dataFilter_correct()
DSkinTemperatureRecordTest.java319 SkinTemperatureRecord newRecord = in testReadSkinTemperatureRecordUsingFilters_dataFilter_correct() local
321 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadSkinTemperatureRecordUsingFilters_dataFilter_correct()
323 for (int idx = 0; idx < newRecord.getDeltas().size(); idx++) { in testReadSkinTemperatureRecordUsingFilters_dataFilter_correct()
324 assertThat(newRecord.getDeltas().get(idx).getTime().toEpochMilli()) in testReadSkinTemperatureRecordUsingFilters_dataFilter_correct()
326 assertThat(newRecord.getDeltas().get(idx).getDelta()) in testReadSkinTemperatureRecordUsingFilters_dataFilter_correct()
DCyclingPedalingCadenceRecordTest.java235 CyclingPedalingCadenceRecord newRecord = in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct() local
237 for (int idx = 0; idx < newRecord.getSamples().size(); idx++) { in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct()
238 assertThat(newRecord.getSamples().get(idx).getTime().toEpochMilli()) in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct()
240 assertThat(newRecord.getSamples().get(idx).getRevolutionsPerMinute()) in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct()
DSpeedRecordTest.java199 SpeedRecord newRecord = newSpeedRecords.get(newSpeedRecords.size() - 1); in testReadSpeedRecordUsingFilters_dataFilter_correct() local
200 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadSpeedRecordUsingFilters_dataFilter_correct()
201 for (int idx = 0; idx < newRecord.getSamples().size(); idx++) { in testReadSpeedRecordUsingFilters_dataFilter_correct()
202 assertThat(newRecord.getSamples().get(idx).getTime().toEpochMilli()) in testReadSpeedRecordUsingFilters_dataFilter_correct()
204 assertThat(newRecord.getSamples().get(idx).getSpeed()) in testReadSpeedRecordUsingFilters_dataFilter_correct()
DMenstruationFlowRecordTest.java199 MenstruationFlowRecord newRecord = in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct() local
201 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct()
202 assertThat(newRecord.getFlow()).isEqualTo(testRecord.getFlow()); in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct()
DSexualActivityRecordTest.java190 SexualActivityRecord newRecord = in testReadSexualActivityRecordUsingFilters_dataFilter_correct() local
192 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadSexualActivityRecordUsingFilters_dataFilter_correct()
193 assertThat(newRecord.getProtectionUsed()).isEqualTo(testRecord.getProtectionUsed()); in testReadSexualActivityRecordUsingFilters_dataFilter_correct()
DOxygenSaturationRecordTest.java200 OxygenSaturationRecord newRecord = in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct() local
202 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct()
203 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct()
DOvulationTestRecordTest.java188 OvulationTestRecord newRecord = in testReadOvulationTestRecordUsingFilters_dataFilter_correct() local
190 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadOvulationTestRecordUsingFilters_dataFilter_correct()
191 assertThat(newRecord.getResult()).isEqualTo(testRecord.getResult()); in testReadOvulationTestRecordUsingFilters_dataFilter_correct()
DBoneMassRecordTest.java182 BoneMassRecord newRecord = newBoneMassRecords.get(newBoneMassRecords.size() - 1); in testReadBoneMassRecordUsingFilters_dataFilter_correct() local
183 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBoneMassRecordUsingFilters_dataFilter_correct()
184 assertThat(newRecord.getMass()).isEqualTo(testRecord.getMass()); in testReadBoneMassRecordUsingFilters_dataFilter_correct()
DRespiratoryRateRecordTest.java194 RespiratoryRateRecord newRecord = in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct() local
196 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct()
197 assertThat(newRecord.getRate()).isEqualTo(testRecord.getRate()); in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct()
DBodyFatRecordTest.java177 BodyFatRecord newRecord = newBodyFatRecords.get(newBodyFatRecords.size() - 1); in testReadBodyFatRecordUsingFilters_dataFilter_correct() local
178 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBodyFatRecordUsingFilters_dataFilter_correct()
179 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadBodyFatRecordUsingFilters_dataFilter_correct()
DLeanBodyMassRecordTest.java185 LeanBodyMassRecord newRecord = in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct() local
187 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct()
188 assertThat(newRecord.getMass()).isEqualTo(testRecord.getMass()); in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct()
DActiveCaloriesBurnedRecordTest.java227 ActiveCaloriesBurnedRecord newRecord = in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct() local
229 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct()
230 assertThat(newRecord.getEnergy()).isEqualTo(testRecord.getEnergy()); in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct()
DFloorsClimbedRecordTest.java207 FloorsClimbedRecord newRecord = in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct() local
209 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct()
210 assertThat(newRecord.getFloors()).isEqualTo(testRecord.getFloors()); in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct()
DBasalMetabolicRateRecordTest.java215 BasalMetabolicRateRecord newRecord = in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct() local
217 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct()
218 assertThat(newRecord.getBasalMetabolicRate()).isEqualTo(testRecord.getBasalMetabolicRate()); in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java88 UidIoRecord newRecord = newMetrics.valueAt(i); in update() local
89 final int uid = newRecord.uid; in update()
97 newStats = new IoStatsEntry(newRecord, mSampleWindowMs); in update()
101 if (oldRecord.representsSameMetrics(newRecord)) { in update()
106 newStats = new IoStatsEntry(newRecord.delta(oldRecord), in update()
116 newStats = new IoStatsEntry(newRecord.delta(oldRecord), in update()
123 newTotal.append(uid, new IoStatsEntry(newRecord, newStats.runtimeMillis)); in update()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java219 WearEstimateRecord newRecord = new WearEstimateRecord(lastWearEstimate, in addEventIfNeededLocked()
223 Slogf.d(TAG, "new wear record generated " + newRecord); in addEventIfNeededLocked()
224 wearHistory.add(newRecord); in addEventIfNeededLocked()

12