161178 Commits

Author SHA1 Message Date
Jay Shrauner
193de667ed DO NOT MERGE Remove deprecated telecom APIs. Mark others final.
Bug:
Change-Id: I8a04903052a964f3997b5bb36730b8b200c8e472
2015-04-15 11:05:50 -07:00
Casper Bonde
d05bd467ba Add support for Bluetooth Sim Access Profile (2/4)
Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
2015-04-15 10:54:08 -07:00
Nitin Arora
6ddbb5e55f Bluetooth LE background operation mode (2/2)
Changes include new framework APIs to enable and disable Bluetooth LE
separately from Bluetooth Classic. Along with handling the new states
in the Bluetooth manager service.

Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
2015-04-15 16:26:42 +00:00
Erik Kline
104b0f1353 multinetwork API: native implementation
Bug: 19537384
Change-Id: I04f4a7de2b1e583989b67a853df6ab50289c2185
2015-04-15 15:52:31 +09:00
Yorke Lee
de93575d86 Merge "DO NOT MERGE Changes for TelecomManager API review" into m-wireless-dev 2015-04-15 01:41:10 +00:00
Jay Shrauner
1b057f559e DO NOT MERGE Add constructor without zoom
Add constructor without zoom params. Reorder params in constructor
with zoom to move zoom params to the end of the param list (API
guidelines). Reorder code to match param ordering. Tag all zoom related
methods with @hide.

Bug:20160534
Change-Id: Ic2149af82a5450666c49b8757daf6950bcb68977
2015-04-14 17:34:43 -07:00
Yorke Lee
0bce89050a DO NOT MERGE Changes for TelecomManager API review
* clearAccounts -> clearPhoneAccounts
* handleMMi(PhoneAccountHandle, String) -> handleMMi(String, PhoneAccountHandle)
* hasMultipleCallCapableAccounts -> removed
Bug: 20160799

Change-Id: Ifcd26474f04b71aa725299b6016004151b76bc31
2015-04-14 17:12:04 -07:00
Yorke Lee
2287a01bb9 DO NOT MERGE Remove proximity methods in TelecomManager
Bug: 20160495
Change-Id: Ib0156cf170d16b48f97e08027c912fc3f45691fb
2015-04-14 16:04:22 -07:00
Tyler Gunn
9561e7410b Prevent merging conference calls hosted on peer device.
automerge: 6b91ebf

* commit '6b91ebf58c928987ead635bb1c49a16965d4c835':
  Prevent merging conference calls hosted on peer device.
2015-04-14 18:19:11 +00:00
Paul Jensen
3541e9f469 Deprecate connectivity APIs relying on integer network types.
Recommend ConnectivityManager.getAllNetworks() and various state
inspection functions as a way forward.

Bug:19608294
Change-Id: Ibd53629995897047fc532ffa56f079dfba10a7c7
2015-04-14 17:51:27 +00:00
Paul Jensen
557d2f5489 Merge "Add ConnectivityManager.reportNetworkConnectivity() API" into m-wireless-dev 2015-04-14 11:56:59 +00:00
tturney
ab5267a403 Fix onLost/onFound logic in isSettingsAndFilterComboAllowed
bug: b/20185066

Change-Id: If9e3fecd12ee86aa12fa63688babeff694bee62e
2015-04-13 14:56:27 -07:00
Paul Jensen
bfd17b75a6 Add ConnectivityManager.reportNetworkConnectivity() API
This new API allows reporting networks that are perceived to provide Internet
connectivity and networks that are not.  This allows the framework to avoid
needlessly reevaluating networks where the apps perception matches the
framework's perception.  This was not possible with the prior API,
reportBadNetwork.

Bug: 16214361
Change-Id: Id4409bd7538854bd837231fb50e693c10a62b4f2
2015-04-13 18:48:54 +00:00
Casper Bonde
238e0f934f OBEX Over L2CAP + SDP search API for BT profiles
- Updated OBEX to support SRM
- Added support for OBEX over l2cap and SRM.
- Minor bugfixes, and reduce CPU load ALOT
- Added support to send responses without body data.
- Extend BluetoothSocket to support L2CAP
- Added functionality to get the channel number
  needed to be able to create an SDP record with the channel number.
- Added interface to get socket type and max packet sizes.
- Added interface to perform SDP search and get the resulting
  SDP record data.

Change-Id: I9d37a00ce73dfffc0e3ce03eab5511ba3a86e5b8
2015-04-11 01:49:11 +00:00
Paul Jensen
31a94f48bf Add ConnectivityManager.getActiveNetwork().
Rework NetID allocation in ConnectivityService so registerNetworkAgent() can
return the allocated NetID.

Bug: 19416463
Change-Id: I68e395552cf27422c80b4dfae5db5d56a0d68f5d
2015-04-10 14:03:13 +00:00
Paul Jensen
bf18bedced Merge "Non-functional code cleanup of ConnectivityService." into m-wireless-dev 2015-04-10 13:26:14 +00:00
Tyler Gunn
db8784e28a Merge "Cleanup of Video Call pause functionality." into m-wireless-dev 2015-04-09 02:06:24 +00:00
Paul Jensen
e75b9e3555 Non-functional code cleanup of ConnectivityService.
1. Remove ConnectivityService.findConnectionTypeForIface() as this can be done
   just as easily with supported APIs now.
2. Avoid making copies of Network objects as this precludes reuse of Network
   internals (e.g. socket factory, connection pool).

Change-Id: I52f92e35d769d8350471f485e408169608630082
2015-04-08 07:46:49 -04:00
Tyler Gunn
b5e0cfb24e Cleanup of Video Call pause functionality.
Whether the paused videoState is available is dependent on the carrier's
implementation of the VT spec. The original VT implementation assumed
that this was stored in a system property accessed via InCall; these CLs
move this to a Call/Connection capability which will ultimately support
multisim video capable devices.

- Added new connection/call capabilities.

Bug: 16680364
Bug: 19820114
Change-Id: I3840f92270100811161120dffcfe297bef7c4ea2
2015-04-07 16:10:51 -07:00
Prerepa Viswanadham
e593d0aec6 Onfound onlost feature.
Change-Id: I5475cb21183abab8cf04af486ff7692396801b92
Signed-off-by: Prerepa Viswanadham <dham@google.com>
2015-04-07 22:32:41 +00:00
Vinit Deshpande
0326f585e1 Merge "API for config app." into m-wireless-dev 2015-04-07 22:12:40 +00:00
Jan Nordqvist
e9b056f886 API for config app.
Change-Id: Icda0ac1b081a08f438645ccf3667b5b81cb5e244
2015-04-07 14:59:37 -07:00
xinhe
d5351e7b60 RTT framework interface update
Bug:19917983
Change-Id: I1c89c4c583923137983243814e35c8981f6db54a
2015-04-07 18:34:27 +00:00
Lorenzo Colitti
582b868c44 Unhide Network.openConnection(URL, Proxy).
Spun off from
https://partner-android-review.googlesource.com/#/c/205463/ for
ease of review.

Bug: 19416463
Change-Id: Ia37a53a350d55b5514b949242368dfe396f6b9a0
2015-04-07 13:13:20 +09:00
Paul Jensen
0d719cab11 Fix typos in ConnectivityManager documentation.
Spun off from
https://partner-android-review.googlesource.com/#/c/205463/ for
ease of review.

Bug: 19416463
Change-Id: I2f88ac415177ecd96c9191df5e390830869f52e1
2015-04-07 13:13:13 +09:00
Vinit Deshpande
b4d90fca0e Implement 'Available via Passpoint' feature
This also fixes the issues related to explicit connection
to passpoint AP, and fixes occassional mention of
'connected via Wi-Fi Assistent'

Change-Id: Ib4de956f2ea29709d0212fbcb392815644800e78
2015-04-03 18:03:04 -07:00
Paul Jensen
ad8234213d Deprecate EXTRA_PROXY_INFO and unhide ConnectivityManager.getDefaultProxy().
1. Unhide ConnectivityManager.getDefaultProxy() and update it to
   take into account process-bound-Networks.
2. Deprecate EXTRA_PROXY_INFO and instead encourage querying via
   getDefaultProxy().

Bug: 17905627
Bug: 17420465
Bug: 18144582

Change-Id: I45358ee82fe705d048022c8238b2452f52c37b88
2015-04-03 07:25:55 -04:00
Tyler Gunn
1d52ab6954 Merge "IMS-VT: Upgrade/Downgrade change -Add isVideo API to VideoProfile.VideoState" into m-wireless-dev 2015-04-03 01:51:59 +00:00
Paul Jensen
72db88e46f Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions.
These functions risk hitting an unchecked Exception due to ConnectivityManager
not being instantiated yet.  Also, change Network.openConnection() to throw a
checked Exception rather than an unchecked Exception when ConnectivityManager
is not yet instantiated.

bug:19416463
Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
2015-04-02 14:03:43 +00:00
Rekha Kumar
07366813cd IMS-VT: Upgrade/Downgrade change
-Add isVideo API to VideoProfile.VideoState

IMS-VT: Fix propagation of device orientation.
Orientation received at VT Service is incorrect.
Fixed propagation of device orientation to VT service.

IMS-VT: Upgrade fix
-Add session modify call timed out constant

Notify listeners of video quality changed event
- Propagate the video quality changed message to the UI.

IMS: Add support for video quality
- Add Config interface to get/set video quality

IMS-VT: Multitasking feature
-Support for video multitasking

IMS-VT: Modification of data usage aidl
Change data usage aidl interface to take parameter type long
instead of int

Change-Id: I7cda2a689edb86d025dfe8efc8f573918c4bd6bc

Propagate the call substate changed message to the UI

IMS-VT: Add call modifiable capability

PhoneCapababilities call type modifiable constant added

IMS-VT: Add a bit mask CALL_SUBSTATE_ALL with all call substate bits set

IMS-VT: Enable Video conferencing.

Enable Video conferencing.

Change-Id: I4240aa6f32c75d6eea8a41da3c87bca651f0901b

IMS-VT: Add hide for setVideoProvider API
Observed compilation error for SDK generation due to setVideoProvider
API. Marking setVideoProvider as hide inorder to resolve the
compilation error.

IMS-VT: Add persist.radio.ims.audio.output for VT calls
-- Add persist.radio.ims.audio.output to set the default speaker
   for VT calls.
-- Add required constants

IMS-VT: Add additional error codes for upgrade downgrade
-Add support to send additional error codes to UI during
 upgrade downgrade.

Change-Id: Id452d225098fe3bccdcd37d242985c5c761144c1
2015-04-01 21:40:45 +00:00
Tyler Gunn
6b91ebf58c Prevent merging conference calls hosted on peer device.
With IMS, the "multiparty" bit on an ImsCall is set to "true" when a call
is merged into a conference.  This not only occurs on the device hosting
the conference call, but also on the devices of the callers merged into
the conference.

This CL adds a listener to the ImsCallSessionListener which is used to
communicate a change in the multiparty state of an ImsCallSession to
the ImsCall.  This solves a problem where the RIL knows of the change, but
since there is no callback, the change is not noticed by Telephony until
another call state change occurrs (e.g. holding the call).

Bug: 19478784
Change-Id: I4847ab3b63f6a00a91d1324196f181467d1753a4
2015-04-01 09:36:19 -07:00
Lorenzo Colitti
1b6be18b2d Merge "Deal with null characters in string options." into m-wireless-dev 2015-04-01 08:41:44 +00:00
Erik Kline
34c6e6b853 Add DhcpStateMachine PollingState.
This state leaves dhcpcd running and polls for results, with
exponential backoff to once every 32 seconds.

Bug: 19422416
Change-Id: I87f481969629ba104491f25ea36de1efc4ad105a
2015-04-01 17:13:39 +09:00
Lorenzo Colitti
c2abb2bf5e Deal with null characters in string options.
This currently truncates all strings at the first NULL character,
except for vendorInfo, which is an opaque string.

Bug: 19985674
Change-Id: Ie53b2c55eb8a5204d7b2c7e2d8587743d923647a
2015-04-01 13:55:34 +09:00
Santos Cordon
3dda1fa418 Merge "DO NOT MERGE Do not hide any call log entries when they are added." into m-wireless-dev 2015-04-01 00:04:17 +00:00
Santos Cordon
14c9121e3c DO NOT MERGE Do not hide any call log entries when they are added.
When a call log entry is added, and it's phone account does not match a
currently registered one, we set it to hidden.  This code was built for
the calllog restore case where call log entries would be hidden when
added if the original phone account wasn't also
present on the new device (where the restore is being performed).

We no longer do that so we're removing the code that sets any call log
entry to hidden.

-- Resubmitting since this change was lost to a merge conflict --

Change-Id: I1ef094d5a35063e8f89cd1ecb1e5a0b59361781c
2015-03-31 17:02:17 -07:00
Vinit Deshpande
b2ff4151bb Merge "Remove scanResultCache from WifiConfiguration" into m-wireless-dev 2015-03-31 23:00:41 +00:00
Vinit Deshpande
6f6c781cca Remove scanResultCache from WifiConfiguration
This is in preparation to use ScanDetail - which is a superset
of ScanResult - in wifi stack. There are no external users of
scanResultCache; so it can be safely removed.

Also fixed a javadoc comment for getPlmn()

Change-Id: I7c49532664ffe2e3e5e134bfcd42615d5999d02f
2015-03-31 15:51:55 -07:00
Vinit Deshpande
5d16c59af7 Merge "Don't log errors if the receive thread is stopped." into m-wireless-dev 2015-03-31 21:02:01 +00:00
Lorenzo Colitti
f5c17221d4 Don't log errors if the receive thread is stopped.
Change-Id: I75ddc9b68f0a61a9a7a78026ed97a8a7c5109cc3
2015-03-31 07:07:03 +09:00
Pavel Zhamaitsiak
271c9edc30 Merge "WiFi Calling: Show different operator name string in Data usage dialog." into lmp-mr1-wfc-dev
automerge: 5fd843b

* commit '5fd843b33383266cfe5f79f7ba4c5134c104cda0':
  WiFi Calling: Show different operator name string in Data usage dialog.
2015-03-30 16:21:17 +00:00
Bart Sears
998fb1975f am 4a26c391: Merge "CEC: Explicitly turn on screen for remote control passthrough" into lmp-mr1-dev
automerge: e6687a7

* commit 'e6687a756cf4f6def71d920f80bb5898c081c4e1':
  CEC: Explicitly turn on screen for remote control passthrough
2015-03-30 16:20:48 +00:00
Pavel Zhamaitsiak
5fd843b333 Merge "WiFi Calling: Show different operator name string in Data usage dialog." into lmp-mr1-wfc-dev 2015-03-27 22:14:30 +00:00
Bart Sears
e6687a756c am 4a26c391: Merge "CEC: Explicitly turn on screen for remote control passthrough" into lmp-mr1-dev
* commit '4a26c391d08dfa6a3c189293f0fc163b817b1b49':
  CEC: Explicitly turn on screen for remote control passthrough
2015-03-27 21:15:24 +00:00
Wei Wang
d91f19354d Add API for BLE_SCAN_ALWAYS_AVAILABLE feature.
Change-Id: I83e966d4db076db367ded71bfb50c39e57568156
2015-03-27 14:05:37 -07:00
Bart Sears
4a26c391d0 Merge "CEC: Explicitly turn on screen for remote control passthrough" into lmp-mr1-dev 2015-03-27 20:48:38 +00:00
Pavel Zhamaitsiak
31697500a7 WiFi Calling: Show different operator name string in Data usage dialog.
Bug: 19950657
Change-Id: I9999d58e78154ed2d6d824973c40011875de15ef
2015-03-27 10:51:48 -07:00
Deepanshu Gupta
fbeeccc354 am 4e6ae02a: am 17bb697b: am ec8df9af: Fix tests for Java 6.
automerge: b3fea86

* commit 'b3fea8671843675db3c091bd4c7c2d4fa31f2917':
  Fix tests for Java 6.
2015-03-27 05:25:10 +00:00
Christopher Tate
8b301dba07 am dbe0dd16: When scanning unbundled apps, only install the expected APK tree
automerge: d291cd4

* commit 'd291cd4040dcaa26d0f5cff637b11011d55fe25b':
  When scanning unbundled apps, only install the expected APK tree
2015-03-27 05:24:50 +00:00
Deepanshu Gupta
b3fea86718 am 4e6ae02a: am 17bb697b: am ec8df9af: Fix tests for Java 6.
* commit '4e6ae02a29dd432648a81f3803f3ccf712621d43':
  Fix tests for Java 6.
2015-03-27 02:19:58 +00:00