/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | NativeInterface.java | 84 public boolean connect(byte[] address) { in connect() argument 85 return connectNative(address); in connect() 95 public boolean disconnect(byte[] address) { in disconnect() argument 96 return disconnectNative(address); in disconnect() 106 public boolean connectAudio(byte[] address) { in connectAudio() argument 107 return connectAudioNative(address); in connectAudio() 116 public boolean disconnectAudio(byte[] address) { in disconnectAudio() argument 117 return disconnectAudioNative(address); in disconnectAudio() 127 public boolean startVoiceRecognition(byte[] address) { in startVoiceRecognition() argument 128 return startVoiceRecognitionNative(address); in startVoiceRecognition() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetNativeInterface.java | 70 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/btservice/storage/ |
D | DatabaseManager.java | 150 String address = (String) msg.obj; in handleMessage() local 152 mDatabase.delete(address); in handleMessage() 200 String address = device.getAddress(); in bondStateChanged() local 202 if (mMetadataCache.containsKey(address)) { in bondStateChanged() 205 createMetadata(address, false); in bondStateChanged() 207 Metadata metadata = mMetadataCache.get(address); in bondStateChanged() 209 mMetadataCache.remove(address); in bondStateChanged() 256 String address = device.getAddress(); in setCustomMeta() local 257 if (!mMetadataCache.containsKey(address)) { in setCustomMeta() 258 createMetadata(address, false); in setCustomMeta() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 531 public void clientConnect(int clientIf, String address, boolean isDirect, int transport, in clientConnect() argument 537 service.clientConnect(clientIf, address, isDirect, transport, opportunistic, phy); in clientConnect() 541 public void clientDisconnect(int clientIf, String address) { in clientDisconnect() argument 546 service.clientDisconnect(clientIf, address); in clientDisconnect() 550 public void clientSetPreferredPhy(int clientIf, String address, int txPhy, int rxPhy, in clientSetPreferredPhy() argument 556 service.clientSetPreferredPhy(clientIf, address, txPhy, rxPhy, phyOptions); in clientSetPreferredPhy() 560 public void clientReadPhy(int clientIf, String address) { in clientReadPhy() argument 565 service.clientReadPhy(clientIf, address); in clientReadPhy() 569 public void refreshDevice(int clientIf, String address) { in refreshDevice() argument 574 service.refreshDevice(clientIf, address); in refreshDevice() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothRouteManager.java | 187 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayload.java | 274 protected static int netmaskToPrefixLen(Inet4Address address) { in netmaskToPrefixLen() argument 275 byte[] bytes = address.getAddress(); in netmaskToPrefixLen() 344 public final Inet4Address address; field in IkeConfigPayload.TunnelModeChildConfigAttrIpv4AddressBase 347 int attributeType, Inet4Address address) { in TunnelModeChildConfigAttrIpv4AddressBase() argument 349 this.address = address; in TunnelModeChildConfigAttrIpv4AddressBase() 354 this.address = null; in TunnelModeChildConfigAttrIpv4AddressBase() 362 address = null; in TunnelModeChildConfigAttrIpv4AddressBase() 372 address = (Inet4Address) netAddress; in TunnelModeChildConfigAttrIpv4AddressBase() 380 if (address == null) return; // No encoding necessary in encodeValueToByteBuffer() 382 buffer.put(address.getAddress()); in encodeValueToByteBuffer() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 326 private void handlePassthroughRsp(int id, int keyState, byte[] address) { in handlePassthroughRsp() argument 329 + " state: " + keyState + "address:" + address); in handlePassthroughRsp() 342 boolean browsingConnected, byte[] address) { in onConnectionStateChanged() argument 343 BluetoothDevice device = mAdapter.getRemoteDevice(address); in onConnectionStateChanged() 364 private void getRcFeatures(byte[] address, int features) { in getRcFeatures() argument 369 private void getRcPsm(byte[] address, int psm) { in getRcPsm() argument 370 BluetoothDevice device = mAdapter.getRemoteDevice(address); in getRcPsm() 380 private void setPlayerAppSettingRsp(byte[] address, byte accepted) { in setPlayerAppSettingRsp() argument 385 private synchronized void handleRegisterNotificationAbsVol(byte[] address, byte label) { in handleRegisterNotificationAbsVol() argument 389 BluetoothDevice device = mAdapter.getRemoteDevice(address); in handleRegisterNotificationAbsVol() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Address.java | 42 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/jni/ |
D | com_android_bluetooth_hfpclient.cpp | 191 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() 506 static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { in connectNative() argument 509 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectNative() 519 env->ReleaseByteArrayElements(address, addr, 0); in connectNative() 524 jbyteArray address) { in disconnectNative() argument 527 jbyte* addr = env->GetByteArrayElements(address, NULL); in disconnectNative() 538 env->ReleaseByteArrayElements(address, addr, 0); in disconnectNative() 543 jbyteArray address) { in connectAudioNative() argument 546 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectAudioNative() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 80 (jbyte*)&bd_addr.address); in btavrcp_passthrough_response_callback() 118 (jbyte*)bd_addr.address); in btavrcp_connection_state_callback() 143 (jbyte*)&bd_addr.address); in btavrcp_get_rcfeatures_callback() 167 (jbyte*)&bd_addr.address); in btavrcp_setplayerapplicationsetting_rsp_callback() 192 (jbyte*)&bd_addr.address); in btavrcp_playerapplicationsetting_callback() 244 (jbyte*)&bd_addr.address); in btavrcp_playerapplicationsetting_changed_callback() 288 (jbyte*)&bd_addr.address); in btavrcp_set_abs_vol_cmd_callback() 312 (jbyte*)&bd_addr.address); in btavrcp_register_notification_absvol_callback() 348 (jbyte*)&bd_addr.address); in btavrcp_track_changed_callback() 396 (jbyte*)&bd_addr.address); in btavrcp_play_position_changed_callback() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 266 jbyteArray address) { in connectHidNative() argument 269 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectHidNative() 281 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative() 287 jbyteArray address) { in disconnectHidNative() argument 292 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative() 303 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative() 309 jbyteArray address) { in getProtocolModeNative() argument 312 jbyte* addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative() 327 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative() 333 jbyteArray address) { in virtualUnPlugNative() argument [all …]
|
D | com_android_bluetooth_hfp.cpp | 508 jbyteArray address) { in connectHfpNative() argument 514 jbyte* addr = env->GetByteArrayElements(address, nullptr); in connectHfpNative() 525 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative() 530 jbyteArray address) { in disconnectHfpNative() argument 536 jbyte* addr = env->GetByteArrayElements(address, nullptr); in disconnectHfpNative() 547 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative() 552 jbyteArray address) { in connectAudioNative() argument 558 jbyte* addr = env->GetByteArrayElements(address, nullptr); in connectAudioNative() 569 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative() 574 jbyteArray address) { in disconnectAudioNative() argument [all …]
|
D | com_android_bluetooth_gatt.cpp | 79 static RawAddress str2addr(JNIEnv* env, jstring address) { in str2addr() argument 81 const char* c_address = env->GetStringUTFChars(address, NULL); in str2addr() 85 env->ReleaseStringUTFChars(address, c_address); in str2addr() 93 bda->address[0], bda->address[1], bda->address[2], bda->address[3], in bdaddr2newjstr() 94 bda->address[4], bda->address[5]); in bdaddr2newjstr() 216 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_scan_result_cb() local 224 addr_type, address.get(), primary_phy, in btgattc_scan_result_cb() 234 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_open_cb() local 237 conn_id, status, address.get()); in btgattc_open_cb() 245 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_close_cb() local [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 788 static jboolean createBondNative(JNIEnv* env, jobject obj, jbyteArray address, in createBondNative() argument 794 jbyte* addr = env->GetByteArrayElements(address, NULL); in createBondNative() 801 env->ReleaseByteArrayElements(address, addr, 0); in createBondNative() 814 jbyteArray address, jint transport, in createBondOutOfBandNative() argument 822 jbyte* addr = env->GetByteArrayElements(address, NULL); in createBondOutOfBandNative() 901 env->ReleaseByteArrayElements(address, addr, 0); in createBondOutOfBandNative() 915 static jboolean removeBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in removeBondNative() argument 920 jbyte* addr = env->GetByteArrayElements(address, NULL); in removeBondNative() 927 env->ReleaseByteArrayElements(address, addr, 0); in removeBondNative() 932 static jboolean cancelBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in cancelBondNative() argument [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 49 (const jbyte*)bd_addr.address); in bta2dp_connection_state_callback() 68 (const jbyte*)bd_addr.address); in bta2dp_audio_state_callback() 88 (const jbyte*)bd_addr.address); in bta2dp_audio_config_callback() 169 jbyteArray address) { in connectA2dpNative() argument 173 jbyte* addr = env->GetByteArrayElements(address, NULL); in connectA2dpNative() 185 env->ReleaseByteArrayElements(address, addr, 0); in connectA2dpNative() 190 jbyteArray address) { in disconnectA2dpNative() argument 193 jbyte* addr = env->GetByteArrayElements(address, NULL); in disconnectA2dpNative() 205 env->ReleaseByteArrayElements(address, addr, 0); in disconnectA2dpNative() 222 jbyteArray address) { in setActiveDeviceNative() argument [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/modules/NetworkStack/src/android/net/ip/ |
D | IpClientLinkObserver.java | 137 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument 139 Log.d(mTag, operation + ": " + address + " on " + iface in maybeLog() 140 + " flags " + address.getFlags() + " scope " + address.getScope()); in maybeLog() 178 public void onInterfaceAddressUpdated(LinkAddress address, String iface) { in onInterfaceAddressUpdated() argument 180 maybeLog("addressUpdated", iface, address); in onInterfaceAddressUpdated() 184 changed = mLinkProperties.addLinkAddress(address); in onInterfaceAddressUpdated() 194 public void onInterfaceAddressRemoved(LinkAddress address, String iface) { in onInterfaceAddressRemoved() argument 196 maybeLog("addressRemoved", iface, address); in onInterfaceAddressRemoved() 200 changed = mLinkProperties.removeLinkAddress(address); in onInterfaceAddressRemoved() 520 InetAddress address; in addServers() local [all …]
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | TunnelModeChildSessionParams.java | 258 public Builder addInternalAddressRequest(@NonNull Inet4Address address) { in addInternalAddressRequest() argument 259 if (address == null) { in addInternalAddressRequest() 264 mConfigRequestList.add(new ConfigAttributeIpv4Address((Inet4Address) address)); in addInternalAddressRequest() 277 public Builder addInternalAddressRequest(@NonNull Inet6Address address, int prefixLen) { in addInternalAddressRequest() argument 278 if (address == null) { in addInternalAddressRequest() 283 new ConfigAttributeIpv6Address(new LinkAddress(address, prefixLen))); in addInternalAddressRequest() 317 public Builder addInternalDnsServerRequest(@NonNull InetAddress address) { in addInternalDnsServerRequest() argument 318 if (address == null) { in addInternalDnsServerRequest() 322 if (address instanceof Inet4Address) { in addInternalDnsServerRequest() 323 mConfigRequestList.add(new ConfigAttributeIpv4Dns((Inet4Address) address)); in addInternalDnsServerRequest() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | ReverseGeocodeTask.java | 60 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/a2dp/ |
D | A2dpNativeInterface.java | 145 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument 146 return mAdapter.getRemoteDevice(address); in getDevice() 169 private void onConnectionStateChanged(byte[] address, int state) { in onConnectionStateChanged() argument 172 event.device = getDevice(address); in onConnectionStateChanged() 181 private void onAudioStateChanged(byte[] address, int state) { in onAudioStateChanged() argument 183 event.device = getDevice(address); in onAudioStateChanged() 192 private void onCodecConfigChanged(byte[] address, in onCodecConfigChanged() argument 197 event.device = getDevice(address); in onCodecConfigChanged() 207 private boolean isMandatoryCodecPreferred(byte[] address) { in isMandatoryCodecPreferred() argument 210 int enabled = service.getOptionalCodecsEnabled(getDevice(address)); in isMandatoryCodecPreferred() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | JniCallbacks.java | 48 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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayloadTest.java | 222 assertNull(((ConfigAttributeIpv4Address) att).address); in testDecodeConfigRequest() 230 assertNull(((ConfigAttributeIpv4Dns) att).address); in testDecodeConfigRequest() 234 assertNull(((ConfigAttributeIpv6Dns) att).address); in testDecodeConfigRequest() 238 assertEquals(IPV4_PCSCF_ADDR, ((ConfigAttributeIpv4Pcscf) att).address); in testDecodeConfigRequest() 242 assertEquals(IPV6_PCSCF_ADDR, ((ConfigAttributeIpv6Pcscf) att).address); in testDecodeConfigRequest() 262 assertEquals(IPV4_ADDRESS, ((ConfigAttributeIpv4Address) att).address); in testDecodeConfigResponse() 266 assertEquals(IPV4_DNS, ((ConfigAttributeIpv4Dns) att).address); in testDecodeConfigResponse() 271 assertEquals(expectedDns, ((ConfigAttributeIpv4Dns) att).address); in testDecodeConfigResponse() 275 assertEquals(IPV4_PCSCF_ADDR, ((ConfigAttributeIpv4Pcscf) att).address); in testDecodeConfigResponse() 279 assertEquals(IPV6_PCSCF_ADDR, ((ConfigAttributeIpv6Pcscf) att).address); in testDecodeConfigResponse() [all …]
|
/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/Bluetooth/src/com/android/bluetooth/util/ |
D | Interop.java | 35 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/ |
D | MediaView.java | 224 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 String addressLine = address.getAddressLine(i); in getAddress() 250 } else if (address.getLocality() != null) { in getAddress() 251 table.put(R.string.metadata_address, address.getLocality()); in getAddress() [all …]
|