Home
last modified time | relevance | path

Searched refs:RuntimeHooks (Results 1 – 5 of 5) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/
DRuntimeHooks.java40 public final class RuntimeHooks { class
44 private RuntimeHooks() { in RuntimeHooks() method in RuntimeHooks
64 if (RuntimeHooks.zoneIdSupplier != null) { in setTimeZoneIdSupplier()
67 RuntimeHooks.zoneIdSupplier = Objects.requireNonNull(zoneIdSupplier); in setTimeZoneIdSupplier()
76 RuntimeHooks.zoneIdSupplier = null; in clearTimeZoneIdSupplier()
85 return RuntimeHooks.zoneIdSupplier; in getTimeZoneIdSupplier()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java19 import dalvik.system.RuntimeHooks;
419 Supplier<String> originalTimeZoneSupplier = RuntimeHooks.getTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId()
423 RuntimeHooks.clearTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId()
424 RuntimeHooks.setTimeZoneIdSupplier(() -> "GMT-12:00"); in testGetTimeZone_forNonOlsonId()
427 RuntimeHooks.clearTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId()
430 RuntimeHooks.setTimeZoneIdSupplier(originalTimeZoneSupplier); in testGetTimeZone_forNonOlsonId()
438 Supplier<String> originalTimeZoneSupplier = RuntimeHooks.getTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId_targetSdkVersion29()
442 RuntimeHooks.clearTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId_targetSdkVersion29()
443 RuntimeHooks.setTimeZoneIdSupplier(() -> "GMT-12:00"); in testGetTimeZone_forNonOlsonId_targetSdkVersion29()
446 RuntimeHooks.clearTimeZoneIdSupplier(); in testGetTimeZone_forNonOlsonId_targetSdkVersion29()
[all …]
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java56 import dalvik.system.RuntimeHooks;
712 Supplier<String> tzGetter = RuntimeHooks.getTimeZoneIdSupplier(); in getDefaultRef()
/libcore/
Dnon_openjdk_java_files.bp55 "dalvik/src/main/java/dalvik/system/RuntimeHooks.java",
/libcore/api/
Dmodule-lib-current.txt249 public final class RuntimeHooks {