Home
last modified time | relevance | path

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

12345678910>>...31

/packages/services/Iwlan/test/com/google/android/iwlan/
DErrorPolicyManagerTest.java152 long time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() local
153 assertEquals(4, time); in testValidCarrierConfig()
154 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
155 assertEquals(8, time); in testValidCarrierConfig()
156 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
157 assertEquals(16, time); in testValidCarrierConfig()
158 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
159 assertEquals(86400, time); in testValidCarrierConfig()
163 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig()
164 assertEquals(4, time); in testValidCarrierConfig()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java65 public static CharSequence getRelativeTimeSpanString(final long time) { in getRelativeTimeSpanString() argument
67 if (now - time < DateUtils.MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
77 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, in getRelativeTimeSpanString()
80 return getShortRelativeTimeSpanString(time); in getRelativeTimeSpanString()
84 public static CharSequence getConversationTimeString(final long time) { in getConversationTimeString() argument
85 return getTimeString(time, true /*abbreviated*/, false /*minPeriodToday*/); in getConversationTimeString()
88 public static CharSequence getMessageTimeString(final long time) { in getMessageTimeString() argument
89 return getTimeString(time, false /*abbreviated*/, false /*minPeriodToday*/); in getMessageTimeString()
92 public static CharSequence getWidgetTimeString(final long time, final boolean abbreviated) { in getWidgetTimeString() argument
93 return getTimeString(time, abbreviated, true /*minPeriodToday*/); in getWidgetTimeString()
[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/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 …]
Darduino_base.py9 import time
31 time.sleep(2)
76 start_time = time.time()
79 return time.time() - start_time
/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/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/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/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dhfp.py27 import time
90 time.sleep(2)
125 time.sleep(2)
152 time.sleep(2)
192 time.sleep(2)
206 time.sleep(2) # give it time for SCO to come up
217 time.sleep(2)
244 time.sleep(2)
272 time.sleep(2)
293 time.sleep(2)
[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/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/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/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/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java318 private void updateExifData(ExifInterface exif, long time) { in updateExifData() argument
320 exif.addDateTimeStampTag(ExifInterface.TAG_DATE_TIME, time, in updateExifData()
358 long time = System.currentTimeMillis(); in processAndSaveImage() local
359 updateExifData(exif, time); in processAndSaveImage()
362 … ContentValues values = getContentValues(mContext, mSelectedImageUri, mDestinationFile, time); in processAndSaveImage()
370 long time = System.currentTimeMillis(); in processAndSaveImage() local
371 updateExifData(exif, time); in processAndSaveImage()
383 mDestinationFile, time, !flatten); in processAndSaveImage()
420 long time = System.currentTimeMillis(); in processAndSaveImage() local
423 updateExifData(exif, time); in processAndSaveImage()
[all …]
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeCustomPreferenceController.java29 import java.time.LocalTime;
78 final LocalTime time = LocalTime.of(hourOfDay, minute); in getDialog()
80 mUiModeManager.setCustomNightModeStart(time); in getDialog()
82 mUiModeManager.setCustomNightModeEnd(time); in getDialog()
92 final LocalTime time; in refreshSummary() local
94 time = mUiModeManager.getCustomNightModeStart(); in refreshSummary()
96 time = mUiModeManager.getCustomNightModeEnd(); in refreshSummary()
98 preference.setSummary(mFormat.of(time)); in refreshSummary()
/packages/apps/Settings/src/com/android/settings/datetime/
DAutoTimeZonePreferenceController.java19 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_NOT_SUPPORTED;
22 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
24 import android.app.time.TimeManager;
25 import android.app.time.TimeZoneCapabilities;
26 import android.app.time.TimeZoneCapabilitiesAndConfig;
27 import android.app.time.TimeZoneConfiguration;
/packages/modules/Bluetooth/system/blueberry/tests/pbap/
Dbluetooth_pbap_test.py5 import time
72 time.sleep(5)
155 time=int(1000 * float(self.pri_phone.adb.shell('date +%s.%N')))))
188 start_time = time.time()
191 while time.time() < end_time:
196 time.sleep(1)
224 start_time = time.time()
227 while time.time() < end_time:
232 time.sleep(1)
249 time.sleep(3)
/packages/modules/GeoTZ/data_pipeline/
DAndroid.bp66 // Step 1 of the OSM time zone geolocation reference data pipeline.
68 // Converts geojson time zone boundaries (from timezone-boundary-builder) to TzS2Polygon proto
69 // files, one per time zone ID.
76 // Step 2 of the OSM time zone geolocation reference data pipeline.
78 // Reads TzS2Polygon proto files and writes out TzS2Polygon proto files with canonical time zone
86 // Step 3 of the OSM time zone geolocation reference data pipeline.
95 // Step 4 of the OSM time zone geolocation reference data pipeline.
97 // Converts TsS2CellUnion proto files to (single time zone) TzS2Ranges proto files.
104 // Step 5 of the OSM time zone geolocation reference data pipeline.
106 // Merges multiple, single time zone TzS2Ranges proto files into one, multiple time zone TzS2Ranges
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dasync_manager.cc337 Task(std::chrono::steady_clock::time_point time, in Task() argument
340 : time(time), in Task()
346 Task(std::chrono::steady_clock::time_point time, in Task() argument
348 : time(time), in Task()
356 return std::make_pair(time, task_id) < in operator <()
357 std::make_pair(another.time, another.task_id); in operator <()
364 std::chrono::steady_clock::time_point time; member in rootcanal::AsyncManager::AsyncTaskManager::Task
461 if (task_p->time < std::chrono::steady_clock::now()) { in ThreadRoutine()
467 task_p->time += task_p->period; in ThreadRoutine()
489 std::chrono::steady_clock::time_point time = in ThreadRoutine() local
[all …]
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java74 public synchronized void addTime(long time) { in addTime() argument
75 mTotal += time; in addTime()
91 final ElapsedTime time = new ElapsedTime(); in checkSourceConcurrent() local
100 time.addTime(t); in checkSourceConcurrent()
111 while (time.getCount() < count) { in checkSourceConcurrent()
118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage()) in checkSourceConcurrent()
119 + " (average), " + formatTime(time.getTotal()) + " (total)"); in checkSourceConcurrent()
123 ElapsedTime time = new ElapsedTime(); in checkSource() local
127 time.addTime(t); in checkSource()
129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time.getAverage()) in checkSource()
[all …]
/packages/modules/Connectivity/nearby/tests/multidevices/host/test_helper/
Devent_helper.py17 import time
53 start_time = time.perf_counter()
55 while time.perf_counter() < deadline:
57 deadline - time.perf_counter())
62 elapsed_time = int(time.perf_counter() - start_time)
65 elapsed_time = int(time.perf_counter() - start_time)
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/
DPermissionUsageDetailsViewModel.kt51 import java.time.Clock in <lambda>()
52 import java.time.Instant in <lambda>()
53 import java.time.ZonedDateTime in <lambda>()
54 import java.time.temporal.ChronoUnit in <lambda>()
109 val filterTimeBeginMillis = max(System.currentTimeMillis() - timeFilterItem.time, 0) in <lambda>()
206 return@map discreteAccessTimeList.map { time -> in <lambda>() method
207 AppPermissionUsageEntry(usageData, time.first, mutableListOf(time)) in <lambda>()
214 for (time in discreteAccessTimeList) { in <lambda>() variable
216 ongoingEntry = AppPermissionUsageEntry(usageData, time.first, in <lambda>()
217 mutableListOf(time)) in <lambda>()
[all …]

12345678910>>...31