Home
last modified time | relevance | path

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

12345678910>>...43

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterNativeInterface.java104 boolean setDeviceProperty(byte[] address, int type, byte[] val) { in setDeviceProperty() argument
105 return setDevicePropertyNative(address, type, val); in setDeviceProperty()
108 boolean getDeviceProperty(byte[] address, int type) { in getDeviceProperty() argument
109 return getDevicePropertyNative(address, type); in getDeviceProperty()
112 boolean createBond(byte[] address, int addressType, int transport) { in createBond() argument
113 return createBondNative(address, addressType, transport); in createBond()
116 boolean createBondOutOfBand(byte[] address, int transport, OobData p192Data, OobData p256Data) { in createBondOutOfBand() argument
117 return createBondOutOfBandNative(address, transport, p192Data, p256Data); in createBondOutOfBand()
120 boolean removeBond(byte[] address) { in removeBond() argument
121 return removeBondNative(address); in removeBond()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerNativeInterface.java67 boolean sendPassThroughCommand(byte[] address, int keyCode, int keyState) { in sendPassThroughCommand() argument
68 return sendPassThroughCommandNative(address, keyCode, keyState); in sendPassThroughCommand()
72 byte[] address, byte numAttrib, byte[] attribIds, byte[] attribVal) { in setPlayerApplicationSettingValues() argument
73 setPlayerApplicationSettingValuesNative(address, numAttrib, attribIds, attribVal); in setPlayerApplicationSettingValues()
76 void sendAbsVolRsp(byte[] address, int absVol, int label) { in sendAbsVolRsp() argument
77 sendAbsVolRspNative(address, absVol, label); in sendAbsVolRsp()
80 void sendRegisterAbsVolRsp(byte[] address, byte rspType, int absVol, int label) { in sendRegisterAbsVolRsp() argument
81 sendRegisterAbsVolRspNative(address, rspType, absVol, label); in sendRegisterAbsVolRsp()
84 void getCurrentMetadata(byte[] address) { in getCurrentMetadata() argument
85 getCurrentMetadataNative(address); in getCurrentMetadata()
[all …]
/packages/modules/Bluetooth/floss/pandora/floss/
Dadapter_client.py95 def on_bond_state_changed(self, status, address, state): argument
269 def OnBondStateChanged(self, status, address, state): argument
272 observer.on_bond_state_changed(status, address, state)
349 def _make_device(self, address, name, bond_state=None, connected=None): argument
352 'address': address,
361 address, name = remote_device
364 if address not in self.known_devices:
365 self.known_devices[address] = self._make_device(address, name)
367 elif not self.known_devices[address]:
368 self.known_devices[address]['name'] = name
[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={}", address); in get_apps_connecting_to()
118 auto it = bgconn_dev.find(address); in get_apps_connecting_to()
156 const RawAddress& address);
213 const RawAddress& address) { in background_connect_targeted_announcement_add() argument
214 log::info("app_id={}, address={}", static_cast<int>(app_id), address); in background_connect_targeted_announcement_add()
218 auto it = bgconn_dev.find(address); in background_connect_targeted_announcement_add()
225 static_cast<int>(app_id), address); in background_connect_targeted_announcement_add()
235 static_cast<int>(app_id), address); in background_connect_targeted_announcement_add()
243 address); in background_connect_targeted_announcement_add()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java88 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument
89 return mAdapterService.getDeviceFromByte(address); in getDevice()
104 void onConnectionStateChanged(int state, byte[] address) { in onConnectionStateChanged() argument
109 getDevice(address)); in onConnectionStateChanged()
115 private void onAudioStateChanged(int state, byte[] address) { in onAudioStateChanged() argument
120 getDevice(address)); in onAudioStateChanged()
124 private void onVrStateChanged(int state, byte[] address) { in onVrStateChanged() argument
127 HeadsetStackEvent.EVENT_TYPE_VR_STATE_CHANGED, state, getDevice(address)); in onVrStateChanged()
131 private void onAnswerCall(byte[] address) { in onAnswerCall() argument
133 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall()
[all …]
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc65 const Address* address, in LogMetricLinkLayerConnectionEvent() argument
75 if (address != nullptr) { in LogMetricLinkLayerConnectionEvent()
76 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent()
99 address ? ADDRESS_TO_LOGGABLE_CSTR(*address) : "(NULL)", in LogMetricLinkLayerConnectionEvent()
130 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) { in LogMetricA2dpAudioUnderrunEvent() argument
132 if (!address.IsEmpty()) { in LogMetricA2dpAudioUnderrunEvent()
133 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent()
141 address, in LogMetricA2dpAudioUnderrunEvent()
149 const Address& address, in LogMetricA2dpAudioOverrunEvent() argument
155 if (!address.IsEmpty()) { in LogMetricA2dpAudioOverrunEvent()
[all …]
/packages/modules/Bluetooth/system/rust/src/connection/
Dffi.rs35 type AddressWithType = crate::core::address::AddressWithType;
50 fn create_le_connection(&self, address: AddressWithType, is_direct: bool); in create_le_connection()
54 fn cancel_le_connect(&self, address: AddressWithType); in cancel_le_connect()
72 fn on_le_connect_success(&self, address: AddressWithType); in on_le_connect_success()
74 fn on_le_connect_fail(&self, address: AddressWithType, status: u8); in on_le_connect_fail()
76 fn on_disconnect(&self, address: AddressWithType); in on_disconnect()
85 start_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
86 stop_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
87 add_background_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
88 remove_background_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py21 address: bytes = field(default=bytes([0, 0, 0, 0, 0, 0])) variable in Address
23 def __init__(self, address=None): argument
24 if not address:
25 self.address = bytes([0, 0, 0, 0, 0, 0])
26 elif isinstance(address, Address):
27 self.address = address.address
28 elif isinstance(address, str):
29 self.address = bytes([int(b, 16) for b in address.split(':')])
30 elif isinstance(address, (bytes, list)) and len(address) == 6:
31 self.address = bytes(address)
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/
DHidHostNativeInterface.java61 boolean connectHid(byte[] address, int addressType, int transport) { in connectHid() argument
62 return connectHidNative(address, addressType, transport); in connectHid()
66 byte[] address, int addressType, int transport, boolean reconnectAllowed) { in disconnectHid() argument
67 return disconnectHidNative(address, addressType, transport, reconnectAllowed); in disconnectHid()
70 boolean getProtocolMode(byte[] address, int addressType, int transport) { in getProtocolMode() argument
71 return getProtocolModeNative(address, addressType, transport); in getProtocolMode()
74 boolean virtualUnPlug(byte[] address, int addressType, int transport) { in virtualUnPlug() argument
75 return virtualUnPlugNative(address, addressType, transport); in virtualUnPlug()
78 boolean setProtocolMode(byte[] address, int addressType, int transport, byte protocolMode) { in setProtocolMode() argument
79 return setProtocolModeNative(address, addressType, transport, protocolMode); in setProtocolMode()
[all …]
/packages/modules/Bluetooth/system/rust/src/connection/ffi/
Dconnection_shim.cc59 hci::AddressWithType ToCppAddress(core::AddressWithType address) { in ToCppAddress() argument
61 hci_address.FromOctets(address.address.data()); in ToCppAddress()
63 (hci::AddressType)address.address_type); in ToCppAddress()
66 core::AddressWithType ToRustAddress(hci::AddressWithType address) { in ToRustAddress() argument
67 return core::AddressWithType{address.GetAddress().address, in ToRustAddress()
68 (core::AddressType)address.GetAddressType()}; in ToRustAddress()
86 void CreateLeConnection(core::AddressWithType address, bool is_direct) { in CreateLeConnection()
87 acl_manager_->CreateLeConnection(ToCppAddress(address), is_direct); in CreateLeConnection()
90 void CancelLeConnect(core::AddressWithType address) { in CancelLeConnect()
91 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/Bluetooth/tools/rootcanal/include/hci/
Daddress.h42 std::array<uint8_t, kLength> address = {}; variable
45 constexpr Address(std::array<uint8_t, kLength> const& address);
46 Address(const uint8_t (&address)[kLength]);
53 bool operator<(const Address& rhs) const { return address < rhs.address; }
54 bool operator==(const Address& rhs) const { return address == rhs.address; }
61 uint8_t* data() { return address.data(); } in data()
62 uint8_t const* data() const { return address.data(); } in data()
70 output.insert(output.end(), address.begin(), address.end()); in Serialize()
82 static bool IsValidAddress(const std::string& address);
98 std::size_t operator()(const bluetooth::hci::Address& address) const {
[all …]
/packages/modules/Bluetooth/floss/pandora/server/
Dbluetooth.py244 def get_remote_type(self, address): argument
245 return self.adapter_client.get_remote_property(address, 'Type')
247 def is_connected(self, address): argument
248 return self.adapter_client.is_connected(address)
250 def is_bonded(self, address): argument
251 return self.adapter_client.is_bonded(address)
259 def create_bond(self, address, transport): argument
260 return self.adapter_client.create_bond(address, transport)
262 def remove_bond(self, address): argument
263 return self.adapter_client.remove_bond(address)
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DGattNativeInterface.java73 void onConnected(int clientIf, int connId, int status, String address) throws RemoteException { in onConnected() argument
74 getGattService().onConnected(clientIf, connId, status, address); in onConnected()
77 void onDisconnected(int clientIf, int connId, int status, String address) in onDisconnected() argument
79 getGattService().onDisconnected(clientIf, connId, status, address); in onDisconnected()
86 void onClientPhyRead(int clientIf, String address, int txPhy, int rxPhy, int status) in onClientPhyRead() argument
88 getGattService().onClientPhyRead(clientIf, address, txPhy, rxPhy, status); in onClientPhyRead()
111 void onServerPhyRead(int serverIf, String address, int txPhy, int rxPhy, int status) in onServerPhyRead() argument
113 getGattService().onServerPhyRead(serverIf, address, txPhy, rxPhy, status); in onServerPhyRead()
144 void onNotify(int connId, String address, int handle, boolean isNotify, byte[] data) in onNotify() argument
146 getGattService().onNotify(connId, address, handle, isNotify, data); in onNotify()
[all …]
DGattService.java543 String address, in clientConnect() argument
556 address, in clientConnect()
567 int clientIf, String address, AttributionSource attributionSource) { in clientDisconnect() argument
572 service.clientDisconnect(clientIf, address, attributionSource); in clientDisconnect()
578 String address, in clientSetPreferredPhy() argument
588 clientIf, address, txPhy, rxPhy, phyOptions, attributionSource); in clientSetPreferredPhy()
593 int clientIf, String address, AttributionSource attributionSource) { in clientReadPhy() argument
598 service.clientReadPhy(clientIf, address, attributionSource); in clientReadPhy()
603 int clientIf, String address, AttributionSource attributionSource) { in refreshDevice() argument
608 service.refreshDevice(clientIf, address, attributionSource); in refreshDevice()
[all …]
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc75 const RawAddress& address, uint8_t* capabilities, uint64_t* hi_sync_id,
143 if (FindByAddress(device.address) != nullptr) return; in Add()
148 void Remove(const RawAddress& address) { in Remove() argument
150 if (it->address != address) { in Remove()
160 HearingDevice* FindByAddress(const RawAddress& address) { in FindByAddress() argument
162 [&address](const HearingDevice& device) { in FindByAddress()
163 return device.address == address; in FindByAddress()
201 log::debug("bd_addr={} read_rssi_count={}", d.address, d.read_rssi_count); in StartRssiLog()
357 UpdateBleConnParams(device.address); in IsoTrafficEventCb()
391 uint16_t UpdateBleConnParams(const RawAddress& address) { in UpdateBleConnParams() argument
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DNativeInterface.java300 private static native boolean connectNative(byte[] address); in connectNative() argument
302 private static native boolean disconnectNative(byte[] address); in disconnectNative() argument
304 private static native boolean connectAudioNative(byte[] address); in connectAudioNative() argument
306 private static native boolean disconnectAudioNative(byte[] address); in disconnectAudioNative() argument
308 private static native boolean startVoiceRecognitionNative(byte[] address); in startVoiceRecognitionNative() argument
310 private static native boolean stopVoiceRecognitionNative(byte[] address); in stopVoiceRecognitionNative() argument
312 private static native boolean setVolumeNative(byte[] address, int volumeType, int volume); in setVolumeNative() argument
314 private static native boolean dialNative(byte[] address, String number); in dialNative() argument
316 private static native boolean dialMemoryNative(byte[] address, int location); in dialMemoryNative() argument
318 private static native boolean handleCallActionNative(byte[] address, int action, int index); in handleCallActionNative() argument
[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 …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceBinderTest.java192 String address = REMOTE_DEVICE_ADDRESS; in clientConnect() local
201 address, in clientConnect()
212 address, in clientConnect()
224 String address = REMOTE_DEVICE_ADDRESS; in clientDisconnect() local
226 mBinder.clientDisconnect(clientIf, address, mAttributionSource); in clientDisconnect()
228 verify(mService).clientDisconnect(clientIf, address, mAttributionSource); in clientDisconnect()
234 String address = REMOTE_DEVICE_ADDRESS; in clientSetPreferredPhy() local
240 clientIf, address, txPhy, rxPhy, phyOptions, mAttributionSource); in clientSetPreferredPhy()
244 clientIf, address, txPhy, rxPhy, phyOptions, mAttributionSource); in clientSetPreferredPhy()
250 String address = REMOTE_DEVICE_ADDRESS; in clientReadPhy() local
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dremote_name_request.cc55 Address address, in StartRemoteNameRequest()
60 log::info("Enqueuing remote name request to {}", address.ToRedactedStringForLogging()); in StartRemoteNameRequest()
69 address, in StartRemoteNameRequest()
73 address, in StartRemoteNameRequest()
79 [&](Address address, std::shared_ptr<RemoteNameCallback> on_remote_name_complete_ptr) { in StartRemoteNameRequest() argument
82 address.ToRedactedStringForLogging()); in StartRemoteNameRequest()
85 address, in StartRemoteNameRequest()
89 void CancelRemoteNameRequest(Address address) { in CancelRemoteNameRequest()
91 "Enqueuing cancel of remote name request to {}", address.ToRedactedStringForLogging()); in CancelRemoteNameRequest()
93 address, handler_->BindOnceOn(this, &impl::actually_cancel_remote_name_request, address)); in CancelRemoteNameRequest()
[all …]
/packages/modules/Bluetooth/system/gd/neighbor/
Dname_db.cc45 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler);
47 bool IsNameCached(hci::Address address) const;
48 RemoteName ReadCachedRemoteName(hci::Address address) const;
59 void OnRemoteNameResponse(hci::Address address, hci::ErrorCode status, RemoteName name);
73 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler) { in ReadRemoteNameRequest() argument
74 if (address_to_pending_read_map_.find(address) != address_to_pending_read_map_.end()) { in ReadRemoteNameRequest()
76 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest()
81 address_to_pending_read_map_[address] = std::move(tmp); in ReadRemoteNameRequest()
82 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest()
89 address, in ReadRemoteNameRequest()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dhelpers.h38 inline RawAddress ToRawAddress(const hci::Address& address) { in ToRawAddress() argument
40 ret.address[0] = address.address[5]; in ToRawAddress()
41 ret.address[1] = address.address[4]; in ToRawAddress()
42 ret.address[2] = address.address[3]; in ToRawAddress()
43 ret.address[3] = address.address[2]; in ToRawAddress()
44 ret.address[4] = address.address[1]; in ToRawAddress()
45 ret.address[5] = address.address[0]; in ToRawAddress()
49 inline hci::Address ToGdAddress(const RawAddress& address) { in ToGdAddress() argument
51 ret.address[0] = address.address[5]; in ToGdAddress()
52 ret.address[1] = address.address[4]; in ToGdAddress()
[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/gd/hci/acl_manager/
Dacl_scheduler.cc31 Address address; member
36 Address address; member
44 …void EnqueueOutgoingAclConnection(Address address, common::ContextualOnceCallback<void()> start_co… in EnqueueOutgoingAclConnection()
45 …pending_outgoing_operations_.push_back(AclCreateConnectionQueueEntry{address, std::move(start_conn… in EnqueueOutgoingAclConnection()
49 void RegisterPendingIncomingConnection(Address address) { in RegisterPendingIncomingConnection()
50 incoming_connecting_address_set_.insert(address); in RegisterPendingIncomingConnection()
54 Address address, in ReportAclConnectionCompletion()
61 if (entry != nullptr && entry->address == address) { in ReportAclConnectionCompletion()
71 if (incoming_connecting_address_set_.find(address) != incoming_connecting_address_set_.end()) { in ReportAclConnectionCompletion()
72 incoming_connecting_address_set_.erase(address); in ReportAclConnectionCompletion()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java149 String address = (String) msg.obj; in handleMessage() local
151 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()
239 String address = device.getAddress(); in setCustomMeta() local
241 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
242 createMetadata(address, false); in setCustomMeta()
[all …]

12345678910>>...43