Home
last modified time | relevance | path

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

12

/packages/modules/HealthFitness/tests/integrationtests/TestApp/src/android/healthconnect/test/app/
DTestAppReceiver.java193 List<String> recordIds = getRecordIds(intent); in readStepsRecordsUsingIds() local
194 for (String recordId : recordIds) { in readStepsRecordsUsingIds()
306 ArrayList<String> recordIds = in sendInsertRecordsResult() local
312 extras.putStringArrayList(EXTRA_RECORD_IDS, recordIds); in sendInsertRecordsResult()
425 List<String> recordIds = intent.getStringArrayListExtra(EXTRA_RECORD_IDS); in getRecordIds() local
426 return recordIds == null ? new ArrayList<>() : recordIds; in getRecordIds()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java153 public static Bundle fromInsertRecordsResponse(List<String> recordIds) { in fromInsertRecordsResponse() argument
155 bundle.putStringArrayList(RECORD_ID, new ArrayList<>(recordIds)); in fromInsertRecordsResponse()
260 var recordIds = bundle.getStringArrayList(RECORD_ID); in toReadRecordsRequestUsingIds() local
261 if (recordIds != null) { in toReadRecordsRequestUsingIds()
262 for (String id : recordIds) { in toReadRecordsRequestUsingIds()
298 List<String> recordIds = recordIdFilters.stream().map(RecordIdFilter::getId).toList(); in fromDeleteRecordsByIdsRequest() local
301 bundle.putStringArrayList(RECORD_ID, new ArrayList<>(recordIds)); in fromDeleteRecordsByIdsRequest()
309 List<String> recordIds = bundle.getStringArrayList(RECORD_ID); in toDeleteRecordsByIdsRequest() local
317 String recordId = recordIds.get(i); in toDeleteRecordsByIdsRequest()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DDeleteTransactionRequest.java54 List<RecordIdFilter> recordIds = in DeleteTransactionRequest() local
58 for (RecordIdFilter recordId : recordIds) { in DeleteTransactionRequest()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHeartRateRecordTest.java437 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteHeartRateRecord_usingIds() local
439 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteHeartRateRecord_usingIds()
441 for (RecordIdFilter recordIdFilter : recordIds) { in testDeleteHeartRateRecord_usingIds()
447 TestUtils.verifyDeleteRecords(recordIds); in testDeleteHeartRateRecord_usingIds()
458 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteHeartRateRecord_usingInvalidClientIds() local
460 recordIds.add( in testDeleteHeartRateRecord_usingInvalidClientIds()
464 for (RecordIdFilter recordIdFilter : recordIds) { in testDeleteHeartRateRecord_usingInvalidClientIds()
470 TestUtils.verifyDeleteRecords(recordIds); in testDeleteHeartRateRecord_usingInvalidClientIds()
DStepsRecordTest.java628 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteStepsRecord_usingIds() local
630 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteStepsRecord_usingIds()
632 for (RecordIdFilter recordIdFilter : recordIds) { in testDeleteStepsRecord_usingIds()
638 verifyDeleteRecords(recordIds); in testDeleteStepsRecord_usingIds()
646 List<RecordIdFilter> recordIds = in testDeleteStepsRecords_usingInvalidId() local
649 assertThrows(HealthConnectException.class, () -> verifyDeleteRecords(recordIds)); in testDeleteStepsRecords_usingInvalidId()
655 List<RecordIdFilter> recordIds = in testDeleteStepsRecord_usingUnknownId() local
658 verifyDeleteRecords(recordIds); in testDeleteStepsRecord_usingUnknownId()
665 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteStepsRecord_usingInvalidClientIds() local
667 recordIds.add( in testDeleteStepsRecord_usingInvalidClientIds()
[all …]
DMenstruationFlowRecordTest.java317 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteMenstruationFlowRecord_usingIds() local
319 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteMenstruationFlowRecord_usingIds()
322 TestUtils.verifyDeleteRecords(recordIds); in testDeleteMenstruationFlowRecord_usingIds()
DSexualActivityRecordTest.java304 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteSexualActivityRecord_usingIds() local
306 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteSexualActivityRecord_usingIds()
309 TestUtils.verifyDeleteRecords(recordIds); in testDeleteSexualActivityRecord_usingIds()
DOxygenSaturationRecordTest.java318 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteOxygenSaturationRecord_usingIds() local
320 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteOxygenSaturationRecord_usingIds()
323 TestUtils.verifyDeleteRecords(recordIds); in testDeleteOxygenSaturationRecord_usingIds()
DIntermenstrualBleedingRecordTest.java309 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteIntermenstrualBleedingRecord_usingIds() local
311 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteIntermenstrualBleedingRecord_usingIds()
314 TestUtils.verifyDeleteRecords(recordIds); in testDeleteIntermenstrualBleedingRecord_usingIds()
DOvulationTestRecordTest.java302 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteOvulationTestRecord_usingIds() local
304 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteOvulationTestRecord_usingIds()
307 TestUtils.verifyDeleteRecords(recordIds); in testDeleteOvulationTestRecord_usingIds()
DBodyTemperatureRecordTest.java325 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBodyTemperatureRecord_usingIds() local
327 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBodyTemperatureRecord_usingIds()
330 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBodyTemperatureRecord_usingIds()
DBoneMassRecordTest.java292 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBoneMassRecord_usingIds() local
294 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBoneMassRecord_usingIds()
297 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBoneMassRecord_usingIds()
DRespiratoryRateRecordTest.java312 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteRespiratoryRateRecord_usingIds() local
314 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteRespiratoryRateRecord_usingIds()
317 TestUtils.verifyDeleteRecords(recordIds); in testDeleteRespiratoryRateRecord_usingIds()
DMenstruationPeriodRecordTest.java297 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteMenstruationPeriodRecord_usingIds() local
299 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteMenstruationPeriodRecord_usingIds()
302 TestUtils.verifyDeleteRecords(recordIds); in testDeleteMenstruationPeriodRecord_usingIds()
DCervicalMucusRecordTest.java305 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteCervicalMucusRecord_usingIds() local
307 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteCervicalMucusRecord_usingIds()
310 TestUtils.verifyDeleteRecords(recordIds); in testDeleteCervicalMucusRecord_usingIds()
DBodyFatRecordTest.java288 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBodyFatRecord_usingIds() local
290 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBodyFatRecord_usingIds()
293 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBodyFatRecord_usingIds()
DBodyWaterMassRecordTest.java282 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBodyWaterMassRecord_usingIds() local
284 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBodyWaterMassRecord_usingIds()
287 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBodyWaterMassRecord_usingIds()
DHeartRateVariabilityRmssdRecordTest.java311 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteHeartRateVariabilityRmssdRecord_usingIds() local
313 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteHeartRateVariabilityRmssdRecord_usingIds()
316 TestUtils.verifyDeleteRecords(recordIds); in testDeleteHeartRateVariabilityRmssdRecord_usingIds()
DLeanBodyMassRecordTest.java299 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteLeanBodyMassRecord_usingIds() local
301 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteLeanBodyMassRecord_usingIds()
304 TestUtils.verifyDeleteRecords(recordIds); in testDeleteLeanBodyMassRecord_usingIds()
DActiveCaloriesBurnedRecordTest.java321 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteActiveCaloriesBurnedRecord_usingIds() local
323 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteActiveCaloriesBurnedRecord_usingIds()
326 TestUtils.verifyDeleteRecords(recordIds); in testDeleteActiveCaloriesBurnedRecord_usingIds()
DVo2MaxRecordTest.java286 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteVo2MaxRecord_usingIds() local
288 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteVo2MaxRecord_usingIds()
291 TestUtils.verifyDeleteRecords(recordIds); in testDeleteVo2MaxRecord_usingIds()
DBloodGlucoseRecordTest.java299 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBloodGlucoseRecord_usingIds() local
301 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBloodGlucoseRecord_usingIds()
304 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBloodGlucoseRecord_usingIds()
DBasalBodyTemperatureRecordTest.java482 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBasalBodyTemperatureRecord_usingIds() local
484 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBasalBodyTemperatureRecord_usingIds()
487 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBasalBodyTemperatureRecord_usingIds()
DBasalMetabolicRateRecordTest.java307 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteBasalMetabolicRateRecord_usingIds() local
309 recordIds.add(fromId(record.getClass(), record.getMetadata().getId())); in testDeleteBasalMetabolicRateRecord_usingIds()
312 TestUtils.verifyDeleteRecords(recordIds); in testDeleteBasalMetabolicRateRecord_usingIds()
DRestingHeartRateRecordTest.java329 List<RecordIdFilter> recordIds = new ArrayList<>(records.size()); in testDeleteRestingHeartRateRecord_usingIds() local
331 recordIds.add(RecordIdFilter.fromId(record.getClass(), record.getMetadata().getId())); in testDeleteRestingHeartRateRecord_usingIds()
334 TestUtils.verifyDeleteRecords(recordIds); in testDeleteRestingHeartRateRecord_usingIds()

12