Home
last modified time | relevance | path

Searched refs:PlannedExerciseSessionRecord (Results 1 – 22 of 22) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPlannedExerciseSessionRecordTest.java48 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
98 PlannedExerciseSessionRecord.class, in tearDown()
115 PlannedExerciseSessionRecord.Builder builder = in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions()
129 PlannedExerciseSessionRecord.Builder builder = in insertRecord_noBlocks()
141 PlannedExerciseSessionRecord.Builder builder = in insertRecord_singleBlock()
154 PlannedExerciseSessionRecord.Builder builder = in insertRecord_multipleBlocks()
166 PlannedExerciseSessionRecord insertedPlan = in insertRecord_multipleBlocks()
167 Iterables.getOnlyElement(readAllRecords(PlannedExerciseSessionRecord.class)); in insertRecord_multipleBlocks()
174 PlannedExerciseSessionRecord.Builder builder = in insertRecord_singleStep()
197 PlannedExerciseSessionRecord.Builder builder = in insertRecord_multipleSteps()
[all …]
DExerciseCompletionGoalTest.java32 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
63 PlannedExerciseSessionRecord.class, in tearDown()
87 PlannedExerciseSessionRecord.Builder record = in distanceGoal_insertionAndRead()
95 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in distanceGoal_insertionAndRead()
122 PlannedExerciseSessionRecord.Builder record = in stepsGoal_insertionAndRead()
129 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in stepsGoal_insertionAndRead()
156 PlannedExerciseSessionRecord.Builder record = in durationGoal_insertionAndRead()
164 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in durationGoal_insertionAndRead()
191 PlannedExerciseSessionRecord.Builder record = in repetitionsGoal_insertionAndRead()
199 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in repetitionsGoal_insertionAndRead()
[all …]
DExercisePerformanceGoalTest.java33 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
66 PlannedExerciseSessionRecord.class, in tearDown()
108 PlannedExerciseSessionRecord.Builder record = in powerGoal_insertAndRead()
117 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in powerGoal_insertAndRead()
171 PlannedExerciseSessionRecord.Builder record = in speedGoal_insertAndRead()
181 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in speedGoal_insertAndRead()
210 PlannedExerciseSessionRecord.Builder record = in cadenceGoal_insertAndRead()
218 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in cadenceGoal_insertAndRead()
246 PlannedExerciseSessionRecord.Builder record = in heartRateGoal_insertAndRead()
254 TestUtils.readAllRecords(PlannedExerciseSessionRecord.class))) in heartRateGoal_insertAndRead()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DPlannedExerciseSessionRecordFormatter.kt19 import android.health.connect.datatypes.PlannedExerciseSessionRecord in <lambda>()
40 BaseFormatter<PlannedExerciseSessionRecord>(context), in <lambda>()
41 RecordDetailsFormatter<PlannedExerciseSessionRecord> { in <lambda>()
44 record: PlannedExerciseSessionRecord, in <lambda>()
59 fun formatTitle(record: PlannedExerciseSessionRecord): String { in <lambda>()
66 private fun getNotes(record: PlannedExerciseSessionRecord): String? { in <lambda>()
71 record: PlannedExerciseSessionRecord in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPlannedExerciseSessionRecordInternal.java22 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
39 extends IntervalRecordInternal<PlannedExerciseSessionRecord> {
155 public PlannedExerciseSessionRecord toExternalRecord() { in toExternalRecord()
156 PlannedExerciseSessionRecord.Builder builder = in toExternalRecord()
158 ? new PlannedExerciseSessionRecord.Builder( in toExternalRecord()
160 : new PlannedExerciseSessionRecord.Builder( in toExternalRecord()
DExerciseSessionRecordInternal.java24 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPlannedExerciseSessionRecord.java45 public final class PlannedExerciseSessionRecord extends IntervalRecord { class
75 private PlannedExerciseSessionRecord( in PlannedExerciseSessionRecord() method in PlannedExerciseSessionRecord
164 if (!(o instanceof PlannedExerciseSessionRecord)) return false; in equals()
166 PlannedExerciseSessionRecord that = (PlannedExerciseSessionRecord) o; in equals()
386 public PlannedExerciseSessionRecord buildWithoutValidation() { in buildWithoutValidation()
387 return new PlannedExerciseSessionRecord( in buildWithoutValidation()
404 public PlannedExerciseSessionRecord build() { in build()
408 return new PlannedExerciseSessionRecord( in build()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreE2ETest.java49 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
161 PlannedExerciseSessionRecord.Builder trainingPlan = in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
163 PlannedExerciseSessionRecord insertedTrainingPlan = in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
164 (PlannedExerciseSessionRecord) insertRecords(List.of(trainingPlan.build())).get(0); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
184 PlannedExerciseSessionRecord trainingPlanWithAutogeneratedReferenceToExerciseSession = in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
185 readAllRecords(PlannedExerciseSessionRecord.class).get(0); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
204 PlannedExerciseSessionRecord restoredTrainingPlan = in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
205 (PlannedExerciseSessionRecord) records.get(0); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt35 import android.health.connect.datatypes.PlannedExerciseSessionRecord in <lambda>()
150 fun getSamplePlannedExerciseSessionRecord(): PlannedExerciseSessionRecord { in getSamplePlannedExerciseSessionRecord()
195 ): PlannedExerciseSessionRecord { in getPlannedExerciseSessionRecord()
203 private fun basePlannedExerciseSession(exerciseType: Int): PlannedExerciseSessionRecord.Builder { in basePlannedExerciseSession()
204 val builder: PlannedExerciseSessionRecord.Builder = in basePlannedExerciseSession()
205 PlannedExerciseSessionRecord.Builder( in basePlannedExerciseSession()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryDetailsFormatter.kt24 import android.health.connect.datatypes.PlannedExerciseSessionRecord
69 is PlannedExerciseSessionRecord -> in formatDetails()
DHealthDataEntryFormatter.kt46 import android.health.connect.datatypes.PlannedExerciseSessionRecord
195 is PlannedExerciseSessionRecord -> in format()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/api/
DDeleteCategoryUseCaseTest.kt28 import android.health.connect.datatypes.PlannedExerciseSessionRecord in <lambda>()
110 PlannedExerciseSessionRecord::class.java) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt44 import android.health.connect.datatypes.PlannedExerciseSessionRecord
100 PLANNED_EXERCISE(PlannedExerciseSessionRecord::class.java)
DHealthPermissionToDatatypeMapper.kt44 import android.health.connect.datatypes.PlannedExerciseSessionRecord
139 PLANNED_EXERCISE to listOf(PlannedExerciseSessionRecord::class.java))
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java42 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
266 public static PlannedExerciseSessionRecord.Builder plannedExerciseSession(Metadata metadata) { in plannedExerciseSession()
267 PlannedExerciseSessionRecord.Builder sessionBuilder = in plannedExerciseSession()
268 new PlannedExerciseSessionRecord.Builder( in plannedExerciseSession()
DTestUtils.java124 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
805 PlannedExerciseSessionRecord.class, in populateAndResetExpectedResponseMap()
/packages/modules/HealthFitness/tests/integrationtests/TestApp/src/android/healthconnect/test/app/
DTestAppReceiver.java46 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
395 PlannedExerciseSessionRecord record = in createPlannedExerciseRecord()
396 new PlannedExerciseSessionRecord.Builder( in createPlannedExerciseRecord()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt44 import android.health.connect.datatypes.PlannedExerciseSessionRecord
281 PLANNED_EXERCISE(PlannedExerciseSessionRecord::class, R.string.training_plans),
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt51 import android.health.connect.datatypes.PlannedExerciseSessionRecord
583 PlannedExerciseSessionRecord::class -> { in createRecordObjectHelper()
586 PlannedExerciseSessionRecord.Builder( in createRecordObjectHelper()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DInsertRecordFragment.kt34 import android.health.connect.datatypes.PlannedExerciseSessionRecord in <lambda>()
289 PlannedExerciseSessionRecord::class -> { in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordMapper.java46 import android.health.connect.datatypes.PlannedExerciseSessionRecord;
319 PlannedExerciseSessionRecord.class); in RecordMapper()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1397 …droid.healthconnect.flags.training_plans") public final class PlannedExerciseSessionRecord extends…
1408 public static final class PlannedExerciseSessionRecord.Builder {
1409 …ctor public PlannedExerciseSessionRecord.Builder(@NonNull android.health.connect.datatypes.Metadat…
1410 …ctor public PlannedExerciseSessionRecord.Builder(@NonNull android.health.connect.datatypes.Metadat…
1411 …method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder addBl…
1412 method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord build();
1413 …method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder clear…
1414 …method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder clear…
1415 …method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder clear…
1416 …method @NonNull public android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder setBl…
[all …]