Home
last modified time | relevance | path

Searched refs:PlannedExerciseBlockInternal (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPlannedExerciseBlockInternal.java31 public final class PlannedExerciseBlockInternal { class
39 public static void writeToParcel(List<PlannedExerciseBlockInternal> blocks, Parcel parcel) { in writeToParcel()
41 for (PlannedExerciseBlockInternal block : blocks) { in writeToParcel()
49 public static List<PlannedExerciseBlockInternal> readFromParcel(Parcel parcel) { in readFromParcel()
50 List<PlannedExerciseBlockInternal> result = new ArrayList<>(); in readFromParcel()
53 PlannedExerciseBlockInternal block = new PlannedExerciseBlockInternal(parcel.readInt()); in readFromParcel()
61 public PlannedExerciseBlockInternal(int repetitions) { in PlannedExerciseBlockInternal() method in PlannedExerciseBlockInternal
DPlannedExerciseSessionRecordInternal.java48 private List<PlannedExerciseBlockInternal> mExerciseBlocks = Collections.emptyList();
87 List<PlannedExerciseBlockInternal> blocks) { in setExerciseBlocks()
101 public List<PlannedExerciseBlockInternal> getExerciseBlocks() { in getExerciseBlocks()
135 mExerciseBlocks = PlannedExerciseBlockInternal.readFromParcel(parcel); in populateIntervalRecordFrom()
146 PlannedExerciseBlockInternal.writeToParcel(mExerciseBlocks, parcel); in populateIntervalRecordTo()
178 for (PlannedExerciseBlockInternal block : mExerciseBlocks) { in toExternalRecord()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DPlannedExerciseSessionInternalTest.java22 import android.health.connect.internal.datatypes.PlannedExerciseBlockInternal;
36 PlannedExerciseBlockInternal block1 = TestUtils.buildExerciseBlockInternal(); in testPlanWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
37 PlannedExerciseBlockInternal block2 = TestUtils.buildExerciseBlockInternal(); in testPlanWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
86 PlannedExerciseBlockInternal firstBlock = first.getExerciseBlocks().get(i); in assertFieldsAreEqual()
87 PlannedExerciseBlockInternal secondBlock = second.getExerciseBlocks().get(i); in assertFieldsAreEqual()
DTestUtils.java33 import android.health.connect.internal.datatypes.PlannedExerciseBlockInternal;
115 public static PlannedExerciseBlockInternal buildExerciseBlockInternal() { in buildExerciseBlockInternal()
116 PlannedExerciseBlockInternal result = new PlannedExerciseBlockInternal(1); in buildExerciseBlockInternal()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPlannedExerciseBlock.java22 import android.health.connect.internal.datatypes.PlannedExerciseBlockInternal;
145 public PlannedExerciseBlockInternal toInternalObject() { in toInternalObject()
146 PlannedExerciseBlockInternal result = new PlannedExerciseBlockInternal(getRepetitions()); in toInternalObject()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java69 import android.health.connect.internal.datatypes.PlannedExerciseBlockInternal;
253 private List<PlannedExerciseBlockInternal> extractBlocks(@NonNull Cursor cursor) { in extractBlocks()
259 List<PlannedExerciseBlockInternal> result = new ArrayList<>(); in extractBlocks()
263 PlannedExerciseBlockInternal block = in extractBlocks()
264 new PlannedExerciseBlockInternal( in extractBlocks()
406 for (PlannedExerciseBlockInternal exerciseBlock : record.getExerciseBlocks()) { in getChildTableUpsertRequests()
413 private UpsertTableRequest getBlockUpsertRequest(PlannedExerciseBlockInternal exerciseBlock) { in getBlockUpsertRequest()