/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_thread.cc | 89 static thread_slot_t ts[MAX_THREAD]; variable 128 if (!ts[i].used) { in alloc_thread_slot() 129 ts[i].used = 1; in alloc_thread_slot() 139 ts[h].used = 0; in free_thread_slot() 150 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init() 151 ts[h].used = 0; in btsock_thread_init() 152 ts[h].thread_id = std::nullopt; in btsock_thread_init() 153 ts[h].poll_count = 0; in btsock_thread_init() 154 ts[h].callback = NULL; in btsock_thread_init() 155 ts[h].cmd_callback = NULL; in btsock_thread_init() [all …]
|
D | btif_debug_conn.cc | 30 uint64_t ts; member 39 static char* format_ts(const uint64_t ts, char* buffer, int len) { in format_ts() argument 40 const uint64_t ms = ts / 1000; in format_ts() 73 evt->ts = bluetooth::common::time_gettimeofday_us(); in btif_debug_conn_state() 85 if (connection_events[dump_event].ts == 0) { in btif_debug_conn_dump() 89 while (connection_events[dump_event].ts) { in btif_debug_conn_dump() 91 dprintf(fd, " %s %s %s", format_ts(evt->ts, ts_buffer, sizeof(ts_buffer)), in btif_debug_conn_dump()
|
/packages/modules/Nfc/NfcNci/testutils/ |
D | parse_log.py | 84 ts: int = 0 variable in PollingLoopEntry 92 ts: int = 0 variable in PartialApduEntry 103 ts: int = 0 variable in FullApduEntry 118 ts=cur.ts, command=[], response=cur.response 143 parsed_log = list(filter(lambda x: x.ts >= start_ts, log)) 147 parsed_log = list(filter(lambda x: x.ts <= end_ts, parsed_log)) 191 last_ts = cur.ts 212 ts = calculate_timestamp(data) 221 ts += pts_real 227 polling_list.extend(add_polling_data(cur_data, ts)) [all …]
|
/packages/modules/Bluetooth/floss/hcidoc/src/groups/ |
D | connections.rs | 152 p.ts, in process_classic_connection() 169 p.ts, in process_sync_connection() 185 p.ts, in process_le_create_connection() 220 self.get_feature_pending_map(&feat_type).insert(*handle, packet.ts); in process_remote_feat_cmd() 284 packet.ts, in process_command_status_conn() 312 packet.ts, in process_command_status_conn() 350 self.active_handles.insert(handle, (packet.ts, address)); in process_conn_complete_ev() 354 packet.ts, in process_conn_complete_ev() 363 packet.ts, in process_conn_complete_ev() 383 let duration_since_acl = packet.ts.signed_duration_since(acl_front_ts); in process_disconn_complete_ev() [all …]
|
D | informational.rs | 32 fn print_time_initiator(ts: NaiveDateTime, initiator: InitiatorType) -> String { in print_timestamps_and_initiator() 33 if ts == INVALID_TS { in print_timestamps_and_initiator() 36 return format!("{} ({})", ts.time(), initiator); in print_timestamps_and_initiator() 190 ts: NaiveDateTime, in report_connection_start() 198 acl.report_start(initiator, ts); in report_connection_start() 207 ts: NaiveDateTime, in report_connection_end() 217 .report_end(initiator, ts); in report_connection_end() 226 self.address, handle, ts in report_connection_end() 296 fn report_start(&mut self, initiator: InitiatorType, ts: NaiveDateTime) { in report_start() 298 self.start_time = ts; in report_start() [all …]
|
D | controllers.rs | 64 ts: packet.ts.clone(), in report_hardware_error() 68 self.reportable.push((packet.ts, format!("controller reported hardware error"))); in report_hardware_error() 78 ts: packet.ts, 85 ts: packet.ts, 95 ts: packet.ts, in process_local_version() 107 ts: packet.ts, in process_new_index() 150 for (ts, message) in self.reportable.iter() { in report() 151 let _ = writeln!(writer, "[{:?}] {}", ts, message); in report()
|
D | collisions.rs | 123 self.state_set_at = Some((packet.index, packet.ts.clone())); in process() 130 packet.ts, in process() 141 ts: packet.ts.clone(), in process() 163 packet.ts, in process() 175 ts: packet.ts.clone(), in process() 210 for (ts, message) in self.reportable.iter() { in report() 211 let _ = writeln!(writer, "[{:?}] {}", ts, message); in report()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | EmergencyCallDiagnosticLogger.java | 104 private static long getCallTimeInActiveStateSec(CallEventTimestamps ts) { in getCallTimeInActiveStateSec() argument 105 if (ts.getCallActiveTime() == 0 || ts.getCallRemovedTime() == 0) { in getCallTimeInActiveStateSec() 108 return (ts.getCallRemovedTime() - ts.getCallActiveTime()) / 1000; in getCallTimeInActiveStateSec() 113 private static long getTotalCallTimeSec(CallEventTimestamps ts) { in getTotalCallTimeSec() argument 114 if (ts.getCallRemovedTime() == 0 || ts.getCallCreatedTime() == 0) { in getTotalCallTimeSec() 117 return (ts.getCallRemovedTime() - ts.getCallCreatedTime()) / 1000; in getTotalCallTimeSec() 158 CallEventTimestamps ts = mEmergencyCallsMap.get(call); in triggerDiagnosticsCollection() local 178 ts.getCallCreatedTime()); in triggerDiagnosticsCollection() 291 CallEventTimestamps ts = mEmergencyCallsMap.get(call); in onCallRemoved() local 293 ts.setCallRemovedTime(currentTime); in onCallRemoved() [all …]
|
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/ |
D | MicrodroidTests.java | 203 (ts, tr) -> { in createAndConnectToVmHelper() 204 tr.mAddInteger = ts.addInteger(123, 456); in createAndConnectToVmHelper() 205 tr.mAppRunProp = ts.readProperty("debug.microdroid.app.run"); in createAndConnectToVmHelper() 206 tr.mSublibRunProp = ts.readProperty("debug.microdroid.app.sublib.run"); in createAndConnectToVmHelper() 207 tr.mApkContentsPath = ts.getApkContentsPath(); in createAndConnectToVmHelper() 208 tr.mEncryptedStoragePath = ts.getEncryptedStoragePath(); in createAndConnectToVmHelper() 209 tr.mInstanceSecret = ts.insecurelyExposeVmInstanceSecret(); in createAndConnectToVmHelper() 363 runVmTestService(TAG, vm, (ts, tr) -> tr.mAddInteger = ts.addInteger(37, 73)); in createAndRunNoDebugVm() 925 SecurityException.class, () -> runVmTestService(TAG, vm, (ts, tr) -> {})); in createVmWithConfigRequiresPermission() 1003 (ts, tr) -> { in validApkPathIsAccepted() [all …]
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_DicTraverseSession.cpp | 37 DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(traverseSession); in latinime_initDicTraverseSession() local 38 if (!ts) { in latinime_initDicTraverseSession() 44 ts->init(dict, &emptyNgramContext, 0 /* suggestOptions */); in latinime_initDicTraverseSession() 50 ts->init(dict, &ngramContext, 0 /* suggestOptions */); in latinime_initDicTraverseSession() 54 DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(traverseSession); in latinime_releaseDicTraverseSession() local 55 DicTraverseSession::releaseSessionInstance(ts); in latinime_releaseDicTraverseSession()
|
/packages/modules/Nfc/NfcNci/nci/jni/ |
D | IntervalTimer.cpp | 45 struct itimerspec ts; in set() local 46 ts.it_value.tv_sec = ms / 1000; in set() 47 ts.it_value.tv_nsec = (ms % 1000) * 1000000; in set() 49 ts.it_interval.tv_sec = 0; in set() 50 ts.it_interval.tv_nsec = 0; in set() 52 stat = timer_settime(mTimerId, 0, &ts, 0); in set()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | sco_pkt_status.h | 41 uint64_t ts; member 49 ts = 0; in init() 59 ts = bluetooth::common::time_gettimeofday_us(); in update() 73 return !is_full ? ts : ts - BTM_PKT_STATUS_WBS_FRAME_US * (size - offset); in begin_ts_raw_us() 79 uint64_t end_ts_raw_us() { return ts + BTM_PKT_STATUS_WBS_FRAME_US * offset; } in end_ts_raw_us()
|
/packages/apps/DeviceDiagnostics/DeviceDiagnosticsLib/src/main/java/com/android/devicediagnostics/trusted/ |
D | TrustedState.kt | 62 var ts = state in launchTrustedActivity() variable 63 if (ts == null) ts = TrustedState.fromActivity(from) in launchTrustedActivity() 65 if (ts != null) intent.putExtra(TRUSTED_STATE_KEY, ts) in launchTrustedActivity()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | IkeTrafficSelectorTest.java | 134 IkeTrafficSelector ts = in testBuildAndEncodeIkeTrafficSelector() local 142 ByteBuffer byteBuffer = ByteBuffer.allocate(ts.selectorLength); in testBuildAndEncodeIkeTrafficSelector() 143 ts.encodeToByteBuffer(byteBuffer); in testBuildAndEncodeIkeTrafficSelector() 179 private static void verifyPersistableBundleEncodeDecodeIsLossless(IkeTrafficSelector ts) { in verifyPersistableBundleEncodeDecodeIsLossless() argument 180 PersistableBundle bundle = ts.toPersistableBundle(); in verifyPersistableBundleEncodeDecodeIsLossless() 182 assertEquals(ts, resultTs); in verifyPersistableBundleEncodeDecodeIsLossless() 282 IkeTrafficSelector ts = in testBuildIkeTrafficSelectorWithInvalidTsType() local 298 IkeTrafficSelector ts = in testBuildIkeTrafficSelectorWithInvalidPortRange() local 315 IkeTrafficSelector ts = in testBuildIkeTrafficSelectorWithMismatchedAddressType() local 331 IkeTrafficSelector ts = in testBuildIkeTrafficSelectorWithInvalidAddressRange() local
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/ |
D | ImsMediaCondition.cpp | 85 struct timespec ts; in wait_timeout() local 89 ts.tv_sec = tv.tv_sec + (nRelativeTime / 1000); in wait_timeout() 94 ts.tv_sec++; in wait_timeout() 98 ts.tv_nsec = addedUSec * 1000L; in wait_timeout() 109 while (pthread_cond_timedwait(mCondition, mMutex, &ts) == EINTR) in wait_timeout()
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | stats_buffer_writer.cpp | 116 struct timespec ts; in __write_to_stats_daemon() local 128 clock_gettime(CLOCK_REALTIME, &ts); in __write_to_stats_daemon() 132 ts.tv_sec = tv.tv_sec; in __write_to_stats_daemon() 133 ts.tv_nsec = tv.tv_usec * 1000; in __write_to_stats_daemon() 136 int ret = (int)(*statsdLoggerWrite.write)(&ts, vec, nr); in __write_to_stats_daemon()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | StructRtaCacheInfo.java | 54 public final long ts; field in StructRtaCacheInfo 59 long ts, long tsage) { in StructRtaCacheInfo() argument 66 this.ts = ts; in StructRtaCacheInfo()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeTsPayload.java | 121 for (IkeTrafficSelector ts : trafficSelectors) { in encodeToByteBuffer() 122 ts.encodeToByteBuffer(byteBuffer); in encodeToByteBuffer() 134 for (IkeTrafficSelector ts : trafficSelectors) { in getPayloadLength() 135 len += ts.selectorLength; in getPayloadLength()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeTrafficSelector.java | 414 public boolean contains(IkeTrafficSelector ts) { in contains() argument 415 if (tsType == ts.tsType in contains() 416 && ipProtocolId == ts.ipProtocolId in contains() 417 && startPort <= ts.startPort in contains() 418 && endPort >= ts.endPort in contains() 419 && compareInetAddressTo(startingAddress, ts.startingAddress) <= 0 in contains() 420 && compareInetAddressTo(endingAddress, ts.endingAddress) >= 0) { in contains()
|
D | TransportModeChildSessionParams.java | 67 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, INBOUND_TS_KEY)) { in fromPersistableBundle() 68 builder.addInboundTrafficSelectors(ts); in fromPersistableBundle() 71 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, OUTBOUND_TS_KEY)) { in fromPersistableBundle() 72 builder.addOutboundTrafficSelectors(ts); in fromPersistableBundle()
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QualifiedNetworksServiceImpl.java | 266 for (ThrottleStatus ts : statuses) { in reportThrottleStatusChanged() 269 netCapability = QnsUtils.getNetCapabilityFromApnType(ts.getApnType()); in reportThrottleStatusChanged() 273 log("ThrottleStatus:" + ts + ", netCapability" + netCapability); in reportThrottleStatusChanged() 274 if (ts.getSlotIndex() != getSlotIndex()) { in reportThrottleStatusChanged() 281 boolean isThrottle = ts.getThrottleType() == THROTTLE_TYPE_ELAPSED_TIME; in reportThrottleStatusChanged() 283 isThrottle, ts.getThrottleExpiryTimeMillis(), ts.getTransportType()); in reportThrottleStatusChanged()
|
/packages/modules/DnsResolver/ |
D | util.cpp | 50 std::string timestampToString(const std::chrono::system_clock::time_point& ts) { in timestampToString() argument 53 const auto time_sec = std::chrono::system_clock::to_time_t(ts); in timestampToString() 56 int ms = duration_cast<milliseconds>(ts.time_since_epoch()).count() % 1000; in timestampToString()
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 1291 int64_t ts = 0; in TEST_WITH_FLAGS() local 1293 stats.noteAtomLogged(platformAtom, ts, false); in TEST_WITH_FLAGS() 1294 stats.noteAtomLogged(nonPlatformAtom, ts, false); in TEST_WITH_FLAGS() 1302 ts += kTimeWindow; in TEST_WITH_FLAGS() 1303 stats.noteAtomLogged(platformAtom, ts, false); in TEST_WITH_FLAGS() 1304 stats.noteAtomLogged(nonPlatformAtom, ts, false); in TEST_WITH_FLAGS() 1305 stats.noteAtomLogged(platformAtom, ts + 1, false); in TEST_WITH_FLAGS() 1306 stats.noteAtomLogged(nonPlatformAtom, ts + 1, false); in TEST_WITH_FLAGS() 1315 ts += kTimeWindow; in TEST_WITH_FLAGS() 1317 stats.noteAtomLogged(platformAtom, ts + i, false); in TEST_WITH_FLAGS() [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/util/ |
D | FunctionUtilsTest.java | 103 ThrowingSupplier<Integer> ts = () -> { in testUncheckedExceptionsThrowingSupplier() local 106 Supplier<Integer> s = FunctionalUtils.uncheckExceptions(ts); in testUncheckedExceptionsThrowingSupplier() 112 ts = () -> { in testUncheckedExceptionsThrowingSupplier() 115 Supplier<Integer> s2 = FunctionalUtils.uncheckExceptions(ts); in testUncheckedExceptionsThrowingSupplier()
|
/packages/modules/Virtualization/tests/benchmark/src/java/com/android/microdroid/benchmark/ |
D | MicrodroidBenchmarks.java | 760 (ts, tr) -> { in testRpcBinderLatency() 762 tr.mAddInteger = ts.addInteger(123, 456); in testRpcBinderLatency() 766 ts.addInteger(j, j + 1); in testRpcBinderLatency() 776 c = ts.addInteger(a, b); in testRpcBinderLatency() 810 (ts, tr) -> { in testVsockLatency() 811 ts.runEchoReverseServer(); in testVsockLatency() 958 (ts, tr) -> { in rpDataAccessWithExistingSession() 961 ts.insecurelyWritePayloadRpData(data); in rpDataAccessWithExistingSession() 962 ts.insecurelyReadPayloadRpData(); in rpDataAccessWithExistingSession() 967 ts.insecurelyWritePayloadRpData(data); in rpDataAccessWithExistingSession() [all …]
|