/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 316 public void clientConnect(int clientIf, String address, boolean isDirect, int transport) { in clientConnect() argument 319 service.clientConnect(clientIf, address, isDirect, transport); in clientConnect() 322 public void clientDisconnect(int clientIf, String address) { in clientDisconnect() argument 325 service.clientDisconnect(clientIf, address); in clientDisconnect() 328 public void refreshDevice(int clientIf, String address) { in refreshDevice() argument 331 service.refreshDevice(clientIf, address); in refreshDevice() 334 public void discoverServices(int clientIf, String address) { in discoverServices() argument 337 service.discoverServices(clientIf, address); in discoverServices() 340 public void readCharacteristic(int clientIf, String address, int srvcType, in readCharacteristic() argument 346 service.readCharacteristic(clientIf, address, srvcType, srvcInstanceId, in readCharacteristic() [all …]
|
D | ContextMap.java | 44 String address; field in ContextMap.Connection 47 Connection(int connId, String address,int appId) { in Connection() argument 49 this.address = address; in Connection() 156 void addConnection(int id, int connId, String address) { in addConnection() argument 160 mConnections.add(new Connection(connId, address, id)); in addConnection() 215 addresses.add(connection.address); in getConnectedDevices() 237 Integer connIdByAddress(int id, String address) { in connIdByAddress() argument 244 if (connection.address.equals(address) && connection.appId == id) in connIdByAddress() 257 if (connection.connId == connId) return connection.address; in addressByConnId() 311 b.append("\n " + connection.connId + ": " + connection.address); in dump()
|
D | CallbackInfo.java | 28 String address; field in CallbackInfo 36 CallbackInfo(String address, int status, int srvcType, int srvcInstId, in CallbackInfo() argument 38 this.address = address; in CallbackInfo() 47 CallbackInfo(String address, int status) { in CallbackInfo() argument 48 this.address = address; in CallbackInfo()
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_gatt.cpp | 127 static void jstr2bdaddr(JNIEnv* env, bt_bdaddr_t *bda, jstring address) in jstr2bdaddr() argument 129 const char* c_bda = env->GetStringUTFChars(address, NULL); in jstr2bdaddr() 132 bd_addr_str_to_addr(c_bda, bda->address); in jstr2bdaddr() 133 env->ReleaseStringUTFChars(address, c_bda); in jstr2bdaddr() 229 bda->address[0], bda->address[1], bda->address[2], in btgattc_scan_result_cb() 230 bda->address[3], bda->address[4], bda->address[5]); in btgattc_scan_result_cb() 232 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_scan_result_cb() local 237 , address, rssi, jb); in btgattc_scan_result_cb() 239 sCallbackEnv->DeleteLocalRef(address); in btgattc_scan_result_cb() 250 bda->address[0], bda->address[1], bda->address[2], in btgattc_open_cb() [all …]
|
D | com_android_bluetooth_hfp.cpp | 510 static jboolean connectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHfpNative() argument 517 addr = env->GetByteArrayElements(address, NULL); in connectHfpNative() 526 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative() 530 static jboolean disconnectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHfpNative() argument 536 addr = env->GetByteArrayElements(address, NULL); in disconnectHfpNative() 545 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative() 549 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument 555 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative() 565 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative() 569 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument [all …]
|
D | com_android_bluetooth_hid.cpp | 296 static jboolean connectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHidNative() argument 302 addr = env->GetByteArrayElements(address, NULL); in connectHidNative() 313 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative() 318 static jboolean disconnectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHidNative() argument 324 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative() 335 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative() 340 static jboolean getProtocolModeNative(JNIEnv *env, jobject object, jbyteArray address) { in getProtocolModeNative() argument 347 addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative() 358 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative() 363 static jboolean virtualUnPlugNative(JNIEnv *env, jobject object, jbyteArray address) { in virtualUnPlugNative() argument [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 842 static jboolean createBondNative(JNIEnv* env, jobject obj, jbyteArray address, jint transport) { in createBondNative() argument 850 addr = env->GetByteArrayElements(address, NULL); in createBondNative() 857 env->ReleaseByteArrayElements(address, addr, 0); in createBondNative() 863 static jboolean removeBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in removeBondNative() argument 870 addr = env->GetByteArrayElements(address, NULL); in removeBondNative() 877 env->ReleaseByteArrayElements(address, addr, 0); in removeBondNative() 883 static jboolean cancelBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in cancelBondNative() argument 890 addr = env->GetByteArrayElements(address, NULL); in cancelBondNative() 897 env->ReleaseByteArrayElements(address, addr, 0); in cancelBondNative() 903 static jboolean isConnectedNative(JNIEnv* env, jobject obj, jbyteArray address) { in isConnectedNative() argument [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 367 static jboolean connectNative(JNIEnv *env, jobject object, jbyteArray address) { in connectNative() argument 373 addr = env->GetByteArrayElements(address, NULL); in connectNative() 382 env->ReleaseByteArrayElements(address, addr, 0); in connectNative() 386 static jboolean disconnectNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectNative() argument 392 addr = env->GetByteArrayElements(address, NULL); in disconnectNative() 401 env->ReleaseByteArrayElements(address, addr, 0); in disconnectNative() 405 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument 411 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative() 421 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative() 425 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ |
D | EmailAddressTest.java | 58 EmailAddress address = EmailAddress.getEmailAddress("test name <test@localhost.com>"); in testEmailAddressParsing() local 59 assertEquals("test name", address.getName()); in testEmailAddressParsing() 60 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing() 62 address = EmailAddress.getEmailAddress("\"test name\" <test@localhost.com>"); in testEmailAddressParsing() 63 assertEquals("test name", address.getName()); in testEmailAddressParsing() 64 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing() 66 address = EmailAddress.getEmailAddress("<test@localhost.com>"); in testEmailAddressParsing() 67 assertEquals("", address.getName()); in testEmailAddressParsing() 68 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing() 70 address = EmailAddress.getEmailAddress("test@localhost.com"); in testEmailAddressParsing() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 116 Address address = new Address(bareAddress); in testSetAddress() local 117 assertEquals("bare address", "user1@dom1.com", address.getAddress()); in testSetAddress() 119 address.setAddress(bracketAddress); in testSetAddress() 120 assertEquals("bracket address", "user2@dom2.com", address.getAddress()); in testSetAddress() 127 Address address = new Address("user1@dom1.org"); in brokentestNullPersonal() local 128 assertNull("no name", address.getPersonal()); in brokentestNullPersonal() 130 address.setPersonal(null); in brokentestNullPersonal() 131 assertNull("null name", address.getPersonal()); in brokentestNullPersonal() 133 address.setPersonal(""); in brokentestNullPersonal() 134 assertNull("empty name", address.getPersonal()); in brokentestNullPersonal() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 314 Address address = null; in lookupAddress() local 322 address = addresses.get(0); in lookupAddress() 325 Locale locale = address.getLocale(); in lookupAddress() 330 writeUTF(dos, address.getThoroughfare()); in lookupAddress() 331 int numAddressLines = address.getMaxAddressLineIndex(); in lookupAddress() 334 writeUTF(dos, address.getAddressLine(i)); in lookupAddress() 336 writeUTF(dos, address.getFeatureName()); in lookupAddress() 337 writeUTF(dos, address.getLocality()); in lookupAddress() 338 writeUTF(dos, address.getAdminArea()); in lookupAddress() 339 writeUTF(dos, address.getSubAdminArea()); in lookupAddress() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Address.java | 95 public Address(String address) { in Address() argument 96 setAddress(address); in Address() 99 public Address(String address, String personal) { in Address() argument 101 setAddress(address); in Address() 136 String name, address; in getEmailAddress() local 142 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress() 145 address = rawAddress == null ? in getEmailAddress() 148 return new Address(address, name); in getEmailAddress() 155 public void setAddress(String address) { in setAddress() argument 156 mAddress = REMOVE_OPTIONAL_BRACKET.matcher(address).replaceAll("$1"); in setAddress() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | Builder.java | 20 package org.apache.james.mime4j.field.address; 26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec; 27 import org.apache.james.mime4j.field.address.parser.ASTaddress; 28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list; 29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr; 30 import org.apache.james.mime4j.field.address.parser.ASTdomain; 31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body; 32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part; 33 import org.apache.james.mime4j.field.address.parser.ASTmailbox; 34 import org.apache.james.mime4j.field.address.parser.ASTname_addr; [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | JniCallbacks.java | 48 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, in sspRequestCallback() argument 50 mBondStateMachine.sspRequestCallback(address, name, cod, pairingVariant, in sspRequestCallback() 53 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] val) { in devicePropertyChangedCallback() argument 54 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback() 57 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument 58 mRemoteDevices.deviceFoundCallback(address); in deviceFoundCallback() 61 void pinRequestCallback(byte[] address, byte[] name, int cod) { in pinRequestCallback() argument 62 mBondStateMachine.pinRequestCallback(address, name, cod); in pinRequestCallback() 65 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument 66 mBondStateMachine.bondStateChangeCallback(status, address, newState); in bondStateChangeCallback() [all …]
|
D | BondStateMachine.java | 294 private void sendDisplayPinIntent(byte[] address, int pin, int variant) { in sendDisplayPinIntent() argument 296 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevices.getDevice(address)); in sendDisplayPinIntent() 326 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument 327 BluetoothDevice device = mRemoteDevices.getDevice(address); in bondStateChangeCallback() 333 device = mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in bondStateChangeCallback() 353 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, in sspRequestCallback() argument 356 BluetoothDevice bdDevice = mRemoteDevices.getDevice(address); in sspRequestCallback() 358 mRemoteDevices.addDeviceProperties(address); in sspRequestCallback() 360 infoLog("sspRequestCallback: " + address + " name: " + name + " cod: " + in sspRequestCallback() 388 BluetoothDevice device = mRemoteDevices.getDevice(address); in sspRequestCallback() [all …]
|
D | RemoteDevices.java | 91 BluetoothDevice getDevice(byte[] address) { in getDevice() argument 93 if (dev.getAddress().equals(Utils.getAddressStringFromByte(address))) { in getDevice() 100 DeviceProperties addDeviceProperties(byte[] address) { in addDeviceProperties() argument 104 mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties() 105 prop.mAddress = address; in addDeviceProperties() 250 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] values) { in devicePropertyChangedCallback() argument 254 BluetoothDevice bdDevice = getDevice(address); in devicePropertyChangedCallback() 257 device = addDeviceProperties(address); in devicePropertyChangedCallback() 258 bdDevice = getDevice(address); in devicePropertyChangedCallback() 322 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 2987 private void onConnectionStateChanged(int state, byte[] address) { in onConnectionStateChanged() argument 2990 event.device = getDevice(address); in onConnectionStateChanged() 2994 private void onAudioStateChanged(int state, byte[] address) { in onAudioStateChanged() argument 2997 event.device = getDevice(address); in onAudioStateChanged() 3001 private void onVrStateChanged(int state, byte[] address) { in onVrStateChanged() argument 3004 event.device = getDevice(address); in onVrStateChanged() 3008 private void onAnswerCall(byte[] address) { in onAnswerCall() argument 3010 event.device = getDevice(address); in onAnswerCall() 3014 private void onHangupCall(byte[] address) { in onHangupCall() argument 3016 event.device = getDevice(address); in onHangupCall() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 47 public static String getAddressStringFromByte(byte[] address) { in getAddressStringFromByte() argument 48 if (address == null || address.length != BD_ADDR_LEN) { in getAddressStringFromByte() 53 address[0], address[1], address[2], address[3], address[4], in getAddressStringFromByte() 54 address[5]); in getAddressStringFromByte() 61 public static byte[] getBytesFromAddress(String address) { in getBytesFromAddress() argument 65 for (i = 0; i < address.length(); i++) { in getBytesFromAddress() 66 if (address.charAt(i) != ':') { in getBytesFromAddress() 67 output[j] = (byte) Integer.parseInt(address.substring(i, i + 2), BD_UUID_LEN); in getBytesFromAddress()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DetailsAddressResolver.java | 54 public void onAddressAvailable(String address); in onAddressAvailable() argument 83 private void updateLocation(Address address) { in updateLocation() argument 84 if (address != null) { in updateLocation() 87 address.getAdminArea(), in updateLocation() 88 address.getSubAdminArea(), in updateLocation() 89 address.getLocality(), in updateLocation() 90 address.getSubLocality(), in updateLocation() 91 address.getThoroughfare(), in updateLocation() 92 address.getSubThoroughfare(), in updateLocation() 93 address.getPremises(), in updateLocation() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 47 public String address; field in BluetoothScanner.Device 60 str.append(address); in toString() 180 removeDevice(device.address); in removeDevice() 340 if (btAddress.equals(d.address)) { in removeDevice() 350 if (btAddress.equals(d.address)) { in removeDevice() 391 final String address = btDevice.getAddress(); in onReceive() local 395 Log.d(TAG, "Device found, address: " + address + " name: \"" + name + "\""); in onReceive() 398 if (address == null || name == null) { in onReceive() 412 if (address.equals(d.address)) { in onReceive() 425 device.address = address; in onReceive() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | EmailAddress.java | 42 private EmailAddress(String name, String address) { in EmailAddress() argument 44 mAddress = address; in EmailAddress() 61 String name, address; in getEmailAddress() local 69 address = m.group(2); in getEmailAddress() 75 if (address == null) { in getEmailAddress() 76 address = ""; in getEmailAddress() 78 address = Html.fromHtml(address).toString(); in getEmailAddress() 86 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress() 89 address = Html.fromHtml(rawAddress).toString(); in getEmailAddress() 92 return new EmailAddress(name, address); in getEmailAddress()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 574 String address = ""; in setRecipientAddressingEmail() local 576 address += toAddress; in setRecipientAddressingEmail() 578 address += ","; in setRecipientAddressingEmail() 582 address += ccAddress; in setRecipientAddressingEmail() 584 address += ","; in setRecipientAddressingEmail() 588 address += bccAddress; in setRecipientAddressingEmail() 590 return address; in setRecipientAddressingEmail() 596 String address = null; in setRecipientAddressing() local 600 address = fi.mPhoneNum; in setRecipientAddressing() 602 address = c.getString(c.getColumnIndex(Sms.ADDRESS)); in setRecipientAddressing() [all …]
|
D | BluetoothMapbMessageMms.java | 199 public void addFrom(String name, String address) { in addFrom() argument 202 this.from.add(new Rfc822Token(name, address, null)); in addFrom() 210 public void addSender(String name, String address) { in addSender() argument 213 this.sender.add(new Rfc822Token(name,address,null)); in addSender() 221 public void addTo(String name, String address) { in addTo() argument 224 this.to.add(new Rfc822Token(name, address, null)); in addTo() 232 public void addCc(String name, String address) { in addCc() argument 235 this.cc.add(new Rfc822Token(name, address, null)); in addCc() 243 public void addBcc(String name, String address) { in addBcc() argument 246 this.bcc.add(new Rfc822Token(name, address, null)); in addBcc() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 352 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { in ConnectState() argument 353 this.addr = address; in ConnectState() 365 private void onConnectStateChanged(byte[] address, int state, int error, int local_role, in onConnectStateChanged() argument 372 msg.obj = new ConnectState(address, state, error, local_role, remote_role); in onConnectStateChanged() 511 String address = createNewTetheringAddressLocked(); in enableTethering() 512 if (address == null) return null; in enableTethering() 523 addr = NetworkUtils.numericToInetAddress(address); in enableTethering() 538 return address; in enableTethering() 546 String address = BLUETOOTH_IFACE_ADDR_START; in createNewTetheringAddressLocked() local 548 if (mBluetoothIfaceAddresses.contains(address)) { in createNewTetheringAddressLocked() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverManager.java | 605 byte[] address = new byte[6]; in parseNokia() 606 payload.get(address); in parseNokia() 607 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia() 629 byte[] address = parseMacFromBluetoothRecord(payload); in parseBtOob() 630 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob() 676 byte[] address = parseMacFromBluetoothRecord(payload); in parseBleOob() 678 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBleOob() 709 byte[] address = new byte[6]; in parseMacFromBluetoothRecord() 710 payload.get(address); in parseMacFromBluetoothRecord() 714 byte temp = address[i]; in parseMacFromBluetoothRecord() [all …]
|