Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 977) sorted by relevance

12345678910>>...40

/packages/modules/Bluetooth/system/gd/hci/
Ddistance_measurement_manager.cc57 const Address& address, uint16_t frequency, DistanceMeasurementMethod method) { in start_distance_measurement()
58 LOG_INFO("Address:%s, method:%d", ADDRESS_TO_LOGGABLE_CSTR(address), method); in start_distance_measurement()
59 uint16_t connection_handle = acl_manager_->HACK_GetLeHandle(address); in start_distance_measurement()
65 address, REASON_NO_LE_CONNECTION, method); in start_distance_measurement()
72 if (rssi_trackers.find(address) == rssi_trackers.end()) { in start_distance_measurement()
73 rssi_trackers[address].handle = connection_handle; in start_distance_measurement()
74 rssi_trackers[address].frequency = frequency; in start_distance_measurement()
75 rssi_trackers[address].remote_tx_power = kTxPowerNotAvailable; in start_distance_measurement()
76 rssi_trackers[address].started = false; in start_distance_measurement()
77 rssi_trackers[address].alarm = std::make_unique<os::Alarm>(handler_); in start_distance_measurement()
[all …]
Dremote_name_request.cc57 Address address, in StartRemoteNameRequest()
62 LOG_INFO("Enqueuing remote name request to %s", address.ToRedactedStringForLogging().c_str()); in StartRemoteNameRequest()
71 address, in StartRemoteNameRequest()
75 address, in StartRemoteNameRequest()
81 [&](Address address, std::shared_ptr<RemoteNameCallback> on_remote_name_complete_ptr) { in StartRemoteNameRequest() argument
84 address.ToRedactedStringForLogging().c_str()); in StartRemoteNameRequest()
87 address, in StartRemoteNameRequest()
91 void CancelRemoteNameRequest(Address address) { in CancelRemoteNameRequest()
94 address.ToRedactedStringForLogging().c_str()); in CancelRemoteNameRequest()
96 address, handler_->BindOnceOn(this, &impl::actually_cancel_remote_name_request, address)); in CancelRemoteNameRequest()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java76 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument
77 return mAdapterService.getDeviceFromByte(address); in getDevice()
84 void onConnectionStateChanged(int state, byte[] address) { in onConnectionStateChanged() argument
87 getDevice(address)); in onConnectionStateChanged()
93 private void onAudioStateChanged(int state, byte[] address) { in onAudioStateChanged() argument
96 getDevice(address)); in onAudioStateChanged()
100 private void onVrStateChanged(int state, byte[] address) { in onVrStateChanged() argument
103 getDevice(address)); in onVrStateChanged()
107 private void onAnswerCall(byte[] address) { in onAnswerCall() argument
109 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall()
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dconnection_manager.cc116 std::set<tAPP_ID> get_apps_connecting_to(const RawAddress& address) { in get_apps_connecting_to() argument
117 LOG_DEBUG("address=%s", ADDRESS_TO_LOGGABLE_CSTR(address)); in get_apps_connecting_to()
118 auto it = bgconn_dev.find(address); in get_apps_connecting_to()
156 const RawAddress& address);
215 const RawAddress& address) { in background_connect_targeted_announcement_add() argument
217 ADDRESS_TO_LOGGABLE_CSTR(address)); in background_connect_targeted_announcement_add()
221 auto it = bgconn_dev.find(address); in background_connect_targeted_announcement_add()
228 static_cast<int>(app_id), ADDRESS_TO_LOGGABLE_CSTR(address)); in background_connect_targeted_announcement_add()
238 static_cast<int>(app_id), ADDRESS_TO_LOGGABLE_CSTR(address)); in background_connect_targeted_announcement_add()
246 ADDRESS_TO_LOGGABLE_CSTR(address)); in background_connect_targeted_announcement_add()
[all …]
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc47 const Address* address, in LogMetricLinkLayerConnectionEvent() argument
57 if (address != nullptr) { in LogMetricLinkLayerConnectionEvent()
58 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent()
81 address ? ADDRESS_TO_LOGGABLE_CSTR(*address) : "(NULL)", in LogMetricLinkLayerConnectionEvent()
111 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) { in LogMetricA2dpAudioUnderrunEvent() argument
113 if (!address.IsEmpty()) { in LogMetricA2dpAudioUnderrunEvent()
114 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent()
122 ADDRESS_TO_LOGGABLE_CSTR(address), in LogMetricA2dpAudioUnderrunEvent()
130 const Address& address, in LogMetricA2dpAudioOverrunEvent() argument
136 if (!address.IsEmpty()) { in LogMetricA2dpAudioOverrunEvent()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_vc.cc57 const RawAddress& address) override { in OnConnectionState() argument
58 DVLOG(2) << __func__ << " address: " << address; in OnConnectionState()
60 Unretained(callbacks_), state, address)); in OnConnectionState()
63 void OnVolumeStateChanged(const RawAddress& address, uint8_t volume, in OnVolumeStateChanged() argument
65 DVLOG(2) << __func__ << " address: " << address << " volume: " << volume in OnVolumeStateChanged()
70 Unretained(callbacks_), address, volume, mute, isAutonomous)); in OnVolumeStateChanged()
83 void OnDeviceAvailable(const RawAddress& address, in OnDeviceAvailable() argument
85 DVLOG(2) << __func__ << " address: " << address; in OnDeviceAvailable()
88 Unretained(callbacks_), address, num_offset)); in OnDeviceAvailable()
94 void OnExtAudioOutVolumeOffsetChanged(const RawAddress& address, in OnExtAudioOutVolumeOffsetChanged() argument
[all …]
/packages/modules/Bluetooth/system/rust/src/connection/
Dffi.rs14 use crate::{core::address::AddressWithType, do_in_rust_thread};
33 type AddressWithType = crate::core::address::AddressWithType;
48 fn create_le_connection(&self, address: AddressWithType, is_direct: bool); in create_le_connection()
52 fn cancel_le_connect(&self, address: AddressWithType); in cancel_le_connect()
70 fn on_le_connect_success(&self, address: AddressWithType); in on_le_connect_success()
72 fn on_le_connect_fail(&self, address: AddressWithType, status: u8); in on_le_connect_fail()
74 fn on_disconnect(&self, address: AddressWithType); in on_disconnect()
83 start_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
84 stop_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
85 add_background_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py7 address: bytes = field(default=bytes([0, 0, 0, 0, 0, 0])) variable in Address
9 def __init__(self, address=None): argument
10 if not address:
11 self.address = bytes([0, 0, 0, 0, 0, 0])
12 elif isinstance(address, Address):
13 self.address = address.address
14 elif isinstance(address, str):
15 self.address = bytes([int(b, 16) for b in address.split(':')])
16 elif isinstance(address, (bytes, list)) and len(address) == 6:
17 self.address = bytes(address)
[all …]
/packages/modules/Bluetooth/system/gd/neighbor/
Dname_db.cc43 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler);
45 bool IsNameCached(hci::Address address) const;
46 RemoteName ReadCachedRemoteName(hci::Address address) const;
57 void OnRemoteNameResponse(hci::Address address, hci::ErrorCode status, RemoteName name);
71 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler) { in ReadRemoteNameRequest() argument
72 if (address_to_pending_read_map_.find(address) != address_to_pending_read_map_.end()) { in ReadRemoteNameRequest()
74 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest()
79 address_to_pending_read_map_[address] = std::move(tmp); in ReadRemoteNameRequest()
80 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest()
87 address, in ReadRemoteNameRequest()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DNativeInterface.java292 private static native boolean connectNative(byte[] address); in connectNative() argument
294 private static native boolean disconnectNative(byte[] address); in disconnectNative() argument
296 private static native boolean connectAudioNative(byte[] address); in connectAudioNative() argument
298 private static native boolean disconnectAudioNative(byte[] address); in disconnectAudioNative() argument
300 private static native boolean startVoiceRecognitionNative(byte[] address); in startVoiceRecognitionNative() argument
302 private static native boolean stopVoiceRecognitionNative(byte[] address); in stopVoiceRecognitionNative() argument
304 private static native boolean setVolumeNative(byte[] address, int volumeType, int volume); in setVolumeNative() argument
306 private static native boolean dialNative(byte[] address, String number); in dialNative() argument
308 private static native boolean dialMemoryNative(byte[] address, int location); in dialMemoryNative() argument
310 private static native boolean handleCallActionNative(byte[] address, int action, int index); in handleCallActionNative() argument
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DGattNativeInterface.java63 void onScanResult(int eventType, int addressType, String address, int primaryPhy, in onScanResult() argument
66 getGattService().onScanResult(eventType, addressType, address, primaryPhy, secondaryPhy, in onScanResult()
80 void onConnected(int clientIf, int connId, int status, String address) throws RemoteException { in onConnected() argument
81 getGattService().onConnected(clientIf, connId, status, address); in onConnected()
84 void onDisconnected(int clientIf, int connId, int status, String address) in onDisconnected() argument
86 getGattService().onDisconnected(clientIf, connId, status, address); in onDisconnected()
93 void onClientPhyRead(int clientIf, String address, int txPhy, int rxPhy, int status) in onClientPhyRead() argument
95 getGattService().onClientPhyRead(clientIf, address, txPhy, rxPhy, status); in onClientPhyRead()
117 void onServerPhyRead(int serverIf, String address, int txPhy, int rxPhy, int status) in onServerPhyRead() argument
119 getGattService().onServerPhyRead(serverIf, address, txPhy, rxPhy, status); in onServerPhyRead()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dhelpers.h33 inline RawAddress ToRawAddress(const hci::Address& address) { in ToRawAddress() argument
35 ret.address[0] = address.address[5]; in ToRawAddress()
36 ret.address[1] = address.address[4]; in ToRawAddress()
37 ret.address[2] = address.address[3]; in ToRawAddress()
38 ret.address[3] = address.address[2]; in ToRawAddress()
39 ret.address[4] = address.address[1]; in ToRawAddress()
40 ret.address[5] = address.address[0]; in ToRawAddress()
44 inline hci::Address ToGdAddress(const RawAddress& address) { in ToGdAddress() argument
46 ret.address[0] = address.address[5]; in ToGdAddress()
47 ret.address[1] = address.address[4]; in ToGdAddress()
[all …]
/packages/modules/Bluetooth/system/rust/src/connection/ffi/
Dconnection_shim.cc60 hci::AddressWithType ToCppAddress(core::AddressWithType address) { in ToCppAddress() argument
62 hci_address.FromOctets(address.address.data()); in ToCppAddress()
64 (hci::AddressType)address.address_type); in ToCppAddress()
67 core::AddressWithType ToRustAddress(hci::AddressWithType address) { in ToRustAddress() argument
68 return core::AddressWithType{address.GetAddress().address, in ToRustAddress()
69 (core::AddressType)address.GetAddressType()}; in ToRustAddress()
87 void CreateLeConnection(core::AddressWithType address, bool is_direct) { in CreateLeConnection()
88 acl_manager_->CreateLeConnection(ToCppAddress(address), is_direct); in CreateLeConnection()
91 void CancelLeConnect(core::AddressWithType address) { in CancelLeConnect()
92 acl_manager_->CancelLeConnect(ToCppAddress(address)); in CancelLeConnect()
[all …]
/packages/modules/Bluetooth/system/blueberry/utils/
Dbluetooth.py7 address: bytes = field(default=bytes([0, 0, 0, 0, 0, 0])) variable in Address
9 def __init__(self, address=None): argument
10 if not address:
11 self.address = bytes([0, 0, 0, 0, 0, 0])
12 elif isinstance(address, Address):
13 self.address = address.address
14 elif isinstance(address, str):
15 self.address = bytes([int(b, 16) for b in address.split(':')])
16 elif isinstance(address, bytes) and len(address) == 6:
17 self.address = address
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java339 protected static int netmaskToPrefixLen(Inet4Address address) { in netmaskToPrefixLen() argument
340 byte[] bytes = address.getAddress(); in netmaskToPrefixLen()
409 public final Inet4Address address; field in IkeConfigPayload.TunnelModeChildConfigAttrIpv4AddressBase
412 int attributeType, Inet4Address address) { in TunnelModeChildConfigAttrIpv4AddressBase() argument
414 this.address = address; in TunnelModeChildConfigAttrIpv4AddressBase()
419 this.address = null; in TunnelModeChildConfigAttrIpv4AddressBase()
427 address = null; in TunnelModeChildConfigAttrIpv4AddressBase()
437 address = (Inet4Address) netAddress; in TunnelModeChildConfigAttrIpv4AddressBase()
445 if (address == null) return; // No encoding necessary in encodeValueToByteBuffer()
447 buffer.put(address.getAddress()); in encodeValueToByteBuffer()
[all …]
/packages/modules/Bluetooth/system/common/
Dmetrics.cc579 void LogLinkLayerConnectionEvent(const RawAddress* address, in LogLinkLayerConnectionEvent() argument
587 if (address != nullptr) { in LogLinkLayerConnectionEvent()
588 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent()
589 metric_id = MetricIdAllocator::GetInstance().AllocateId(*address); in LogLinkLayerConnectionEvent()
592 BytesField bytes_field(address != nullptr ? obfuscated_id.c_str() : nullptr, in LogLinkLayerConnectionEvent()
593 address != nullptr ? obfuscated_id.size() : 0); in LogLinkLayerConnectionEvent()
603 << address << ", handle " << connection_handle << ", type " in LogLinkLayerConnectionEvent()
629 void LogA2dpAudioUnderrunEvent(const RawAddress& address, in LogA2dpAudioUnderrunEvent() argument
634 if (!address.IsEmpty()) { in LogA2dpAudioUnderrunEvent()
635 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent()
[all …]
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/
DDeviceShadowEnvironmentImpl.java72 public static DeviceletImpl getDeviceletImpl(String address) { in getDeviceletImpl() argument
73 return DEVICELETS.get(address); in getDeviceletImpl()
149 public static BlueletImpl getBlueletImpl(String address) { in getBlueletImpl() argument
150 DeviceletImpl devicelet = getDeviceletImpl(address); in getBlueletImpl()
158 public static NfcletImpl getNfcletImpl(String address) { in getNfcletImpl() argument
159 DeviceletImpl devicelet = getDeviceletImpl(address); in getNfcletImpl()
172 public static DeviceletImpl addDevice(String address) { in addDevice() argument
173 EXECUTORS.put(address, Executors.newCachedThreadPool()); in addDevice()
181 .get(address) in addDevice()
184 DeviceletImpl devicelet = new DeviceletImpl(address); in addDevice()
[all …]
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dacl_scheduler.cc30 Address address; member
35 Address address; member
43 …void EnqueueOutgoingAclConnection(Address address, common::ContextualOnceCallback<void()> start_co… in EnqueueOutgoingAclConnection()
44 …pending_outgoing_operations_.push_back(AclCreateConnectionQueueEntry{address, std::move(start_conn… in EnqueueOutgoingAclConnection()
48 void RegisterPendingIncomingConnection(Address address) { in RegisterPendingIncomingConnection()
49 incoming_connecting_address_set_.insert(address); in RegisterPendingIncomingConnection()
53 Address address, in ReportAclConnectionCompletion()
60 if (entry != nullptr && entry->address == address) { in ReportAclConnectionCompletion()
70 if (incoming_connecting_address_set_.find(address) != incoming_connecting_address_set_.end()) { in ReportAclConnectionCompletion()
71 incoming_connecting_address_set_.erase(address); in ReportAclConnectionCompletion()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DIpPrefix.java56 private final byte[] address; // network byte order field in IpPrefix
60 if (address.length != 4 && address.length != 16) { in checkAndMaskAddressAndPrefixLength()
62 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16"); in checkAndMaskAddressAndPrefixLength()
64 NetUtils.maskRawAddress(address, prefixLength); in checkAndMaskAddressAndPrefixLength()
77 public IpPrefix(@NonNull byte[] address, @IntRange(from = 0, to = 128) int prefixLength) { in IpPrefix() argument
78 this.address = address.clone(); in IpPrefix()
91 public IpPrefix(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength) { in IpPrefix() argument
94 this.address = address.getAddress(); in IpPrefix()
115 this.address = ipAndMask.first.getAddress(); in IpPrefix()
133 return Arrays.equals(this.address, that.address) && this.prefixLength == that.prefixLength; in equals()
[all …]
DLinkAddress.java82 private InetAddress address; field in LinkAddress
150 byte[] bytes = address.getAddress(); in isIpv6ULA()
162 return address instanceof Inet6Address; in isIpv6()
183 return address instanceof Inet4Address; in isIpv4()
189 private void init(InetAddress address, int prefixLength, int flags, int scope, in init() argument
191 if (address == null || in init()
192 address.isMulticastAddress() || in init()
194 (address instanceof Inet4Address && prefixLength > 32) || in init()
196 throw new IllegalArgumentException("Bad LinkAddress params " + address + in init()
223 this.address = address; in init()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java153 String address = (String) msg.obj; in handleMessage() local
155 mDatabase.delete(address); in handleMessage()
203 String address = device.getAddress(); in bondStateChanged() local
205 if (mMetadataCache.containsKey(address)) { in bondStateChanged()
208 createMetadata(address, false); in bondStateChanged()
210 Metadata metadata = mMetadataCache.get(address); in bondStateChanged()
212 mMetadataCache.remove(address); in bondStateChanged()
242 String address = device.getAddress(); in setCustomMeta() local
243 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
244 createMetadata(address, false); in setCustomMeta()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceBinderTest.java195 String address = REMOTE_DEVICE_ADDRESS; in clientConnect() local
202 mBinder.clientConnect(clientIf, address, addressType, isDirect, transport, opportunistic, in clientConnect()
205 verify(mService).clientConnect(clientIf, address, addressType, isDirect, transport, in clientConnect()
212 String address = REMOTE_DEVICE_ADDRESS; in clientDisconnect() local
214 mBinder.clientDisconnect(clientIf, address, mAttributionSource, in clientDisconnect()
217 verify(mService).clientDisconnect(clientIf, address, mAttributionSource); in clientDisconnect()
223 String address = REMOTE_DEVICE_ADDRESS; in clientSetPreferredPhy() local
228 mBinder.clientSetPreferredPhy(clientIf, address, txPhy, rxPhy, phyOptions, in clientSetPreferredPhy()
231 verify(mService).clientSetPreferredPhy(clientIf, address, txPhy, rxPhy, phyOptions, in clientSetPreferredPhy()
238 String address = REMOTE_DEVICE_ADDRESS; in clientReadPhy() local
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dpy_security.py75 def create_bond(self, address, type): argument
79 … logging.info("DUT: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address)))
81 … common.BluetoothAddressWithType(address=common.BluetoothAddress(address=address), type=type))
83 def create_bond_out_of_band(self, address, type, p192_oob_data, p256_oob_data): argument
88 …ogging.info("DUT: Creating OOB bond to '%s' from '%s'" % (str(address), str(self._device.address)))
92address=common.BluetoothAddressWithType(address=common.BluetoothAddress(address=address), type=typ…
94 address=common.BluetoothAddressWithType(
95 address=common.BluetoothAddress(address=address), type=type),
99 address=common.BluetoothAddressWithType(
100 address=common.BluetoothAddress(address=address), type=type),
[all …]
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc69 const RawAddress& address, uint8_t* capabilities, uint64_t* hi_sync_id,
137 if (FindByAddress(device.address) != nullptr) return; in Add()
142 void Remove(const RawAddress& address) { in Remove() argument
144 if (it->address != address) { in Remove()
154 HearingDevice* FindByAddress(const RawAddress& address) { in FindByAddress() argument
156 [&address](const HearingDevice& device) { in FindByAddress()
157 return device.address == address; in FindByAddress()
194 ADDRESS_TO_LOGGABLE_CSTR(d.address), d.read_rssi_count); in StartRssiLog()
343 UpdateBleConnParams(device.address); in IsoTrafficEventCb()
349 uint16_t UpdateBleConnParams(const RawAddress& address) { in UpdateBleConnParams() argument
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java194 String address = (String) args.arg2; in processMessage() local
195 Log.w(LOG_TAG, "BT audio unexpectedly turned on from device %s", address); in processMessage()
196 transitionTo(getConnectedStateForAddress(address, in processMessage()
219 AudioConnectingState(String address) { in AudioConnectingState() argument
220 mDeviceAddress = address; in AudioConnectingState()
251 String address = (String) args.arg2; in processMessage() local
252 boolean switchingBtDevices = !Objects.equals(mDeviceAddress, address); in processMessage()
257 addDevice(address); in processMessage()
261 if (Objects.equals(address, mDeviceAddress)) { in processMessage()
271 String actualAddress = connectBtAudio(address, in processMessage()
[all …]

12345678910>>...40