Home
last modified time | relevance | path

Searched refs:addId (Results 1 – 25 of 68) sorted by relevance

123

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/
DHistoricAccessLimitTest.java158 insertedRecordIds.stream().forEach(readUsingIdsRequest::addId); in testReadIntervalRecordsByIds_expectCorrectResponse()
185 insertedRecordIds.stream().forEach(readUsingIdsRequest::addId); in testReadInstantRecordsByIds_expectCorrectResponse()
300 .addId(ownRecordId1) in testReadAnotherAppsRecordsByIds_recordsAreAfterCutOff_expectAllRecordsReturned()
301 .addId(ownRecordId2) in testReadAnotherAppsRecordsByIds_recordsAreAfterCutOff_expectAllRecordsReturned()
302 .addId(ownRecordId3) in testReadAnotherAppsRecordsByIds_recordsAreAfterCutOff_expectAllRecordsReturned()
319 .addId(ownRecordId1) in testReadAnotherAppsRecordsByIds_recordsAreBeforeCutOff_expectNoRecordsReturned()
320 .addId(ownRecordId2) in testReadAnotherAppsRecordsByIds_recordsAreBeforeCutOff_expectNoRecordsReturned()
321 .addId(ownRecordId3) in testReadAnotherAppsRecordsByIds_recordsAreBeforeCutOff_expectNoRecordsReturned()
DHistoricAccessLimitWithPermissionTest.java152 insertedRecordIds.forEach(readUsingIdsRequest::addId); in testReadIntervalRecordsByIds_expectCorrectResponse()
171 insertedRecordIds.forEach(readUsingIdsRequest::addId); in testReadInstantRecordsByIds_expectCorrectResponse()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DReadByIdTests.java69 new ReadRecordsRequestUsingIds.Builder<>(DistanceRecord.class).addId(uuid).build(); in readDataById_noPageTokenSet()
102 assertThrows(NullPointerException.class, () -> requestBuilder.addId(null)); in readDataById_nullId_throws()
114 assertThrows(IllegalArgumentException.class, () -> request.addId("extra_id")); in readDataById_maxPageSizeExceeded_throws()
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteReadTest.java132 .addId(sessionId) in readRecords_usingIds_cannotAccessOtherAppRoute()
148 .addId(sessionId) in readRecords_usingIds_canAccessOwnRoute()
166 .addId(otherAppSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
167 .addId(ownSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
DExerciseRouteBackgroundReadTest.java140 .addId(sessionId) in readRecords_usingIds_cannotAccessOtherAppRoute()
157 .addId(sessionId) in readRecords_usingIds_canAccessOwnRoute()
175 .addId(otherAppSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
176 .addId(ownSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
DReadExerciseRoutesPermissionTest.java130 .addId(sessionId) in readRecords_usingIds_canAccessOtherAppRoute()
146 .addId(sessionId) in readRecords_usingIds_canAccessOwnRoute()
164 .addId(otherAppSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
165 .addId(ownSessionId) in readRecords_usingIds_mixedOwnAndOtherAppSession()
DExerciseRouteReadAllFeatureOffTest.java107 .addId(sessionId) in readRecords_usingIds_canNotAccessOtherAppRoute()
123 .addId(sessionId) in readRecords_usingIds_canAccessOwnRoute()
DExerciseRouteManageHealthDataTest.java96 .addId(sessionId) in readRecords_usingIds_canNotAccessOtherAppRoute()
DReadExerciseRoutePermissionTest.java96 .addId(sessionId) in readRecords_usingIds_canAccessOtherAppRoute()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectChangeLogsDeviceTests.java95 .addId(recordIdInsertedByAppA) in testChangeLogs_insert_multipleApps_noFilter_returnsUpsertLogsForAllApps()
102 .addId(recordIdInsertedByAppB) in testChangeLogs_insert_multipleApps_noFilter_returnsUpsertLogsForAllApps()
134 .addId(recordIdInsertedByAppA) in testChangeLogs_insert_multipleApps_filterDataOrigin_returnsUpsertLogs()
DHealthConnectDeviceTest.java342 .addId(classAndId.second) in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess()
412 .addId(ownRecordIds.get(0)) in testAppWithWritePermsOnly_readDataByIdForOwnApp_success()
413 .addId(ownRecordIds.get(1)) in testAppWithWritePermsOnly_readDataByIdForOwnApp_success()
437 .addId(ownRecordIds.get(0)) in testAppWithWritePermsOnly_readDataByIdForOtherApps_filtersOutOtherAppData()
438 .addId(ownRecordIds.get(1)) in testAppWithWritePermsOnly_readDataByIdForOtherApps_filtersOutOtherAppData()
439 .addId(otherAppRecordId) in testAppWithWritePermsOnly_readDataByIdForOtherApps_filtersOutOtherAppData()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java494 .addId(id1) in testInsertRecords_intervalNoClientIdsAndSameTime_overwrites()
495 .addId(id2) in testInsertRecords_intervalNoClientIdsAndSameTime_overwrites()
530 .addId(id1) in testInsertRecords_intervalDifferentClientIdsAndSameTime_doesNotOverwrite()
531 .addId(id2) in testInsertRecords_intervalDifferentClientIdsAndSameTime_doesNotOverwrite()
577 .addId(id1) in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
578 .addId(id2) in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
604 .addId(id1) in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
605 .addId(id2) in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
634 .addId(id1) in testInsertRecords_hydrationNoClientIdsAndSameTime_doesNotOverwrite()
635 .addId(id2) in testInsertRecords_hydrationNoClientIdsAndSameTime_doesNotOverwrite()
[all …]
DSessionDatatypeDisabledFeatureTest.java91 request.addId(insertedRecords.get(0).getMetadata().getId()); in testReadExerciseSession_insertAndRead_sessionIsNotAvailable()
119 request.addId(insertedRecords.get(0).getMetadata().getId()); in testReadSleepSession_insertAndRead_sessionIsNotAvailable()
DExerciseRouteDisabledFeatureTest.java82 request.addId(insertedRecords.get(0).getMetadata().getId()); in testReadRoute_insertAndRead_routeIsNotAvailable()
DSharedMemoryTest.java156 request.addId(id); in insertRecordsAndReadRecordsByIds_viaSharedMemory_recordsEqual()
204 .addId(id) in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/
DLoadExerciseRouteUseCase.kt43 .addId(sessionId) in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DSkinTemperatureRecordTest.java184 request.addId(record.getMetadata().getId()); in testReadSkinTemperatureRecord_usingIds()
199 .addId(UUID.randomUUID().toString()) in testReadSkinTemperatureRecord_invalidIds()
477 request.addId(record.getMetadata().getId()); in testUpdateRecords_validInput_databaseUpdatedSuccessfully()
515 request.addId(record.getMetadata().getId()); in testUpdateRecords_invalidInputRecords_noChangeInDatabase()
565 request.addId(record.getMetadata().getId()); in testUpdateRecords_recordWithInvalidPackageName_noChangeInDataBase()
DSleepSessionRecordTest.java232 request.addId(insertedRecord.getMetadata().getId()); in testReadById_insertAndReadByIdOne_recordsAreEqual()
251 request.addId(records.get(0).getMetadata().getId()); in testReadById_insertAndReadById_recordsAreEqual()
252 request.addId(records.get(1).getMetadata().getId()); in testReadById_insertAndReadById_recordsAreEqual()
DExerciseSessionRecordTest.java206 request.addId(testRecord.getMetadata().getId()); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
350 request.addId(records.get(0).getMetadata().getId()); in testReadById_insertAndReadById_recordsAreEqual()
351 request.addId(records.get(1).getMetadata().getId()); in testReadById_insertAndReadById_recordsAreEqual()
362 request.addId(records.get(0).getMetadata().getId()); in testReadById_insertAndReadByIdOne_recordsAreEqual()
517 .addId(id) in testDeleteRecord_usingTime_forAnotherApp_notDeleted()
DBasalMetabolicRateRecordTest.java116 .addId(UUID.randomUUID().toString()) in testReadBasalMetabolicRateRecord_invalidIds()
362 .addId(id) in testDeleteBasalMetabolicRateRecord_usingTime_forAnotherApp_notDeleted()
568 request.addId(record.getMetadata().getId()); in readBasalMetabolicRateRecordUsingIds()
DTotalCaloriesBurnedRecordTest.java101 .addId(UUID.randomUUID().toString()) in testReadTotalCaloriesBurnedRecord_invalidIds()
442 request.addId(record.getMetadata().getId()); in readTotalCaloriesBurnedRecordUsingIds()
DMenstruationFlowRecordTest.java99 .addId(UUID.randomUUID().toString()) in testReadMenstruationFlowRecord_invalidIds()
235 request.addId(record.getMetadata().getId()); in readMenstruationFlowRecordUsingIds()
DSexualActivityRecordTest.java98 .addId(UUID.randomUUID().toString()) in testReadSexualActivityRecord_invalidIds()
226 request.addId(record.getMetadata().getId()); in readSexualActivityRecordUsingIds()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DReadRecordsRequestUsingIds.java100 public Builder<T> addId(@NonNull String id) { in addId() method in ReadRecordsRequestUsingIds.Builder
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/entrydetails/
DLoadEntryDetailsUseCase.kt54 val filter = ReadRecordsRequestUsingIds.Builder(record).addId(id).build() in <lambda>()

123