/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 38 import java.time.Duration; 39 import java.time.Instant; 40 import java.time.LocalDate; 41 import java.time.LocalDateTime; 42 import java.time.LocalTime; 43 import java.time.Month; 44 import java.time.ZoneId; 45 import java.time.ZoneOffset; 46 import java.time.temporal.ChronoUnit; 47 import java.time.temporal.JulianFields; [all …]
|
/cts/tests/app/BroadcastsTest/common/src/com/android/app/cts/broadcasts/ |
D | BroadcastReceipt.java | 68 public static String formatRealtime(long time) { in formatRealtime() argument 69 return formatTime(time, SystemClock.elapsedRealtime()); in formatRealtime() 72 public static String formatTime(long time, long referenceTime) { in formatTime() argument 73 long diff = time - referenceTime; in formatTime() 75 return time + " (in " + diff + " ms)"; in formatTime() 78 return time + " (" + -diff + " ms ago)"; in formatTime() 80 return time + " (now)"; in formatTime()
|
/cts/tests/libcore/ojluni/ |
D | Android.bp | 105 "tck.java.time.serial", 106 "tck.java.time", 107 "test.java.time", 116 "tck.java.time.chrono.serial", 117 "test.java.time.chrono", 118 "tck.java.time.chrono", 127 "test.java.time.format", 128 "tck.java.time.format", 137 "tck.java.time.temporal", 138 "tck.java.time.temporal.serial", [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SystemClockNetworkTimeTest.java | 19 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 20 import static android.app.time.cts.shell.DeviceConfigKeys.TimeDetector.KEY_TIME_DETECTOR_LOWER_BOUN… 21 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 26 import android.app.time.cts.shell.DeviceConfigShellHelper; 27 import android.app.time.cts.shell.DeviceShellCommandExecutor; 28 import android.app.time.cts.shell.TimeDetectorShellHelper; 29 import android.app.time.cts.shell.TimeDetectorShellHelper.TestUnixEpochTime; 30 import android.app.time.cts.shell.device.InstrumentationShellCommandExecutor; 45 import java.time.DateTimeException; 46 import java.time.Duration; [all …]
|
D | ConditionVariableTest.java | 49 long time = System.currentTimeMillis(); in testConditionVariable() local 51 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable() 55 time = System.currentTimeMillis(); in testConditionVariable() 57 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable() 60 time = System.currentTimeMillis(); in testConditionVariable() 75 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable() 79 time = System.currentTimeMillis(); in testConditionVariable()
|
/cts/hostsidetests/time/host/src/android/time/cts/host/ |
D | LocationTimeZoneManagerHostTest.java | 17 package android.time.cts.host; 20 import static android.app.time.cts.shell.DeviceConfigKeys.LocationTimeZoneManager.KEY_LTZP_EVENT_FI… 21 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 22 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 23 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_OK; 24 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_TEMPO… 25 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.FAKE_TZPS_APP_APK; 26 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.FAKE_TZPS_APP_PACKAGE; 27 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.OPERATION_STATUS_OK; 28 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_CERTAIN; [all …]
|
D | LocationTimeZoneManagerStatsTest.java | 17 package android.time.cts.host; 19 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 20 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 21 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.FAKE_TZPS_APP_APK; 22 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.FAKE_TZPS_APP_PACKAGE; 26 import android.app.time.cts.shell.DeviceConfigShellHelper; 27 import android.app.time.cts.shell.DeviceShellCommandExecutor; 28 import android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper; 29 import android.app.time.cts.shell.LocationShellHelper; 30 import android.app.time.cts.shell.LocationTimeZoneManagerShellHelper; [all …]
|
D | TimeZoneDetectorStatsTest.java | 17 package android.time.cts.host; 20 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 21 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 26 import android.app.time.cts.shell.DeviceConfigShellHelper; 27 import android.app.time.cts.shell.DeviceShellCommandExecutor; 28 import android.app.time.cts.shell.LocationShellHelper; 29 import android.app.time.cts.shell.TimeZoneDetectorShellHelper; 30 import android.app.time.cts.shell.host.HostShellCommandExecutor;
|
/cts/hostsidetests/time/device/fake_tzps_app/src/com/android/time/cts/fake_tzps_app/tzps/ |
D | FakeTimeZoneProviderService.java | 16 package com.android.time.cts.fake_tzps_app.tzps; 18 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_CERTAIN; 19 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_DISABLED; 20 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_INITIALI… 21 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_PERM_FAI… 23 import android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper; 29 import com.android.time.cts.fake_tzps_app.fixture.FakeTimeZoneProviderRegistry;
|
/cts/tools/incremental-cts/testdata/ |
D | perf_dump.txt | 6 sample_id: time 595063921188552 14 sample_id: time 595063921188552 20 sample_id: time 0 26 sample_id: time 595063921159958 34 sample_id: time 595063921188552 42 sample_id: time 595063921188552 50 sample_id: time 595063921188552 58 sample_id: time 595063921188552 66 sample_id: time 595063921188552
|
/cts/tests/tests/time/src/android/app/time/cts/ |
D | NetworkTimeUpdateServiceSntpTest.java | 17 package android.app.time.cts; 19 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 20 import static android.app.time.cts.shell.DeviceConfigKeys.TimeDetector.KEY_TIME_DETECTOR_LOWER_BOUN… 21 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 28 import android.app.time.cts.shell.DeviceConfigShellHelper; 29 import android.app.time.cts.shell.DeviceShellCommandExecutor; 30 import android.app.time.cts.shell.NetworkTimeUpdateServiceShellHelper; 31 import android.app.time.cts.shell.TimeDetectorShellHelper; 32 import android.app.time.cts.shell.TimeDetectorShellHelper.TestNetworkTime; 33 import android.app.time.cts.shell.device.InstrumentationShellCommandExecutor; [all …]
|
D | TimeManagerTest.java | 17 package android.app.time.cts; 19 import static android.app.time.Capabilities.CAPABILITY_NOT_ALLOWED; 20 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE; 21 import static android.app.time.Capabilities.CAPABILITY_POSSESSED; 22 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME; 23 import static android.app.time.cts.shell.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT; 32 import android.app.time.ExternalTimeSuggestion; 33 import android.app.time.TimeCapabilities; 34 import android.app.time.TimeCapabilitiesAndConfig; 35 import android.app.time.TimeConfiguration; [all …]
|
D | ExternalTimeSuggestionTest.java | 17 package android.app.time.cts; 19 import static android.app.time.cts.ParcelableTestSupport.assertRoundTripParcelable; 20 import static android.app.time.cts.ParcelableTestSupport.roundTripParcelable; 25 import android.app.time.ExternalTimeSuggestion;
|
D | TimeConfigurationTest.java | 17 package android.app.time.cts; 19 import static android.app.time.cts.ParcelableTestSupport.assertRoundTripParcelable; 23 import android.app.time.TimeConfiguration;
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 39 public static <T> T await(Future<T> f, long time, TimeUnit timeUnit) { in await() argument 41 return f.get(time, timeUnit); in await() 51 public static Throwable awaitFailure(Future<?> f, long time, TimeUnit timeUnit) { in awaitFailure() argument 52 return assertThrows(() -> await(f, time, timeUnit)); in awaitFailure() 60 Future<T> f, long time, TimeUnit timeUnit) { in awaitCancellation() argument 61 Throwable ex = awaitFailure(f, time, timeUnit); in awaitCancellation()
|
/cts/hostsidetests/time/device/fake_tzps_app/src/com/android/time/cts/fake_tzps_app/fixture/ |
D | FakeTimeZoneProviderFixtureProvider.java | 16 package com.android.time.cts.fake_tzps_app.fixture; 18 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_BLOCK… 19 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_BLOCK… 20 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_NOT_A… 21 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_OK; 22 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.DEPENDENCY_STATUS_TEMPO… 23 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.OPERATION_STATUS_FAILED; 24 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.OPERATION_STATUS_NOT_AP… 25 import static android.app.time.cts.shell.FakeTimeZoneProviderAppShellHelper.OPERATION_STATUS_OK; 35 import com.android.time.cts.fake_tzps_app.tzps.FakeTimeZoneProviderService;
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_vibration_restriction.py | 18 import time 69 time.sleep(test_length_second) 79 time.sleep(_SLEEP_BETWEEN_SAMPLES_SEC) 81 time.sleep(_SLEEP_COLLECT_SAMPLES_SEC) 92 time.sleep(_SLEEP_BETWEEN_SAMPLES_SEC) 96 time.sleep(_SLEEP_COLLECT_SAMPLES_SEC)
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 78 long time = SystemClock.uptimeMillis(); in testTimeToValues1() local 81 interpolator.setKeyFrame(0, (int)(time - 10000), new float[] {1.0f}); in testTimeToValues1() 82 interpolator.setKeyFrame(1, (int)(time + 10000), new float[] {2.0f}); in testTimeToValues1() 87 time = SystemClock.uptimeMillis(); in testTimeToValues1() 88 interpolator.setKeyFrame(0, (int)(time + 1000), new float[] {2.0f}); in testTimeToValues1() 89 interpolator.setKeyFrame(1, (int)(time + 2000), new float[] {3.0f}); in testTimeToValues1() 94 time = SystemClock.uptimeMillis(); in testTimeToValues1() 95 interpolator.setKeyFrame(0, (int)(time - 2000), new float[] {2.0f}); in testTimeToValues1() 96 interpolator.setKeyFrame(1, (int)(time - 1000), new float[] {3.0f}); in testTimeToValues1() 277 private void verifyValue(int time, float expected, Result expectedResult, in verifyValue() argument [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContentPaneFocusTest.java | 161 long time = SystemClock.uptimeMillis(); in sendMetaHotkey() local 162 KeyEvent metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_DOWN, keyCode, in sendMetaHotkey() 165 time = SystemClock.uptimeMillis(); in sendMetaHotkey() 166 metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_UP, keyCode, in sendMetaHotkey() 174 long time = SystemClock.uptimeMillis(); in sendMetaKey() local 175 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_CTRL_LEFT, 0, in sendMetaKey()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 145 public static Predicate<DeviceEvent> isNewerThan(long time) { in isNewerThan() argument 146 return e -> e.time >= time; in isNewerThan() 164 public final long time; field in DeviceEvent 166 private DeviceEvent(String sender, DeviceEventType type, long time) { in DeviceEvent() argument 169 this.time = time; in DeviceEvent() 174 return "Event{ time:" + time + " type:" + type + " sender:" + sender + " }"; in toString() 204 mTime.putLong(values, event.time); in buildContentValues()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/ |
D | GpsTime.java | 24 import java.time.ZoneId; 25 import java.time.ZonedDateTime; 26 import java.time.Instant; 169 public static int getLeapSecond(ZonedDateTime time) { 170 if (LEAP_SECOND_DATE_2017.compareTo(time) <= 0) { 172 } else if (LEAP_SECOND_DATE_2015.compareTo(time) <= 0) { 174 } else if (LEAP_SECOND_DATE_2012.compareTo(time) <= 0) { 176 } else if (LEAP_SECOND_DATE_1981.compareTo(time) <= 0) { 307 GpsTime time = (GpsTime) other; 308 return getNanosSinceGpsEpoch() == time.getNanosSinceGpsEpoch();
|
D | SatelliteClockCorrectionCalculator.java | 149 private static double fixWeekRollover(double time) { in fixWeekRollover() argument 150 double correctedTime = time; in fixWeekRollover() 151 if (time > SECONDS_IN_WEEK / 2.0) { in fixWeekRollover() 152 correctedTime = time - SECONDS_IN_WEEK; in fixWeekRollover() 154 if (time < -SECONDS_IN_WEEK / 2.0) { in fixWeekRollover() 155 correctedTime = time + SECONDS_IN_WEEK; in fixWeekRollover()
|
/cts/tests/tests/companion/common/src/android/companion/cts/common/ |
D | InvocationTracker.kt | 19 import kotlin.time.Duration 20 import kotlin.time.Duration.Companion.milliseconds 21 import kotlin.time.Duration.Companion.seconds
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | utils.rscript | 17 float time = end(); 20 rsDebug("test_color_pack_unpack FAILED", time); 23 rsDebug("test_color_pack_unpack PASSED", time);
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioEffectTest.java | 412 int time = 500; in test3_1SetParameterIntInt() local 413 if (value[0] == time) { in test3_1SetParameterIntInt() 414 time = 1000; in test3_1SetParameterIntInt() 416 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt() 421 ((float)value[0] > (float)(time / DELAY_TOLERANCE)) && in test3_1SetParameterIntInt() 422 ((float)value[0] < (float)(time * DELAY_TOLERANCE))); in test3_1SetParameterIntInt() 480 int time = 500; in test3_3SetParameterIntByteArray() local 481 if (mEffect.byteArrayToInt(value) == time) { in test3_3SetParameterIntByteArray() 482 time = 1000; in test3_3SetParameterIntByteArray() 484 value = mEffect.intToByteArray(time); in test3_3SetParameterIntByteArray() [all …]
|