Home
last modified time | relevance | path

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

12345678910>>...78

/packages/services/Iwlan/test/com/google/android/iwlan/
DErrorPolicyManagerTest.java253 long time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() local
254 assertEquals(4, time); in testValidCarrierConfig()
255 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
256 assertEquals(8, time); in testValidCarrierConfig()
257 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
258 assertEquals(16, time); in testValidCarrierConfig()
259 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
260 assertEquals(86400, time); in testValidCarrierConfig()
264 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
265 assertEquals(4, time); in testValidCarrierConfig()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java27 import java.time.Instant;
28 import java.time.LocalDateTime;
29 import java.time.temporal.ChronoUnit;
30 import java.time.ZoneId;
68 public static CharSequence getRelativeTimeSpanString(final long time) { in getRelativeTimeSpanString() argument
70 if (now - time < DateUtils.MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
80 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, in getRelativeTimeSpanString()
83 return getShortRelativeTimeSpanString(time); in getRelativeTimeSpanString()
87 public static CharSequence getConversationTimeString(final long time) { in getConversationTimeString() argument
88 return getTimeString(time, true /*abbreviated*/, false /*minPeriodToday*/); in getConversationTimeString()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java47 import static java.time.Instant.EPOCH;
48 import static java.time.ZoneOffset.UTC;
49 import static java.time.temporal.ChronoUnit.DAYS;
50 import static java.time.temporal.ChronoUnit.HOURS;
51 import static java.time.temporal.ChronoUnit.MILLIS;
52 import static java.time.temporal.ChronoUnit.MINUTES;
78 import java.time.Duration;
79 import java.time.Instant;
80 import java.time.LocalDateTime;
81 import java.time.Period;
[all …]
DDataFactory.java34 import java.time.Instant;
35 import java.time.LocalDateTime;
36 import java.time.ZoneOffset;
55 static BasalMetabolicRateRecord getBasalMetabolicRateRecord(double power, Instant time) { in getBasalMetabolicRateRecord() argument
57 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
66 double power, Instant time, ZoneOffset offset) { in getBasalMetabolicRateRecord() argument
68 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
107 static LeanBodyMassRecord getBaseLeanBodyMassRecord(Instant time, double grams) { in getBaseLeanBodyMassRecord() argument
108 return new LeanBodyMassRecord.Builder(getEmptyMetadata(), time, Mass.fromGrams(grams)) in getBaseLeanBodyMassRecord()
112 static HeightRecord getBaseHeightRecord(Instant time, double heightMeter) { in getBaseHeightRecord() argument
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DLocalDateTimeFormatterTest.kt29 import java.time.Instant in <lambda>()
30 import java.time.temporal.ChronoUnit in <lambda>()
51 private val time = Instant.parse("2022-10-20T14:06:05.432Z") in <lambda>() constant
83 assertThat(formatter.formatTime(time)).isEqualTo("14:06") in <lambda>()
89 assertThat(formatter.formatTime(time)).isEqualTo("2:06 PM") in <lambda>()
95 assertThat(formatter.formatLongDate(time)).isEqualTo("20 October 2022") in <lambda>()
101 assertThat(formatter.formatLongDate(time)).isEqualTo("October 20, 2022") in <lambda>()
107 assertThat(formatter.formatShortDate(time)).isEqualTo("20 October") in <lambda>()
113 assertThat(formatter.formatShortDate(time)).isEqualTo("October 20") in <lambda>()
119 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
[all …]
/packages/modules/adb/
Dbenchmark_device.py23 import time
79 begin = time.time()
81 end = time.time()
95 begin = time.time()
97 end = time.time()
114 begin = time.time()
116 end = time.time()
132 begin = time.time()
134 end = time.time()
145 begin = time.time()
[all …]
/packages/modules/Uwb/generic_ranging/tests/multidevices/test_utils/
Duwb_test_utils.py18 import time
48 start_time = time.time()
53 while time.time() - start_time < timeout and not callback_status:
54 time.sleep(0.1)
61 round(time.time() - start_time, 2))
114 start_time = time.time()
116 if time.time() - start_time > WAIT_TIME_SEC:
119 round(time.time() - start_time, 2))
130 start_time = time.time()
132 time.sleep(0.5)
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DDBEncoderLogicMetadataTest.java31 import java.time.Instant;
42 Instant time = CommonFixture.FIXED_NOW; in testCreateEncodingLogic() local
46 DBEncoderLogicMetadata.create(buyer, version, time, failCount); in testCreateEncodingLogic()
49 assertEquals(time, logicEntry.getCreationTime()); in testCreateEncodingLogic()
57 Instant time = CommonFixture.FIXED_NOW; in testBuildEncodingLogic() local
64 .setCreationTime(time) in testBuildEncodingLogic()
69 assertEquals(time, logicEntry.getCreationTime()); in testBuildEncodingLogic()
86 Instant time = CommonFixture.FIXED_NOW; in testEquals() local
93 .setCreationTime(time) in testEquals()
100 .setCreationTime(time) in testEquals()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java180 public void duplicateLastPointWith(final int time) { in duplicateLastPointWith() argument
187 x, y, time)); in duplicateLastPointWith()
190 appendPoint(x, y, time); in duplicateLastPointWith()
191 updateIncrementalRecognitionSize(x, y, time); in duplicateLastPointWith()
206 private void appendPoint(final int x, final int y, final int time) { in appendPoint() argument
211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) { in appendPoint()
213 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), in appendPoint()
217 mEventTimes.add(time); in appendPoint()
222 private void updateMajorEvent(final int x, final int y, final int time) { in updateMajorEvent() argument
223 mLastMajorEventTime = time; in updateMajorEvent()
[all …]
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
DProfileBase.java54 long time = System.nanoTime(); in mark() local
55 onMark(getTotalMillis(time), getTimeFromLastMillis(time), reason); in mark()
56 mLastMark = time; in mark()
61 long time = System.nanoTime(); in stop() local
62 onStop(getTotalMillis(time), getTimeFromLastMillis(time)); in stop()
63 mLastMark = time; in stop()
68 long time = System.nanoTime(); in stop() local
69 onStop(getTotalMillis(time), getTimeFromLastMillis(time), reason); in stop()
70 mLastMark = time; in stop()
/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py14 import time
146 start_time = time.time()
147 while time.time() < start_time + timeout:
159 time.sleep(0.5)
173 time.sleep(2)
271 end_time = time.time() + bt_constants.BT_DEFAULT_TIMEOUT_SECONDS
274 while time.time() < end_time:
283 time.sleep(1)
303 start_time = time.time()
307 discovery_time = time.time() - start_time
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.kt171 val time = Time(tz) in setWeekParams() constant
172 time.setJulianDay(julianMonday) in setWeekParams()
177 mDayNumbers!![0] = Integer.toString(time.getWeekNumber()) in setWeekParams()
187 if (time.weekDay !== mWeekStart) { in setWeekParams()
188 var diff: Int = time.weekDay - mWeekStart in setWeekParams()
192 time.monthDay -= diff in setWeekParams()
193 time.normalize(true) in setWeekParams()
195 mFirstJulianDay = Time.getJulianDay(time.toMillis(true), time.gmtoff) in setWeekParams()
196 firstMonth = time.month in setWeekParams()
207 if (time.monthDay === 1) { in setWeekParams()
[all …]
/packages/services/Car/tools/emulator/
Duser_action_generator.py16 import time
141 time.sleep(0.2)
150 time.sleep(1)
174 time.sleep(SHORT_SLEEP_TIME_SEC)
179 time.sleep(SHORT_SLEEP_TIME_SEC)
183 time.sleep(SHORT_SLEEP_TIME_SEC)
187 time.sleep(SHORT_SLEEP_TIME_SEC)
191 time.sleep(LONG_SLEEP_TIME_SEC)
194 time.sleep(LONG_SLEEP_TIME_SEC)
197 time.sleep(SHORT_SLEEP_TIME_SEC)
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java82 Time time = new Time(); in setUp() local
83 time.setToNow(); in setUp()
84 time.monthDay += 1; in setUp()
85 time.hour = 2; in setUp()
86 time.minute = 0; in setUp()
87 time.second = 0; in setUp()
88 now = time.normalize(false); in setUp()
150 Time time = new Time(); in testGetAppWidgetModel_AllDayEventLater() local
151 time.set(now); in testGetAppWidgetModel_AllDayEventLater()
152 time.monthDay += 5; in testGetAppWidgetModel_AllDayEventLater()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DLocationTimeZoneDetectionPreferenceControllerTest.java19 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE;
20 import static android.app.time.Capabilities.CAPABILITY_NOT_SUPPORTED;
21 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
22 import static android.app.time.DetectorStatusTypes.DETECTION_ALGORITHM_STATUS_NOT_SUPPORTED;
23 import static android.app.time.DetectorStatusTypes.DETECTION_ALGORITHM_STATUS_RUNNING;
24 import static android.app.time.DetectorStatusTypes.DETECTOR_STATUS_RUNNING;
25 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_PRESENT;
26 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_READY;
36 import android.app.time.Capabilities.CapabilityState;
37 import android.app.time.LocationTimeZoneAlgorithmStatus;
[all …]
DTimeZonePreferenceControllerTest.java19 import static android.app.time.DetectorStatusTypes.DETECTION_ALGORITHM_STATUS_RUNNING;
20 import static android.app.time.DetectorStatusTypes.DETECTOR_STATUS_RUNNING;
21 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_PRESENT;
22 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_READY;
30 import android.app.time.Capabilities;
31 import android.app.time.LocationTimeZoneAlgorithmStatus;
32 import android.app.time.TelephonyTimeZoneAlgorithmStatus;
33 import android.app.time.TimeManager;
34 import android.app.time.TimeZoneCapabilities;
35 import android.app.time.TimeZoneCapabilitiesAndConfig;
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/
DTimeRangeFilterHelper.java22 import java.time.Instant;
23 import java.time.LocalDateTime;
24 import java.time.ZoneOffset;
78 public static long getMillisOfLocalTime(LocalDateTime time) { in getMillisOfLocalTime() argument
79 return time.toInstant(LOCAL_TIME_ZERO_OFFSET).toEpochMilli(); in getMillisOfLocalTime()
87 @NonNull LocalDateTime time, @Nullable ZoneOffset zoneOffset) { in getInstantFromLocalTime()
89 ? time.toInstant(zoneOffset) in getInstantFromLocalTime()
90 : time.toInstant(ZoneOffset.systemDefault().getRules().getOffset(time)); in getInstantFromLocalTime()
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dhfp.py28 import time
87 time.sleep(2)
118 time.sleep(2)
146 time.sleep(2)
186 time.sleep(2)
200 time.sleep(2) # give it time for SCO to come up
211 time.sleep(2)
236 time.sleep(2)
262 time.sleep(2)
281 time.sleep(2)
[all …]
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dprofiler.h39 for (const auto &time : mTimes) { in ~Profiler() local
40 AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.", time.first, in ~Profiler()
41 time.second / totalTime * 100.0f, time.second, mCounters[time.first]); in ~Profiler()
66 timespec time; in getTimeInMicroSec() local
67 clock_gettime(mClockId, &time); in getTimeInMicroSec()
68 return static_cast<int64_t>(time.tv_sec) * 1000000 in getTimeInMicroSec()
69 + static_cast<int64_t>(time.tv_nsec) / 1000; in getTimeInMicroSec()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DSkinTemperatureFormatterTest.kt38 import java.time.Instant
39 import java.time.ZoneId
40 import java.time.temporal.ChronoUnit
314 dateTimeFormatter.formatTime(deltaMinusTwoAndHalf.time), in <lambda>()
315 dateTimeFormatter.formatTime(deltaMinusTwoAndHalf.time))) in <lambda>()
338 dateTimeFormatter.formatTime(deltaMinusTwoAndHalf.time), in <lambda>()
339 dateTimeFormatter.formatTime(deltaMinusTwoAndHalf.time))) in <lambda>()
346 dateTimeFormatter.formatTime(deltaZero.time), in <lambda>()
347 dateTimeFormatter.formatTime(deltaZero.time))) in <lambda>()
354 dateTimeFormatter.formatTime(deltaPlusOne.time), in <lambda>()
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/
Dcontract-between-code-and-parser.txt13 by the runtime is calculated as the time between start of
35 …t0: t_m_w:B|T1|[NN_LR_PP]funcP Add (t1-t0) to total time spent in Layer
45 …t0: t_m_w:B|T1|[NN_LA_PP]funcE1 Add (t3-t0) to total time spent in Layer
48 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer
51 … Note: Self-time of Layer Applicatio…
53 … total time in Layer Application - total time
68 …t0: t_m_w:B|T1|[NN_LC_PTR]funcC1 Add (t1-t0) to total time spent in Layer
71 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer
82 …t0: t_m_w:B|T1|[NN_LR_PE]funcR2 Add (t2-t1) to total time spent in Layer
84 … t2: t_m_w:E|T1 total time in Phase Execution
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DInputPointersTests.java73 final int time = i * 4; in testAdd() local
74 src.addPointer(x, y, pointerId, time); in testAdd()
81 final int time = i * 4; in testAdd() local
85 assertEquals("times at " + i, time, src.getTimes()[i]); in testAdd()
97 final int time = i * 4; in testAddAt() local
98 src.addPointerAt(i, x, y, pointerId, time); in testAddAt()
105 final int time = i * 4; in testAddAt() local
109 assertEquals("times at " + i, time, src.getTimes()[i]); in testAddAt()
121 final int time = i * 4; in testSet() local
122 src.addPointer(x, y, pointerId, time); in testSet()
[all …]
/packages/modules/Virtualization/microdroid/
Dmicrodroid_event-log-tags12 2747 contacts_aggregation (aggregation time|2|3), (count|1|1)
13 3000 boot_progress_start (time|2|3)
14 3020 boot_progress_preload_start (time|2|3)
15 3030 boot_progress_preload_end (time|2|3)
16 20003 dvm_lock_sample (process|3),(main|1|5),(thread|3),(time|1|3),(file|3),(line|1|5),(ownerfile|3…
23 52000 db_sample (db|3),(sql|3),(time|1|3),(blocking_package|3),(sample_percent|1|6)
25 60000 viewroot_draw (Draw time|1|3)
26 60001 viewroot_layout (Layout time|1|3)
29 70200 aggregation (aggregation time|2|3)
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DTimeRangeFilterTest.java32 import java.time.Instant;
33 import java.time.LocalDateTime;
34 import java.time.ZoneOffset;
35 import java.time.temporal.ChronoUnit;
113 Instant time = Instant.ofEpochMilli(123456789); in instantTimeRange_startTimeNotLaterThanEndTime_throws() local
115 new TimeInstantRangeFilter.Builder().setStartTime(time).setEndTime(time); in instantTimeRange_startTimeNotLaterThanEndTime_throws()
119 builder.setEndTime(time.minusMillis(1)); in instantTimeRange_startTimeNotLaterThanEndTime_throws()
126 LocalDateTime time = LocalDateTime.of(2024, 2, 1, 18, 0, 0); in localTimeRange_startTimeNotLaterThanEndTime_throws() local
128 new LocalTimeRangeFilter.Builder().setStartTime(time).setEndTime(time); in localTimeRange_startTimeNotLaterThanEndTime_throws()
132 builder.setEndTime(time.minusSeconds(1)); in localTimeRange_startTimeNotLaterThanEndTime_throws()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt61 import java.time.Instant in <lambda>()
62 import java.time.LocalDate in <lambda>()
65 import java.time.ZoneOffset in <lambda>()
79 fun getStepsRecord(steps: Long, time: Instant = NOW): StepsRecord { in getStepsRecord()
80 return StepsRecord.Builder(getMetaData(), time, time.plusSeconds(2), steps).build() in getStepsRecord()
88 fun getDistanceRecord(distance: Length, time: Instant = NOW): DistanceRecord { in getDistanceRecord()
89 return DistanceRecord.Builder(getMetaData(), time, time.plusSeconds(2), distance).build() in getDistanceRecord()
92 fun getTotalCaloriesBurnedRecord(calories: Energy, time: Instant = NOW): TotalCaloriesBurnedRecord { in getTotalCaloriesBurnedRecord()
93 return TotalCaloriesBurnedRecord.Builder(getMetaData(), time, time.plusSeconds(2), calories) in getTotalCaloriesBurnedRecord()
106 fun getWeightRecord(time: Instant = NOW, weight: Mass): WeightRecord { in getWeightRecord()
[all …]

12345678910>>...78