Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp190 jbyteArray addr; in remote_device_properties_callback() local
223 addr = callbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in remote_device_properties_callback()
224 if (addr == NULL) goto Fail; in remote_device_properties_callback()
225 if (addr) callbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*)bd_addr); in remote_device_properties_callback()
234 callbackEnv->CallVoidMethod(sJniCallbacksObj, method_devicePropertyChangedCallback, addr, in remote_device_properties_callback()
239 callbackEnv->DeleteLocalRef(addr); in remote_device_properties_callback()
249 jbyteArray addr = NULL; in device_found_callback() local
254 addr = callbackEnv->NewByteArray(properties[i].len); in device_found_callback()
255 if (addr) { in device_found_callback()
256 callbackEnv->SetByteArrayRegion(addr, 0, properties[i].len, in device_found_callback()
[all …]
Dcom_android_bluetooth_hid.cpp60 jbyteArray addr; in connection_state_callback() local
63 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local
64 if (!addr) { in connection_state_callback()
69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in connection_state_callback()
71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state); in connection_state_callback()
73 sCallbackEnv->DeleteLocalRef(addr); in connection_state_callback()
77 jbyteArray addr; in get_protocol_mode_callback() local
86 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in get_protocol_mode_callback()
87 if (!addr) { in get_protocol_mode_callback()
92 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in get_protocol_mode_callback()
[all …]
Dcom_android_bluetooth_hfp.cpp71 jbyteArray addr; in connection_state_callback() local
76 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local
77 if (!addr) { in connection_state_callback()
83 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); in connection_state_callback()
85 (jint) state, addr); in connection_state_callback()
87 sCallbackEnv->DeleteLocalRef(addr); in connection_state_callback()
91 jbyteArray addr; in audio_state_callback() local
94 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in audio_state_callback() local
95 if (!addr) { in audio_state_callback()
101 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in audio_state_callback()
[all …]
Dcom_android_bluetooth_a2dp.cpp51 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 …]
Dcom_android_bluetooth_pan.cpp71 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()
168 jbyte *addr; in enablePanNative() local
177 jbyte *addr; in getPanLocalRoleNative() local
190 jbyte *addr; in connectPanNative() local
194 addr = env->GetByteArrayElements(address, NULL); in connectPanNative()
[all …]
Dcom_android_bluetooth_hdp.cpp64 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 …]
/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/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java177 BluetoothDevice device = getDevice(cs.addr);
363 this.addr = address; in ConnectState()
369 byte[] addr; field in PanService.ConnectState
521 InetAddress addr = null; in enableTethering() local
523 if (linkAddr == null || (addr = linkAddr.getAddress()) == null || in enableTethering()
524 addr.equals(NetworkUtils.numericToInetAddress("0.0.0.0")) || in enableTethering()
525 addr.equals(NetworkUtils.numericToInetAddress("::0"))) { in enableTethering()
526 addr = NetworkUtils.numericToInetAddress(address); in enableTethering()
529 ifcg.setLinkAddress(new LinkAddress(addr, BLUETOOTH_PREFIX_LENGTH)); in enableTethering()
552 String[] addr = address.split("\\."); in createNewTetheringAddressLocked() local
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java144 static boolean hasDockAutoConnectSetting(Context context, String addr) { in hasDockAutoConnectSetting() argument
145 return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr); in hasDockAutoConnectSetting()
148 static boolean getDockAutoConnectSetting(Context context, String addr) { in getDockAutoConnectSetting() argument
149 return getSharedPreferences(context).getBoolean(KEY_DOCK_AUTO_CONNECT + addr, in getDockAutoConnectSetting()
153 static void saveDockAutoConnectSetting(Context context, String addr, boolean autoConnect) { in saveDockAutoConnectSetting() argument
155 editor.putBoolean(KEY_DOCK_AUTO_CONNECT + addr, autoConnect); in saveDockAutoConnectSetting()
159 static void removeDockAutoConnectSetting(Context context, String addr) { in removeDockAutoConnectSetting() argument
161 editor.remove(KEY_DOCK_AUTO_CONNECT + addr); in removeDockAutoConnectSetting()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java213 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in cancelBond()
214 if (!mAdapterService.cancelBondNative(addr)) { in cancelBond()
225 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in removeBond()
226 if (!mAdapterService.removeBondNative(addr)) { in removeBond()
240 byte[] addr = Utils.getBytesFromAddress(dev.getAddress()); in createBond()
241 if (!mAdapterService.createBondNative(addr)) { in createBond()
DAdapterService.java1181 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in cancelBondProcess()
1182 return cancelBondNative(addr); in cancelBondProcess()
1263 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPin()
1264 return pinReplyNative(addr, accept, len, pinCode); in setPin()
1274 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPasskey()
1275 return sspReplyNative(addr, AbstractionLayer.BT_SSP_VARIANT_PASSKEY_ENTRY, accept, in setPasskey()
1286 byte[] addr = Utils.getBytesFromAddress(device.getAddress()); in setPairingConfirmation()
1287 return sspReplyNative(addr, AbstractionLayer.BT_SSP_VARIANT_PASSKEY_CONFIRMATION, in setPairingConfirmation()
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeNfcTag.cpp746 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
752 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
763 transceive_info.addr = (uint8_t)buf[1]; in com_android_nfc_NativeNfcTag_doTransceive()
771 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
777 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
789 transceive_info.addr = (uint8_t)buf[1]; in com_android_nfc_NativeNfcTag_doTransceive()
796 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
800 transceive_info.addr = 0; in com_android_nfc_NativeNfcTag_doTransceive()
Dcom_android_nfc_NativeNfcSecureElement.cpp642 transceive_info.addr = (uint8_t)buf[1]; in com_android_nfc_NativeNfcSecureElement_doTransceive()
647 transceive_info.addr = 0; in com_android_nfc_NativeNfcSecureElement_doTransceive()
/packages/apps/Email/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/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/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java284 private String getLocalityAdminForAddress(final Address addr, final boolean approxLocation) { in getLocalityAdminForAddress() argument
285 if (addr == null) in getLocalityAdminForAddress()
287 String localityAdminStr = addr.getLocality(); in getLocalityAdminForAddress()
296 String adminArea = addr.getAdminArea(); in getLocalityAdminForAddress()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageListItem.java281 private void updateAvatarView(String addr, boolean isSelf) { in updateAvatarView() argument
283 if (isSelf || !TextUtils.isEmpty(addr)) { in updateAvatarView()
284 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); in updateAvatarView()
323 String addr = isSelf ? null : mMessageItem.mAddress; in bindCommonMessage() local
324 updateAvatarView(addr, isSelf); in bindCommonMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java491 private void onChannelStateChanged(int appId, byte[] addr, int cfgIndex, in onChannelStateChanged() argument
494 ChannelStateEvent channelStateEvent = new ChannelStateEvent(appId, addr, cfgIndex, in onChannelStateChanged()
849 private ChannelStateEvent(int appId, byte[] addr, int cfgIndex, in ChannelStateEvent() argument
852 mAddr = addr; in ChannelStateEvent()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java501 byte[] addr = netPart.getAddress(); in validateIpConfigFields()
502 addr[addr.length-1] = 1; in validateIpConfigFields()
503 mGatewayView.setText(InetAddress.getByAddress(addr).getHostAddress()); in validateIpConfigFields()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java294 void setUserEmailAddress(String addr) { in setUserEmailAddress() argument
295 mAdapter.mAccount.mEmailAddress = addr; in setUserEmailAddress()
296 mAdapter.mEmailAddress = addr; in setUserEmailAddress()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java294 void setUserEmailAddress(String addr) { in setUserEmailAddress() argument
295 mAdapter.mAccount.mEmailAddress = addr; in setUserEmailAddress()
296 mAdapter.mEmailAddress = addr; in setUserEmailAddress()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DContactsSyncAdapter.java1598 String addr = cv.getAsString(Email.DATA); in sendEmail() local
1604 name = addr; in sendEmail()
1608 if (addr != null) { in sendEmail()
1613 value = addr; in sendEmail()
1615 value = '\"' + name + "\" <" + addr + '>'; in sendEmail()
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java170 InetAddress addr = InetAddress.getByName(domain); in onCreate()
171 Log.d(TAG, "for random domain " + domain + ": " + addr); in onCreate()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasSyncService.java877 String addr = parser.nextText(); in parseUser() local
878 userLog("Autodiscover, email: " + addr); in parseUser()