/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseLapTest.java | 25 import android.health.connect.datatypes.ExerciseLap; 41 ExerciseLap lap = in testExerciseLap_buildLap_buildCorrectObject() 42 new ExerciseLap.Builder(START_TIME, END_TIME) in testExerciseLap_buildLap_buildCorrectObject() 52 ExerciseLap lap = new ExerciseLap.Builder(START_TIME, END_TIME).build(); in testExerciseLap_buildWithoutLength_lengthIsNull() 58 new ExerciseLap.Builder(END_TIME, START_TIME).build(); in testExerciseLap_endTimeEarlierThanStartTime_throwsException() 63 new ExerciseLap.Builder(START_TIME, END_TIME).setLength(Length.fromMeters(-10)).build(); in testExerciseLap_lengthIsNegative_throwsException() 68 new ExerciseLap.Builder(START_TIME, END_TIME).setLength(Length.fromMeters(1e10)).build(); in testExerciseLap_lengthIsHuge_throwsException() 80 new ExerciseLap.Builder( in testLaps_lapStartTimeIllegal_throwsException() 96 new ExerciseLap.Builder( in testLaps_lapEndTimeIllegal_throwsException() 112 new ExerciseLap.Builder( in testLaps_lapsOverlaps_throwsException() [all …]
|
D | ExerciseSessionRecordTest.java | 52 import android.health.connect.datatypes.ExerciseLap; 158 List<ExerciseLap> lapsList = in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 160 new ExerciseLap.Builder(SESSION_START_TIME, SESSION_END_TIME) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | ExerciseLap.java | 36 public final class ExerciseLap implements TimeInterval.TimeIntervalHolder { class 43 private ExerciseLap( in ExerciseLap() method in ExerciseLap 95 if (!(o instanceof ExerciseLap)) return false; in equals() 96 ExerciseLap that = (ExerciseLap) o; in equals() 137 public ExerciseLap.Builder setLength(@NonNull Length length) { in setLength() 148 public ExerciseLap buildWithoutValidation() { in buildWithoutValidation() 149 return new ExerciseLap(mInterval, mLength, true); in buildWithoutValidation() 154 public ExerciseLap build() { in build() 155 return new ExerciseLap(mInterval, mLength, false); in build()
|
D | ExerciseSessionRecord.java | 70 private final List<ExerciseLap> mLaps; 98 @NonNull List<ExerciseLap> laps, in ExerciseSessionRecord() 130 (List<ExerciseLap>) in ExerciseSessionRecord() 172 public List<ExerciseLap> getLaps() { in getLaps() 233 private final List<ExerciseLap> mLaps; 338 public Builder setLaps(@NonNull List<ExerciseLap> laps) { in setLaps() 460 .map(ExerciseLap::toExerciseLapInternal) in toRecordInternal()
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | ExerciseLapInternalTest.java | 21 import android.health.connect.datatypes.ExerciseLap; 37 ExerciseLap externalLap = in testExerciseLapInternal_convertToExternalAndBack_recordsAreEqual() 38 new ExerciseLap.Builder(mStartTime, mEndTime) in testExerciseLapInternal_convertToExternalAndBack_recordsAreEqual() 41 ExerciseLap converted = externalLap.toExerciseLapInternal().toExternalRecord(); in testExerciseLapInternal_convertToExternalAndBack_recordsAreEqual() 47 ExerciseLap externalLap = new ExerciseLap.Builder(mStartTime, mEndTime).build(); in testExerciseLapInternal_convertToExternalAndBackNoLength_recordsAreEqual() 48 ExerciseLap converted = externalLap.toExerciseLapInternal().toExternalRecord(); in testExerciseLapInternal_convertToExternalAndBackNoLength_recordsAreEqual() 86 private void assertLapsAreEqual(ExerciseLap converted, ExerciseLap externalLap) { in assertLapsAreEqual()
|
D | ExerciseSessionInternalTest.java | 21 import android.health.connect.datatypes.ExerciseLap; 111 List<ExerciseLapInternal> internalLaps, List<ExerciseLap> externalLaps) { in assertLapsAreEqual() 120 ExerciseLap externalLap = externalLaps.get(i); in assertLapsAreEqual()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseLapInternal.java | 20 import android.health.connect.datatypes.ExerciseLap; 63 static List<ExerciseLap> getExternalLaps(@NonNull List<ExerciseLapInternal> internalLaps) { in getExternalLaps() 64 List<ExerciseLap> externalLaps = new ArrayList<>(internalLaps.size()); in getExternalLaps() 93 public ExerciseLap toExternalRecord() { in toExternalRecord() 94 ExerciseLap.Builder builder = in toExternalRecord() 95 new ExerciseLap.Builder( in toExternalRecord()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | ExerciseSessionFormatterTest.kt | 22 import android.health.connect.datatypes.ExerciseLap 97 buildList<ExerciseLap> { in <lambda>() 99 ExerciseLap.Builder(NOW, NOW.plusSeconds(500)) in <lambda>() 129 laps: List<ExerciseLap> = emptyList(), in getRecord()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/ |
D | ListInputField.kt | 21 import android.health.connect.datatypes.ExerciseLap 115 ExerciseLap::class.java -> { in addRow() 187 ExerciseLap::class.java -> { in getFieldValue() 189 ExerciseLap.Builder(instant.getFieldValue(), row.endTime.getFieldValue()) in getFieldValue()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | BundleHelper.java | 30 import android.health.connect.datatypes.ExerciseLap; 585 List<ExerciseLap> laps = record.getLaps(); in getExerciseSessionRecordValues() 591 .map(ExerciseLap::getStartTime) in getExerciseSessionRecordValues() 597 .map(ExerciseLap::getEndTime) in getExerciseSessionRecordValues() 603 .map(ExerciseLap::getLength) in getExerciseSessionRecordValues() 706 List<ExerciseLap> laps = new ArrayList<>(); in createExerciseSessionRecord() 711 ExerciseLap.Builder lap = in createExerciseSessionRecord() 712 new ExerciseLap.Builder( in createExerciseSessionRecord()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/ |
D | LoadPermissionTypesUseCaseTest.kt | 8 import android.health.connect.datatypes.ExerciseLap in <lambda>() 119 laps: List<ExerciseLap> = emptyList(), in <lambda>()
|
D | LoadContributingAppsUseCaseTest.kt | 8 import android.health.connect.datatypes.ExerciseLap in <lambda>() 128 laps: List<ExerciseLap> = emptyList(), in <lambda>()
|
D | FilterPermissionTypesUseCaseTest.kt | 8 import android.health.connect.datatypes.ExerciseLap in <lambda>() 151 laps: List<ExerciseLap> = emptyList(), in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 33 import android.health.connect.datatypes.ExerciseLap; 219 new ExerciseLap.Builder( in buildExerciseSession() 224 new ExerciseLap.Builder( in buildExerciseSession()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | ExerciseSessionFormatter.kt | 22 import android.health.connect.datatypes.ExerciseLap in <lambda>() 182 private fun formatLaps(id: String, lap: ExerciseLap): FormattedSessionDetail { in <lambda>()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | InsertOrUpdateRecords.kt | 33 import android.health.connect.datatypes.ExerciseLap 578 as List<ExerciseLap>) in createRecordObjectHelper()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 707 public final class ExerciseLap { 713 public static final class ExerciseLap.Builder { 714 ctor public ExerciseLap.Builder(@NonNull java.time.Instant, @NonNull java.time.Instant); 715 method @NonNull public android.health.connect.datatypes.ExerciseLap build(); 716 …method @NonNull public android.health.connect.datatypes.ExerciseLap.Builder setLength(@NonNull and… 878 method @NonNull public java.util.List<android.health.connect.datatypes.ExerciseLap> getLaps(); 894 …ssionRecord.Builder setLaps(@NonNull java.util.List<android.health.connect.datatypes.ExerciseLap>);
|