Home
last modified time | relevance | path

Searched refs:setTime (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DTimeChangeTests.java89 private void setTime(long rtcToSet) { in setTime() method in TimeChangeTests
91 SystemUtil.runWithShellPermissionIdentity(() -> mAlarmManager.setTime(rtcToSet)); in setTime()
124 setTime(newRtc); in elapsedAlarmsUnaffected()
139 setTime(newRtc); in rtcAlarmsRescheduled()
153 setTime(expectedCorrectRtc); in tearDown()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java138 assertTrue(mMovie.setTime(1000)); in testSetTime()
139 assertFalse(mMovie.setTime(Integer.MAX_VALUE)); in testSetTime()
140 assertFalse(mMovie.setTime(Integer.MIN_VALUE)); in testSetTime()
141 assertFalse(mMovie.setTime(-1)); in testSetTime()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGenParameterSpecTest.java297 certNotBeforeDate.setTime(1234567890L); in testImmutabilityViaSetterParams()
301 certNotAfterDate.setTime(1234567890L); in testImmutabilityViaSetterParams()
321 keyValidityStartDate.setTime(1234567890L); in testImmutabilityViaSetterParams()
326 keyValidityEndDateForOrigination.setTime(1234567890L); in testImmutabilityViaSetterParams()
332 keyValidityEndDateForConsumption.setTime(1234567890L); in testImmutabilityViaSetterParams()
373 spec.getCertificateNotBefore().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
377 spec.getCertificateNotAfter().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
390 spec.getKeyValidityStart().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
395 spec.getKeyValidityForOriginationEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
401 spec.getKeyValidityForConsumptionEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
DKeyProtectionTest.java243 keyValidityStartDate.setTime(1234567890L); in testImmutabilityViaSetterParams()
248 keyValidityEndDateForOrigination.setTime(1234567890L); in testImmutabilityViaSetterParams()
254 keyValidityEndDateForConsumption.setTime(1234567890L); in testImmutabilityViaSetterParams()
302 spec.getKeyValidityStart().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
307 spec.getKeyValidityForOriginationEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
313 spec.getKeyValidityForConsumptionEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
DKeyInfoTest.java88 info.getKeyValidityStart().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
93 info.getKeyValidityForOriginationEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
99 info.getKeyValidityForConsumptionEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackUtils.java145 setTime(System.currentTimeMillis() + offsetMillis); in forwardTimeBy()
230 private static void setTime(long millis) { in setTime() method in RollbackUtils
233 am.setTime(millis); in setTime()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java69 l.setTime(1); in testSet()
98 l.setTime(1); in testValues()
100 l.setTime(Long.MAX_VALUE); in testValues()
379 l.setTime(1); in testParcelRoundtrip()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java61 location.setTime(System.currentTimeMillis()); in createLocation()
/cts/tests/tests/os/src/android/os/health/cts/
DTimerStatTest.java68 timer.setTime(5000); in testSetTime()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/
DLocationProvider.java101 location.setTime(System.currentTimeMillis()); in createLocation()
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DTimePickerTestCase.java82 mActivity.setTime(10, 40); in testAutoFillAndSave()
/cts/tools/vm-tests-tf/build/src/util/build/
DJarBuildStep.java85 entry.setTime(absoluteInputFile.lastModified()); in build()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DTimeTest.java379 .setTime(sDeviceState.dpc().componentName(), MILLIS_SINCE_EPOCH); in setTime_timeIsSet()
404 .setTime(sDeviceState.dpc().componentName(), MILLIS_SINCE_EPOCH); in setTime_doesNotApply_timeIsNotSet()
425 .setTime(sDeviceState.dpc().componentName(), MILLIS_SINCE_EPOCH); in setTime_autoTimeIsEnabled_returnsFalse()
441 .setTime(sDeviceState.dpc().componentName(), MILLIS_SINCE_EPOCH)); in setTime_notAllowed_throwsException()
455 .setTime(sDeviceState.dpc().componentName(), MILLIS_SINCE_EPOCH); in setTime_logsEvent()
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DSyncManagerCtsSyncAdapter.java73 .setTime(SystemClock.elapsedRealtime()) in onPerformSync()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAbstractTimePickerActivity.java125 public void setTime(int hour, int minute) { in setTime() method in AbstractTimePickerActivity
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java328 location.setTime(1); in testGnssProvidedClock()
333 location.setTime(java.lang.System.currentTimeMillis()); in testGnssProvidedClock()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DRcsContactUceCapabilityTest.java129 .setTime(Instant.now()) in createPresenceMmtelTuple()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DApiMap.java207 newEntry.setTime(entry.getTime()); in scanJarFile()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DSystemUpdatePolicyTest.java449 mDevicePolicyManager.setTime(ADMIN_RECEIVER_COMPONENT, c.getTimeInMillis()); in setSystemDate()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieManagerTest.java471 date.setTime(date.getTime() + millisecondsTillExpiry); in makeExpiringCookieMs()
DGeolocationTest.java306 location.setTime(java.lang.System.currentTimeMillis()); in updateLocation()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java71 doAnswer(answer).when(spy).setTime(any(), anyLong()); in getWrapper()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java381 l.setTime(GPS_CALENDAR.getTimeInMillis()); in testSingleImageThumbnail()
DStillCaptureTest.java746 sTestLocation.setTime(1199145600000L); in focalLengthTestByCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java177 sTestLocation0.setTime(1199145600000L);
182 sTestLocation1.setTime(1199145601000L);
187 sTestLocation2.setTime(1199145602000L);

12