/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | UiTestUtils.kt | 235 return stepsRecord(TEST_APP_PACKAGE_NAME, /* stepCount= */ 10) in stepsRecordFromTestApp() 239 return stepsRecord(TEST_APP_PACKAGE_NAME, stepCount) in stepsRecordFromTestApp() 243 return stepsRecord( in stepsRecordFromTestApp() 248 return stepsRecord(TEST_APP_PACKAGE_NAME, stepCount, startTime, startTime.plusSeconds(100)) in stepsRecordFromTestApp() 252 return stepsRecord(TEST_APP_2_PACKAGE_NAME, /* stepCount= */ 10) in stepsRecordFromTestApp2() 267 private fun stepsRecord(packageName: String, stepCount: Long): StepsRecord { in stepsRecord() method 268 return stepsRecord(packageName, stepCount, Instant.now().minusMillis(1000), Instant.now()) in stepsRecord() 271 private fun stepsRecord( in stepsRecord() method
|
D | BundleHelper.java | 424 } else if (record instanceof StepsRecord stepsRecord) { in fromRecord() 425 values = getStepsRecordValues(stepsRecord); in fromRecord()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | StepsCadenceRecordTest.java | 546 StepsCadenceRecord stepsRecord = TestUtils.readRecords(request).get(0); in testInsertWithClientVersion() local 548 assertThat(stepsRecord.getSamples()).hasSize(sampleSize); in testInsertWithClientVersion() 549 assertThat(stepsRecord.getSamples().get(0).getRate()).isEqualTo(10); in testInsertWithClientVersion() 554 stepsRecord = TestUtils.readRecords(request).get(0); in testInsertWithClientVersion() 555 assertThat(stepsRecord.getMetadata().getId()).isEqualTo(id); in testInsertWithClientVersion() 556 assertThat(stepsRecord.getSamples()).hasSize(sampleSize); in testInsertWithClientVersion() 557 assertThat(stepsRecord.getSamples().get(0).getRate()).isEqualTo(20); in testInsertWithClientVersion() 561 stepsRecord = TestUtils.readRecords(request).get(0); in testInsertWithClientVersion() 562 assertThat(stepsRecord.getMetadata().getId()).isEqualTo(id); in testInsertWithClientVersion() 563 assertThat(stepsRecord.getSamples()).hasSize(sampleSize); in testInsertWithClientVersion() [all …]
|
D | StepsRecordTest.java | 304 StepsRecord stepsRecord = newStepsRecords.get(newStepsRecords.size() - 1); in testReadStepsRecordUsingFilters_timeFilterLocal() local 305 assertThat(stepsRecord.getCount()).isEqualTo(50); in testReadStepsRecordUsingFilters_timeFilterLocal() 306 assertThat(stepsRecord.getStartZoneOffset()).isEqualTo(ZoneOffset.MIN); in testReadStepsRecordUsingFilters_timeFilterLocal() 307 assertThat(stepsRecord.getEndZoneOffset()).isEqualTo(ZoneOffset.MIN); in testReadStepsRecordUsingFilters_timeFilterLocal() 322 stepsRecord = newStepsRecords.get(newStepsRecords.size() - 1); in testReadStepsRecordUsingFilters_timeFilterLocal() 324 assertThat(stepsRecord.getCount()).isEqualTo(50); in testReadStepsRecordUsingFilters_timeFilterLocal() 325 assertThat(stepsRecord.getStartZoneOffset()).isEqualTo(ZoneOffset.MIN); in testReadStepsRecordUsingFilters_timeFilterLocal() 326 assertThat(stepsRecord.getEndZoneOffset()).isEqualTo(ZoneOffset.MIN); in testReadStepsRecordUsingFilters_timeFilterLocal() 793 StepsRecord stepsRecord = TestUtils.readRecords(request).get(0); in testInsertWithClientVersion() local 794 assertThat(stepsRecord.getCount()).isEqualTo(10); in testInsertWithClientVersion() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectAccessLogsTest.java | 144 Record stepsRecord = getStepsRecord(); in testAccessLogs_update_multipleRecordTypes() local 146 List<Record> records = Arrays.asList(stepsRecord, heartRateRecord); in testAccessLogs_update_multipleRecordTypes() 151 stepsRecord, in testAccessLogs_update_multipleRecordTypes() 152 stepsRecord.getMetadata().getId(), in testAccessLogs_update_multipleRecordTypes() 153 stepsRecord.getMetadata().getClientRecordId()); in testAccessLogs_update_multipleRecordTypes()
|
D | HealthConnectManagerTest.java | 678 StepsRecord stepsRecord = DataFactory.getStepsRecord(20, metadata); in testInsertRecords_metadataGiven_responseDoesNotMutateMetadataReference() local 680 TestUtils.insertRecordAndGetId(stepsRecord); in testInsertRecords_metadataGiven_responseDoesNotMutateMetadataReference() 682 assertThat(stepsRecord.getMetadata().getId()).isEmpty(); in testInsertRecords_metadataGiven_responseDoesNotMutateMetadataReference()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | StepsRecordHelper.java | 81 @NonNull ContentValues contentValues, @NonNull StepsRecordInternal stepsRecord) { in populateSpecificContentValues() argument 82 contentValues.put(COUNT_COLUMN_NAME, stepsRecord.getCount()); in populateSpecificContentValues()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/ |
D | LoadDataEntriesUseCaseTest.kt | 79 val stepsRecord = getStepsRecord(100, stepsDate.randomInstant()) in <lambda>() constant 81 Mockito.doAnswer(prepareRecordsAnswer(listOf(stepsRecord))) in <lambda>() 100 healthDataEntryFormatter.format(stepsRecord, showDataOrigin = true) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | HealthDataEntryFormatterTest.kt | 78 val stepsRecord = getStepsRecord(12) in format_formatsStepsRateRecord() constant 80 assertThat(formatter.format(stepsRecord)) in format_formatsStepsRateRecord()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 359 StepsRecord stepsRecord = (StepsRecord) insertRecords(testRecords).get(0); in testChangeLogs_insert_filterRecordType_returnsUpsertedLogs() local 362 assertThat(response.getUpsertedRecords()).containsExactly(stepsRecord); in testChangeLogs_insert_filterRecordType_returnsUpsertedLogs() 391 StepsRecord stepsRecord = getStepsRecord(/* steps = */ 10, "stepsId"); in testChangeLogs_insertAndDeleteByClientId_returnsDeletedLogsOnly() local 392 Record insertedRecord = insertRecord(stepsRecord); in testChangeLogs_insertAndDeleteByClientId_returnsDeletedLogsOnly() 492 StepsRecord stepsRecord = (StepsRecord) testRecords.get(0); in testChangeLogs_insertAndDelete_recordFilter_onlyReturnsDeletedLogsForRecordType() local 496 .containsExactly(stepsRecord); in testChangeLogs_insertAndDelete_recordFilter_onlyReturnsDeletedLogsForRecordType()
|