Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/system/core/adb/
Dtransport_test.cpp32 atransport t; in TEST_F() local
34 t.RunDisconnects(); in TEST_F()
40 t.AddDisconnect(&disconnect); in TEST_F()
41 t.RunDisconnects(); in TEST_F()
45 t.RunDisconnects(); in TEST_F()
49 t.AddDisconnect(&disconnect); in TEST_F()
50 t.RemoveDisconnect(&disconnect); in TEST_F()
51 t.RunDisconnects(); in TEST_F()
56 atransport t; in TEST_F() local
57 ASSERT_EQ(0U, t.features().size()); in TEST_F()
[all …]
Dtransport.cpp431 void send_packet(apacket* p, atransport* t) { in send_packet() argument
434 if (t->get_protocol_version() >= A_VERSION_SKIP_CHECKSUM) { in send_packet()
440 VLOG(TRANSPORT) << dump_packet(t->serial.c_str(), "to remote", p); in send_packet()
442 if (t == nullptr) { in send_packet()
446 if (t->Write(p) != 0) { in send_packet()
447 D("%s: failed to enqueue packet, closing transport", t->serial.c_str()); in send_packet()
448 t->Kick(); in send_packet()
452 void kick_transport(atransport* t, bool reset) { in kick_transport() argument
458 if (std::find(transport_list.begin(), transport_list.end(), t) != transport_list.end()) { in kick_transport()
460 t->Reset(); in kick_transport()
[all …]
Dadb.cpp100 void handle_online(atransport *t) in handle_online() argument
103 t->online = 1; in handle_online()
104 t->SetConnectionEstablished(true); in handle_online()
107 void handle_offline(atransport *t) in handle_offline() argument
109 if (t->GetConnectionState() == kCsOffline) { in handle_offline()
110 LOG(INFO) << t->serial_name() << ": already offline"; in handle_offline()
114 LOG(INFO) << t->serial_name() << ": offline"; in handle_offline()
116 t->SetConnectionState(kCsOffline); in handle_offline()
119 t->online = 0; in handle_offline()
123 close_all_sockets(t); in handle_offline()
[all …]
Dadb_auth.h43 void send_auth_response(const char* token, size_t token_size, atransport* t);
50 void adbd_auth_verified(atransport *t);
55 void adbd_auth_confirm_key(atransport* t);
56 void adbd_notify_framework_connected_key(atransport* t);
58 void send_auth_request(atransport *t);
Dadb.h76 void (*func)(void* opaque, atransport* t);
130 void handle_packet(apacket* p, atransport* t);
136 int init_socket_transport(atransport* t, unique_fd s, int port, int local);
137 void init_usb_transport(atransport* t, usb_handle* usb);
207 ConnectionState connection_state(atransport* t);
235 void handle_online(atransport* t);
236 void handle_offline(atransport* t);
238 void send_connect(atransport* t);
240 void parse_banner(const std::string&, atransport* t);
/system/chre/util/tests/
Dtime_test.cc41 Seconds t(5); in TEST() local
42 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
46 Seconds t(UINT64_MAX / kOneSecondInNanoseconds + 1); in TEST() local
47 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST()
51 Seconds t(5); in TEST() local
52 EXPECT_EQ(t.getMilliseconds(), 5 * kOneSecondInMilliseconds); in TEST()
56 Seconds t(UINT64_MAX / kOneSecondInMilliseconds + 1); in TEST() local
57 EXPECT_EQ(t.getMilliseconds(), UINT64_MAX); in TEST()
62 Milliseconds t; in TEST() local
63 EXPECT_EQ(t.getMilliseconds(), 0); in TEST()
[all …]
/system/extras/libperfmgr/tests/
DFileNodeTest.cc45 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
52 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, true); in TEST() local
62 FileNode t("test_dump", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST() local
65 t.DumpToFd(dumptf.fd); in TEST()
75 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
77 EXPECT_TRUE(t.GetValueIndex("value2", &index)); in TEST()
80 EXPECT_FALSE(t.GetValueIndex("NON_EXIST", &index)); in TEST()
87 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
88 std::vector values = t.GetValues(); in TEST()
99 FileNode t(test_name, test_path, {}, 0, false, true); in TEST() local
[all …]
DPropertyNodeTest.cc51 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
58 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, true); in TEST() local
68 PropertyNode t("test_dump", key, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST() local
71 t.DumpToFd(dumptf.fd); in TEST()
84 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
86 EXPECT_TRUE(t.GetValueIndex("value2", &index)); in TEST()
89 EXPECT_FALSE(t.GetValueIndex("NON_EXIST", &index)); in TEST()
96 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST() local
97 std::vector values = t.GetValues(); in TEST()
108 PropertyNode t(test_name, test_path, {}, 0, false); in TEST() local
[all …]
/system/core/libutils/
DTimers.cpp35 struct timespec t; in systemTime() local
36 t.tv_sec = t.tv_nsec = 0; in systemTime()
37 clock_gettime(clocks[clock], &t); in systemTime()
38 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
46 struct timeval t; in systemTime() local
47 t.tv_sec = t.tv_usec = 0; in systemTime()
48 gettimeofday(&t, nullptr); in systemTime()
49 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
/system/core/adb/daemon/
Dauth.cpp47 static void adb_disconnected(void* unused, atransport* t);
130 static void adb_disconnected(void* unused, atransport* t) { in adb_disconnected() argument
137 adbd_send_key_message_locked("DC", t->auth_key); in adb_disconnected()
139 connected_keys.erase(std::remove(connected_keys.begin(), connected_keys.end(), t->auth_key), in adb_disconnected()
169 void adbd_auth_confirm_key(atransport* t) { in adbd_auth_confirm_key() argument
171 adb_transport = t; in adbd_auth_confirm_key()
172 t->AddDisconnect(&adb_disconnect); in adbd_auth_confirm_key()
183 adbd_send_key_message_locked("PK", t->auth_key); in adbd_auth_confirm_key()
220 void adbd_notify_framework_connected_key(atransport* t) { in adbd_notify_framework_connected_key() argument
222 adb_transport = t; in adbd_notify_framework_connected_key()
[all …]
Djdwp_service.cpp460 for (auto& t : _jdwp_trackers) { in jdwp_process_list_updated() local
461 if (t->peer) { in jdwp_process_list_updated()
464 t->peer->enqueue(t->peer, std::move(payload)); in jdwp_process_list_updated()
487 JdwpTracker* t = (JdwpTracker*)s; in jdwp_tracker_ready() local
489 if (t->need_initial) { in jdwp_tracker_ready()
493 t->need_initial = false; in jdwp_tracker_ready()
506 auto t = std::make_unique<JdwpTracker>(); in create_jdwp_tracker_service_socket() local
507 if (!t) { in create_jdwp_tracker_service_socket()
511 memset(t.get(), 0, sizeof(asocket)); in create_jdwp_tracker_service_socket()
513 install_local_socket(t.get()); in create_jdwp_tracker_service_socket()
[all …]
/system/libufdt/tests/
Drun_performance_test.sh113 for t in $(seq 200 50 1000); do
114 run_performance_test 2 0 $t 100 100
117 for t in $(seq 200 50 1000); do
118 run_performance_test 2 $t $t 100 100
121 for t in $(seq 50 50 1000); do
122 run_performance_test 2 0 2000 $t 0
125 for t in $(seq 50 50 1000); do
126 run_performance_test 2 0 2000 0 $t
/system/extras/tests/workloads/
Dfeedly-chrome.sh45 t=$(forceStartActivity feedly)
47 echo Feedly start time = ${t}ms
50 t=$(forceStartActivity chrome)
52 echo Chrome start time = ${t}ms
64 t=$(startActivity feedly)
65 if [ $(checkStartTime "$t" $feedlySwitchToTime) != true ]; then
66 handleError Feedly took too long to start: $t v $feedlySwitchToTime: $?
72 echo feedly started in ${t}ms
/system/extras/tests/timetest/
Dtimetest.c15 struct timespec t; in nanotime() local
17 if(clock_gettime(CLOCK_MONOTONIC, &t)) { in nanotime()
22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime()
23 ((long long) t.tv_nsec); in nanotime()
80 struct timespec t, dt; in main() local
81 clock_gettime(clock_id, &t); in main()
82 dt = ts_sub(t, t1); in main()
83 t1 = t; in main()
91 t.tv_sec, t.tv_nsec, dt.tv_sec, dt.tv_nsec, in main()
/system/core/libmemunreachable/
DScopedAlarm.h38 itimerval t = itimerval{}; in ScopedAlarm()
39 t.it_value.tv_sec = s.count(); in ScopedAlarm()
40 t.it_value.tv_usec = (us - s).count(); in ScopedAlarm()
41 setitimer(ITIMER_REAL, &t, NULL); in ScopedAlarm()
44 itimerval t = itimerval{}; in ~ScopedAlarm()
45 setitimer(ITIMER_REAL, &t, NULL); in ~ScopedAlarm()
/system/bt/bta/jv/
Dbta_jv_act.cc1884 struct fc_channel* t = fc_channels; in fcchan_get() local
1900 while (t && t->chan != chan) t = t->next; in fcchan_get()
1902 if (t) in fcchan_get()
1903 return t; in fcchan_get()
1907 t = static_cast<struct fc_channel*>(osi_calloc(sizeof(*t))); in fcchan_get()
1908 t->chan = chan; in fcchan_get()
1911 osi_free(t); in fcchan_get()
1916 t->next = fc_channels; in fcchan_get()
1917 fc_channels = t; in fcchan_get()
1919 return t; in fcchan_get()
[all …]
/system/extras/tests/pftest/
Dpftest.c39 struct timespec t; in stop_watch() local
40 t.tv_sec = t.tv_nsec = 0; in stop_watch()
41 clock_gettime(CLOCK_MONOTONIC, &t); in stop_watch()
42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
/system/core/libpixelflinger/
Dpicker.cpp137 uint32_t t = 0; in ggl_pick() local
138 t |= GGL_BUILD_NEEDS(tx.surface.format, T_FORMAT); in ggl_pick()
139 t |= GGL_BUILD_NEEDS(ggl_env_to_needs(tx.env), T_ENV); in ggl_pick()
140 t |= GGL_BUILD_NEEDS(0, T_POT); // XXX: not used yet in ggl_pick()
143 t |= GGL_BUILD_NEEDS(GGL_NEEDS_WRAP_11, T_S_WRAP); in ggl_pick()
144 t |= GGL_BUILD_NEEDS(GGL_NEEDS_WRAP_11, T_T_WRAP); in ggl_pick()
146 t |= GGL_BUILD_NEEDS(ggl_wrap_to_needs(tx.s_wrap), T_S_WRAP); in ggl_pick()
147 t |= GGL_BUILD_NEEDS(ggl_wrap_to_needs(tx.t_wrap), T_T_WRAP); in ggl_pick()
150 t |= GGL_BUILD_NEEDS(1, T_LINEAR); in ggl_pick()
153 t |= GGL_BUILD_NEEDS(1, T_LINEAR); in ggl_pick()
[all …]
/system/core/liblog/include_vndk/log/
Dlog_time.h36 #define LOG_TIME_SEC(t) ((t)->tv_sec) argument
38 #define LOG_TIME_NSEC(t) ((t)->tv_nsec & (UINT32_MAX >> 2)) argument
/system/extras/tests/framebuffer/
Drefresh.c21 struct timespec t; in systemTime() local
22 t.tv_sec = t.tv_nsec = 0; in systemTime()
23 clock_gettime(CLOCK_MONOTONIC, &t); in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
134 int l,t,w,h; in main() local
136 t=0; in main()
140 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in main()
141 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
/system/update_engine/
Dlibcurl_http_fetcher.cc80 for (size_t t = 0; t < arraysize(fetcher->fd_task_maps_); ++t) { in LibcurlCloseSocketCallback() local
81 const auto fd_task_pair = fetcher->fd_task_maps_[t].find(item); in LibcurlCloseSocketCallback()
82 if (fd_task_pair != fetcher->fd_task_maps_[t].end()) { in LibcurlCloseSocketCallback()
86 << (t ? "writing" : "reading") << " the fd " << item; in LibcurlCloseSocketCallback()
88 fetcher->fd_task_maps_[t].erase(item); in LibcurlCloseSocketCallback()
618 for (size_t t = 0; t < arraysize(fd_task_maps_); ++t) { in SetupMessageLoopSources() local
619 if (!fd_task_maps_[t].empty()) in SetupMessageLoopSources()
620 fd_max = max(fd_max, fd_task_maps_[t].rbegin()->first); in SetupMessageLoopSources()
640 for (size_t t = 0; t < arraysize(fd_task_maps_); ++t) { in SetupMessageLoopSources() local
641 auto fd_task_it = fd_task_maps_[t].find(fd); in SetupMessageLoopSources()
[all …]
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h111 GGLfixed result, t; in gglMulx() local
116 : [lo]"=r"(result), [hi]"=r"(t), [x]"=r"(x) in gglMulx()
124 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulx()
135 GGLfixed result, t; in gglMulAddx() local
140 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulAddx()
147 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulAddx()
156 GGLfixed result, t; in gglMulSubx() local
161 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulSubx()
168 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulSubx()
294 GGLfixed result,t,tmp1,tmp2; in gglMulAddx() local
[all …]
/system/core/lmkd/
Dstatslog.c24 struct timespec t; in getElapsedRealTimeNs() local
25 t.tv_sec = t.tv_nsec = 0; in getElapsedRealTimeNs()
26 clock_gettime(CLOCK_BOOTTIME, &t); in getElapsedRealTimeNs()
27 return (int64_t)t.tv_sec * 1000000000LL + t.tv_nsec; in getElapsedRealTimeNs()
/system/media/audio_utils/include/audio_utils/
Dvariadic_utils.h153 const T& t,
159 auto& operator<<(std::basic_ostream<charT, traits>& os, const T& t) { \
160 return ostream_variadic(os, t, std::make_index_sequence<std::tuple_size<T>::value>{}); \
167 const T& t,
171 int dummy[] __unused = { (os << (I == 0 ? "" : ", ") << std::get<I>(t), 0) ... };
191 constexpr auto fold(Op&& op __unused, T&& t) {
192 return std::get<index>(std::forward<T>(t));
198 constexpr auto fold(Op&& op, T&& t) {
199 return op(fold<index - 1>(std::forward<Op>(op), t), std::get<index>(std::forward<T>(t)));
205 constexpr auto fold(Op&& op, T&& t) {
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Dtechnical_debt.cil9 ; Unfortunately, we can't currently express this in module policy language:
16 ; Unfortunately, we can't currently express this in module policy language:
20 ; Unfortunately, we can't currently express this in module policy language:
24 ; Unfortunately, we can't currently express this in module policy language:
29 ; Unfortunately, we can't currently express this in module policy language:
34 ; Unfortunately, we can't currently express this in module policy language:
39 ; Unfortunately, we can't currently express this in module policy language:
44 ; Unfortunately, we can't currently express this in module policy language:
50 ; Unfortunately, we can't currently express this in module policy language:
59 ; Unfortunately, we can't currently express this in module policy language:

12345678910>>...17