Home
last modified time | relevance | path

Searched refs:t1 (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java107 private static void printTiming(final long t1, final String msg) { in printTiming() argument
110 final long delta = t2 - t1; in printTiming()
124 final long t1 = System.currentTimeMillis(); in beginTransaction() local
128 f.time = t1; in beginTransaction()
141 long t1 = 0; in endTransaction() local
152 t1 = System.currentTimeMillis(); in endTransaction()
161 printTiming(t1, String.format(Locale.US, in endTransaction()
180 long t1 = 0; in insertWithOnConflict() local
182 t1 = System.currentTimeMillis(); in insertWithOnConflict()
192 printTiming(t1, String.format(Locale.US, in insertWithOnConflict()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRoutineWatchEvaluator.java157 ProgramTime t1 = ProgramTime.createFromProgram(p1); in calculateTimeMatchScore() local
160 double dupTimeScore = calculateOverlappedIntervalScore(t1, t2); in calculateTimeMatchScore()
163 double precision = dupTimeScore / (t1.endTimeOfDayInSec - t1.startTimeOfDayInSec); in calculateTimeMatchScore()
169 static double calculateOverlappedIntervalScore(ProgramTime t1, ProgramTime t2) { in calculateOverlappedIntervalScore() argument
170 if (t1.dayChanged && !t2.dayChanged) { in calculateOverlappedIntervalScore()
172 return calculateOverlappedIntervalScore(t2, t1); in calculateOverlappedIntervalScore()
180 Math.min(t1.endTimeOfDayInSec, t2.endTimeOfDayInSec) in calculateOverlappedIntervalScore()
181 - Math.max(t1.startTimeOfDayInSec, t2.startTimeOfDayInSec)); in calculateOverlappedIntervalScore()
183 sameDay = (t1.weekDay == t2.weekDay); in calculateOverlappedIntervalScore()
184 } else if (t1.dayChanged != t2.dayChanged) { in calculateOverlappedIntervalScore()
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/
Dcontract-between-code-and-parser.txt35 … t0: t_m_w:B|T1|[NN_LR_PP]funcP Add (t1-t0) to total time sp…
36 …NNTRACE_RT(NNTRACE_PHASE_PREPARATION, t1: t_m_w:E|T1 …
46 …NNTRACE_APP(NNTRACE_PHASE_PREPARATION, t1: t_m_w:B|T1|[NN_LR_PP]funcC1 …
48 … t3: t_m_w:E|T1 Add (t2-t1) to total time spent…
68 … t0: t_m_w:B|T1|[NN_LC_PTR]funcC1 Add (t1-t0) to total time sp…
69 …NNTRACE_TRANS("funcC1"); t1: t_m_w:B|T1|[SW][NN_LC_PCO]funcC1 …
71 … t3: t_m_w:E|T1 Add (t2-t1) to total time spent…
82 … t0: t_m_w:B|T1|[NN_LR_PE]funcR2 Add (t2-t1) to total time spent…
83 …NNTRACE_RT(NNTRACE_PHASE_EXECUTION, t1: t_m_w:B|T1|[NN_LC_PCO]funcC2 …
98 …NNTRACE_RT(NNTRACE_PHASE_EXECUTION, t1: t_m_w:B|T1|[NN_LR_PE]funcR4 …
[all …]
/packages/modules/StatsD/statsd/tests/utils/
DMultiConditionTrigger_test.cpp36 string t1 = "t1", t2 = "t2", t3 = "t3", t4 = "t4", t5 = "t5"; in TEST() local
37 set<string> conditionNames = {t1, t2, t3, t4, t5}; in TEST()
99 string t1 = "t1", t2 = "t2"; in TEST() local
100 set<string> conditionNames = {t1, t2}; in TEST()
114 trigger.markComplete(t1); in TEST()
115 trigger.markComplete(t1); in TEST()
130 string t1 = "t1"; in TEST() local
131 set<string> conditionNames = {t1}; in TEST()
147 trigger.markComplete(t1); in TEST()
158 trigger.markComplete(t1); in TEST()
/packages/apps/Gallery/tests/src/com/android/camera/
DBitmapManagerUnitTests.java123 DecodeThread t1 = new DecodeThread(); in testThreadDecoding() local
125 mBitmapManager.allowThreadDecoding(t1); in testThreadDecoding()
127 t1.start(); in testThreadDecoding()
131 t1.join(); in testThreadDecoding()
135 assertTrue(mBitmapManager.canThreadDecoding(t1)); in testThreadDecoding()
136 assertNotNull(t1.getBitmap()); in testThreadDecoding()
/packages/apps/LegacyCamera/jni/
Dfeature_mos_jni.cpp90 double t0, t1, time_c; in Init() local
115 t1 = now_ms(); in Init()
116 time_c = t1 - t0; in Init()
168 double t0, t1, time_c; in AddFrame() local
194 double t0, t1, time_c; in Finalize() local
199 t1 = now_ms(); in Finalize()
200 time_c = t1 - t0; in Finalize()
367 double t0, t1, time_c; in Java_com_android_camera_panorama_Mosaic_setSourceImageFromGPU() local
419 double t0, t1, time_c; in Java_com_android_camera_panorama_Mosaic_setSourceImage() local
524 double t0, t1, time_c; in Java_com_android_camera_panorama_Mosaic_createMosaic() local
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java87 long t1 = SystemClock.uptimeMillis(); in saveDepth() local
90 bytesWritten, file, (t1 - t0) * 0.001)); in saveDepth()
119 long t1 = SystemClock.uptimeMillis(); in saveJpeg() local
129 jpegData.length, file, (t1 - t0) * 0.001, (t2 - t1) * 0.001) ); in saveJpeg()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRoutineWatchEvaluatorTest.java63 private static ScoredItem score(String t1, String t2) { in score() argument
64 return new ScoredItem(t1, t2); in score()
283 int expectedSeconds, boolean overlappedOnSameDay, ProgramTime t1, ProgramTime t2) { in assertOverlappedIntervalScore() argument
292 RoutineWatchEvaluator.calculateOverlappedIntervalScore(t1, t2)); in assertOverlappedIntervalScore()
296 RoutineWatchEvaluator.calculateOverlappedIntervalScore(t2, t1)); in assertOverlappedIntervalScore()
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_internal/
Dadd_internal.mod.py28 t1 = Internal("t1", ("TENSOR_FLOAT32", [2])) variable
44 model.Operation("ADD", i2, t0, act).To(t1)
47 model.Operation("ADD", t1, t3, act).To(t4)
Dstdout.txt.expect29 auto t1 = model->addOperand(&type0);
49 model->addOperation(ANEURALNETWORKS_ADD, {i2, t0, act}, {t1});
52 model->addOperation(ANEURALNETWORKS_ADD, {t1, t3, act}, {t4});
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_internal/
Dadd_internal.mod.py28 t1 = Internal("t1", ("TENSOR_FLOAT32", [2])) variable
44 model.Operation("ADD", i2, t0, act).To(t1)
47 model.Operation("ADD", t1, t3, act).To(t4)
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSlidingWindowTest.java29 private static <T> boolean sameContents(Iterator<T> t1, Iterator<T> t2) { in sameContents() argument
30 while(t1.hasNext()) { in sameContents()
34 T e1 = t1.next(); in sameContents()
/packages/modules/DnsResolver/
Dres_stats.cpp27 int res_stats_calculate_rtt(const timespec* t1, const timespec* t0) { in res_stats_calculate_rtt() argument
30 long ms1 = t1->tv_sec * 1000 + t1->tv_nsec / 1000000; in res_stats_calculate_rtt()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java303 private static boolean areAppTargetsSame(AppTarget t1, AppTarget t2) { in areAppTargetsSame() argument
304 if (!Objects.equals(t1.getPackageName(), t2.getPackageName()) in areAppTargetsSame()
305 || !Objects.equals(t1.getUser(), t2.getUser()) in areAppTargetsSame()
306 || !Objects.equals(t1.getClassName(), t2.getClassName())) { in areAppTargetsSame()
310 ShortcutInfo s1 = t1.getShortcutInfo(); in areAppTargetsSame()
/packages/modules/ExtServices/java/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java149 public int compare(CacheQuotaHintExtend o, CacheQuotaHintExtend t1) {
150 return (t1.mTotalTimeInForeground < o.mTotalTimeInForeground) ?
151 -1 : ((t1.mTotalTimeInForeground == o.mTotalTimeInForeground) ? 0 : 1);
/packages/apps/Browser2/src/org/chromium/webview_shell/
DStartupTimeActivity.java23 long t1 = SystemClock.elapsedRealtime(); in onCreate() local
27 android.util.Log.i("WebViewShell", "WebViewStartupTimeMillis=" + (t2 - t1)); in onCreate()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DECUAdapter.java42 mEcuOrderedList.sort((ecu, t1) -> t1.getDtcs().size() - ecu.getDtcs().size()); in ECUAdapter()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBaseOverview.java116 (t1, t2) -> Integer.compare(mLauncher.getVisibleBounds(t1).width(), in getCurrentTask()
/packages/modules/DnsResolver/tests/
Dresolv_stress_test.cpp80 auto t1 = std::chrono::steady_clock::now(); in RunGetAddrInfoStressTest() local
82 num_queries, std::chrono::duration<double>(t1 - t0).count()); in RunGetAddrInfoStressTest()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DContactListActivity.java146 TextView t1 = (TextView) v.findViewById(android.R.id.text1); in initListView()
148 t1.setText(getItem(pos).phoneNumber); in initListView()
151 t1.setTypeface(null, Typeface.BOLD); in initListView()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java156 long t1 = System.currentTimeMillis(); in processFrame() local
157 mFrameTimestamp[mFillIn] = t1; in processFrame()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingPoints.java154 final int t1 = eventTimes.get(d1); in interpolateStrokeAndReturnStartIndexOfLastSegment() local
160 eventTimes.addAt(d1, (int)(dt * t) + t1); in interpolateStrokeAndReturnStartIndexOfLastSegment()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java234 float t1 = mInterpolator.getInterpolation(t0); in handleMessage() local
236 (mFinalOffset - mAnimationStartOffset) * t1; in handleMessage()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java112 float t1 = a1 - b1; in lineIntersect() local
118 float denom = t1 * t4 - t0 * t5; in lineIntersect()
123 b0 + u * t0, b1 + u * t1 in lineIntersect()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java391 Time t1 = new Time(mTimeZone); in buildWeekDate() local
394 if (t.month != t1.month) { in buildWeekDate()

12