/system/core/adb/ |
D | transport_test.cpp | 32 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 …]
|
D | transport.cpp | 548 void send_packet(apacket* p, atransport* t) { in send_packet() argument 551 if (t->get_protocol_version() >= A_VERSION_SKIP_CHECKSUM) { in send_packet() 557 VLOG(TRANSPORT) << dump_packet(t->serial.c_str(), "to remote", p); in send_packet() 559 if (t == nullptr) { in send_packet() 563 if (t->Write(p) != 0) { in send_packet() 564 D("%s: failed to enqueue packet, closing transport", t->serial.c_str()); in send_packet() 565 t->Kick(); in send_packet() 569 void kick_transport(atransport* t, bool reset) { in kick_transport() argument 575 if (std::find(transport_list.begin(), transport_list.end(), t) != transport_list.end()) { in kick_transport() 577 t->Reset(); in kick_transport() [all …]
|
D | adb.cpp | 108 void handle_online(atransport *t) in handle_online() argument 111 t->online = 1; in handle_online() 112 t->SetConnectionEstablished(true); in handle_online() 115 void handle_offline(atransport *t) in handle_offline() argument 117 if (t->GetConnectionState() == kCsOffline) { in handle_offline() 118 LOG(INFO) << t->serial_name() << ": already offline"; in handle_offline() 122 LOG(INFO) << t->serial_name() << ": offline"; in handle_offline() 124 t->SetConnectionState(kCsOffline); in handle_offline() 127 t->online = 0; in handle_offline() 131 close_all_sockets(t); in handle_offline() [all …]
|
D | adb_auth.h | 44 void send_auth_response(const char* token, size_t token_size, atransport* t); 47 void adb_auth_tls_handshake(atransport* t); 54 void adbd_auth_verified(atransport *t); 59 void adbd_auth_confirm_key(atransport* t); 60 void adbd_notify_framework_connected_key(atransport* t); 62 void send_auth_request(atransport *t); 64 void adbd_auth_tls_handshake(atransport* t);
|
D | adb.h | 80 void (*func)(void* opaque, atransport* t); 134 void handle_packet(apacket* p, atransport* t); 140 int init_socket_transport(atransport* t, unique_fd s, int port, int local); 203 ConnectionState connection_state(atransport* t); 231 void handle_online(atransport* t); 232 void handle_offline(atransport* t); 234 void send_connect(atransport* t); 235 void send_tls_request(atransport* t); 237 void parse_banner(const std::string&, atransport* t);
|
/system/chre/util/tests/ |
D | time_test.cc | 41 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/tools/aidl/build/ |
D | aidl_test.go | 74 func _testAidl(t *testing.T, bp string, customizers ...testCustomizer) (*android.TestContext, andro… 75 t.Helper() 157 func testAidl(t *testing.T, bp string, customizers ...testCustomizer) (*android.TestContext, androi… 158 t.Helper() 159 ctx, config := _testAidl(t, bp, customizers...) 161 android.FailIfErrored(t, errs) 163 android.FailIfErrored(t, errs) 167 func testAidlError(t *testing.T, pattern, bp string, customizers ...testCustomizer) { 168 t.Helper() 169 ctx, config := _testAidl(t, bp, customizers...) [all …]
|
/system/core/libutils/ |
D | Timers.cpp | 36 struct timespec t; in systemTime() local 37 t.tv_sec = t.tv_nsec = 0; in systemTime() 38 clock_gettime(clocks[clock], &t); in systemTime() 39 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/ |
D | auth.cpp | 60 static void adb_disconnected(void* unused, atransport* t); 87 atransport* t = it->second.get(); in transport_from_callback_arg() local 88 if (!t) { in transport_from_callback_arg() 94 return t; in transport_from_callback_arg() 256 void send_auth_request(atransport* t) { in send_auth_request() argument 259 if (!adbd_auth_generate_token(t->token, sizeof(t->token))) { in send_auth_request() 267 p->msg.data_length = sizeof(t->token); in send_auth_request() 268 p->payload.assign(t->token, t->token + sizeof(t->token)); in send_auth_request() 269 send_packet(p, t); in send_auth_request() 272 void adbd_auth_verified(atransport* t) { in adbd_auth_verified() argument [all …]
|
D | adb_wifi.cpp | 40 static void adb_disconnected(void* unused, atransport* t); 43 static void adb_disconnected(void* unused, atransport* t) { in adb_disconnected() argument 45 CHECK(t->auth_id.has_value()); in adb_disconnected() 46 adbd_auth_tls_device_disconnected(auth_ctx, kAdbTransportTypeWifi, t->auth_id.value()); in adb_disconnected() 220 void adbd_wifi_secure_connect(atransport* t) { in adbd_wifi_secure_connect() argument 221 t->AddDisconnect(&adb_disconnect); in adbd_wifi_secure_connect() 222 handle_online(t); in adbd_wifi_secure_connect() 223 send_connect(t); in adbd_wifi_secure_connect() 224 LOG(INFO) << __func__ << ": connected " << t->serial; in adbd_wifi_secure_connect() 225 t->auth_id = adbd_auth_tls_device_connected(auth_ctx, kAdbTransportTypeWifi, t->auth_key.data(), in adbd_wifi_secure_connect() [all …]
|
D | jdwp_service.cpp | 351 for (auto& t : _jdwp_trackers) { in jdwp_process_list_updated() local 352 if (t->peer) { in jdwp_process_list_updated() 355 t->peer->enqueue(t->peer, std::move(payload)); in jdwp_process_list_updated() 378 JdwpTracker* t = (JdwpTracker*)s; in jdwp_tracker_ready() local 380 if (t->need_initial) { in jdwp_tracker_ready() 384 t->need_initial = false; in jdwp_tracker_ready() 397 auto t = std::make_unique<JdwpTracker>(); in create_jdwp_tracker_service_socket() local 398 if (!t) { in create_jdwp_tracker_service_socket() 402 memset(t.get(), 0, sizeof(asocket)); in create_jdwp_tracker_service_socket() 404 install_local_socket(t.get()); in create_jdwp_tracker_service_socket() [all …]
|
/system/libufdt/tests/ |
D | run_performance_test.sh | 113 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/chre/external/flatbuffers/include/flatbuffers/ |
D | base.h | 265 template<typename T> FLATBUFFERS_CONSTEXPR inline bool IsConstTrue(T t) { in IsConstTrue() argument 266 return !!t; in IsConstTrue() 319 template<typename T> T EndianSwap(T t) { in EndianSwap() argument 341 return t; in EndianSwap() 343 union { T t; uint16_t i; } u = { t }; in EndianSwap() member 345 return u.t; in EndianSwap() 347 union { T t; uint32_t i; } u = { t }; in EndianSwap() member 349 return u.t; in EndianSwap() 351 union { T t; uint64_t i; } u = { t }; in EndianSwap() member 353 return u.t; in EndianSwap() [all …]
|
/system/extras/tests/workloads/ |
D | feedly-chrome.sh | 45 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/ |
D | timetest.c | 15 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/memory/libmemunreachable/ |
D | ScopedAlarm.h | 38 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/ |
D | bta_jv_act.cc | 1889 struct fc_channel* t = fc_channels; in fcchan_get() local 1905 while (t && t->chan != chan) t = t->next; in fcchan_get() 1907 if (t) in fcchan_get() 1908 return t; in fcchan_get() 1912 t = static_cast<struct fc_channel*>(osi_calloc(sizeof(*t))); in fcchan_get() 1913 t->chan = chan; in fcchan_get() 1916 osi_free(t); in fcchan_get() 1921 t->next = fc_channels; in fcchan_get() 1922 fc_channels = t; in fcchan_get() 1924 return t; in fcchan_get() [all …]
|
/system/extras/tests/pftest/ |
D | pftest.c | 39 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/liblog/include_vndk/log/ |
D | log_time.h | 36 #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/ |
D | refresh.c | 21 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/extras/memory_replay/ |
D | Utils.h | 23 struct timespec t = {}; in Nanotime() local 24 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime() 25 return static_cast<uint64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in Nanotime()
|
/system/update_engine/ |
D | libcurl_http_fetcher.cc | 80 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/teeui/libteeui/include/teeui/ |
D | msg_formatting.h | 37 std::tuple<T...>&& t) { in tuple_move_helper() argument 38 return {std::move(std::get<idx>(t))...}; in tuple_move_helper() 42 std::tuple<std::remove_reference_t<T>&&...> tuple_move(std::tuple<T...>&& t) { in tuple_move() argument 43 return tuple_move_helper(std::make_index_sequence<sizeof...(T)>(), std::move(t)); in tuple_move() 47 std::tuple<std::remove_reference_t<T>&&...> tuple_move(std::tuple<T...>& t) { in tuple_move() argument 48 return tuple_move_helper(std::make_index_sequence<sizeof...(T)>(), std::move(t)); in tuple_move() 168 std::tuple<T&&...> tuple_tail(std::index_sequence<first_idx, idx...>, std::tuple<HEAD, T...>&& t) { 169 return {std::move(std::get<idx>(t))...}; 174 const std::tuple<HEAD, T...>& t) { 175 return {std::get<idx>(t)...}; [all …]
|
/system/core/libutils/include/utils/ |
D | StrongPointer.h | 89 static inline bool operator _op_(const sp<T>& t, const sp<U>& u) { \ 90 return t.get() _op_ u.get(); \ 93 static inline bool operator _op_(const T* t, const sp<U>& u) { \ 94 return t _op_ u.get(); \ 97 static inline bool operator _op_(const sp<T>& t, const U* u) { \ 98 return t.get() _op_ u; \ 101 static inline bool operator _op_(const sp<T>& t, std::nullptr_t) { \ 102 return t.get() _op_ nullptr; \ 105 static inline bool operator _op_(std::nullptr_t, const sp<T>& t) { \ 106 return nullptr _op_ t.get(); \ [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | variadic_utils.h | 153 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 …]
|