Home
last modified time | relevance | path

Searched refs:buildExerciseSession (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DExerciseRouteDisabledFeatureTest.java19 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
61 List<Record> records = List.of(buildExerciseSession()); in testWriteRoute_insertWithDisableFeature_throwsException()
73 List<Record> records = List.of(buildExerciseSession()); in testReadRoute_insertAndRead_routeIsNotAvailable()
DSessionDatatypeDisabledFeatureTest.java19 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
73 List<Record> records = List.of(buildExerciseSession()); in testWriteExerciseSession_insertWithDisableFeature_throwsException()
86 List<Record> records = List.of(buildExerciseSession()); in testReadExerciseSession_insertAndRead_sessionIsNotAvailable()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseSessionRecordTest.java25 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
120 buildExerciseSession(); in testBuildSession_noException()
346 TestUtils.insertRecords(List.of(buildExerciseSession(), buildSessionMinimal())); in testReadById_insertAndReadById_recordsAreEqual()
358 List<Record> records = TestUtils.insertRecords(List.of(buildExerciseSession())); in testReadById_insertAndReadByIdOne_recordsAreEqual()
377 TestUtils.insertRecords(List.of(buildExerciseSession(), buildSessionMinimal())); in testReadByClientId_insertAndReadByClientId_recordsAreEqual()
391 TestUtils.insertRecords(List.of(buildExerciseSession(), buildSessionMinimal())); in testReadByClientId_insertAndReadByDefaultFilter_filteredAll()
405 TestUtils.insertRecords(List.of(buildExerciseSession(), buildSessionMinimal())); in testReadByClientId_insertAndReadByTimeFilter_filteredCorrectly()
429 TestUtils.insertRecords(List.of(buildExerciseSession(), buildSessionMinimal())); in testDeleteRecords_insertAndDeleteById_recordsNotFoundAnymore()
490 String id = APP_WRITE_PERMS_ONLY.insertRecord(buildExerciseSession()); in testDeleteRecord_usingIds_forAnotherApp_fails()
505 String id = APP_WRITE_PERMS_ONLY.insertRecord(buildExerciseSession()); in testDeleteRecord_usingTime_forAnotherApp_notDeleted()
[all …]
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java195 public static ExerciseSessionRecord buildExerciseSession() { in buildExerciseSession() method in DataFactory
196 return buildExerciseSession(generateMetadata()); in buildExerciseSession()
201 return buildExerciseSession(getEmptyMetadata()); in buildExerciseSessionWithEmptyMetadata()
206 return buildExerciseSession(generateMetadataWithClientId(clientId)); in buildExerciseSessionWithClientId()
210 public static ExerciseSessionRecord buildExerciseSession(Metadata metadata) { in buildExerciseSession() method in DataFactory
602 buildExerciseSession()); in getTestRecords()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java25 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
181 buildExerciseSession()); in getTestRecords()
DHealthConnectManagerNoPermissionsGrantedTest.java32 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
279 new Pair<>(buildExerciseSession(), EXERCISE_DURATION_TOTAL)); in testAggregate_noPermissions_expectError()
380 buildExerciseSession()); in getTestRecords()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/
DHealthConnectChangeLogsTests.java19 import static android.healthconnect.cts.utils.DataFactory.buildExerciseSession;
631 buildExerciseSession()); in testChangeLogs_insert_withPageSize_paginatesThroughAllChangeLogs()