Home
last modified time | relevance | path

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

12345678910>>...53

/packages/services/Iwlan/test/com/google/android/iwlan/
DErrorPolicyManagerTest.java243 long time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() local
244 assertEquals(4, time); in testValidCarrierConfig()
245 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
246 assertEquals(8, time); in testValidCarrierConfig()
253 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
254 assertEquals(16, time); in testValidCarrierConfig()
255 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
256 assertEquals(86400, time); in testValidCarrierConfig()
260 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
261 assertEquals(0, 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/adb/
Dbenchmark_device.py22 import time
73 begin = time.time()
75 end = time.time()
89 begin = time.time()
91 end = time.time()
108 begin = time.time()
110 end = time.time()
126 begin = time.time()
128 end = time.time()
139 begin = time.time()
[all …]
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/test_utils/
Duwb_test_utils.py5 import time
35 start_time = time.time()
40 while time.time() - start_time < timeout and not callback_status:
41 time.sleep(0.1)
48 round(time.time() - start_time, 2))
101 start_time = time.time()
103 if time.time() - start_time > WAIT_TIME_SEC:
106 round(time.time() - start_time, 2))
117 start_time = time.time()
119 time.sleep(0.5)
[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/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/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/android/pandora/mmi2grpc/mmi2grpc/
Dhfp.py28 import time
86 time.sleep(2)
117 time.sleep(2)
145 time.sleep(2)
185 time.sleep(2)
199 time.sleep(2) # give it time for SCO to come up
210 time.sleep(2)
235 time.sleep(2)
261 time.sleep(2)
280 time.sleep(2)
[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 …]
DLocationProviderStatusPreferenceControllerTest.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_IS_CERTAIN;
22 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_IS_UNCERTAIN;
32 import android.app.time.Capabilities;
33 import android.app.time.Capabilities.CapabilityState;
34 import android.app.time.LocationTimeZoneAlgorithmStatus;
35 import android.app.time.LocationTimeZoneAlgorithmStatus.ProviderStatus;
36 import android.app.time.TelephonyTimeZoneAlgorithmStatus;
37 import android.app.time.TimeManager;
[all …]
DAutoTimeZonePreferenceControllerTest.java19 import static android.app.time.DetectorStatusTypes.DETECTION_ALGORITHM_STATUS_NOT_SUPPORTED;
20 import static android.app.time.DetectorStatusTypes.DETECTION_ALGORITHM_STATUS_RUNNING;
21 import static android.app.time.DetectorStatusTypes.DETECTOR_STATUS_RUNNING;
22 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_PRESENT;
23 import static android.app.time.LocationTimeZoneAlgorithmStatus.PROVIDER_STATUS_NOT_READY;
31 import android.app.time.Capabilities;
32 import android.app.time.LocationTimeZoneAlgorithmStatus;
33 import android.app.time.TelephonyTimeZoneAlgorithmStatus;
34 import android.app.time.TimeManager;
35 import android.app.time.TimeZoneCapabilities;
[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/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/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/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/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/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDeriveBasalCaloriesBurnedHelper.java41 import java.time.Duration;
96 long time = StorageUtils.getCursorLong(mCursor, mTimeColumnName); in getBasalCaloriesBurned() local
99 if (time > intervalStartTime && mRateOfEnergyBurntInWatts == 0) { in getBasalCaloriesBurned()
100 if (time > intervalEndTime) { in getBasalCaloriesBurned()
105 currentGroupTotal += derivedBasalCaloriesViaReadBack(intervalStartTime, time); in getBasalCaloriesBurned()
106 lastItemTime = time; in getBasalCaloriesBurned()
115 if (time >= intervalEndTime) { in getBasalCaloriesBurned()
121 getCurrentIntervalEnergy(mRateOfEnergyBurntInWatts, lastItemTime, time); in getBasalCaloriesBurned()
123 lastItemTime = time; in getBasalCaloriesBurned()
184 long time = StorageUtils.getCursorLong(lbmCursor, mTimeColumnName); in derivedBasalCaloriesBurnedFromLeanBodyMass() local
[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/testapps/toolbox/
DREADME.md25 * Interval Record - These records take place over an interval of time therefore they have a
26 start time and an end time. They generate a single value or a range of values at the end of
27 the whole interval. For example Elevation Gained, record contains a start time, an end time
28 and the total elevation gained in that time period. To insert such a record, users can enter a
29 start time, end time and the recorded values for the given record type.
31 instant and not over a range of time. They can be inserted similar to an interval record, just
32 not with a start and end time, instead with a single time stamp.
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DDateTimePicker.kt28 import java.time.Instant in <lambda>()
29 import java.time.LocalDate in <lambda>()
30 import java.time.LocalDateTime in <lambda>()
31 import java.time.LocalTime in <lambda>()
32 import java.time.ZoneId in <lambda>()
62 findViewById<EditText>(R.id.select_time).let { time -> in <lambda>() method
63 time.setText(getTimeString()) in <lambda>()
64 time.inputType = InputType.TYPE_NULL in <lambda>()
65 time.setOnClickListener { showTimePicker(time) } in <lambda>()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.kt104 val time = Time() in formatDebugTime() constant
105 time.set(unixTime) in formatDebugTime()
111 time.format("%H:%M:%S"), delta in formatDebugTime()
117 time.format("%H:%M:%S"), delta in formatDebugTime()
532 val time = Time(Utils.getTimeZone(mContext, null)) in onLoadComplete() constant
533 time.setToNow() in onLoadComplete()
534 if (time.normalize(true) !== sLastUpdateTime) { in onLoadComplete()
538 if (time.year !== time2.year || time.yearDay !== time2.yearDay) { in onLoadComplete()
544 sLastUpdateTime = time.toMillis(true) in onLoadComplete()
635 val time = Time() in getNextMidnightTimeMillis() constant
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DRespiratoryRateRecord.java23 import java.time.Instant;
24 import java.time.ZoneOffset;
44 @NonNull Instant time, in RespiratoryRateRecord() argument
48 super(metadata, time, zoneOffset, skipValidation); in RespiratoryRateRecord()
50 Objects.requireNonNull(time); in RespiratoryRateRecord()
99 @NonNull Instant time, in Builder() argument
102 Objects.requireNonNull(time); in Builder()
104 mTime = time; in Builder()
106 mZoneOffset = ZoneOffset.systemDefault().getRules().getOffset(time); in Builder()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt6 method @NonNull public java.time.Instant getEndTime();
7 method @NonNull public java.time.Instant getStartTime();
8 …method @Nullable public java.time.ZoneOffset getZoneOffset(@NonNull android.health.connect.datatyp…
13 method @NonNull public java.time.LocalDateTime getEndTime();
14 method @NonNull public java.time.LocalDateTime getStartTime();
15 …method @Nullable public java.time.ZoneOffset getZoneOffset(@NonNull android.health.connect.datatyp…
34 …method @Nullable public java.time.ZoneOffset getZoneOffset(@NonNull android.health.connect.datatyp…
52 …@NonNull android.health.connect.AggregateRecordsRequest<T>, @NonNull java.time.Duration, @NonNull …
53 …@NonNull android.health.connect.AggregateRecordsRequest<T>, @NonNull java.time.Period, @NonNull ja…
147 method @Nullable public java.time.LocalDateTime getEndTime();
[all …]

12345678910>>...53