Searched refs:buildSleepSession (Results 1 – 5 of 5) sorted by relevance
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | SleepSessionRecordTest.java | 21 import static android.healthconnect.cts.utils.DataFactory.buildSleepSession; 228 (SleepSessionRecord) TestUtils.insertRecord(buildSleepSession()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 247 TestUtils.insertRecords(List.of(buildSleepSession(), buildSleepSessionMinimal())); in testReadById_insertAndReadById_recordsAreEqual() 261 TestUtils.insertRecords(List.of(buildSleepSession(), buildSleepSessionMinimal())); in testReadByClientId_insertAndReadByClientId_recordsAreEqual() 275 TestUtils.insertRecords(List.of(buildSleepSession(), buildSleepSessionMinimal())); in testReadByClientId_insertAndReadByDefaultFilter_filteredAll() 288 TestUtils.insertRecords(List.of(buildSleepSession(), buildSleepSessionMinimal())); in testDeleteRecords_insertAndDeleteById_recordsNotFoundAnymore() 306 TestUtils.insertRecords(Arrays.asList(buildSleepSession(), buildSleepSession())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 312 List<Record> updateRecords = Arrays.asList(buildSleepSession(), buildSleepSession()); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 335 TestUtils.insertRecords(Arrays.asList(buildSleepSession(), buildSleepSession())); in testUpdateRecords_invalidInputRecords_noChangeInDataBase() 341 List<Record> updateRecords = Arrays.asList(buildSleepSession(), buildSleepSession()); in testUpdateRecords_invalidInputRecords_noChangeInDataBase() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | SessionDatatypeDisabledFeatureTest.java | 20 import static android.healthconnect.cts.utils.DataFactory.buildSleepSession; 100 List<Record> records = List.of(buildSleepSession()); in testWriteSleepSession_insertWithDisableFeature_throwsException() 113 List<Record> records = List.of(buildSleepSession()); in testReadSleepSession_insertAndRead_sessionIsNotAvailable()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 158 public static SleepSessionRecord buildSleepSession() { in buildSleepSession() method in DataFactory 159 return buildSleepSession(generateMetadata()); in buildSleepSession() 164 return buildSleepSession(generateMetadataWithClientId(clientId)); in buildSleepSessionWithClientId() 169 return buildSleepSession(getEmptyMetadata()); in buildSleepSessionWithEmptyMetadata() 173 public static SleepSessionRecord buildSleepSession(Metadata metadata) { in buildSleepSession() method in DataFactory
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/ |
D | HealthConnectManagerNotAllPermissionsAreGrantedTest.java | 26 import static android.healthconnect.cts.utils.DataFactory.buildSleepSession; 178 buildSleepSession(), in getTestRecords()
|
D | HealthConnectManagerNoPermissionsGrantedTest.java | 33 import static android.healthconnect.cts.utils.DataFactory.buildSleepSession; 278 new Pair<>(buildSleepSession(), SLEEP_DURATION_TOTAL), in testAggregate_noPermissions_expectError() 377 buildSleepSession(), in getTestRecords()
|