/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() 113 t->SetConnectionEstablished(true); in handle_online() 117 void handle_offline(atransport *t) in handle_offline() argument 119 if (t->GetConnectionState() == kCsOffline) { in handle_offline() 120 LOG(INFO) << t->serial_name() << ": already offline"; in handle_offline() 124 LOG(INFO) << t->serial_name() << ": offline"; in handle_offline() 126 t->SetConnectionState(kCsOffline); in handle_offline() 129 t->online = 0; in handle_offline() 133 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);
|
/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/extras/libperfmgr/tests/ |
D | FileNodeTest.cc | 45 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 …]
|
D | PropertyNodeTest.cc | 51 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/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/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() 244 void send_auth_request(atransport* t) { in send_auth_request() argument 247 if (!adbd_auth_generate_token(t->token, sizeof(t->token))) { in send_auth_request() 255 p->msg.data_length = sizeof(t->token); in send_auth_request() 256 p->payload.assign(t->token, t->token + sizeof(t->token)); in send_auth_request() 257 send_packet(p, t); in send_auth_request() 260 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 adbd_auth_tls_device_disconnected(auth_ctx, kAdbTransportTypeWifi, t->auth_id); in adb_disconnected() 219 void adbd_wifi_secure_connect(atransport* t) { in adbd_wifi_secure_connect() argument 220 t->AddDisconnect(&adb_disconnect); in adbd_wifi_secure_connect() 221 handle_online(t); in adbd_wifi_secure_connect() 222 send_connect(t); in adbd_wifi_secure_connect() 223 LOG(INFO) << __func__ << ": connected " << t->serial; in adbd_wifi_secure_connect() 224 t->auth_id = adbd_auth_tls_device_connected(auth_ctx, kAdbTransportTypeWifi, t->auth_key.data(), in adbd_wifi_secure_connect() 225 t->auth_key.size()); in adbd_wifi_secure_connect()
|
/system/core/libutils/ |
D | Timers.cpp | 41 timespec t = {}; in systemTime() local 42 clock_gettime(clocks[clock], &t); in systemTime() 43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 53 timeval t = {}; in systemTime() local 54 gettimeofday(&t, nullptr); in systemTime() 55 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
|
/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/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 1896 while (t && t->chan != chan) t = t->next; in fcchan_get() 1898 if (t) in fcchan_get() 1899 return t; in fcchan_get() 1903 t = static_cast<struct fc_channel*>(osi_calloc(sizeof(*t))); in fcchan_get() 1904 t->chan = chan; in fcchan_get() 1907 osi_free(t); in fcchan_get() 1912 t->next = fc_channels; in fcchan_get() 1913 fc_channels = t; in fcchan_get() 1915 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/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/simpleperf/scripts/ |
D | test_monitor.py | 95 tests = [t for t in tests if any(pattern.match(t) for pattern in patterns)] 96 parallel_tests = [t for t in tests if not is_serialized_test(t)] 97 serialized_tests = [t for t in tests if is_serialized_test(t)] 123 not_started_tests = [t for t in self.tests if t not in self.test_results] 135 for t in self.tests: 136 if t not in self.test_results: 137 self.test_results[t] = 'DEVICE_NOT_AVAILABLE' 182 for t in self.tests: 183 if t not in self.test_results: 184 self._on_failed_to_setup_test(t) [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() 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/core/libutils/include/utils/ |
D | StrongPointer.h | 95 static inline bool operator _op_(const sp<T>& t, const sp<U>& u) { \ 96 return t.get() _op_ u.get(); \ 99 static inline bool operator _op_(const T* t, const sp<U>& u) { \ 100 return t _op_ u.get(); \ 103 static inline bool operator _op_(const sp<T>& t, const U* u) { \ 104 return t.get() _op_ u; \ 107 static inline bool operator _op_(const sp<T>& t, std::nullptr_t) { \ 108 return t.get() _op_ nullptr; \ 111 static inline bool operator _op_(std::nullptr_t, const sp<T>& t) { \ 112 return nullptr _op_ t.get(); \ [all …]
|
/system/timezone/input_tools/android/common/src/main/java/com/android/libcore/timezone/util/ |
D | Errors.java | 60 public HaltExecutionException addFatalAndHalt(String msg, Throwable t) in addFatalAndHalt() argument 62 addInternal(msg, t, LEVEL_FATAL); in addFatalAndHalt() 70 public void addError(String msg, Throwable t) { in addError() argument 71 addInternal(msg, t, LEVEL_ERROR); in addError() 101 private void addInternal(String msg, Throwable t, int level) { in addInternal() argument 104 if (t != null) { in addInternal() 107 t.printStackTrace(printWriter); in addInternal()
|
/system/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 111 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 …]
|