/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | TestUtils.java | 47 public static long START_TIME = Instant.now().minus(Period.ofDays(1)).toEpochMilli(); field in TestUtils 52 .setTime(START_TIME + 2) in buildInternalLocationAllFields() 62 .setTime(START_TIME + 1) in buildInternalLocation() 81 .setStartTime(START_TIME) in buildExerciseSessionInternal() 101 .setStartTime(START_TIME) in buildPlannedExerciseSessionInternal() 102 .setEndTime(START_TIME) in buildPlannedExerciseSessionInternal() 142 .setStartTime(START_TIME) in buildSleepSessionInternal() 156 return new ExerciseLapInternal().setStarTime(START_TIME).setEndTime(END_TIME).setLength(10); in buildExerciseLap() 161 .setStartTime(START_TIME) in buildSleepStage() 168 .setStarTime(START_TIME) in buildExerciseSegment()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseLapTest.java | 36 private static final Instant START_TIME = Instant.ofEpochMilli((long) 1e1); field in ExerciseLapTest 42 new ExerciseLap.Builder(START_TIME, END_TIME) in testExerciseLap_buildLap_buildCorrectObject() 45 assertThat(lap.getStartTime()).isEqualTo(START_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 | 61 private static final Instant START_TIME = Instant.ofEpochMilli((long) 1e10); 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() 104 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, INTERMEDIATE_TIME) in testSleepSession_sleepStageEndTimeIllegal_throwsException() local 108 START_TIME, in testSleepSession_sleepStageEndTimeIllegal_throwsException() 117 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testSleepSession_stagesOverlap_throwsException() local 121 START_TIME, in testSleepSession_stagesOverlap_throwsException() 136 START_TIME, END_TIME, SleepSessionRecord.StageType.STAGE_TYPE_AWAKE); in testSleepSession_buildStage_gettersAreCorrect() 138 assertThat(stage1.getStartTime()).isEqualTo(START_TIME); in testSleepSession_buildStage_gettersAreCorrect() [all …]
|
D | ExerciseSegmentTest.java | 36 private static final Instant START_TIME = Instant.ofEpochMilli((long) 1e1); field in ExerciseSegmentTest 43 START_TIME, in testExerciseSegment_buildSegment_buildCorrectObject() 48 assertThat(segment.getStartTime()).isEqualTo(START_TIME); in testExerciseSegment_buildSegment_buildCorrectObject() 59 START_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 | 64 private static final Instant START_TIME = Instant.ofEpochMilli((long) 1e9); 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() 346 assertThat(record.getStartTime()).isEqualTo(START_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/robotests/src/com/android/settings/biometrics/fingerprint/ |
D | MessageDisplayControllerTest.java | 44 private static final long START_TIME = 0L; field in MessageDisplayControllerTest 76 when(mClock.millis()).thenReturn(START_TIME); in showsHelpMessageAfterCollectTime() 88 when(mClock.millis()).thenReturn(START_TIME); in showsProgressMessageAfterCollectTime() 100 when(mClock.millis()).thenReturn(START_TIME); in helpDisplayedForMinimumDisplayTime() 120 when(mClock.millis()).thenReturn(START_TIME); in progressDisplayedForMinimumDisplayTime() 140 when(mClock.millis()).thenReturn(START_TIME); in prioritizeHelpMessage_thenShowProgress() 159 when(mClock.millis()).thenReturn(START_TIME); in prioritizeProgressOverHelp() 175 when(mClock.millis()).thenReturn(START_TIME); in prioritizeHelpMessageByCount() 192 when(mClock.millis()).thenReturn(START_TIME); in ignoreSameProgress()
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 58 static final Instant START_TIME = yesterdayAt("11:00").truncatedTo(ChronoUnit.MILLIS); field in ExerciseRouteTestHelper 83 return getExerciseSessionWithRoute(metadata, START_TIME); in getExerciseSessionWithRoute() 91 return getExerciseSession(metadata, START_TIME, getAnotherRoute(START_TIME)); in getExerciseSessionWithAnotherRoute() 95 return getExerciseSession(metadata, START_TIME, null); in getExerciseSessionWithoutRoute()
|
/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>() 190 const val START_TIME = 10L 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() 54 const val START_TIME = 1L constant
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceControllerTest.kt | 54 verify(preference).setTime(START_TIME, END_TIME) in update() 60 const val START_TIME = 1L constant 63 val UsageData = NetworkUsageData(startTime = START_TIME, endTime = END_TIME, usage = 10)
|
D | DataUsageListAppsControllerTest.kt | 51 val data = NetworkUsageData(START_TIME, END_TIME, 0) in setUp() 66 ).containsExactly(END_TIME, START_TIME).inOrder() in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() 70 const val START_TIME = 1521583200000L constant
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | TriggerSpec.java | 197 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)) { in Builder() 200 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)); in Builder() 245 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)) { in Builder() 248 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)); in Builder()
|
D | TriggerSpecs.java | 65 String START_TIME = "start_time"; field
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionFragment.kt | 31 import com.android.healthconnect.controller.deletion.DeletionConstants.START_TIME in <lambda>() 68 val startTime = bundle.getParcelable(START_TIME, Instant::class.java) in <lambda>()
|
D | DeletionConstants.kt | 64 const val START_TIME = "START_TIME" constant
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeTest.java | 66 private static final long START_TIME = 10000; field in CarVolumeTest 102 when(mMockClock.uptimeMillis()).thenReturn(START_TIME); in setUp() 390 .thenReturn(START_TIME + (volumeCounter * deltaTime)); in getSuggestedAudioContext_withStillActiveContext_retPrevActiveContextMultipleTimes() 471 when(mMockClock.uptimeMillis()).thenReturn(START_TIME + volumeCounter * deltaTime); in getSuggestedAudioContext_afterMultipleQueriesAndNewContextCall_returnsNewContext() 476 .thenReturn(START_TIME + (TRIAL_COUNTS * deltaTime) + KEY_EVENT_TIMEOUT_MS); in getSuggestedAudioContext_afterMultipleQueriesAndNewContextCall_returnsNewContext()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 318 val START_TIME = Instant.parse("2023-06-12T22:30:00Z") constant 363 getDistanceRecord(Length.fromMeters(1500.0), START_TIME) 368 val WEIGHT_STARTDATE_100: WeightRecord = getWeightRecord(START_TIME, Mass.fromGrams(100000.0))
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/ |
D | LoadEntriesHelperUseCaseTest.kt | 62 import com.android.healthconnect.controller.tests.utils.START_TIME in <lambda>() 108 private val defaultStartTime: Instant = START_TIME in <lambda>() 365 timeSource.setNow(START_TIME) in <lambda>() 388 timeSource.setNow(START_TIME) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/ |
D | DataEntriesFragment.kt | 48 import com.android.healthconnect.controller.deletion.DeletionConstants.START_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 | 49 import com.android.healthconnect.controller.deletion.DeletionConstants.START_TIME in <lambda>() 257 DELETION_TYPE to deletionType, START_TIME to startTime, END_TIME to endTime)) in <lambda>()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncSourceFetcher.java | 694 if (!jsonReportWindows.isNull(TriggerSpecs.FlexEventReportJsonKeys.START_TIME)) { in getValidEventReportWindows() 696 TriggerSpecs.FlexEventReportJsonKeys.START_TIME))) { in getValidEventReportWindows() 702 jsonReportWindows.getLong(TriggerSpecs.FlexEventReportJsonKeys.START_TIME); in getValidEventReportWindows() 703 jsonReportWindows.put(TriggerSpecs.FlexEventReportJsonKeys.START_TIME, in getValidEventReportWindows()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | ZoneAudioPlaybackCallback.java | 265 .AudioAttributesToStartTime.START_TIME, in dumpProtoLastActiveConfigsAndAudioAttributesStartTime()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | E2EInteropMockTest.java | 80 private static final long START_TIME = 1674000000000L; field in E2EInteropMockTest
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 2468 proto.write(PerformanceDump.IoOveruseStats.START_TIME, in dumpUsageByUserPackageLocked()
|