/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteReadTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 71 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_cannotAccessOtherAppRoute() 86 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOwnRoute() 101 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 103 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 126 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_cannotAccessOtherAppRoute() 142 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOwnRoute() 158 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 160 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 191 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_cannotAccessOtherAppRoute() [all …]
|
D | ExerciseRouteBackgroundReadTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 78 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_cannotAccessOtherAppRoute() 93 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOwnRoute() 108 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 110 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 134 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_cannotAccessOtherAppRoute() 150 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOwnRoute() 167 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 169 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 199 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_cannotAccessOtherAppRoute() [all …]
|
D | ReadExerciseRoutesPermissionTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 68 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOtherAppRoute() 83 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOwnRoute() 98 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 100 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_mixedOwnAndOtherAppSession() 124 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOtherAppRoute() 140 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOwnRoute() 156 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 158 ExerciseSessionRecord ownSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_mixedOwnAndOtherAppSession() 189 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canAccessOtherAppRoute() [all …]
|
D | ExerciseRouteReadAllFeatureOffTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 71 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canNotAccessOtherAppRoute() 86 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOwnRoute() 101 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canNotAccessOtherAppRoute() 117 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOwnRoute() 138 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canNotAccessOtherAppRoute() 161 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canAccessOwnRoute()
|
D | ExerciseRouteWriteTest.java | 27 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 72 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in insertRecords_withRoute_routeGetsInserted() 184 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in updateRecords_withoutRoute_routeGetsDeleted() 201 getExerciseSessionWithoutRoute(getEmptyMetadata()); in updateRecords_withRoute_routeGetsInserted() 217 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in updateRecords_withUpdatedRoute_routeGetsUpdated() 235 getEmptyMetadata(), yesterdayAt("09:00"), getRoute(yesterdayAt("09:00"))); in insertRecords_multipleSessions() 238 getEmptyMetadata(), in insertRecords_multipleSessions() 242 getExerciseSessionWithoutRoute(getEmptyMetadata(), yesterdayAt("11:00")); in insertRecords_multipleSessions()
|
D | ExerciseRouteNoReadWritePermissionTest.java | 27 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 76 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in insertRecords_canNotInsertRoute() 164 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in updateRecords_withoutRoute_routeDoesNotGetDeleted() 182 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in updateRecords_withUpdatedRoute_throws_routeDoesNotGetUpdated() 208 getExerciseSessionWithoutRoute(getEmptyMetadata()); in updateRecords_withAddedRoute_throws_routeDoesNotGetAdded() 233 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOwnRoute() 254 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOwnRoute() 281 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canAccessOwnRoute()
|
D | ExerciseRouteManageHealthDataTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 68 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canNotAccessOtherAppRoute() 87 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canNotAccessOtherAppRoute() 113 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canNotAccessOtherAppRoute()
|
D | ReadExerciseRoutePermissionTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 68 ExerciseSessionRecord sessionWithRoute = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingFilters_canAccessOtherAppRoute() 87 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in readRecords_usingIds_canAccessOtherAppRoute() 113 ExerciseSessionRecord otherAppSession = getExerciseSessionWithRoute(getEmptyMetadata()); in getChangelogs_canAccessOtherAppRoute()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | DataFactory.java | 19 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 47 getEmptyMetadata(), start, end, Energy.fromCalories(energy)) in getActiveCaloriesBurnedRecord() 108 return new LeanBodyMassRecord.Builder(getEmptyMetadata(), time, Mass.fromGrams(grams)) in getBaseLeanBodyMassRecord() 113 return new HeightRecord.Builder(getEmptyMetadata(), time, Length.fromMeters(heightMeter)) in getBaseHeightRecord() 118 return new WeightRecord.Builder(getEmptyMetadata(), time, Mass.fromGrams(weightKg * 1000)) in getBaseWeightRecord()
|
D | TotalCaloriesAggregationTest.java | 28 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 349 getEmptyMetadata(), start, end, Energy.fromCalories(calories)) in getTotalCaloriesBurnedRecord() 362 getEmptyMetadata(), in getBaseTotalCaloriesBurnedRecord() 376 getEmptyMetadata(), in getBaseActiveCaloriesBurnedRecord() 386 getEmptyMetadata(), in getBaseActiveCaloriesBurnedRecord()
|
D | AggregationApisTest.java | 33 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 478 getEmptyMetadata(), start, end, Arrays.asList(samples)) in getStepsCadenceRecord()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 28 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 130 getStepsRecord(getEmptyMetadata()), 131 getHeartRateRecord(getEmptyMetadata()), 132 getBasalMetabolicRateRecord(getEmptyMetadata()), 133 getExerciseSessionRecord(getEmptyMetadata())); 191 StepsRecord record = getStepsRecord(getEmptyMetadata()); in testAppWithNormalReadWritePermCanInsertRecord() 197 StepsRecord record = getStepsRecord(getEmptyMetadata()); in testAnAppCantDeleteAnotherAppEntry() 211 StepsRecord record = getStepsRecord(getEmptyMetadata()); in testAnAppCantUpdateAnotherAppEntry() 246 StepsRecord record = getStepsRecord(getEmptyMetadata()); in testAppWithWritePermsOnly_readOwnData_success() 268 StepsRecord record = getStepsRecord(getEmptyMetadata()); in testAppWithWritePermsOnly_readDataFromAllApps_throwsError() [all …]
|
D | HealthConnectChangeLogsDeviceTests.java | 19 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 200 return new StepsRecord.Builder(getEmptyMetadata(), startTime, endTime, 155).build(); in getStepsRecord()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 111 public static Metadata getEmptyMetadata() { in getEmptyMetadata() method in DataFactory 169 return buildSleepSession(getEmptyMetadata()); in buildSleepSessionWithEmptyMetadata() 201 return buildExerciseSession(getEmptyMetadata()); in buildExerciseSessionWithEmptyMetadata() 291 return getHeartRateRecord(72, getEmptyMetadata()); in getHeartRateRecordWithEmptyMetadata() 322 return new HeartRateRecord.Builder(getEmptyMetadata(), start, end, samples).build(); in getHeartRateRecord() 355 return new WeightRecord.Builder(getEmptyMetadata(), time, Mass.fromGrams(weight)) in getWeightRecord() 361 return getStepsRecord(10, getEmptyMetadata()); in getStepsRecordWithEmptyMetaData() 385 return new StepsRecord.Builder(getEmptyMetadata(), start, end, steps).build(); in getStepsRecord() 530 getEmptyMetadata()); in getDistanceRecordWithEmptyMetadata() 541 getEmptyMetadata()); in getDistanceRecord() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | PermissionTypesFragmentTest.kt | 26 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata 59 StepsRecord.Builder(getEmptyMetadata(), now.minusSeconds(30), now, 43).build() in setup()
|
D | HomeFragmentTest.kt | 24 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata 59 StepsRecord.Builder(getEmptyMetadata(), now.minusSeconds(30), now, 43).build()) in setup()
|
D | ExerciseRouteRequestTest.kt | 33 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata 494 getEmptyMetadata(), in getExerciseSessionWithRoute() 508 getEmptyMetadata(), in getExerciseSessionWithRoute()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | SharedMemoryTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata; 152 getEmptyMetadata(), in insertRecordsAndReadRecordsByIds_viaSharedMemory_recordsEqual() 195 getEmptyMetadata(), in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
|
D | HealthConnectManagerTest.java | 677 Metadata metadata = DataFactory.getEmptyMetadata(); in testInsertRecords_metadataGiven_responseDoesNotMutateMetadataReference()
|