Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 236) sorted by relevance

12345678910

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java44 static native boolean connectNative(byte[] address); in connectNative() argument
46 static native boolean disconnectNative(byte[] address); in disconnectNative() argument
48 static native boolean connectAudioNative(byte[] address); in connectAudioNative() argument
50 static native boolean disconnectAudioNative(byte[] address); in disconnectAudioNative() argument
52 static native boolean startVoiceRecognitionNative(byte[] address); in startVoiceRecognitionNative() argument
54 static native boolean stopVoiceRecognitionNative(byte[] address); in stopVoiceRecognitionNative() argument
56 static native boolean setVolumeNative(byte[] address, int volumeType, int volume); in setVolumeNative() argument
58 static native boolean dialNative(byte[] address, String number); in dialNative() argument
60 static native boolean dialMemoryNative(byte[] address, int location); in dialMemoryNative() argument
62 static native boolean handleCallActionNative(byte[] address, int action, int index); in handleCallActionNative() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java70 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument
71 return mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in getDevice()
74 void onConnectionStateChanged(int state, byte[] address) { in onConnectionStateChanged() argument
77 getDevice(address)); in onConnectionStateChanged()
83 private void onAudioStateChanged(int state, byte[] address) { in onAudioStateChanged() argument
86 getDevice(address)); in onAudioStateChanged()
90 private void onVrStateChanged(int state, byte[] address) { in onVrStateChanged() argument
93 getDevice(address)); in onVrStateChanged()
97 private void onAnswerCall(byte[] address) { in onAnswerCall() argument
99 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java516 public void clientConnect(int clientIf, String address, boolean isDirect, int transport, in clientConnect() argument
522 service.clientConnect(clientIf, address, isDirect, transport, opportunistic, phy); in clientConnect()
526 public void clientDisconnect(int clientIf, String address) { in clientDisconnect() argument
531 service.clientDisconnect(clientIf, address); in clientDisconnect()
535 public void clientSetPreferredPhy(int clientIf, String address, int txPhy, int rxPhy, in clientSetPreferredPhy() argument
541 service.clientSetPreferredPhy(clientIf, address, txPhy, rxPhy, phyOptions); in clientSetPreferredPhy()
545 public void clientReadPhy(int clientIf, String address) { in clientReadPhy() argument
550 service.clientReadPhy(clientIf, address); in clientReadPhy()
554 public void refreshDevice(int clientIf, String address) { in refreshDevice() argument
559 service.refreshDevice(clientIf, address); in refreshDevice()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/
DEmailAddressTest.java58 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/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java187 String address = (String) args.arg2; in processMessage() local
188 Log.w(LOG_TAG, "HFP audio unexpectedly turned on from device %s", address); in processMessage()
189 transitionTo(getConnectedStateForAddress(address, in processMessage()
212 AudioConnectingState(String address) { in AudioConnectingState() argument
213 mDeviceAddress = address; in AudioConnectingState()
245 String address = (String) args.arg2; in processMessage() local
250 addDevice(address); in processMessage()
254 if (Objects.equals(address, mDeviceAddress)) { in processMessage()
259 if (Objects.equals(mDeviceAddress, address)) { in processMessage()
263 String actualAddress = connectBtAudio(address); in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java114 String address = (String) msg.obj; in handleMessage() local
116 mDatabase.delete(address); in handleMessage()
164 String address = device.getAddress(); in bondStateChanged() local
166 if (mMetadataCache.containsKey(address)) { in bondStateChanged()
169 createMetadata(address); in bondStateChanged()
171 Metadata metadata = mMetadataCache.get(address); in bondStateChanged()
173 mMetadataCache.remove(address); in bondStateChanged()
220 String address = device.getAddress(); in setCustomMeta() local
222 Log.d(TAG, "setCustomMeta: " + address + ", key=" + key); in setCustomMeta()
224 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DAddress.java42 private String address; field in Address
85 public Address(String address) { in Address() argument
86 setAddress(address); in Address()
89 public Address(String address, String personal) { in Address() argument
91 setAddress(address); in Address()
100 if (TextUtils.isEmpty(personal) && !TextUtils.isEmpty(address)) { in getSimplifiedName()
101 int atSign = address.indexOf('@'); in getSimplifiedName()
102 simplifiedName = (atSign != -1) ? address.substring(0, atSign) : ""; in getSimplifiedName()
126 String address; in getEmailAddress() local
131 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java268 private void handlePassthroughRsp(int id, int keyState, byte[] address) { in handlePassthroughRsp() argument
271 + " state: " + keyState + "address:" + address); in handlePassthroughRsp()
284 boolean browsingConnected, byte[] address) { in onConnectionStateChanged() argument
285 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onConnectionStateChanged()
306 private void getRcFeatures(byte[] address, int features) { in getRcFeatures() argument
311 private void setPlayerAppSettingRsp(byte[] address, byte accepted) { in setPlayerAppSettingRsp() argument
316 private synchronized void handleRegisterNotificationAbsVol(byte[] address, byte label) { in handleRegisterNotificationAbsVol() argument
320 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handleRegisterNotificationAbsVol()
329 private synchronized void handleSetAbsVolume(byte[] address, byte absVol, byte label) { in handleSetAbsVolume() argument
333 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handleSetAbsVolume()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java116 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/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java90 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument
92 Log.d(mTag, operation + ": " + address + " on " + iface in maybeLog()
93 + " flags " + address.getFlags() + " scope " + address.getScope()); in maybeLog()
117 public void onInterfaceAddressUpdated(LinkAddress address, String iface) { in onInterfaceAddressUpdated() argument
119 maybeLog("addressUpdated", iface, address); in onInterfaceAddressUpdated()
122 changed = mLinkProperties.addLinkAddress(address); in onInterfaceAddressUpdated()
131 public void onInterfaceAddressRemoved(LinkAddress address, String iface) { in onInterfaceAddressRemoved() argument
133 maybeLog("addressRemoved", iface, address); in onInterfaceAddressRemoved()
136 changed = mLinkProperties.removeLinkAddress(address); in onInterfaceAddressRemoved()
289 InetAddress address; in addServers() local
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfpclient.cpp191 bd_addr->address[0], bd_addr->address[1], bd_addr->address[2], in callsetup_cb()
192 bd_addr->address[3], bd_addr->address[4], bd_addr->address[5]); in callsetup_cb()
489 static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { in connectNative() argument
492 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectNative()
502 env->ReleaseByteArrayElements(address, addr, 0); in connectNative()
507 jbyteArray address) { in disconnectNative() argument
510 jbyte* addr = env->GetByteArrayElements(address, NULL); in disconnectNative()
521 env->ReleaseByteArrayElements(address, addr, 0); in disconnectNative()
526 jbyteArray address) { in connectAudioNative() argument
529 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectAudioNative()
[all …]
Dcom_android_bluetooth_hid_host.cpp258 jbyteArray address) { in connectHidNative() argument
261 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectHidNative()
273 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative()
279 jbyteArray address) { in disconnectHidNative() argument
284 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative()
295 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative()
301 jbyteArray address) { in getProtocolModeNative() argument
304 jbyte* addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative()
319 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative()
325 jbyteArray address) { in virtualUnPlugNative() argument
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp79 (jbyte*)&bd_addr.address); in btavrcp_passthrough_response_callback()
117 (jbyte*)bd_addr.address); in btavrcp_connection_state_callback()
142 (jbyte*)&bd_addr.address); in btavrcp_get_rcfeatures_callback()
166 (jbyte*)&bd_addr.address); in btavrcp_setplayerapplicationsetting_rsp_callback()
191 (jbyte*)&bd_addr.address); in btavrcp_playerapplicationsetting_callback()
243 (jbyte*)&bd_addr.address); in btavrcp_playerapplicationsetting_changed_callback()
287 (jbyte*)&bd_addr.address); in btavrcp_set_abs_vol_cmd_callback()
311 (jbyte*)&bd_addr.address); in btavrcp_register_notification_absvol_callback()
347 (jbyte*)&bd_addr.address); in btavrcp_track_changed_callback()
395 (jbyte*)&bd_addr.address); in btavrcp_play_position_changed_callback()
[all …]
Dcom_android_bluetooth_hfp.cpp509 jbyteArray address) { in connectHfpNative() argument
515 jbyte* addr = env->GetByteArrayElements(address, nullptr); in connectHfpNative()
526 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative()
531 jbyteArray address) { in disconnectHfpNative() argument
537 jbyte* addr = env->GetByteArrayElements(address, nullptr); in disconnectHfpNative()
548 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative()
553 jbyteArray address) { in connectAudioNative() argument
559 jbyte* addr = env->GetByteArrayElements(address, nullptr); in connectAudioNative()
570 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative()
575 jbyteArray address) { in disconnectAudioNative() argument
[all …]
Dcom_android_bluetooth_gatt.cpp80 static RawAddress str2addr(JNIEnv* env, jstring address) { in str2addr() argument
82 const char* c_address = env->GetStringUTFChars(address, NULL); in str2addr()
86 env->ReleaseStringUTFChars(address, c_address); in str2addr()
94 bda->address[0], bda->address[1], bda->address[2], bda->address[3], in bdaddr2newjstr()
95 bda->address[4], bda->address[5]); in bdaddr2newjstr()
217 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_scan_result_cb() local
225 addr_type, address.get(), primary_phy, in btgattc_scan_result_cb()
235 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_open_cb() local
238 conn_id, status, address.get()); in btgattc_open_cb()
246 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_close_cb() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java314 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/
DAddress.java95 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/Dialer/java/com/android/incallui/calllocation/impl/
DReverseGeocodeTask.java60 String address = null; in doInBackground() local
73 address = topResult.getString(JSON_KEY_ADDRESS); in doInBackground()
87 && address.startsWith(component.getString(JSON_KEY_SHORT_NAME))) { in doInBackground()
90 && address.startsWith(component.getString(JSON_KEY_LONG_NAME))) { in doInBackground()
94 int index = address.indexOf(',', premise.length()); in doInBackground()
95 if (index > 0 && index < address.length()) { in doInBackground()
96 address = address.substring(index + 1).trim(); in doInBackground()
110 if (address.endsWith(", USA")) { in doInBackground()
111 address = address.substring(0, address.length() - 5); in doInBackground()
117 return address; in doInBackground()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DJniCallbacks.java48 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, int passkey) { in sspRequestCallback() argument
49 mBondStateMachine.sspRequestCallback(address, name, cod, pairingVariant, passkey); in sspRequestCallback()
52 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] val) { in devicePropertyChangedCallback() argument
53 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback()
56 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument
57 mRemoteDevices.deviceFoundCallback(address); in deviceFoundCallback()
60 void pinRequestCallback(byte[] address, byte[] name, int cod, boolean min16Digits) { in pinRequestCallback() argument
61 mBondStateMachine.pinRequestCallback(address, name, cod, min16Digits); in pinRequestCallback()
64 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument
65 mBondStateMachine.bondStateChangeCallback(status, address, newState); in bondStateChangeCallback()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DBuilder.java20 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/a2dp/
DA2dpNativeInterface.java143 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument
144 return mAdapter.getRemoteDevice(address); in getDevice()
167 private void onConnectionStateChanged(byte[] address, int state) { in onConnectionStateChanged() argument
170 event.device = getDevice(address); in onConnectionStateChanged()
179 private void onAudioStateChanged(byte[] address, int state) { in onAudioStateChanged() argument
181 event.device = getDevice(address); in onAudioStateChanged()
190 private void onCodecConfigChanged(byte[] address, in onCodecConfigChanged() argument
195 event.device = getDevice(address); in onCodecConfigChanged()
210 private native boolean connectA2dpNative(byte[] address); in connectA2dpNative() argument
211 private native boolean disconnectA2dpNative(byte[] address); in disconnectA2dpNative() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsAddressResolver.java54 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/UnifiedEmail/src/com/android/mail/
DEmailAddress.java42 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/util/
DInterop.java35 public String address; field in Interop.Entry
38 Entry(int workaroundId, String address) { in Entry() argument
40 this.address = address; in Entry()
76 public static boolean matchByAddress(int workaroundId, String address) { in matchByAddress() argument
77 if (address == null || address.isEmpty()) { in matchByAddress()
83 if (entry.workaround_id == workaroundId && entry.address.startsWith( in matchByAddress()
84 address.toLowerCase())) { in matchByAddress()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java224 Address address = geocoder.getFromLocation(coords[0], // latitude in getAddress() local
228 return address; in getAddress()
234 protected void onPostExecute(@Nullable Address address) { in getAddress() argument
235 if (address != null) { in getAddress()
237 if (address.getMaxAddressLineIndex() >= 0) { in getAddress()
240 addressBuilder.append(address.getAddressLine(0)); in getAddress()
241 for (int i = 1; i < address.getMaxAddressLineIndex(); i++) { in getAddress()
243 addressBuilder.append(address.getAddressLine(i)); in getAddress()
247 } else if (address.getLocality() != null) { in getAddress()
248 table.put(R.string.metadata_address, address.getLocality()); in getAddress()
[all …]

12345678910