Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/system/common/
Dtime_util_unittest.cc31 uint64_t t1 = bluetooth::common::time_get_os_boottime_ms(); in TEST() local
32 ASSERT_GT(t1, uint64_t(0)); in TEST()
40 uint64_t t1 = bluetooth::common::time_get_os_boottime_us(); in TEST() local
41 ASSERT_GT(t1, uint64_t(0)); in TEST()
49 uint64_t t1 = bluetooth::common::time_get_os_monotonic_raw_us(); in TEST() local
50 ASSERT_GT(t1, uint64_t(0)); in TEST()
58 uint64_t t1 = bluetooth::common::time_get_os_boottime_ms(); in TEST() local
60 ASSERT_TRUE((t2 - t1) < TEST_TIME_DELTA_UPPER_BOUND_MS); in TEST()
68 uint64_t t1 = bluetooth::common::time_get_os_boottime_us(); in TEST() local
70 ASSERT_TRUE((t2 - t1) < TEST_TIME_DELTA_UPPER_BOUND_MS * 1000); in TEST()
[all …]
/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/modules/Bluetooth/system/stack/smp/
Dp_256_ecc_pp.cc43 uint32_t t1[KEY_LENGTH_DWORDS_P256]; in ECC_Double() local
65 multiprecision_mersenns_squa_mod(t1, z1); // t1=z1^2 in ECC_Double()
66 multiprecision_sub_mod(t2, x1, t1); // t2=x1-t1 in ECC_Double()
67 multiprecision_add_mod(t1, x1, t1); // t1=x1+t1 in ECC_Double()
68 multiprecision_mersenns_mult_mod(t2, t1, t2); // t2=t2*t1 in ECC_Double()
83 multiprecision_lshift_mod(t1, t3); // t1=2t3 in ECC_Double()
84 multiprecision_sub_mod(x3, x3, t1); // x3=x3-t1 in ECC_Double()
85 multiprecision_sub_mod(t1, t3, x3); // t1=t3-x3 in ECC_Double()
86 multiprecision_mersenns_mult_mod(t1, t1, t2); // t1=t1*t2 in ECC_Double()
87 multiprecision_sub_mod(y3, t1, y3); // y3=t1-y3 in ECC_Double()
[all …]
/packages/modules/Bluetooth/system/gd/security/ecc/
Dp_256_ecc_pp.cc48 uint32_t t1[KEY_LENGTH_DWORDS_P256]; in ECC_Double() local
70 multiprecision_mersenns_squa_mod(t1, z1, modp); // t1=z1^2 in ECC_Double()
71 multiprecision_sub_mod(t2, x1, t1, modp); // t2=x1-t1 in ECC_Double()
72 multiprecision_add_mod(t1, x1, t1, modp); // t1=x1+t1 in ECC_Double()
73 multiprecision_mersenns_mult_mod(t2, t1, t2, modp); // t2=t2*t1 in ECC_Double()
88 multiprecision_lshift_mod(t1, t3, modp); // t1=2t3 in ECC_Double()
89 multiprecision_sub_mod(x3, x3, t1, modp); // x3=x3-t1 in ECC_Double()
90 multiprecision_sub_mod(t1, t3, x3, modp); // t1=t3-x3 in ECC_Double()
91 multiprecision_mersenns_mult_mod(t1, t1, t2, modp); // t1=t1*t2 in ECC_Double()
92 multiprecision_sub_mod(y3, t1, y3, modp); // y3=t1-y3 in ECC_Double()
[all …]
/packages/modules/StatsD/statsd/tests/utils/
DMultiConditionTrigger_test.cpp38 string t1 = "t1", t2 = "t2", t3 = "t3", t4 = "t4", t5 = "t5"; in TEST() local
39 set<string> conditionNames = {t1, t2, t3, t4, t5}; in TEST()
101 string t1 = "t1", t2 = "t2"; in TEST() local
102 set<string> conditionNames = {t1, t2}; in TEST()
116 trigger.markComplete(t1); in TEST()
117 trigger.markComplete(t1); in TEST()
132 string t1 = "t1"; in TEST() local
133 set<string> conditionNames = {t1}; in TEST()
149 trigger.markComplete(t1); in TEST()
160 trigger.markComplete(t1); in TEST()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVoipCallTransactionTest.java126 TestVoipCallTransaction t1 = new TestVoipCallTransaction("t1", 1000L, in testSerialTransactionSuccess() local
132 subTransactions.add(t1); in testSerialTransactionSuccess()
144 verifyTransactionsFinished(t1, t2, t3); in testSerialTransactionSuccess()
152 TestVoipCallTransaction t1 = new TestVoipCallTransaction("t1", 1000L, in testSerialTransactionFailed() local
158 subTransactions.add(t1); in testSerialTransactionFailed()
179 verifyTransactionsFinished(t1, t2, t3); in testSerialTransactionFailed()
187 TestVoipCallTransaction t1 = new TestVoipCallTransaction("t1", 1000L, in testParallelTransactionSuccess() local
193 subTransactions.add(t1); in testParallelTransactionSuccess()
207 verifyTransactionsFinished(t1, t2, t3); in testParallelTransactionSuccess()
215 TestVoipCallTransaction t1 = new TestVoipCallTransaction("t1", 1000L, in testParallelTransactionFailed() local
[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/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DIaPdOption.java59 public final long t1; field in IaPdOption
63 IaPdOption(final short code, final short length, final long id, final long t1, in IaPdOption() argument
68 this.t1 = t1; in IaPdOption()
75 public static ByteBuffer build(final short length, final long id, final long t1, in build() argument
78 length /* 12 + IA_PD options length */, id, t1, t2); in build()
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Packet.java207 public final int t1; field in Dhcp6Packet.PrefixDelegation
214 public PrefixDelegation(int iaid, int t1, int t2, in PrefixDelegation() argument
218 this.t1 = t1; in PrefixDelegation()
224 public PrefixDelegation(int iaid, int t1, int t2, in PrefixDelegation() argument
226 this(iaid, t1, t2, ipos, STATUS_SUCCESS /* statusCode */); in PrefixDelegation()
239 if (t1 < 0 || t2 < 0) { in isValid()
240 Log.e(TAG, "IA_PD option with invalid T1 " + t1 + " or T2 " + t2); in isValid()
244 if (t2 != 0 && t1 > t2) { in isValid()
245 Log.e(TAG, "IA_PD option with T1 " + t1 + " greater than T2 " + t2); in isValid()
258 final int t1 = buffer.getInt(); in decode() local
[all …]
/packages/modules/Connectivity/staticlibs/native/bpf_headers/
DBpfRingbufTest.cpp77 struct timespec t1, t2; in RunTestN() local
78 EXPECT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &t1)); in RunTestN()
81 long long time1 = t1.tv_sec * 1000000000LL + t1.tv_nsec; in RunTestN()
91 EXPECT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &t1)); in RunTestN()
94 time1 = t1.tv_sec * 1000000000LL + t1.tv_nsec; in RunTestN()
/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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DIImsMediaThread.cpp51 std::thread t1(&runThread, this); in StartThread() local
58 pthread_setname_np(t1.native_handle(), shortname); in StartThread()
62 pthread_setname_np(t1.native_handle(), name); in StartThread()
65 t1.detach(); in StartThread()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DGroupTask.java48 public GroupTask(@NonNull Task t1, @Nullable Task t2, @Nullable SplitBounds splitBounds) { in GroupTask() argument
49 this(t1, t2, splitBounds, t2 != null ? TaskView.Type.GROUPED : TaskView.Type.SINGLE); in GroupTask()
52 protected GroupTask(@NonNull Task t1, @Nullable Task t2, @Nullable SplitBounds splitBounds, in GroupTask() argument
54 task1 = t1; in GroupTask()
/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/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.java30 private static <T> boolean sameContents(Iterator<T> t1, Iterator<T> t2) { in sameContents() argument
31 while (t1.hasNext()) { in sameContents()
35 T e1 = t1.next(); in sameContents()
/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/NetworkStack/tests/unit/src/android/net/dhcp6/
DDhcp6PacketTest.kt234 assertEquals(0, packet.mPrefixDelegation.t1) in testStatusCodeOptionWithStatusMessage()
262 assertEquals(0, packet.mPrefixDelegation.t1) in testStatusCodeOptionWithoutStatusMessage()
290 assertEquals(0, packet.mPrefixDelegation.t1) in testStatusCodeOptionInIaPdWithStatusMessage()
316 assertEquals(0, packet.mPrefixDelegation.t1) in testStatusCodeOptionInIaPdWithoutStatusMessage()
/packages/modules/Bluetooth/system/gd/metrics/
Dmetrics_state.h45 inline int64_t get_timedelta_nanos(const ClockTimePoint& t1, const ClockTimePoint& t2) { in get_timedelta_nanos() argument
46 if (t1 == kInvalidTimePoint || t2 == kInvalidTimePoint) { in get_timedelta_nanos()
49 return std::abs(std::chrono::duration_cast<std::chrono::nanoseconds>(t2 - t1).count()); in get_timedelta_nanos()
/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/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()

123