Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfpclient.cpp57 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
58 if (!addr) { in marshall_bda()
62 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
64 return addr; in marshall_bda()
74 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_cb() local
75 if (!addr.get()) return; in connection_state_cb()
80 addr.get()); in connection_state_cb()
88 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in audio_state_cb() local
89 if (!addr.get()) return; in audio_state_cb()
92 (jint)state, addr.get()); in audio_state_cb()
[all …]
Dcom_android_bluetooth_hfp.cpp64 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
65 if (!addr) { in marshall_bda()
69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
71 return addr; in marshall_bda()
90 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in ConnectionStateCallback() local
91 if (!addr.get()) return; in ConnectionStateCallback()
94 (jint)state, addr.get()); in ConnectionStateCallback()
105 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in AudioStateCallback() local
106 if (!addr.get()) return; in AudioStateCallback()
109 (jint)state, addr.get()); in AudioStateCallback()
[all …]
Dcom_android_bluetooth_hid_host.cpp44 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
45 if (!addr) { in marshall_bda()
49 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
51 return addr; in marshall_bda()
62 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() local
63 if (!addr.get()) { in connection_state_callback()
69 addr.get(), (jint)state); in connection_state_callback()
86 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in get_protocol_mode_callback() local
87 if (!addr.get()) { in get_protocol_mode_callback()
93 addr.get(), (jint)mode); in get_protocol_mode_callback()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp71 ScopedLocalRef<jbyteArray> addr( in btavrcp_passthrough_response_callback() local
73 if (!addr.get()) { in btavrcp_passthrough_response_callback()
78 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_passthrough_response_callback()
81 (jint)id, (jint)pressed, addr.get()); in btavrcp_passthrough_response_callback()
109 ScopedLocalRef<jbyteArray> addr( in btavrcp_connection_state_callback() local
111 if (!addr.get()) { in btavrcp_connection_state_callback()
116 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_connection_state_callback()
120 addr.get()); in btavrcp_connection_state_callback()
134 ScopedLocalRef<jbyteArray> addr( in btavrcp_get_rcfeatures_callback() local
136 if (!addr.get()) { in btavrcp_get_rcfeatures_callback()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp210 ScopedLocalRef<jbyteArray> addr( in remote_device_properties_callback() local
212 if (!addr.get()) { in remote_device_properties_callback()
217 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in remote_device_properties_callback()
227 method_devicePropertyChangedCallback, addr.get(), in remote_device_properties_callback()
236 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in device_found_callback() local
240 addr.reset(sCallbackEnv->NewByteArray(properties[i].len)); in device_found_callback()
241 if (!addr.get()) { in device_found_callback()
245 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, properties[i].len, in device_found_callback()
250 if (!addr.get()) { in device_found_callback()
263 addr.get()); in device_found_callback()
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp42 ScopedLocalRef<jbyteArray> addr( in bta2dp_connection_state_callback() local
44 if (!addr.get()) { in bta2dp_connection_state_callback()
49 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_connection_state_callback()
52 addr.get(), (jint)state); in bta2dp_connection_state_callback()
61 ScopedLocalRef<jbyteArray> addr( in bta2dp_audio_state_callback() local
63 if (!addr.get()) { in bta2dp_audio_state_callback()
68 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_audio_state_callback()
71 addr.get(), (jint)state); in bta2dp_audio_state_callback()
81 ScopedLocalRef<jbyteArray> addr( in bta2dp_audio_config_callback() local
83 if (!addr.get()) { in bta2dp_audio_config_callback()
[all …]
Dcom_android_bluetooth_a2dp.cpp62 ScopedLocalRef<jbyteArray> addr( in bta2dp_connection_state_callback() local
64 if (!addr.get()) { in bta2dp_connection_state_callback()
70 addr.get(), 0, sizeof(RawAddress), in bta2dp_connection_state_callback()
73 addr.get(), (jint)state); in bta2dp_connection_state_callback()
84 ScopedLocalRef<jbyteArray> addr( in bta2dp_audio_state_callback() local
86 if (!addr.get()) { in bta2dp_audio_state_callback()
92 addr.get(), 0, sizeof(RawAddress), in bta2dp_audio_state_callback()
95 addr.get(), (jint)state); in bta2dp_audio_state_callback()
151 ScopedLocalRef<jbyteArray> addr( in bta2dp_audio_config_callback() local
153 if (!addr.get()) { in bta2dp_audio_config_callback()
[all …]
Dcom_android_bluetooth_hearing_aid.cpp54 ScopedLocalRef<jbyteArray> addr( in OnConnectionState() local
56 if (!addr.get()) { in OnConnectionState()
61 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnConnectionState()
64 (jint)state, addr.get()); in OnConnectionState()
76 ScopedLocalRef<jbyteArray> addr( in OnDeviceAvailable() local
78 if (!addr.get()) { in OnDeviceAvailable()
83 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnDeviceAvailable()
87 addr.get()); in OnDeviceAvailable()
167 jbyte* addr = env->GetByteArrayElements(address, nullptr); in connectHearingAidNative() local
168 if (!addr) { in connectHearingAidNative()
[all …]
Dcom_android_bluetooth_pan.cpp51 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
52 if (!addr) { in marshall_bda()
56 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
58 return addr; in marshall_bda()
89 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() local
90 if (!addr.get()) { in connection_state_callback()
95 addr.get(), (jint)state, (jint)error, in connection_state_callback()
196 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectPanNative() local
197 if (!addr) { in connectPanNative()
203 bt_status_t status = sPanIf->connect((RawAddress*)addr, src_role, dest_role); in connectPanNative()
[all …]
Dcom_android_bluetooth_hid_device.cpp45 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
46 if (!addr) { in marshall_bda()
50 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
52 return addr; in marshall_bda()
65 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in application_state_callback() local
68 addr.reset(marshall_bda(bd_addr)); in application_state_callback()
69 if (!addr.get()) { in application_state_callback()
76 addr.get(), registered); in application_state_callback()
83 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() local
84 if (!addr.get()) { in connection_state_callback()
[all …]
Dcom_android_bluetooth_sdp.cpp108 jbyte* addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative() local
109 if (addr == NULL) { in sdpSearchNative()
117 env->ReleaseByteArrayElements(address, addr, 0); in sdpSearchNative()
123 (RawAddress*)addr, Uuid::From128BitBE((uint8_t*)uuid)); in sdpSearchNative()
128 if (addr) env->ReleaseByteArrayElements(address, addr, 0); in sdpSearchNative()
139 ScopedLocalRef<jbyteArray> addr( in sdp_search_callback() local
141 if (!addr.get()) return; in sdp_search_callback()
147 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in sdp_search_callback()
169 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback()
180 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java149 final Inet4Address addr = it.next().getKey(); in cleanMap() local
150 if (!isValidAddress(addr) || mReservedAddrs.contains(addr)) { in cleanMap()
204 @Nullable Inet4Address addr) { in isIpAddrOutsidePrefix() argument
205 return addr != null && !addr.equals(IPV4_ADDR_ANY) && !prefix.contains(addr); in isIpAddrOutsidePrefix()
286 @NonNull Inet4Address addr, @Nullable String hostname, long currentTime) in checkClientAndMakeLease() argument
289 final DhcpLease currentLease = mCommittedLeases.getOrDefault(addr, null); in checkClientAndMakeLease()
296 if (isValidAddress(addr) && !mReservedAddrs.contains(addr)) { in checkClientAndMakeLease()
297 lease = new DhcpLease(clientId, hwAddr, addr, expTime, hostname); in checkClientAndMakeLease()
319 @NonNull Inet4Address addr) { in releaseLease() argument
320 final DhcpLease currentLease = mCommittedLeases.getOrDefault(addr, null); in releaseLease()
[all …]
DDhcpPacketListener.java67 final InetSocketAddress addr = new InetSocketAddress(0); in readPacket() local
69 fd, packetBuffer.mBytes, 0, packetBuffer.mBytes.length, 0 /* flags */, addr); in readPacket()
72 packetBuffer.mSrcAddr = inet4AddrOrNull(addr); in readPacket()
73 packetBuffer.mSrcPort = addr.getPort(); in readPacket()
78 private static Inet4Address inet4AddrOrNull(@NonNull InetSocketAddress addr) { in inet4AddrOrNull() argument
79 return addr.getAddress() instanceof Inet4Address in inet4AddrOrNull()
80 ? (Inet4Address) addr.getAddress() in inet4AddrOrNull()
DDhcpServingParams.java138 for (int addr : addrs) { in toInet4AddressSet()
139 res.add(intToInet4AddressHTH(addr)); in toInet4AddressSet()
341 for (Inet4Address addr : mDefaultRouters) { in build()
342 if (!prefix.contains(addr)) { in build()
344 "Default router %s is not in server prefix %s", addr, mServerAddr)); in build()
368 static IpPrefix makeIpPrefix(@NonNull LinkAddress addr) { in makeIpPrefix() argument
369 return new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in makeIpPrefix()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java300 for (final InetAddress addr : InetAddress.getAllByName(host)) { in requestRoute()
301 final boolean requested = requestRouteToHostAddress(connectivityManager, addr); in requestRoute()
304 Log.i(MmsService.TAG, "Requested route to " + addr); in requestRoute()
306 Log.i(MmsService.TAG, "Could not requested route to " + addr); in requestRoute()
366 final byte [] addr = inetAddr.getAddress(); in inetAddressToInt()
367 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in inetAddressToInt()
368 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in inetAddressToInt()
DDefaultApnSettingsLoader.java451 private static String trimV4AddrZeros(final String addr) { in trimV4AddrZeros() argument
452 if (addr == null) { in trimV4AddrZeros()
455 final String[] octets = addr.split("\\."); in trimV4AddrZeros()
457 return addr; in trimV4AddrZeros()
464 return addr; in trimV4AddrZeros()
468 return addr; in trimV4AddrZeros()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java191 BluetoothDevice device = getDevice(cs.addr);
443 this.addr = address; in ConnectState()
450 public byte[] addr; field in PanService.ConnectState
633 InetAddress addr = null; in configureBtIface() local
635 if (linkAddr == null || (addr = linkAddr.getAddress()) == null || addr.equals( in configureBtIface()
636 NetworkUtils.numericToInetAddress("0.0.0.0")) || addr.equals( in configureBtIface()
639 addr = NetworkUtils.numericToInetAddress(address); in configureBtIface()
642 ifcg.setLinkAddress(new LinkAddress(addr, BLUETOOTH_PREFIX_LENGTH)); in configureBtIface()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DAddressList.java84 Address addr = get(i); in flatten() local
85 addr.addMailboxesTo(results); in flatten()
99 Address addr = get(i); in print() local
100 System.out.println(addr.toString()); in print()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java138 public void onInterfaceAddressUpdated(String addr, String ifName, int flags, int scope) { in onInterfaceAddressUpdated() argument
139 final LinkAddress address = new LinkAddress(addr, flags, scope); in onInterfaceAddressUpdated()
144 public void onInterfaceAddressRemoved(String addr, in onInterfaceAddressRemoved() argument
146 final LinkAddress address = new LinkAddress(addr, flags, scope); in onInterfaceAddressRemoved()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java289 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in cancelBond()
290 if (!mAdapterService.cancelBondNative(addr)) { in cancelBond()
301 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in removeBond()
302 if (!mAdapterService.removeBondNative(addr)) { in removeBond()
319 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in createBond()
322 result = mAdapterService.createBondOutOfBandNative(addr, transport, oobData); in createBond()
324 result = mAdapterService.createBondNative(addr, transport); in createBond()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiIpAddressPreferenceController.java46 for (LinkAddress addr : getWifiInfoProvider().getLinkProperties().getLinkAddresses()) { in updateState()
47 if (addr.getAddress() instanceof Inet4Address) { in updateState()
48 ipv4Address = addr.getAddress().getHostAddress(); in updateState()
DWifiIpv6AddressPreferenceController.java50 for (LinkAddress addr : getWifiInfoProvider().getLinkProperties().getLinkAddresses()) { in updateState()
51 if (addr.getAddress() instanceof Inet6Address) { in updateState()
52 ipv6Addresses.add(addr.getAddress().getHostAddress()); in updateState()
DWifiSubnetPreferenceController.java49 for (LinkAddress addr : getWifiInfoProvider().getLinkProperties().getLinkAddresses()) { in updateState()
50 if (addr.getAddress() instanceof Inet4Address) { in updateState()
51 subnet = ipv4PrefixLengthToSubnetMask(addr.getPrefixLength()); in updateState()
/packages/apps/Gallery/src/com/android/camera/
DReverseGeocoderTask.java55 for (Address addr : address) { in doInBackground()
56 int index = addr.getMaxAddressLineIndex(); in doInBackground()
57 sb.append(addr.getAddressLine(index)); in doInBackground()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleApnSettingsLoader.java579 private static String trimV4AddrZeros(final String addr) { in trimV4AddrZeros() argument
580 if (addr == null) { in trimV4AddrZeros()
583 final String[] octets = addr.split("\\."); in trimV4AddrZeros()
585 return addr; in trimV4AddrZeros()
592 return addr; in trimV4AddrZeros()
596 return addr; in trimV4AddrZeros()

123