Home
last modified time | relevance | path

Searched refs:SleepStageInternal (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DSleepStageInternal.java35 public final class SleepStageInternal { class
42 public static SleepStageInternal readFromParcel(Parcel parcel) { in readFromParcel()
43 return new SleepStageInternal() in readFromParcel()
50 static List<SleepStageInternal> populateStagesFromParcel(Parcel parcel) { in populateStagesFromParcel()
55 ArrayList<SleepStageInternal> stages = new ArrayList<>(size); in populateStagesFromParcel()
57 stages.add(SleepStageInternal.readFromParcel(parcel)); in populateStagesFromParcel()
63 @NonNull List<SleepStageInternal> internalStages) { in getExternalStages()
69 static void writeStagesToParcel(List<SleepStageInternal> stages, Parcel parcel) { in writeStagesToParcel()
96 public SleepStageInternal setStartTime(long startTime) { in setStartTime()
102 public SleepStageInternal setEndTime(long endTime) { in setEndTime()
[all …]
DSleepSessionRecordInternal.java37 private List<SleepStageInternal> mStages;
71 public List<SleepStageInternal> getSleepStages() { in getSleepStages()
76 public SleepSessionRecordInternal setSleepStages(@NonNull List<SleepStageInternal> stages) { in setSleepStages()
83 public SleepSessionRecordInternal addSleepStage(@Nullable SleepStageInternal stage) { in addSleepStage()
97 SleepStageInternal.writeStagesToParcel(mStages, parcel); in populateIntervalRecordTo()
104 mStages = SleepStageInternal.populateStagesFromParcel(parcel); in populateIntervalRecordFrom()
130 builder.setStages(SleepStageInternal.getExternalStages(mStages)); in toExternalRecord()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DSleepSessionInternalTest.java23 import android.health.connect.internal.datatypes.SleepStageInternal;
104 List<SleepStageInternal> internal, List<SleepSessionRecord.Stage> external) { in assertStagesAreEqual()
112 SleepStageInternal internalStage = internal.get(i); in assertStagesAreEqual()
123 List<SleepStageInternal> internal, List<SleepStageInternal> internal2) { in assertStagesAreEqualInternal()
131 SleepStageInternal internalStage = internal.get(i); in assertStagesAreEqualInternal()
132 SleepStageInternal internalStage2 = internal2.get(i); in assertStagesAreEqualInternal()
DSleepStageInternalTest.java22 import android.health.connect.internal.datatypes.SleepStageInternal;
52 SleepStageInternal initial = in testSleepStageInternal_writeToParcelAndBack_recordsAreEqual()
53 new SleepStageInternal() in testSleepStageInternal_writeToParcelAndBack_recordsAreEqual()
60 SleepStageInternal restored = SleepStageInternal.readFromParcel(parcel); in testSleepStageInternal_writeToParcelAndBack_recordsAreEqual()
DTestUtils.java37 import android.health.connect.internal.datatypes.SleepStageInternal;
159 public static SleepStageInternal buildSleepStage() { in buildSleepStage()
160 return new SleepStageInternal() in buildSleepStage()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DSleepStageRecordHelper.java32 import android.health.connect.internal.datatypes.SleepStageInternal;
82 static List<UpsertTableRequest> getStagesUpsertRequests(List<SleepStageInternal> stages) { in getStagesUpsertRequests()
96 static SleepStageInternal populateStageIfRecorded(@NonNull Cursor cursor) { in populateStageIfRecorded()
101 return new SleepStageInternal() in populateStageIfRecorded()
107 static void populateStageTo(ContentValues contentValues, SleepStageInternal stage) { in populateStageTo()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DSleepSessionRecord.java27 import android.health.connect.internal.datatypes.SleepStageInternal;
209 public SleepStageInternal toInternalStage() { in toInternalStage()
210 return new SleepStageInternal() in toInternalStage()