Home
last modified time | relevance | path

Searched refs:getEmptyMetadata (Results 1 – 19 of 19) sorted by relevance

/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteReadTest.java22 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 …]
DExerciseRouteBackgroundReadTest.java23 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 …]
DReadExerciseRoutesPermissionTest.java23 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 …]
DExerciseRouteReadAllFeatureOffTest.java23 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()
DExerciseRouteWriteTest.java27 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()
DExerciseRouteNoReadWritePermissionTest.java27 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()
DExerciseRouteManageHealthDataTest.java22 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()
DReadExerciseRoutePermissionTest.java22 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/
DDataFactory.java19 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()
DTotalCaloriesAggregationTest.java28 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()
DAggregationApisTest.java33 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/
DHealthConnectDeviceTest.java28 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 …]
DHealthConnectChangeLogsDeviceTests.java19 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/
DDataFactory.java111 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/
DPermissionTypesFragmentTest.kt26 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata
59 StepsRecord.Builder(getEmptyMetadata(), now.minusSeconds(30), now, 43).build() in setup()
DHomeFragmentTest.kt24 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata
59 StepsRecord.Builder(getEmptyMetadata(), now.minusSeconds(30), now, 43).build()) in setup()
DExerciseRouteRequestTest.kt33 import android.healthconnect.cts.utils.DataFactory.getEmptyMetadata
494 getEmptyMetadata(), in getExerciseSessionWithRoute()
508 getEmptyMetadata(), in getExerciseSessionWithRoute()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DSharedMemoryTest.java19 import static android.healthconnect.cts.utils.DataFactory.getEmptyMetadata;
152 getEmptyMetadata(), in insertRecordsAndReadRecordsByIds_viaSharedMemory_recordsEqual()
195 getEmptyMetadata(), in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
DHealthConnectManagerTest.java677 Metadata metadata = DataFactory.getEmptyMetadata(); in testInsertRecords_metadataGiven_responseDoesNotMutateMetadataReference()