Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 163) sorted by relevance

1234567

/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java38 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/hostsidetests/time/host/src/android/time/cts/host/
DBaseLocationTimeZoneManagerHostTest.java16 package android.time.cts.host;
18 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME;
19 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PRIMARY_PROVIDER_INDEX;
20 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PROVIDER_MODE_SIMULATED;
21 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.SECONDARY_PROVIDER_INDE…
23 import android.app.time.LocationTimeZoneManagerServiceStateProto;
24 import android.app.time.cts.shell.DeviceConfigShellHelper;
25 import android.app.time.cts.shell.DeviceShellCommandExecutor;
26 import android.app.time.cts.shell.LocationShellHelper;
27 import android.app.time.cts.shell.LocationTimeZoneManagerShellHelper;
[all …]
DLocationTimeZoneManagerHostTest.java17 package android.time.cts.host;
20 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PROVIDER_MODE_DISABLED;
21 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PROVIDER_MODE_SIMULATED;
22 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PRIMARY_PROVIDER_INDEX;
23 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.SECONDARY_PROVIDER_INDE…
27 import android.app.time.LocationTimeZoneManagerServiceStateProto;
28 import android.app.time.TimeZoneProviderStateEnum;
29 import android.app.time.TimeZoneProviderStateProto;
DTimeZoneDetectorStatsTest.java17 package android.time.cts.host;
19 import static android.app.time.cts.shell.DeviceConfigKeys.NAMESPACE_SYSTEM_TIME;
24 import android.app.time.cts.shell.DeviceConfigShellHelper;
25 import android.app.time.cts.shell.DeviceShellCommandExecutor;
26 import android.app.time.cts.shell.LocationShellHelper;
27 import android.app.time.cts.shell.host.HostShellCommandExecutor;
28 import android.app.time.cts.shell.TimeZoneDetectorShellHelper;
DLocationTimeZoneManagerStatsTest.java17 package android.time.cts.host;
19 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PRIMARY_PROVIDER_INDEX;
20 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PROVIDER_MODE_DISABLED;
21 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.PROVIDER_MODE_SIMULATED;
22 import static android.app.time.cts.shell.LocationTimeZoneManagerShellHelper.SECONDARY_PROVIDER_INDE…
/cts/apps/CameraITS/tests/scene_change/
Dtest_scene_change.py20 import time
92 t0 = time.time()
94 time.sleep(delay)
99 t = time.time() - t0
126 t0 = time.time()
127 time.sleep(delay)
128 logging.debug('cap event start: %.6f', time.time() - t0)
130 logging.debug('cap event stop: %.6f', time.time() - t0)
/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java47 long time = System.currentTimeMillis(); in testConditionVariable() local
49 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable()
53 time = System.currentTimeMillis(); in testConditionVariable()
55 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable()
58 time = System.currentTimeMillis(); in testConditionVariable()
73 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable()
77 time = System.currentTimeMillis(); in testConditionVariable()
/cts/tests/tests/time/src/android/app/time/cts/
DTimeManagerTest.java17 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.DeviceConfigShellHelper.SYNC_DISABLED_MODE_UNTIL_REBOOT;
28 import android.app.time.Capabilities;
29 import android.app.time.ExternalTimeSuggestion;
30 import android.app.time.TimeManager;
31 import android.app.time.TimeZoneCapabilities;
32 import android.app.time.TimeZoneCapabilitiesAndConfig;
33 import android.app.time.TimeZoneConfiguration;
34 import android.app.time.cts.shell.DeviceConfigKeys;
[all …]
DExternalTimeSuggestionTest.java17 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;
/cts/tools/incremental-cts/testdata/
Dperf_dump.txt6 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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAsyncUtils.java39 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/tests/tests/view/src/android/view/cts/
DContentPaneFocusTest.java150 long time = SystemClock.uptimeMillis(); in sendMetaHotkey() local
151 KeyEvent metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_DOWN, keyCode, in sendMetaHotkey()
154 time = SystemClock.uptimeMillis(); in sendMetaHotkey()
155 metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_UP, keyCode, in sendMetaHotkey()
163 long time = SystemClock.uptimeMillis(); in sendMetaKey() local
164 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_META_LEFT, 0, in sendMetaKey()
/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolatorTest.java78 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/apps/CameraITS/tests/scene0/
Dtest_vibration_restriction.py18 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/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/
DDeviceEvent.java145 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/
DGpsTime.java24 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();
DSatelliteClockCorrectionCalculator.java149 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/media/src/android/media/cts/
DAudioEffectTest.java385 int time = 500; in test3_1SetParameterIntInt() local
386 if (value[0] == time) { in test3_1SetParameterIntInt()
387 time = 1000; in test3_1SetParameterIntInt()
389 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt()
394 ((float)value[0] > (float)(time / DELAY_TOLERANCE)) && in test3_1SetParameterIntInt()
395 ((float)value[0] < (float)(time * DELAY_TOLERANCE))); in test3_1SetParameterIntInt()
451 int time = 500; in test3_3SetParameterIntByteArray() local
452 if (mEffect.byteArrayToInt(value) == time) { in test3_3SetParameterIntByteArray()
453 time = 1000; in test3_3SetParameterIntByteArray()
455 value = mEffect.intToByteArray(time); in test3_3SetParameterIntByteArray()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java342 public double time; field in RVCVXCheckAnalyzer.AttitudeRec
349 time = atime; in AttitudeRec()
357 time = atime; in AttitudeRec()
365 time = rec.time; in assign()
366 roll = rec.time; in assign()
373 time = atime; in assign()
374 roll = rec.time; in assign()
381 time = atime; in set()
531 double time; in loadAttitudeRecs() local
545 time = Double.parseDouble(items[0]); in loadAttitudeRecs()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dutils.rscript17 float time = end();
20 rsDebug("test_color_pack_unpack FAILED", time);
23 rsDebug("test_color_pack_unpack PASSED", time);
Dprimitives.rscript58 float time = end();
61 rsDebug("test_primitive_types FAILED", time);
64 rsDebug("test_primitive_types PASSED", time);
113 float time = end();
116 rsDebug("test_vector_types FAILED", time);
119 rsDebug("test_vector_types PASSED", time);
/cts/tests/tests/rscpp/librscpptest/
Dprimitives.rscript42 float time = end();
45 rsDebug("test_primitive_types FAILED", time);
49 rsDebug("test_primitive_types PASSED", time);
/cts/tests/tests/content/src/android/content/cts/
DDummyProvider.java143 long time = System.currentTimeMillis(); in doMockOperation() local
144 long target = time + MOCK_OPERATION_SLEEP_TIME; in doMockOperation()
145 while (time < target) { in doMockOperation()
147 Thread.sleep(target - time); in doMockOperation()
152 time = System.currentTimeMillis(); in doMockOperation()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsRadioPowerStateTest.java75 final long time = SystemClock.elapsedRealtime(); in testReportMobileRadioPowerState() local
76 final String cmd = "dumpsys batterystats --history-start " + time; in testReportMobileRadioPowerState()
104 final long time = SystemClock.elapsedRealtime(); in testReportWifiRadioPowerState() local
105 final String cmd = "dumpsys batterystats --history-start " + time; in testReportWifiRadioPowerState()
/cts/suite/audio_quality/lib/src/task/
DTaskSound.cpp81 int time = atoi(tokens->at(3).string()); in run() local
82 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run()
91 int time = atoi(tokens->at(2).string()); in run() local
92 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run()

1234567