Home
last modified time | relevance | path

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

12345

/system/core/adb/
Dtransport.cpp34 static void transport_unref(atransport *t);
48 void kick_transport(atransport* t) in kick_transport() argument
50 if (t && !t->kicked) in kick_transport()
55 kicked = t->kicked; in kick_transport()
57 t->kicked = 1; in kick_transport()
61 t->kick(t); in kick_transport()
83 void run_transport_disconnects(atransport* t) in run_transport_disconnects() argument
85 adisconnect* dis = t->disconnects.next; in run_transport_disconnects()
87 D("%s: run_transport_disconnects\n", t->serial); in run_transport_disconnects()
88 while (dis != &t->disconnects) { in run_transport_disconnects()
[all …]
Dtransport_usb.cpp28 static int remote_read(apacket *p, atransport *t) in remote_read() argument
30 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ in remote_read()
41 if(usb_read(t->usb, p->data, p->msg.data_length)){ in remote_read()
55 static int remote_write(apacket *p, atransport *t) in remote_write() argument
59 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { in remote_write()
64 if(usb_write(t->usb, &p->data, size)) { in remote_write()
72 static void remote_close(atransport *t) in remote_close() argument
74 usb_close(t->usb); in remote_close()
75 t->usb = 0; in remote_close()
78 static void remote_kick(atransport *t) in remote_kick() argument
[all …]
Dtransport_test.cpp24 atransport t = {}; in TEST() local
26 t.kick = [](atransport* trans) { trans->fd = 42; }; in TEST()
27 atransport expected = t; in TEST()
30 kick_transport(&t); in TEST()
31 ASSERT_EQ(42, t.fd); in TEST()
32 ASSERT_EQ(1, t.kicked); in TEST()
33 ASSERT_EQ(0, memcmp(&expected, &t, sizeof(atransport))); in TEST()
39 atransport t = {}; in TEST() local
40 t.kicked = 1; in TEST()
41 t.kick = [](atransport*) { FAIL() << "Kick should not have been called"; }; in TEST()
[all …]
Dadb_auth.cpp33 void send_auth_request(atransport *t) in send_auth_request() argument
39 ret = adb_auth_generate_token(t->token, sizeof(t->token)); in send_auth_request()
40 if (ret != sizeof(t->token)) { in send_auth_request()
46 memcpy(p->data, t->token, ret); in send_auth_request()
50 send_packet(p, t); in send_auth_request()
53 void send_auth_response(uint8_t *token, size_t token_size, atransport *t) in send_auth_response() argument
59 ret = adb_auth_sign(t->key, token, token_size, p->data); in send_auth_response()
69 send_packet(p, t); in send_auth_response()
72 void send_auth_publickey(atransport *t) in send_auth_publickey() argument
88 send_packet(p, t); in send_auth_publickey()
[all …]
Dadb.cpp84 time_t t; in start_device_log() local
86 time(&t); in start_device_log()
87 localtime_r(&t, &now); in start_device_log()
216 void handle_online(atransport *t) in handle_online() argument
219 t->online = 1; in handle_online()
222 void handle_offline(atransport *t) in handle_offline() argument
226 t->online = 0; in handle_offline()
227 run_transport_disconnects(t); in handle_offline()
271 static void send_ready(unsigned local, unsigned remote, atransport *t) in send_ready() argument
278 send_packet(p, t); in send_ready()
[all …]
Dtransport_local.cpp49 static int remote_read(apacket *p, atransport *t) in remote_read() argument
51 if(!ReadFdExactly(t->sfd, &p->msg, sizeof(amessage))){ in remote_read()
61 if(!ReadFdExactly(t->sfd, p->data, p->msg.data_length)){ in remote_read()
74 static int remote_write(apacket *p, atransport *t) in remote_write() argument
78 if(!WriteFdExactly(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write()
313 static void remote_kick(atransport *t) in remote_kick() argument
315 int fd = t->sfd; in remote_kick()
316 t->sfd = -1; in remote_kick()
325 if (local_transports[nn] == t) { in remote_kick()
335 static void remote_close(atransport *t) in remote_close() argument
[all …]
Dtransport.h34 void add_transport_disconnect(atransport* t, adisconnect* dis);
35 void remove_transport_disconnect(atransport* t, adisconnect* dis);
36 void kick_transport(atransport* t);
37 void run_transport_disconnects(atransport* t);
57 void unregister_transport(atransport* t);
66 void send_packet(apacket* p, atransport* t);
Dadb.h148 void (*func)(void* opaque, atransport* t);
178 int (*read_from_remote)(apacket *p, atransport *t);
179 int (*write_to_remote)(apacket *p, atransport *t);
180 void (*close)(atransport *t);
181 void (*kick)(atransport *t);
246 void close_all_sockets(atransport *t);
251 asocket *create_remote_socket(unsigned id, atransport *t);
258 void handle_packet(apacket *p, atransport *t);
268 int init_socket_transport(atransport *t, int s, int port, int local);
269 void init_usb_transport(atransport *t, usb_handle *usb, int state);
[all …]
Dadb_auth.h25 void adb_auth_verified(atransport *t);
27 void send_auth_request(atransport *t);
28 void send_auth_response(uint8_t *token, size_t token_size, atransport *t);
29 void send_auth_publickey(atransport *t);
48 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } in adb_auth_confirm_key() argument
63 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
/system/extras/tests/memtest/
Dfptest.cpp40 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()
106 float32x4_t t; in test_fma() local
107 t = vmulq_f32(vld1q_f32((float32_t *)&data_f[i]), c0_02); in test_fma()
108 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+4]), c0_04); in test_fma()
109 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+8]), c0_05); in test_fma()
[all …]
/system/core/libutils/
DTimers.cpp36 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()
47 struct timeval t; in systemTime() local
48 t.tv_sec = t.tv_usec = 0; in systemTime()
49 gettimeofday(&t, NULL); in systemTime()
50 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
/system/core/libmincrypt/
Dsha.c42 int t; in SHA1_Transform() local
44 for(t = 0; t < 16; ++t) { in SHA1_Transform()
49 W[t] = tmp; in SHA1_Transform()
52 for(; t < 80; t++) { in SHA1_Transform()
53 W[t] = rol(1,W[t-3] ^ W[t-8] ^ W[t-14] ^ W[t-16]); in SHA1_Transform()
62 for(t = 0; t < 80; t++) { in SHA1_Transform()
63 uint32_t tmp = rol(5,A) + E + W[t]; in SHA1_Transform()
65 if (t < 20) in SHA1_Transform()
67 else if ( t < 40) in SHA1_Transform()
69 else if ( t < 60) in SHA1_Transform()
Dsha256.c61 int t; in SHA256_Transform() local
63 for(t = 0; t < 16; ++t) { in SHA256_Transform()
68 W[t] = tmp; in SHA256_Transform()
71 for(; t < 64; t++) { in SHA256_Transform()
72 uint32_t s0 = ror(W[t-15], 7) ^ ror(W[t-15], 18) ^ shr(W[t-15], 3); in SHA256_Transform()
73 uint32_t s1 = ror(W[t-2], 17) ^ ror(W[t-2], 19) ^ shr(W[t-2], 10); in SHA256_Transform()
74 W[t] = W[t-16] + s0 + W[t-7] + s1; in SHA256_Transform()
86 for(t = 0; t < 64; t++) { in SHA256_Transform()
92 uint32_t t1 = H + s1 + ch + K[t] + W[t]; in SHA256_Transform()
/system/extras/ext4_utils/
Dunencrypted_properties.h31 template<typename t> t Get(const char* name, t default_value = t()) const;
34 template<typename t> bool Set(const char* name, t const& value);
51 template<typename t> t UnencryptedProperties::Get(const char* name, in Get()
52 t default_value) const in Get()
55 t value = default_value; in Get()
60 template<typename t> bool UnencryptedProperties::Set(const char* name, in Set()
61 t const& value) in Set()
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/
Dstrsuftoll.c137 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/
Dconv.c66 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/extras/tests/bionic/libc/bionic/
Dtest_pthread_cond.c69 pthread_t t[4]; in main() local
73 pthread_create( &t[0], NULL, thread1_func, (void *)1 ); in main()
74 pthread_create( &t[1], NULL, thread2_func, (void *)2 ); in main()
75 pthread_create( &t[2], NULL, thread3_func, (void *)3 ); in main()
76 pthread_create( &t[3], NULL, thread4_func, (void *)4 ); in main()
78 pthread_join(t[0], NULL); in main()
79 pthread_join(t[1], NULL); in main()
80 pthread_join(t[2], NULL); in main()
81 pthread_join(t[3], NULL); in main()
/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/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/icachetest/
Dicache_main.c12 long long t; in main() local
22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
23 printf("%6ld\t%lld\n", step*32, t); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
30 MBs = (8388608LL*32*1000000) / (t * (1024*1024)); in main()
31 printf("\n%6lld us\t%ld MB/s\n", t, MBs); in main()
/system/bt/bta/jv/
Dbta_jv_act.c2320 struct fc_channel *t = fc_channels; in fcchan_get() local
2335 while (t && t->chan != chan) in fcchan_get()
2336 t = t->next; in fcchan_get()
2338 if (t) in fcchan_get()
2339 return t; in fcchan_get()
2343 t = osi_calloc(sizeof(*t)); in fcchan_get()
2344 if (!t) in fcchan_get()
2347 t->chan = chan; in fcchan_get()
2350 osi_free(t); in fcchan_get()
2355 t->next = fc_channels; in fcchan_get()
[all …]
/system/core/libmemtrack/
Dmemtrack.c83 static int memtrack_proc_get_type(struct memtrack_proc_type *t, in memtrack_proc_get_type() argument
86 size_t num_records = t->num_records; in memtrack_proc_get_type()
90 ret = module->getMemory(module, pid, type, t->records, &num_records); in memtrack_proc_get_type()
92 t->num_records = 0; in memtrack_proc_get_type()
95 if (num_records > t->allocated_records) { in memtrack_proc_get_type()
97 free(t->records); in memtrack_proc_get_type()
98 t->records = calloc(sizeof(*t->records), num_records); in memtrack_proc_get_type()
99 if (!t->records) { in memtrack_proc_get_type()
102 t->allocated_records = num_records; in memtrack_proc_get_type()
105 t->num_records = num_records; in memtrack_proc_get_type()
/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/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/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()
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()

12345