/system/core/adb/ |
D | transport_test.cpp | 24 atransport t; in TEST() local 28 t.SetKickFunction([](atransport* trans) { kick_count++; }); in TEST() 29 ASSERT_FALSE(t.IsKicked()); in TEST() 30 t.Kick(); in TEST() 31 ASSERT_TRUE(t.IsKicked()); in TEST() 34 t.Kick(); in TEST() 35 ASSERT_TRUE(t.IsKicked()); in TEST() 45 atransport t; in TEST() local 47 t.RunDisconnects(); in TEST() 53 t.AddDisconnect(&disconnect); in TEST() [all …]
|
D | transport.cpp | 49 static void transport_unref(atransport *t); 152 atransport* t = reinterpret_cast<atransport*>(_t); in transport_socket_events() local 156 if (read_packet(fd, t->serial, &p)) { in transport_socket_events() 157 D("%s: failed to read packet from transport socket on fd %d", t->serial, fd); in transport_socket_events() 164 void send_packet(apacket* p, atransport* t) { in send_packet() argument 170 if (t == NULL) { in send_packet() 174 if (write_packet(t->transport_socket, t->serial, &p)) { in send_packet() 193 atransport* t = reinterpret_cast<atransport*>(_t); in read_transport_thread() local 197 android::base::StringPrintf("<-%s", (t->serial != nullptr ? t->serial : "transport"))); in read_transport_thread() 198 D("%s: starting read_transport thread on fd %d, SYNC online (%d)", t->serial, t->fd, in read_transport_thread() [all …]
|
D | transport_usb.cpp | 69 static int remote_read(apacket* p, atransport* t) { in remote_read() argument 70 int n = UsbReadMessage(t->usb, &p->msg); in remote_read() 75 if (static_cast<size_t>(n) != sizeof(p->msg) || !check_header(p, t)) { in remote_read() 79 if (t->GetConnectionState() == kCsOffline) { in remote_read() 87 n = UsbReadPayload(t->usb, p); in remote_read() 113 static int remote_read(apacket *p, atransport *t) in remote_read() argument 115 if (usb_read(t->usb, &p->msg, sizeof(amessage))) { in remote_read() 120 if (!check_header(p, t)) { in remote_read() 126 if (usb_read(t->usb, p->data, p->msg.data_length)) { in remote_read() 141 static int remote_write(apacket *p, atransport *t) in remote_write() argument [all …]
|
D | adb.cpp | 135 void handle_online(atransport *t) in handle_online() argument 138 t->online = 1; in handle_online() 141 void handle_offline(atransport *t) in handle_offline() argument 145 t->online = 0; in handle_offline() 149 close_all_sockets(t); in handle_offline() 151 t->RunDisconnects(); in handle_offline() 195 static void send_ready(unsigned local, unsigned remote, atransport *t) in send_ready() argument 202 send_packet(p, t); in send_ready() 205 static void send_close(unsigned local, unsigned remote, atransport *t) in send_close() argument 212 send_packet(p, t); in send_close() [all …]
|
D | adbd_auth.cpp | 42 static void usb_disconnected(void* unused, atransport* t); 100 static void usb_disconnected(void* unused, atransport* t) { in usb_disconnected() argument 126 void adbd_auth_confirm_key(const char* key, size_t len, atransport* t) { in adbd_auth_confirm_key() argument 128 usb_transport = t; in adbd_auth_confirm_key() 129 t->AddDisconnect(&usb_disconnect); in adbd_auth_confirm_key() 204 void send_auth_request(atransport* t) { in send_auth_request() argument 207 if (!adbd_auth_generate_token(t->token, sizeof(t->token))) { in send_auth_request() 213 memcpy(p->data, t->token, sizeof(t->token)); in send_auth_request() 216 p->msg.data_length = sizeof(t->token); in send_auth_request() 217 send_packet(p, t); in send_auth_request() [all …]
|
D | transport_local.cpp | 63 static int remote_read(apacket *p, atransport *t) in remote_read() argument 65 if (!ReadFdExactly(t->sfd, &p->msg, sizeof(amessage))) { in remote_read() 70 if (!check_header(p, t)) { in remote_read() 75 if (!ReadFdExactly(t->sfd, p->data, p->msg.data_length)) { in remote_read() 88 static int remote_write(apacket *p, atransport *t) in remote_write() argument 92 if(!WriteFdExactly(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write() 431 static void remote_kick(atransport *t) in remote_kick() argument 433 int fd = t->sfd; in remote_kick() 434 t->sfd = -1; in remote_kick() 442 if (local_transports[nn] == t) { in remote_kick() [all …]
|
D | adb.h | 91 void (*func)(void* opaque, atransport* t); 133 void handle_packet(apacket *p, atransport *t); 142 int init_socket_transport(atransport *t, int s, int port, int local); 143 void init_usb_transport(atransport* t, usb_handle* usb); 202 ConnectionState connection_state(atransport *t); 224 void handle_online(atransport *t); 225 void handle_offline(atransport *t); 227 void send_connect(atransport *t); 229 void parse_banner(const std::string&, atransport* t);
|
D | adb_auth.h | 42 void send_auth_response(const char* token, size_t token_size, atransport* t); 49 void adbd_auth_verified(atransport *t); 53 void adbd_auth_confirm_key(const char* data, size_t len, atransport* t); 55 void send_auth_request(atransport *t);
|
/system/extras/tests/memtest/ |
D | fptest.cpp | 40 struct timespec t; in system_time() local 41 t.tv_sec = t.tv_nsec = 0; in system_time() 42 clock_gettime(CLOCK_MONOTONIC, &t); in system_time() 43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time() 53 nsecs_t t = system_time() - gTime; in endTime() local 54 double ds = ((double)t) / 1e9; in endTime() 104 float32x4_t t; in test_fma() local 105 t = vmulq_f32(vld1q_f32((float32_t *)&data_f[i]), c0_02); in test_fma() 106 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+4]), c0_04); in test_fma() 107 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+8]), c0_05); in test_fma() [all …]
|
/system/chre/util/tests/ |
D | time_test.cc | 38 Seconds t(5); in TEST() local 39 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST() 43 Seconds t(UINT64_MAX / kOneSecondInNanoseconds + 1); in TEST() local 44 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST() 49 Milliseconds t; in TEST() local 50 EXPECT_EQ(t.getMilliseconds(), 0); in TEST() 54 Milliseconds t(5); in TEST() local 55 EXPECT_EQ(t.getMilliseconds(), 5); in TEST() 65 Milliseconds t(5); in TEST() local 66 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneMillisecondInNanoseconds); in TEST() [all …]
|
/system/core/libutils/ |
D | Timers.cpp | 35 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, NULL); in systemTime() 49 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
|
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/ |
D | strsuftoll.c | 137 long long num, t; in __strsuftollx() local 162 t = num; in __strsuftollx() 164 if (t > num) in __strsuftollx() 169 t = num; in __strsuftollx() 171 if (t > num) in __strsuftollx() 176 t = num; in __strsuftollx() 178 if (t > num) in __strsuftollx() 183 t = num; in __strsuftollx() 185 if (t > num) in __strsuftollx() 190 t = num; in __strsuftollx() [all …]
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | conv.c | 66 const u_char *t; in def() local 68 if ((t = ctab) != NULL) in def() 70 *inp = t[*inp]; in def() 123 const u_char *t; in block() local 151 if ((t = ctab) != NULL) in block() 154 *outp++ = t[ch]; in block() 234 const u_char *t; in unblock() local 237 if ((t = ctab) != NULL) in unblock() 239 *inp = t[*inp]; in unblock() 246 for (t = inp + cbsz - 1; t >= inp && *t == ' '; --t); in unblock() [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/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/core/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 | 2192 struct fc_channel* t = fc_channels; in fcchan_get() local 2208 while (t && t->chan != chan) t = t->next; in fcchan_get() 2210 if (t) in fcchan_get() 2211 return t; in fcchan_get() 2215 t = static_cast<struct fc_channel*>(osi_calloc(sizeof(*t))); in fcchan_get() 2216 t->chan = chan; in fcchan_get() 2219 osi_free(t); in fcchan_get() 2224 t->next = fc_channels; in fcchan_get() 2225 fc_channels = t; in fcchan_get() 2227 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/libpixelflinger/ |
D | picker.cpp | 137 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/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() 135 int l,t,w,h; in main() local 137 t=0; in main() 141 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in main() 142 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
|
/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/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() 613 for (size_t t = 0; t < arraysize(fd_task_maps_); ++t) { in SetupMessageLoopSources() local 614 if (!fd_task_maps_[t].empty()) in SetupMessageLoopSources() 615 fd_max = max(fd_max, fd_task_maps_[t].rbegin()->first); in SetupMessageLoopSources() 635 for (size_t t = 0; t < arraysize(fd_task_maps_); ++t) { in SetupMessageLoopSources() local 636 auto fd_task_it = fd_task_maps_[t].find(fd); in SetupMessageLoopSources() [all …]
|
/system/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 112 GGLfixed result, t; in gglMulx() local 117 : [lo]"=r"(result), [hi]"=r"(t), [x]"=r"(x) in gglMulx() 125 : [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/extras/tests/ext4/ |
D | rand_emmc_perf.c | 53 struct timeval t; in print_stats() local 73 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); in print_stats() 74 if (timercmp(&t, &max, >)) { in print_stats() 75 max = t; in print_stats() 78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats() 80 timeradd(&sum, &t, &sum); in print_stats() 100 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); /* Xi */ in print_stats() 101 x = (t.tv_sec * 1000000LL) + t.tv_usec; /* Convert to long long */ in print_stats()
|