Home
last modified time | relevance | path

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

12

/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.cpp62 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() local
63 if (!addr) { in marshall_bda()
67 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
69 return addr; in marshall_bda()
80 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() local
81 if (!addr.get()) return; in connection_state_callback()
84 (jint)state, addr.get()); in connection_state_callback()
93 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in audio_state_callback() local
94 if (!addr.get()) return; in audio_state_callback()
97 (jint)state, addr.get()); in audio_state_callback()
[all …]
Dcom_android_bluetooth_hid.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.cpp62 ScopedLocalRef<jbyteArray> addr( in btavrcp_passthrough_response_callback() local
64 if (!addr.get()) { in btavrcp_passthrough_response_callback()
69 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_passthrough_response_callback()
72 (jint)id, (jint)pressed, addr.get()); in btavrcp_passthrough_response_callback()
90 ScopedLocalRef<jbyteArray> addr( in btavrcp_connection_state_callback() local
92 if (!addr.get()) { in btavrcp_connection_state_callback()
97 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_connection_state_callback()
101 addr.get()); in btavrcp_connection_state_callback()
109 ScopedLocalRef<jbyteArray> addr( in btavrcp_get_rcfeatures_callback() local
111 if (!addr.get()) { in btavrcp_get_rcfeatures_callback()
[all …]
Dcom_android_bluetooth_avrcp.cpp70 ScopedLocalRef<jbyteArray> addr( in btavrcp_remote_features_callback() local
72 if (!addr.get()) { in btavrcp_remote_features_callback()
77 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_remote_features_callback()
79 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getRcFeatures, addr.get(), in btavrcp_remote_features_callback()
93 ScopedLocalRef<jbyteArray> addr( in btavrcp_get_play_status_callback() local
95 if (!addr.get()) { in btavrcp_get_play_status_callback()
100 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_get_play_status_callback()
102 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getPlayStatus, addr.get()); in btavrcp_get_play_status_callback()
116 ScopedLocalRef<jbyteArray> addr( in btavrcp_get_element_attr_callback() local
118 if (!addr.get()) { in btavrcp_get_element_attr_callback()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp193 ScopedLocalRef<jbyteArray> addr( in remote_device_properties_callback() local
195 if (!addr.get()) { in remote_device_properties_callback()
200 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in remote_device_properties_callback()
210 method_devicePropertyChangedCallback, addr.get(), in remote_device_properties_callback()
219 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in device_found_callback() local
223 addr.reset(sCallbackEnv->NewByteArray(properties[i].len)); in device_found_callback()
224 if (!addr.get()) { in device_found_callback()
228 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, properties[i].len, in device_found_callback()
233 if (!addr.get()) { in device_found_callback()
246 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 (jint)state, addr.get()); 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 (jint)state, addr.get()); 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_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_a2dp.cpp56 ScopedLocalRef<jbyteArray> addr( in bta2dp_connection_state_callback() local
58 if (!addr.get()) { in bta2dp_connection_state_callback()
63 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_connection_state_callback()
66 (jint)state, addr.get()); in bta2dp_connection_state_callback()
75 ScopedLocalRef<jbyteArray> addr( in bta2dp_audio_state_callback() local
77 if (!addr.get()) { in bta2dp_audio_state_callback()
82 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_audio_state_callback()
85 (jint)state, addr.get()); in bta2dp_audio_state_callback()
316 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectA2dpNative() local
317 if (!addr) { in connectA2dpNative()
[all …]
Dcom_android_bluetooth_hidd.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.cpp124 jbyte* addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative() local
125 if (addr == NULL) { in sdpSearchNative()
133 env->ReleaseByteArrayElements(address, addr, 0); in sdpSearchNative()
138 int ret = sBluetoothSdpInterface->sdp_search((RawAddress*)addr, in sdpSearchNative()
144 if (addr) env->ReleaseByteArrayElements(address, addr, 0); in sdpSearchNative()
155 ScopedLocalRef<jbyteArray> addr( in sdp_search_callback() local
157 if (!addr.get()) return; in sdp_search_callback()
163 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in sdp_search_callback()
185 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback()
196 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback()
[all …]
Dcom_android_bluetooth_hdp.cpp50 ScopedLocalRef<jbyteArray> addr( in channel_state_callback() local
52 if (!addr.get()) { in channel_state_callback()
67 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in channel_state_callback()
70 app_id, addr.get(), mdep_cfg_index, channel_id, in channel_state_callback()
198 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectChannelNative() local
199 if (!addr) { in connectChannelNative()
206 app_id, (RawAddress*)addr, 0, &chan_id); in connectChannelNative()
211 env->ReleaseByteArrayElements(address, addr, 0); in connectChannelNative()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndapi.c581 NJ_UINT8 *addr; in njd_check_dic() local
587 addr = handle; in njd_check_dic()
590 if (NJ_INT32_READ(addr) != NJ_DIC_IDENTIFIER) { in njd_check_dic()
593 addr += sizeof(NJ_UINT32); in njd_check_dic()
596 version = NJ_INT32_READ(addr); in njd_check_dic()
601 addr += sizeof(NJ_UINT32); in njd_check_dic()
604 type = NJ_INT32_READ(addr); in njd_check_dic()
605 addr += sizeof(NJ_UINT32); in njd_check_dic()
608 datasize = NJ_INT32_READ(addr); in njd_check_dic()
609 addr += sizeof(NJ_UINT32); in njd_check_dic()
[all …]
/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.java198 BluetoothDevice device = getDevice(cs.addr);
401 this.addr = address; in ConnectState()
407 byte[] addr; field in PanService.ConnectState
577 InetAddress addr = null; in configureBtIface() local
579 if (linkAddr == null || (addr = linkAddr.getAddress()) == null || in configureBtIface()
580 addr.equals(NetworkUtils.numericToInetAddress("0.0.0.0")) || in configureBtIface()
581 addr.equals(NetworkUtils.numericToInetAddress("::0"))) { in configureBtIface()
583 addr = NetworkUtils.numericToInetAddress(address); in configureBtIface()
586 ifcg.setLinkAddress(new LinkAddress(addr, BLUETOOTH_PREFIX_LENGTH)); in configureBtIface()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java280 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in cancelBond()
281 if (!mAdapterService.cancelBondNative(addr)) { in cancelBond()
292 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in removeBond()
293 if (!mAdapterService.removeBondNative(addr)) { in removeBond()
308 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in createBond()
311 result = mAdapterService.createBondOutOfBandNative(addr, transport, oobData); in createBond()
313 result = mAdapterService.createBondNative(addr, transport); in createBond()
DAdapterService.java363 byte[] addr = new byte[6]; in updateInteropDatabase()
370 addr[offset++] = (byte) Integer.parseInt(tokens[0].substring(i, i + 2), 16); in updateInteropDatabase()
383 interopDatabaseAddNative(feature, addr, length); in updateInteropDatabase()
1610 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in cancelBondProcess()
1617 return cancelBondNative(addr); in cancelBondProcess()
1658 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in getConnectionState()
1659 return getConnectionStateNative(addr); in getConnectionState()
1735 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPin()
1736 return pinReplyNative(addr, accept, len, pinCode); in setPin()
1751 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPasskey()
[all …]
/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/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java416 for (LinkAddress addr : mLinkProperties.getLinkAddresses()) { in updateIpLayerInfo()
417 if (addr.getAddress() instanceof Inet4Address) { in updateIpLayerInfo()
418 ipv4Address = addr.getAddress().getHostAddress(); in updateIpLayerInfo()
419 subnet = ipv4PrefixLengthToSubnetMask(addr.getPrefixLength()); in updateIpLayerInfo()
420 } else if (addr.getAddress() instanceof Inet6Address) { in updateIpLayerInfo()
421 ipv6Addresses.add(addr.getAddress().getHostAddress()); in updateIpLayerInfo()
/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()
/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/Nfc/nci/jni/extns/pn54x/src/mifare/
DphNxpExtns_MifareStd.c1806 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_MifareMap()
1823 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_MifareMap()
1848 bSectorNumber = pTransceiveInfo->addr; in phLibNfc_MifareMap()
1980 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_SendWrt16Cmd()
2014 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_SendIncDecCmd()
2099 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
2115 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
2127 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
2140 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
2161 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java1060 Address addr; in getAddress() local
1062 addr = cache.get(emailStr); in getAddress()
1063 if (addr == null) { in getAddress()
1064 addr = Address.getEmailAddress(emailStr); in getAddress()
1065 if (addr != null) { in getAddress()
1066 cache.put(emailStr, addr); in getAddress()
1070 return addr; in getAddress()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java157 for (String addr : mConnectedDevicesByAddress.keySet()) { in getMostRecentlyConnectedDevice()
158 if (!Objects.equals(addr, excludeAddress)) { in getMostRecentlyConnectedDevice()
159 result = addr; in getMostRecentlyConnectedDevice()

12