/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfp.cpp | 73 jbyteArray addr; in marshall_bda() local 74 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in marshall_bda() 75 if (!addr) { in marshall_bda() 80 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in marshall_bda() 81 return addr; in marshall_bda() 85 jbyteArray addr; in connection_state_callback() local 90 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local 91 if (!addr) { in connection_state_callback() 97 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in connection_state_callback() 99 (jint) state, addr); in connection_state_callback() [all …]
|
D | com_android_bluetooth_hid.cpp | 61 jbyteArray addr; in connection_state_callback() local 64 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local 65 if (!addr) { in connection_state_callback() 70 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in connection_state_callback() 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state); in connection_state_callback() 74 sCallbackEnv->DeleteLocalRef(addr); in connection_state_callback() 78 jbyteArray addr; in get_protocol_mode_callback() local 87 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in get_protocol_mode_callback() 88 if (!addr) { in get_protocol_mode_callback() 93 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in get_protocol_mode_callback() [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 196 jbyteArray addr; in remote_device_properties_callback() local 229 addr = callbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in remote_device_properties_callback() 230 if (addr == NULL) goto Fail; in remote_device_properties_callback() 231 if (addr) callbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*)bd_addr); in remote_device_properties_callback() 240 callbackEnv->CallVoidMethod(sJniCallbacksObj, method_devicePropertyChangedCallback, addr, in remote_device_properties_callback() 245 callbackEnv->DeleteLocalRef(addr); in remote_device_properties_callback() 255 jbyteArray addr = NULL; in device_found_callback() local 260 addr = callbackEnv->NewByteArray(properties[i].len); in device_found_callback() 261 if (addr) { in device_found_callback() 262 callbackEnv->SetByteArrayRegion(addr, 0, properties[i].len, in device_found_callback() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 52 jbyteArray addr; in bta2dp_connection_state_callback() local 60 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in bta2dp_connection_state_callback() 61 if (!addr) { in bta2dp_connection_state_callback() 67 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in bta2dp_connection_state_callback() 69 addr); in bta2dp_connection_state_callback() 71 sCallbackEnv->DeleteLocalRef(addr); in bta2dp_connection_state_callback() 75 jbyteArray addr; in bta2dp_audio_state_callback() local 83 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in bta2dp_audio_state_callback() 84 if (!addr) { in bta2dp_audio_state_callback() 90 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in bta2dp_audio_state_callback() [all …]
|
D | com_android_bluetooth_a2dp.cpp | 51 jbyteArray addr; in bta2dp_connection_state_callback() local 59 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in bta2dp_connection_state_callback() 60 if (!addr) { in bta2dp_connection_state_callback() 66 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in bta2dp_connection_state_callback() 68 addr); in bta2dp_connection_state_callback() 70 sCallbackEnv->DeleteLocalRef(addr); in bta2dp_connection_state_callback() 74 jbyteArray addr; in bta2dp_audio_state_callback() local 82 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in bta2dp_audio_state_callback() 83 if (!addr) { in bta2dp_audio_state_callback() 89 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in bta2dp_audio_state_callback() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 72 jbyteArray addr; in connection_state_cb() local 76 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_cb() local 77 if (!addr) { in connection_state_cb() 83 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in connection_state_cb() 84 …backsObj, method_onConnectionStateChanged, (jint) state, (jint) peer_feat, (jint) chld_feat, addr); in connection_state_cb() 86 sCallbackEnv->DeleteLocalRef(addr); in connection_state_cb() 90 jbyteArray addr; in audio_state_cb() local 94 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in audio_state_cb() local 95 if (!addr) { in audio_state_cb() 101 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in audio_state_cb() [all …]
|
D | com_android_bluetooth_pan.cpp | 71 jbyteArray addr; in connection_state_callback() local 74 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local 75 if (!addr) { in connection_state_callback() 80 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in connection_state_callback() 82 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state, in connection_state_callback() 85 sCallbackEnv->DeleteLocalRef(addr); in connection_state_callback() 173 jbyte *addr; in enablePanNative() local 182 jbyte *addr; in getPanLocalRoleNative() local 195 jbyte *addr; in connectPanNative() local 199 addr = env->GetByteArrayElements(address, NULL); in connectPanNative() [all …]
|
D | com_android_bluetooth_sdp.cpp | 138 jbyte *addr = NULL, *uuid = NULL; in sdpSearchNative() local 144 addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative() 145 if (addr == NULL) { in sdpSearchNative() 157 if ((ret = sBluetoothSdpInterface->sdp_search((bt_bdaddr_t *)addr, in sdpSearchNative() 166 if (addr) env->ReleaseByteArrayElements(address, addr, 0); in sdpSearchNative() 175 jbyteArray addr = NULL; in sdp_search_callback() local 186 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in sdp_search_callback() 187 if (addr == NULL) goto clean; in sdp_search_callback() 192 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*)bd_addr); in sdp_search_callback() 212 addr, in sdp_search_callback() [all …]
|
D | com_android_bluetooth_hdp.cpp | 64 jbyteArray addr; in channel_state_callback() local 68 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in channel_state_callback() local 69 if (!addr) { in channel_state_callback() 80 sCallbackEnv->DeleteLocalRef(addr); in channel_state_callback() 85 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in channel_state_callback() 86 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onChannelStateChanged, app_id, addr, in channel_state_callback() 89 sCallbackEnv->DeleteLocalRef(addr); in channel_state_callback() 236 jbyte *addr; in connectChannelNative() local 240 addr = env->GetByteArrayElements(address, NULL); in connectChannelNative() 241 if (!addr) { in connectChannelNative() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 63 jbyteArray addr; in btavrcp_connection_state_callback() local 73 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in btavrcp_connection_state_callback() 74 if (!addr) { in btavrcp_connection_state_callback() 80 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in btavrcp_connection_state_callback() 82 addr); in btavrcp_connection_state_callback() 84 sCallbackEnv->DeleteLocalRef(addr); in btavrcp_connection_state_callback() 162 jbyte *addr; in sendPassThroughCommandNative() local 171 addr = env->GetByteArrayElements(address, NULL); in sendPassThroughCommandNative() 172 if (!addr) { in sendPassThroughCommandNative() 177 if ((status = sBluetoothAvrcpInterface->send_pass_through_cmd((bt_bdaddr_t *)addr, in sendPassThroughCommandNative() [all …]
|
D | com_android_bluetooth_avrcp.cpp | 54 jbyteArray addr; in btavrcp_remote_features_callback() local 60 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in btavrcp_remote_features_callback() 61 if (!addr) { in btavrcp_remote_features_callback() 68 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in btavrcp_remote_features_callback() 69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getRcFeatures, addr, (jint)features); in btavrcp_remote_features_callback() 75 sCallbackEnv->DeleteLocalRef(addr); in btavrcp_remote_features_callback()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndapi.c | 581 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/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 169 BluetoothDevice device = getDevice(cs.addr); 339 this.addr = address; in ConnectState() 345 byte[] addr; field in PanService.ConnectState 504 InetAddress addr = null; in enableTethering() local 506 if (linkAddr == null || (addr = linkAddr.getAddress()) == null || in enableTethering() 507 addr.equals(NetworkUtils.numericToInetAddress("0.0.0.0")) || in enableTethering() 508 addr.equals(NetworkUtils.numericToInetAddress("::0"))) { in enableTethering() 509 addr = NetworkUtils.numericToInetAddress(address); in enableTethering() 512 ifcg.setLinkAddress(new LinkAddress(addr, BLUETOOTH_PREFIX_LENGTH)); in enableTethering() 535 String[] addr = address.split("\\."); in createNewTetheringAddressLocked() local [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 164 static boolean hasDockAutoConnectSetting(Context context, String addr) { in hasDockAutoConnectSetting() argument 165 return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr); in hasDockAutoConnectSetting() 168 static boolean getDockAutoConnectSetting(Context context, String addr) { in getDockAutoConnectSetting() argument 169 return getSharedPreferences(context).getBoolean(KEY_DOCK_AUTO_CONNECT + addr, in getDockAutoConnectSetting() 173 static void saveDockAutoConnectSetting(Context context, String addr, boolean autoConnect) { in saveDockAutoConnectSetting() argument 175 editor.putBoolean(KEY_DOCK_AUTO_CONNECT + addr, autoConnect); in saveDockAutoConnectSetting() 179 static void removeDockAutoConnectSetting(Context context, String addr) { in removeDockAutoConnectSetting() argument 181 editor.remove(KEY_DOCK_AUTO_CONNECT + addr); in removeDockAutoConnectSetting()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsRequest.java | 300 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()
|
D | DefaultApnSettingsLoader.java | 451 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/btservice/ |
D | BondStateMachine.java | 267 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in cancelBond() 268 if (!mAdapterService.cancelBondNative(addr)) { in cancelBond() 279 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in removeBond() 280 if (!mAdapterService.removeBondNative(addr)) { in removeBond() 294 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in createBond() 295 if (!mAdapterService.createBondNative(addr, transport)) { in createBond()
|
D | AdapterService.java | 419 byte[] addr = new byte[6]; in updateInteropDatabase() 426 addr[offset++] = (byte) Integer.parseInt(tokens[0].substring(i, i + 2), 16); in updateInteropDatabase() 439 interopDatabaseAddNative(feature, addr, length); in updateInteropDatabase() 1651 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in cancelBondProcess() 1652 return cancelBondNative(addr); in cancelBondProcess() 1678 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in getConnectionState() 1679 return getConnectionStateNative(addr); in getConnectionState() 1744 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPin() 1745 return pinReplyNative(addr, accept, len, pinCode); in setPin() 1755 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPasskey() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | AddressList.java | 84 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/services/Telephony/src/org/apache/james/mime4j/field/address/ |
D | AddressList.java | 84 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/Messaging/src/com/android/messaging/sms/ |
D | BugleApnSettingsLoader.java | 579 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/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.c | 1778 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_MifareMap() 1795 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_MifareMap() 1820 bSectorNumber = pTransceiveInfo->addr; in phLibNfc_MifareMap() 1952 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_SendWrt16Cmd() 1986 pMappedTranscvIf->tSendData.pBuff[bBuffIdx++] = pTransceiveInfo->addr; in phLibNfc_SendIncDecCmd() 2065 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive() 2081 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive() 2093 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive() 2106 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive() 2127 pTransceiveInfo->addr = SendRecvBuf[i++]; in phFriNfc_ExtnsTransceive()
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcTag.cpp | 747 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive() 753 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive() 764 transceive_info.addr = (uint8_t)buf[1]; in com_android_nfc_NativeNfcTag_doTransceive() 772 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive() 778 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive() 790 transceive_info.addr = (uint8_t)buf[1]; in com_android_nfc_NativeNfcTag_doTransceive() 797 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive() 801 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | Utils.java | 1055 Address addr; in getAddress() local 1057 addr = cache.get(emailStr); in getAddress() 1058 if (addr == null) { in getAddress() 1059 addr = Address.getEmailAddress(emailStr); in getAddress() 1060 if (addr != null) { in getAddress() 1061 cache.put(emailStr, addr); in getAddress() 1065 return addr; in getAddress()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ReverseGeocoderTask.java | 55 for (Address addr : address) { in doInBackground() 56 int index = addr.getMaxAddressLineIndex(); in doInBackground() 57 sb.append(addr.getAddressLine(index)); in doInBackground()
|