Home
last modified time | relevance | path

Searched refs:TimeZone (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java44 import java.util.TimeZone;
65 TimeZone tz = TimeZone.getTimeZone(name); in testUnitedStates()
67 TimeZone guess; in testUnitedStates()
87 TimeZone tz = TimeZone.getTimeZone(name); in testWeirdUnitedStates()
89 TimeZone guess; in testWeirdUnitedStates()
104 TimeZone tz = TimeZone.getTimeZone(name); in testOld()
106 TimeZone guess; in testOld()
125 TimeZone tz = TimeZone.getTimeZone(name); in testWorldWeird()
127 TimeZone guess; in testWorldWeird()
135 private static TimeZone guessTimeZone(Calendar c, String country) { in guessTimeZone()
/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java42 import java.util.TimeZone;
47 private TimeZone mDefaultTimeZone;
54 mDefaultTimeZone = TimeZone.getDefault(); in setup()
56 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in setup()
63 TimeZone.setDefault(mDefaultTimeZone); in tearDown()
DDateFormatTest.java58 import java.util.TimeZone;
221 Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("GMT+00:00")); in test2038()
245 TimeZone utc = TimeZone.getTimeZone("UTC"); in checkFormat()
DTimeTest.java58 import java.util.TimeZone;
1294 assertEquals(TimeZone.getDefault().getID(), r); in testGetCurrentTimezone()
2969 TimeZone tz = TimeZone.getTimeZone(timeZoneId); in calculateExpectedMillis()
3010 String[] tzIds = TimeZone.getAvailableIDs(); in test_toMillisAndNormalizeGenerallyWork()
3012 TimeZone timeZone = TimeZone.getTimeZone(tzId); in test_toMillisAndNormalizeGenerallyWork()
/cts/tests/core/runner-axt/src/com/android/cts/runner/
DCtsLibcoreTestRunListener.java42 import java.util.TimeZone;
200 private final TimeZone mDefaultTimeZone;
208 mDefaultTimeZone = TimeZone.getDefault(); in TestEnvironment()
234 TimeZone.setDefault(mDefaultTimeZone); in reset()
/cts/tests/tests/hardware/src/android/hardware/cts/
DGeomagneticFieldTest.java24 import java.util.TimeZone;
59 .setTimeZone(TimeZone.getTimeZone("UTC")) in assertMagneticField()
/cts/tests/tests/widget/src/android/widget/cts/
DTextClockTest.java54 import java.util.TimeZone;
111 for (String id : TimeZone.getAvailableIDs()) { in testUpdate12_24()
112 final TimeZone timeZone = TimeZone.getTimeZone(id); in testUpdate12_24()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/policies/
DTimeZone.java40 public final class TimeZone { class
/cts/hostsidetests/packagemanager/packagesetting/src/com/android/tests/packagesetting/host/
DPackageSettingTest.java34 import java.util.TimeZone;
104 sdf.setTimeZone(TimeZone.getTimeZone(getDeviceTimezone())); in testFirstInstallTimeMatchesDumpsys()
/cts/tests/tests/os/src/android/os/cts/
DCtsRemoteService.java44 return java.util.TimeZone.getDefault().getID();
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DTimeTest.java56 import java.util.TimeZone;
468 @PolicyAppliesTest(policy = com.android.bedstead.harrier.policies.TimeZone.class)
481 Poll.forValue("timezone ID", () -> TimeZone.getDefault().getID()) in setTimeZone_timeZoneIsSet()
503 @PolicyDoesNotApplyTest(policy = com.android.bedstead.harrier.policies.TimeZone.class)
516 assertThat(TimeZone.getDefault().getDisplayName()).isNotEqualTo(TIMEZONE); in setTimeZone_doesNotApply_timeZoneIsNotSet()
524 @PolicyAppliesTest(policy = com.android.bedstead.harrier.policies.TimeZone.class)
537 assertThat(TimeZone.getDefault().getDisplayName()).isNotEqualTo(TIMEZONE); in setTimeZone_autoTimeZoneIsEnabled_returnsFalse()
545 @CannotSetPolicyTest(policy = com.android.bedstead.harrier.policies.TimeZone.class,
/cts/tests/app/app/src/android/app/stubs/
DStubRemoteService.java47 return java.util.TimeZone.getDefault().getID();
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpMessagesGenerator.java54 import java.util.TimeZone;
216 Calendar currentTime = GregorianCalendar.getInstance(TimeZone.getTimeZone("UTC")); in generateSuplPositionInitLocalLocationMessage()
/cts/tests/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/
DServiceKillTestService.java50 import java.util.TimeZone;
599 getDuration() - TimeZone.getDefault().getOffset(0), in toReportString()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java73 import java.util.TimeZone;
100 Calendar.getInstance(TimeZone.getTimeZone("GMT+0"));
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java71 import java.util.TimeZone;
1245 formatter.setTimeZone(TimeZone.getTimeZone("UTC")); in getGpsDateTimeFromJpeg()
/cts/tools/release-parser/tests/resources/
DCtsJniTestCases.apk.pb.txt3993 name: "java.util.TimeZone"
3996 return_type: "java.util.TimeZone"
4000 parameters: "java.util.TimeZone"
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt50364 method public static java.util.TimeZone getTimeZone(int, boolean, long, String);