/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseLapTest.java | 37 private static final Instant END_TIME = Instant.ofEpochMilli((long) 1e2); field in ExerciseLapTest 42 new ExerciseLap.Builder(START_TIME, END_TIME) in testExerciseLap_buildLap_buildCorrectObject() 46 assertThat(lap.getEndTime()).isEqualTo(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()
|
D | SleepSessionRecordTest.java | 64 private static final Instant END_TIME = Instant.ofEpochMilli((long) 1e10 + 1000); field in SleepSessionRecordTest 87 END_TIME, START_TIME, SleepSessionRecord.StageType.STAGE_TYPE_AWAKE); in testSleepStage_startTimeLaterThanEnd_throwsException() 95 START_TIME, END_TIME, SleepSessionRecord.StageType.STAGE_TYPE_AWAKE); in testSleepStage_buildStage_equalsIsCorrect() 98 START_TIME, END_TIME, SleepSessionRecord.StageType.STAGE_TYPE_AWAKE); in testSleepStage_buildStage_equalsIsCorrect() 109 END_TIME, in testSleepSession_sleepStageEndTimeIllegal_throwsException() 117 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testSleepSession_stagesOverlap_throwsException() 126 END_TIME, in testSleepSession_stagesOverlap_throwsException() 136 START_TIME, END_TIME, SleepSessionRecord.StageType.STAGE_TYPE_AWAKE); in testSleepSession_buildStage_gettersAreCorrect() 139 assertThat(stage1.getEndTime()).isEqualTo(END_TIME); in testSleepSession_buildStage_gettersAreCorrect() 152 END_TIME, in testSleepSession_setsStagesOneByOne_stagesEqualsToLastSet() [all …]
|
D | ExerciseSegmentTest.java | 37 private static final Instant END_TIME = Instant.ofEpochMilli((long) 1e2); field in ExerciseSegmentTest 44 END_TIME, in testExerciseSegment_buildSegment_buildCorrectObject() 49 assertThat(segment.getEndTime()).isEqualTo(END_TIME); in testExerciseSegment_buildSegment_buildCorrectObject() 60 END_TIME, in testExerciseSegment_buildWithoutRepetitions_repetitionsIsZero() 69 END_TIME, START_TIME, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_endTimeEarlierThanStartTime_throwsException() 76 START_TIME, END_TIME, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_repetitionsIsNegative_throwsException()
|
D | MenstruationPeriodRecordTest.java | 65 private static final Instant END_TIME = Instant.ofEpochMilli((long) 1e10); field in MenstruationPeriodRecordTest 327 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testZoneOffsets() 344 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testMenstruationPeriod_buildSession_buildCorrectObject() 347 assertThat(record.getEndTime()).isEqualTo(END_TIME); in testMenstruationPeriod_buildSession_buildCorrectObject() 354 new MenstruationPeriodRecord.Builder(metadata, START_TIME, END_TIME).build(); in testMenstruationPeriod_buildEqualSessions_equalsReturnsTrue() 356 new MenstruationPeriodRecord.Builder(metadata, START_TIME, END_TIME).build(); in testMenstruationPeriod_buildEqualSessions_equalsReturnsTrue() 363 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testMenstruationPeriod_buildSessionWithAllFields_buildCorrectObject()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageListAppsControllerTest.kt | 51 val data = NetworkUsageData(START_TIME, END_TIME, 0) in setUp() 57 controller.startAppDataUsage(AppItem(), END_TIME) in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() 63 assertThat(arguments.getLong(AppDataUsage.ARG_SELECTED_CYCLE)).isEqualTo(END_TIME) in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() 66 ).containsExactly(END_TIME, START_TIME).inOrder() in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() 71 const val END_TIME = 1521676800000L constant
|
D | ChartDataUsagePreferenceControllerTest.kt | 54 verify(preference).setTime(START_TIME, END_TIME) in update() 61 const val END_TIME = 2L constant 63 val UsageData = NetworkUsageData(startTime = START_TIME, endTime = END_TIME, usage = 10)
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | TestUtils.java | 48 public static long END_TIME = Instant.now().toEpochMilli(); field in TestUtils 82 .setEndTime(END_TIME) in buildExerciseSessionInternal() 143 .setEndTime(END_TIME) in buildSleepSessionInternal() 156 return new ExerciseLapInternal().setStarTime(START_TIME).setEndTime(END_TIME).setLength(10); in buildExerciseLap() 162 .setEndTime(END_TIME) in buildSleepStage() 169 .setEndTime(END_TIME) in buildExerciseSegment()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | DataUsagePreferenceControllerTest.kt | 70 on { queryUsage(any()) } doReturn NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>() 118 val usageData = NetworkUsageData(START_TIME, END_TIME, 1L) in <lambda>() 145 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>() 161 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>() 177 val usageData = NetworkUsageData(START_TIME, END_TIME, DataUnit.MEBIBYTES.toBytes(1)) in <lambda>() 191 const val END_TIME = 30L constant
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | NetworkStatsRepositoryTest.kt | 37 on { querySummaryForDevice(template, START_TIME, END_TIME) } doReturn BUCKET in <lambda>() 48 val bytes = repository.querySummaryForDevice(START_TIME, END_TIME) in querySummaryForDevice() 55 const val END_TIME = 2L constant
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionFragment.kt | 27 import com.android.healthconnect.controller.deletion.DeletionConstants.END_TIME in <lambda>() 69 val endTime = bundle.getParcelable(END_TIME, Instant::class.java) in <lambda>()
|
D | DeletionConstants.kt | 67 const val END_TIME = "END_TIME" constant
|
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | MigrationEntityParcelTest.java | 49 private static final Instant END_TIME = Instant.now().truncatedTo(ChronoUnit.MILLIS); field in MigrationEntityParcelTest 52 getMetadata(ENTITY_ID, APP_PACKAGE_NAME), END_TIME, fromMeters(3D))
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/ |
D | DataEntriesFragment.kt | 45 import com.android.healthconnect.controller.deletion.DeletionConstants.END_TIME in <lambda>() 296 DELETION_TYPE to deletionType, START_TIME to startTime, END_TIME to endTime)) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/entrydetails/ |
D | DataEntryDetailsFragment.kt | 47 import com.android.healthconnect.controller.deletion.DeletionConstants.END_TIME in <lambda>() 257 DELETION_TYPE to deletionType, START_TIME to startTime, END_TIME to endTime)) in <lambda>()
|