OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Change signalStrength to int." am: 73818566d6
Hall Liu [Mon, 15 May 2017 22:25:34 +0000 (22:25 +0000)]
Merge "Change signalStrength to int." am: 73818566d6
am: 762e0c1162

Change-Id: I5cf3c07071c57c362847133c8858227d58662ce8

7 years agoMerge "Change signalStrength to int."
Hall Liu [Mon, 15 May 2017 22:14:59 +0000 (22:14 +0000)]
Merge "Change signalStrength to int."
am: 73818566d6

Change-Id: I8a9afddc749afc216dc1dc16f0465df1d0dab24f

7 years agoMerge "Change signalStrength to int."
Hall Liu [Mon, 15 May 2017 22:01:20 +0000 (22:01 +0000)]
Merge "Change signalStrength to int."

7 years agoMerge "Remove switchStreams API." am: f465d84ebe
Hall Liu [Mon, 15 May 2017 20:54:30 +0000 (20:54 +0000)]
Merge "Remove switchStreams API." am: f465d84ebe
am: 48941f5d90

Change-Id: I739d0f707c60167cf99e1ca5126621a899e607d7

7 years agoMerge "Remove switchStreams API."
Hall Liu [Mon, 15 May 2017 20:41:45 +0000 (20:41 +0000)]
Merge "Remove switchStreams API."
am: f465d84ebe

Change-Id: Ia2cd7338087ee5283d2241ec260d0649ccd3f2b2

7 years agoMerge "Remove switchStreams API."
Hall Liu [Mon, 15 May 2017 20:22:55 +0000 (20:22 +0000)]
Merge "Remove switchStreams API."

7 years agoMerge "Moved c.a.i.u.Predicate[s] into legacy-test" am: e476a30575
Paul Duffin [Mon, 15 May 2017 19:19:30 +0000 (19:19 +0000)]
Merge "Moved c.a.i.u.Predicate[s] into legacy-test" am: e476a30575
am: 3215c85de9

Change-Id: Ib64efa0332d5f5bdbab99f3271bc058c54bfaa35

7 years agoMerge "Moved c.a.i.u.Predicate[s] into legacy-test"
Paul Duffin [Mon, 15 May 2017 19:11:08 +0000 (19:11 +0000)]
Merge "Moved c.a.i.u.Predicate[s] into legacy-test"
am: e476a30575

Change-Id: Ia0b3ebd30e045fe2b26fe9a78b2de665bf960b0c

7 years agoMerge "Moved c.a.i.u.Predicate[s] into legacy-test"
Paul Duffin [Mon, 15 May 2017 18:58:45 +0000 (18:58 +0000)]
Merge "Moved c.a.i.u.Predicate[s] into legacy-test"

7 years agoMerge "Add API to support async network scans." am: 625d5a9dd9
Ying Xu [Mon, 15 May 2017 17:12:59 +0000 (17:12 +0000)]
Merge "Add API to support async network scans." am: 625d5a9dd9
am: 8d692eb811

Change-Id: I0aef12a6d1617b594cd1ed050ed0a02043ae5aba

7 years agoMerge "Add API to support async network scans."
Ying Xu [Mon, 15 May 2017 17:04:43 +0000 (17:04 +0000)]
Merge "Add API to support async network scans."
am: 625d5a9dd9

Change-Id: Iac369e26f707e59095ae7a89bfb11324e12634dc

7 years agoMerge "Add API to support async network scans."
Ying Xu [Mon, 15 May 2017 16:57:04 +0000 (16:57 +0000)]
Merge "Add API to support async network scans."

7 years agoMoved c.a.i.u.Predicate[s] into legacy-test
Paul Duffin [Tue, 9 May 2017 14:52:46 +0000 (15:52 +0100)]
Moved c.a.i.u.Predicate[s] into legacy-test

These classes are only used by android.test classes that are
being removed. As their name suggests they should not be in the
Android API at all so it makes sense to remove them. Especially
as there is java.lang.function.Predicate available now.

It appears as though Predicate was only added in to the API
because it was used by a method in the API as the directory in
which it and Predicates live was not on the list of classes to
explicitly index. Moving it into legacy-test meant that they are
now being indexed explicitly which means that Predicates needs
to be hidden.

Keeps running the tests as part of the existing target.

At runtime apps targeted at the API version before these are
removed will have the legacy-test library automatically added
to their classpath so they should see no effect. Apps that
target a later API will have to include those classes from the
android.legacy.test.jar which will contain all the android.test
classes that depend on it as well.

Bug: 30188076
Test: make checkbuild
Change-Id: Ia8502ec77ac11f85e078d70b68df214a9435eee7
Merged-In: I6f6f5f16fe93bd80227a450c6254166632fc6813

7 years agoMerge "update time while network is connected" am: 465f8527dd
zhoulei [Mon, 15 May 2017 11:30:45 +0000 (11:30 +0000)]
Merge "update time while network is connected" am: 465f8527dd
am: 56ebd7daeb

Change-Id: Ia9287a828d40696f180599d58fbf1b4f0aea5449

7 years agoMerge "update time while network is connected"
zhoulei [Mon, 15 May 2017 11:22:45 +0000 (11:22 +0000)]
Merge "update time while network is connected"
am: 465f8527dd

Change-Id: I863c775015079a21098efd32b570acf8a8b53efa

7 years agoMerge "update time while network is connected"
Treehugger Robot [Mon, 15 May 2017 11:14:42 +0000 (11:14 +0000)]
Merge "update time while network is connected"

7 years agoMerge "ConnectivityService: minor formatting change" am: 4c949ee07c
Hugo Benichi [Mon, 15 May 2017 06:08:28 +0000 (06:08 +0000)]
Merge "ConnectivityService: minor formatting change" am: 4c949ee07c
am: 9374e0b598

Change-Id: Iddfb8c44b1fc539039dd0b32daa64ac538cb285f

7 years agoMerge "ConnectivityService: minor formatting change"
Hugo Benichi [Mon, 15 May 2017 06:00:59 +0000 (06:00 +0000)]
Merge "ConnectivityService: minor formatting change"
am: 4c949ee07c

Change-Id: Icb420ee636270ca07553de64958b04759986d11f

7 years agoMerge "ConnectivityService: minor formatting change"
Hugo Benichi [Mon, 15 May 2017 05:50:35 +0000 (05:50 +0000)]
Merge "ConnectivityService: minor formatting change"

7 years agoMerge "CaptivePortal: login activity UI improvements" am: cb570ec50a
Hugo Benichi [Mon, 15 May 2017 02:26:44 +0000 (02:26 +0000)]
Merge "CaptivePortal: login activity UI improvements" am: cb570ec50a
am: 95e0e08f61

Change-Id: I59a4d6daa591e577b6fd8e421c4f8fa5e26224d3

7 years agoMerge "CaptivePortal: login activity UI improvements"
Hugo Benichi [Mon, 15 May 2017 02:18:47 +0000 (02:18 +0000)]
Merge "CaptivePortal: login activity UI improvements"
am: cb570ec50a

Change-Id: I5ee0a2dbbb36e66822f4539f6b186df23a7438da

7 years agoMerge "CaptivePortal: login activity UI improvements"
Hugo Benichi [Mon, 15 May 2017 02:08:46 +0000 (02:08 +0000)]
Merge "CaptivePortal: login activity UI improvements"

7 years agoConnectivityService: minor formatting change
Hugo Benichi [Wed, 26 Apr 2017 05:53:28 +0000 (14:53 +0900)]
ConnectivityService: minor formatting change

This patch adds a space character between "synchronized" and
"(mTheLockVariable)" so that all synchronized block have a consistent
syntax. Basic stats shows that "synchronized (" is x10 time more likely
than "synchronized(".

This facilitates finding all locked sections by grepping.

Test: no semantics changes
Bug: 37119619
Change-Id: Id860700efa85ffebafed11af3a2997bc115d9c03

7 years agoChange signalStrength to int.
Robert Greenwalt [Fri, 12 May 2017 23:02:01 +0000 (16:02 -0700)]
Change signalStrength to int.

Broadcast signal strength is calculated differently than unicast
so the SignalStrength class used for unicast doesn't make sense.
Also added a -1 constant for unavailable which is mainly used
when the service is delivered via unicast.

Also rename signalStrengthUpdated to broadcastSignalStrengthUpdated.

Test: builds
Change-Id: Ia2680370d4cb8cd838341f58b41d02cdc78d4fc1

7 years agoMerge "Add RIL_UNSOL_MODEM_RESTART message" am: 85e188585e
Naveen Kalla [Fri, 12 May 2017 22:40:24 +0000 (22:40 +0000)]
Merge "Add RIL_UNSOL_MODEM_RESTART message" am: 85e188585e
am: e174804841

Change-Id: If2ba09241a05d0765c23cf5831e957efe3c1ef77

7 years agoMerge "Add RIL_UNSOL_MODEM_RESTART message"
Naveen Kalla [Fri, 12 May 2017 22:32:53 +0000 (22:32 +0000)]
Merge "Add RIL_UNSOL_MODEM_RESTART message"
am: 85e188585e

Change-Id: I33dd05658ad8c9eed74e42ab27fa248a5942b688

7 years agoMerge "Add RIL_UNSOL_MODEM_RESTART message"
Treehugger Robot [Fri, 12 May 2017 22:25:25 +0000 (22:25 +0000)]
Merge "Add RIL_UNSOL_MODEM_RESTART message"

7 years agoRemove switchStreams API.
Robert Greenwalt [Fri, 12 May 2017 22:04:04 +0000 (15:04 -0700)]
Remove switchStreams API.

After discussion about how best this could fit in the API we
discovered many disagreements that we couldn't resolve in the
time available.  Pulling the feature from the API until we
can resolve issues.

Test: builds
Change-Id: I6d36a1dea8ce9816fad497b992a347188d3ac88e

7 years agoAdd API to support async network scans.
yinxu [Wed, 12 Apr 2017 23:09:54 +0000 (16:09 -0700)]
Add API to support async network scans.

This CL includes the new Java API that supports async network scans.
Applications could get faster network scan results with this new API.
The long-term goal is to support Subsecond Switching which is separate
from what this CL is doing.

Bug: 30954762
Test: Unit test, run runtest -x NetworkScanRequestTest.java
Change-Id: I78cadaf838dee8439fe7417ef39f689990bf5705
(cherry picked from commit fdfb6f4d2f6db943d648adec6cc96530f2f70fe6)

7 years agoAdd RIL_UNSOL_MODEM_RESTART message
Naveen Kalla [Wed, 14 Sep 2016 20:53:54 +0000 (13:53 -0700)]
Add RIL_UNSOL_MODEM_RESTART message

RIL_UNSOL_MODEM_RESTART will be sent by vendor RILs when it detects
a modem restart along with the reason for restart which could be a
crash signature if the modem restarted due to a crash or a some
other string such as a user-initiated restart or AT command
initiated restart.

Test: Manual
Merged-In: Idf08e20a49e82d40f6aa0854d23384c35c2efc3a
Change-Id: Idf08e20a49e82d40f6aa0854d23384c35c2efc3a

7 years agoMerge changes I4c0e7fdd,I9ea3827a am: c876eece68
Paul Duffin [Fri, 12 May 2017 12:57:58 +0000 (12:57 +0000)]
Merge changes I4c0e7fdd,I9ea3827a am: c876eece68
am: 557996e1d0

Change-Id: I5b69ec04dbb80c826f43bd288e68cd74d1b99242

7 years agoMerge changes I4c0e7fdd,I9ea3827a
Paul Duffin [Fri, 12 May 2017 12:51:25 +0000 (12:51 +0000)]
Merge changes I4c0e7fdd,I9ea3827a
am: c876eece68

Change-Id: Idf7bfe0bf3d9a770772bd364b9c6d1a9db6d9cdf

7 years agoMerge changes I4c0e7fdd,I9ea3827a
Paul Duffin [Fri, 12 May 2017 12:41:24 +0000 (12:41 +0000)]
Merge changes I4c0e7fdd,I9ea3827a

* changes:
  Remove dependency on internal FileUtils class
  Remove dependency on com.google.android.collect classes

7 years agoupdate time while network is connected
zhoulei [Wed, 10 May 2017 10:09:50 +0000 (18:09 +0800)]
update time while network is connected

NTP update time from network while the network is not OK, so it should not
be excuted the network is disconnected to be for low power consumption

Test: as follows
    - built
    - flashed
    - booted
Change-Id: I17f2a9463551e254284ee8a9f894a95e983eee19
Signed-off-by: zhoulei <zhoulei5@xiaomi.com>
7 years agoCaptivePortal: login activity UI improvements
Hugo Benichi [Thu, 11 May 2017 00:58:14 +0000 (09:58 +0900)]
CaptivePortal: login activity UI improvements

Similarly to commit 2e0915f14384901f25a41d698b39ef0add201550 for the
carrier portal login, this patch changes the default settings of the
webview used for the system captive portal login activity to allow
better user experience on "wide" login pages designed for desktop.

Differently from commit 2e0915f14384901f25a41d698b39ef0add201550, the
zooming buttons are not displayed (i.e zooming is possible only with
gesture).

Test: manually tested with captive portals.
Bug: 318139361922894636532213
Change-Id: I2579994da37f3b0f4c08e24e59c81f31835ab832

7 years agoMerge "getStreamingServices for embms" am: b73fe9a751
Hall Liu [Fri, 12 May 2017 02:12:34 +0000 (02:12 +0000)]
Merge "getStreamingServices for embms" am: b73fe9a751
am: 1d274ca5ec

Change-Id: Iabec728e0525a0c8d4cf0b8a2627e9198fa0f5c5

7 years agoMerge "getStreamingServices for embms"
Hall Liu [Fri, 12 May 2017 01:52:29 +0000 (01:52 +0000)]
Merge "getStreamingServices for embms"
am: b73fe9a751

Change-Id: I391004c1ee0e5815147349f488b537ed4d645e73

7 years agoMerge "Add hidden APIs to get the cached SignalStrength from SST" am: 5b8a9c873f
nharold [Fri, 12 May 2017 01:50:29 +0000 (01:50 +0000)]
Merge "Add hidden APIs to get the cached SignalStrength from SST" am: 5b8a9c873f
am: cca5fbe779

Change-Id: I960302ca13d4dd9373186745ee2c72de348bceb8

7 years agoMerge "getStreamingServices for embms"
Hall Liu [Fri, 12 May 2017 01:00:25 +0000 (01:00 +0000)]
Merge "getStreamingServices for embms"

7 years agoMerge "Init MemoryIntArray#mFd with -1" am: d6eaa80590
Svetoslav Ganov [Fri, 12 May 2017 00:22:00 +0000 (00:22 +0000)]
Merge "Init MemoryIntArray#mFd with -1" am: d6eaa80590
am: a3f14a1531

Change-Id: Ieba327ed8b18c66906746e34e857e774c181fcf0

7 years agoMerge "Add hidden APIs to get the cached SignalStrength from SST"
nharold [Fri, 12 May 2017 00:19:11 +0000 (00:19 +0000)]
Merge "Add hidden APIs to get the cached SignalStrength from SST"
am: 5b8a9c873f

Change-Id: I8a17af3ea66d723c2f7dfb14848b19b3fd1fc0ef

7 years agoMerge "Init MemoryIntArray#mFd with -1"
Svetoslav Ganov [Thu, 11 May 2017 23:58:56 +0000 (23:58 +0000)]
Merge "Init MemoryIntArray#mFd with -1"
am: d6eaa80590

Change-Id: I323519cbe3f01464e6ee23c46381237036cf3148

7 years agoMerge "Add hidden APIs to get the cached SignalStrength from SST"
nharold [Thu, 11 May 2017 23:57:14 +0000 (23:57 +0000)]
Merge "Add hidden APIs to get the cached SignalStrength from SST"

7 years agoMerge "Init MemoryIntArray#mFd with -1"
Svetoslav Ganov [Thu, 11 May 2017 23:34:23 +0000 (23:34 +0000)]
Merge "Init MemoryIntArray#mFd with -1"

7 years agoMerge "Add key for carrier_volte_provisioned" am: 79d3648cc2
Brad Ebinger [Thu, 11 May 2017 23:21:54 +0000 (23:21 +0000)]
Merge "Add key for carrier_volte_provisioned" am: 79d3648cc2
am: e050b5196b

Change-Id: I82bb03797c8da4046c232b40e45980b8d18fc20d

7 years agoMerge "Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am...
Android Build Merger (Role) [Thu, 11 May 2017 23:07:45 +0000 (23:07 +0000)]
Merge "Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am: 7eca824ce3 am: 1f354082c0" into nyc-mr2-dev-plus-aosp

7 years agoMerge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am: 7eca824ce3
Chen Xu [Thu, 11 May 2017 23:05:46 +0000 (23:05 +0000)]
Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am: 7eca824ce3
am: 1f354082c0

Change-Id: I539c4fc14ab7e41e5c43799387685186bb9f7f31

7 years agoMerge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am: 7eca824ce3
Chen Xu [Thu, 11 May 2017 22:13:25 +0000 (22:13 +0000)]
Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2" am: 7eca824ce3
am: 1f354082c0

Change-Id: Ide900754bb6b41b670a416b9933ad0b7d7bcc79b

7 years agoMerge "Adding 'uhid' permission for bluetooth stack." am: 3e010d1353
Siarhei Vishniakou [Thu, 11 May 2017 22:02:06 +0000 (22:02 +0000)]
Merge "Adding 'uhid' permission for bluetooth stack." am: 3e010d1353
am: 96d3b668bb

Change-Id: I38a84e41505f7c55966d5ddedd12ddf5f1e9f403

7 years agoMerge "Add key for carrier_volte_provisioned"
Brad Ebinger [Thu, 11 May 2017 21:56:07 +0000 (21:56 +0000)]
Merge "Add key for carrier_volte_provisioned"
am: 79d3648cc2

Change-Id: Id83abfcabfcbad1bd34b22251403b9555d1b8e9e

7 years agoMerge "Add key for carrier_volte_provisioned"
Brad Ebinger [Thu, 11 May 2017 21:20:28 +0000 (21:20 +0000)]
Merge "Add key for carrier_volte_provisioned"

7 years agoMerge "Telephony: Fix the failure of copying SMS to SIM card for sub2"
Chen Xu [Thu, 11 May 2017 20:59:21 +0000 (20:59 +0000)]
Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2"
am: 7eca824ce3

Change-Id: I153e490abc6a37fabfdb51fddc195ed15cec85fb

7 years agoMerge "Don't skip intents where config changed." am: 29a28235b8
Jerry Zhang [Thu, 11 May 2017 20:58:05 +0000 (20:58 +0000)]
Merge "Don't skip intents where config changed." am: 29a28235b8
am: d2e44e8d11

Change-Id: I7dc7363297e5073266779e5986e12b3115590bdc

7 years agoMerge "Adding 'uhid' permission for bluetooth stack."
Siarhei Vishniakou [Thu, 11 May 2017 20:47:56 +0000 (20:47 +0000)]
Merge "Adding 'uhid' permission for bluetooth stack."
am: 3e010d1353

Change-Id: Ia68bde76b5a4c25ce24c3141ea29a242d50ee355

7 years agoMerge "Don't skip intents where config changed."
Jerry Zhang [Thu, 11 May 2017 20:18:16 +0000 (20:18 +0000)]
Merge "Don't skip intents where config changed."
am: 29a28235b8

Change-Id: I65c377c4fb84223787245e28f0de31a0e4f8a6e5

7 years agoMerge "Telephony: Fix the failure of copying SMS to SIM card for sub2"
Chen Xu [Thu, 11 May 2017 19:15:50 +0000 (19:15 +0000)]
Merge "Telephony: Fix the failure of copying SMS to SIM card for sub2"

7 years agoMerge "Adding 'uhid' permission for bluetooth stack."
Siarhei Vishniakou [Thu, 11 May 2017 19:02:29 +0000 (19:02 +0000)]
Merge "Adding 'uhid' permission for bluetooth stack."

7 years agoMerge "Don't skip intents where config changed."
Treehugger Robot [Thu, 11 May 2017 18:31:27 +0000 (18:31 +0000)]
Merge "Don't skip intents where config changed."

7 years agoMerge "support horizontal scroll and zoom for webview" am: 63621ece0b
Chen Xu [Thu, 11 May 2017 18:15:29 +0000 (18:15 +0000)]
Merge "support horizontal scroll and zoom for webview" am: 63621ece0b
am: fa9278293f

Change-Id: I49fbed7401066cf441712811ab625abddc8b92b8

7 years agoMerge "support horizontal scroll and zoom for webview"
Chen Xu [Thu, 11 May 2017 18:08:35 +0000 (18:08 +0000)]
Merge "support horizontal scroll and zoom for webview"
am: 63621ece0b

Change-Id: If60034faacbda088d94309b39cd61999838d2ac3

7 years agoMerge "support horizontal scroll and zoom for webview"
Chen Xu [Thu, 11 May 2017 17:17:28 +0000 (17:17 +0000)]
Merge "support horizontal scroll and zoom for webview"

7 years agosupport horizontal scroll and zoom for webview
fionaxu [Thu, 4 May 2017 06:19:25 +0000 (23:19 -0700)]
support horizontal scroll and zoom for webview

Bug: 37913717
Test: Manual test for horizontal scroll
Merged-in: I97f19030ae034910c8d6f3e23634f55d43ab6589
Change-Id: I97f19030ae034910c8d6f3e23634f55d43ab6589

7 years agoMerge changes Ie762ce75,I611fd791 am: 21a57f263f
Hugo Benichi [Thu, 11 May 2017 13:56:22 +0000 (13:56 +0000)]
Merge changes Ie762ce75,I611fd791 am: 21a57f263f
am: cc9f695ba0

Change-Id: I39dbc3c3c7e69e87e12977fb173379e60c74a3d9

7 years agoMerge changes Ie762ce75,I611fd791
Hugo Benichi [Thu, 11 May 2017 12:43:42 +0000 (12:43 +0000)]
Merge changes Ie762ce75,I611fd791
am: 21a57f263f

Change-Id: Ibb291720f6c257a8ead2c039f584f4b3ecc69be5

7 years agoMerge changes Ie762ce75,I611fd791
Hugo Benichi [Thu, 11 May 2017 12:31:39 +0000 (12:31 +0000)]
Merge changes Ie762ce75,I611fd791

* changes:
  ConnectivityManager: unit test for argument validation
  ConnectivityManager: uses service error codes and exceptions

7 years agoRemove dependency on internal FileUtils class
Paul Duffin [Wed, 10 May 2017 14:05:24 +0000 (15:05 +0100)]
Remove dependency on internal FileUtils class

In preparation for building android.legacy.test library against
the test API this removes a dependency on internal classes.

Bug: 30188076
Test: make checkbuild cts-tradefed run cts -m CtsContentTestCases -t android.content.cts.SyncStorageEngineTest
Change-Id: I4c0e7fdd368e96459c8404ff7cea8738683d0ec1

7 years agoRemove dependency on com.google.android.collect classes
Paul Duffin [Wed, 10 May 2017 12:30:16 +0000 (13:30 +0100)]
Remove dependency on com.google.android.collect classes

In preparation for building android.legacy.test library against
the SDK this removes a dependency on internal classes.

Bug: 30188076
Test: make checkbuild
Change-Id: I9ea3827ab5db167c8cbddad25f0815c942681092

7 years agoMerge "Remove obsolete DEXOPT_SAFEMODE." am: 383b2af3ec
Nicolas Geoffray [Thu, 11 May 2017 10:10:20 +0000 (10:10 +0000)]
Merge "Remove obsolete DEXOPT_SAFEMODE." am: 383b2af3ec
am: 10085b3737

Change-Id: Id05d1cd2d9cb6bd1b9d80b2128b45c4a411951a3

7 years agoMerge "Remove obsolete DEXOPT_SAFEMODE."
Nicolas Geoffray [Thu, 11 May 2017 09:59:49 +0000 (09:59 +0000)]
Merge "Remove obsolete DEXOPT_SAFEMODE."
am: 383b2af3ec

Change-Id: I97ccd9f087366d93495e3aeb8b26780039fd417b

7 years agoMerge "Remove obsolete DEXOPT_SAFEMODE."
Nicolas Geoffray [Thu, 11 May 2017 09:42:23 +0000 (09:42 +0000)]
Merge "Remove obsolete DEXOPT_SAFEMODE."

7 years agoTelephony: Fix the failure of copying SMS to SIM card for sub2
Chaitanya Saggurthi [Thu, 11 May 2017 06:13:18 +0000 (11:43 +0530)]
Telephony: Fix the failure of copying SMS to SIM card for sub2

While copying SMS of sub2 to its SIM memory, in process of getting
current Phonetype will return default sub's(i.e,sub1's)Phonetype. But
we want to get sub2's Phonetype here.

To fix this, get current Phonetype based on subscription id

Test: manual - Copy SMS to SIM card of sub2

Bug: 35025520
Change-Id: If415530d3f74dd357054cae6eb9c3ce8f7727342

7 years agoConnectivityManager: unit test for argument validation
Hugo Benichi [Tue, 9 May 2017 05:09:02 +0000 (14:09 +0900)]
ConnectivityManager: unit test for argument validation

Bug: 3670187437107940
Test: new test passes
Change-Id: Ie762ce758b3d94052b7438a67fc55bef4690cbbb

7 years agoConnectivityManager: uses service error codes and exceptions
Hugo Benichi [Thu, 11 May 2017 04:16:17 +0000 (13:16 +0900)]
ConnectivityManager: uses service error codes and exceptions

This patch introduces between ConnectivityManager and
ConnectivityService a mechanism for propagating back to clients
informative errors in the form of error codes and associated custom
runtime exceptions.

Without error code, the service can only throw a limited number of
different exceptions over Binder. Furthermore the throw site stack
traces are always loss. Although for individual instances of a throw,
the error message can be inspected, aggregations of stack traces from
app crashes sanitize error messages and only leaves the stack traces.

This makes debugging dificult for some service calls such as
requestNetwork that can have a variety of failure modes.

In this patch only one failure mode is codified. More can be added later
at a light cost by: 1) defining an error code, 2) defining an
associated exception, 3) mapping the code to the exception. This patch
can serves as a template for doing so.

Test: $ runtest frameworks-net,
      #testNetworkRequestMaximum() detects the new exception type.
Bug:  3655680936701874
Change-Id: I611fd7915575c9e418f7149fcdc8a879d2a3716d

7 years agoAdding 'uhid' permission for bluetooth stack.
Siarhei Vishniakou [Mon, 8 May 2017 22:42:14 +0000 (15:42 -0700)]
Adding 'uhid' permission for bluetooth stack.

This CL is in support of another CL c/2048848, topic
'Refactor hid command in /frameworks/base/cmds'
in internal master. Adding the permissions for bluetooth
devices here to access uhid_node as part of the new 'uhid'
group.

Bug: 34052337
Test: Tested on angler, bluetooth mouse works OK.

Change-Id: I63963984a0a3dccb4fccc64bb6fef4e809e2737e

7 years agoMerge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)" am:...
Andre Eisenbach [Thu, 11 May 2017 01:10:49 +0000 (01:10 +0000)]
Merge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)" am: 51876abe82
am: 9413fd9e1f

Change-Id: If065f6d25da71238b3788af0ee0854321a905e47

7 years agoMerge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)"
Andre Eisenbach [Thu, 11 May 2017 00:43:49 +0000 (00:43 +0000)]
Merge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)"
am: 51876abe82

Change-Id: Ia3242c0c2d7111b356c3ad2c70e8b1bea4572e9a

7 years agoAdd key for carrier_volte_provisioned
Jordan Liu [Mon, 3 Oct 2016 18:35:33 +0000 (11:35 -0700)]
Add key for carrier_volte_provisioned

Add the key to CarrierConfigManager and remove old configs.

Bug: 29873049
Change-Id: Icf3075fe39d3466732ea81738cb29c512f840401
Merged-In: Icf3075fe39d3466732ea81738cb29c512f840401

7 years agoMerge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)"
Andre Eisenbach [Thu, 11 May 2017 00:37:42 +0000 (00:37 +0000)]
Merge "Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)"

7 years agoMerge "Merge "Notify ImsService Status Correctly" am: 1bb9181380 am: 6d249dc08c"...
Android Build Merger (Role) [Thu, 11 May 2017 00:03:20 +0000 (00:03 +0000)]
Merge "Merge "Notify ImsService Status Correctly" am: 1bb9181380 am: 6d249dc08c" into nyc-mr2-dev-plus-aosp

7 years agoMerge "Notify ImsService Status Correctly" am: 1bb9181380
Brad Ebinger [Thu, 11 May 2017 00:01:43 +0000 (00:01 +0000)]
Merge "Notify ImsService Status Correctly" am: 1bb9181380
am: 6d249dc08c

Change-Id: I1ad0e6187f2b3de1f32b0391ce97447a831874b3

7 years agoMerge "Notify ImsService Status Correctly" am: 1bb9181380
Brad Ebinger [Wed, 10 May 2017 23:55:18 +0000 (23:55 +0000)]
Merge "Notify ImsService Status Correctly" am: 1bb9181380
am: 6d249dc08c

Change-Id: I5cd0317376fcf915c777ed56da9e856d72272b41

7 years agoMerge "Notify ImsService Status Correctly"
Brad Ebinger [Wed, 10 May 2017 23:48:12 +0000 (23:48 +0000)]
Merge "Notify ImsService Status Correctly"
am: 1bb9181380

Change-Id: I694072b5125151cd1db6b88774c09126199e7cc0

7 years agogetStreamingServices for embms
Hall Liu [Tue, 2 May 2017 22:06:29 +0000 (15:06 -0700)]
getStreamingServices for embms

Add code to pipe through getStreamingServices for EMBMS and improve
documentation.

Test: testapps
Change-Id: I5248b69fda0cfdb10ffdc4f6952a1da52b47a716

7 years agoMerge "Notify ImsService Status Correctly"
Brad Ebinger [Wed, 10 May 2017 23:00:52 +0000 (23:00 +0000)]
Merge "Notify ImsService Status Correctly"

7 years agoMerge "Add Save and Restore of BluetoothOn setting" am: bbcc641317
Stanley Tng [Wed, 10 May 2017 22:04:24 +0000 (22:04 +0000)]
Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317
am: 1755a4af45

Change-Id: I6a143760d9acef0fb5f28680ca1538e346ebd81f

7 years agoAdd hidden APIs to get the cached SignalStrength from SST
Nathan Harold [Sat, 11 Mar 2017 03:37:02 +0000 (19:37 -0800)]
Add hidden APIs to get the cached SignalStrength from SST

Add APIs in TelephonyManager to pull the SignalStrength that is
currently cached in ServiceStateTracker

Bug: 36133439
Test: tested with sl4a
Change-Id: I6adbecb8126a715da836fcde7f832fedb2f06bc3

7 years agoMerge "Add Save and Restore of BluetoothOn setting"
Stanley Tng [Wed, 10 May 2017 21:17:44 +0000 (21:17 +0000)]
Merge "Add Save and Restore of BluetoothOn setting"
am: bbcc641317

Change-Id: Ie967141aa0d8f43750f84fdd6071c26e0a26958a

7 years agoMerge "Add Save and Restore of BluetoothOn setting"
Treehugger Robot [Wed, 10 May 2017 20:44:33 +0000 (20:44 +0000)]
Merge "Add Save and Restore of BluetoothOn setting"

7 years agoMerge "Increase limit of locale pairs" am: aa9a59ab32
Hall Liu [Wed, 10 May 2017 18:31:12 +0000 (18:31 +0000)]
Merge "Increase limit of locale pairs" am: aa9a59ab32
am: 22ff1759d2

Change-Id: Ib993597558b13e9879dc56014af8529aa84c4480

7 years agoMerge "Update startStreaming to return status code" am: 6476ceeaee
Robert Greenwalt [Wed, 10 May 2017 17:35:34 +0000 (17:35 +0000)]
Merge "Update startStreaming to return status code" am: 6476ceeaee
am: a89cacebfb

Change-Id: Ief49d5e046bc9a3396f16ec81a2196a2c3b9557b

7 years agoMerge "Increase limit of locale pairs"
Hall Liu [Wed, 10 May 2017 17:15:31 +0000 (17:15 +0000)]
Merge "Increase limit of locale pairs"
am: aa9a59ab32

Change-Id: I4f9d25169bbd7e53c5396e944613e8c15fe4e308

7 years agoMerge "Update startStreaming to return status code"
Robert Greenwalt [Wed, 10 May 2017 17:11:12 +0000 (17:11 +0000)]
Merge "Update startStreaming to return status code"
am: 6476ceeaee

Change-Id: I92f8fad5bff456b158ba2afd55c3065678b0d5cf

7 years agoMerge "Increase limit of locale pairs"
Hall Liu [Wed, 10 May 2017 16:46:18 +0000 (16:46 +0000)]
Merge "Increase limit of locale pairs"

7 years agoMerge "Update startStreaming to return status code"
Treehugger Robot [Wed, 10 May 2017 16:46:12 +0000 (16:46 +0000)]
Merge "Update startStreaming to return status code"

7 years agoNotify ImsService Status Correctly
Brad Ebinger [Sat, 6 May 2017 00:43:41 +0000 (17:43 -0700)]
Notify ImsService Status Correctly

Modifies ImsService to allow multiple status callbacks in
for one ImsFeature. This better handles one ImsFeature
for normal/emergency calling.

Bug: 38001858
Test: Unit Testing
Merged-In: I70ae6f5349aef75aa86d54fe37a3c32459ea3afa
Change-Id: I70ae6f5349aef75aa86d54fe37a3c32459ea3afa

7 years agoAdd Save and Restore of BluetoothOn setting
Stanley Tng [Tue, 2 May 2017 04:27:31 +0000 (21:27 -0700)]
Add Save and Restore of BluetoothOn setting

This change will automatically save the Bluetooth On setting when
the user chooses to backup the phone settings into the cloud. This
setting is restored by the Setup Wizard (SUW) when configuring the
phone and this change will enable or disable the Bluetooth based
on this restored setting.

Bug: 35657817
Test: Manual test with Sailfish
Change-Id: Ie4518593af63f96f8c363f98941ca5260a3ec4bb

7 years agoBluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)
Hemant Gupta [Tue, 30 Jul 2013 10:39:20 +0000 (16:09 +0530)]
Bluetooth: HID: Add support for Set Idle and Get Idle Commands (3/4)

Provides an interface for application to send Set Idle
and Get Idle commands to remote HID Device. Support for these
two commands was missing from existing code, so existing code
design is reused to add support for these two commands.

Without this support following mandatory PTS test cases for HID 1.0
cannot be passed, TC_HOS_HID_BV_05/06.

Test: Executed PTS tests TC_HOS_HID_BV_05/06 and confirmed if they can
pass

Bug: 34344715
Change-Id: I548362cc328498920b2dae740f1a76b2cc2d6a67

7 years agoRemove obsolete DEXOPT_SAFEMODE.
Nicolas Geoffray [Fri, 5 May 2017 13:30:02 +0000 (14:30 +0100)]
Remove obsolete DEXOPT_SAFEMODE.

PackageManager side of the change.

bug:37929796
Test: build

(cherry picked from commit 56123bacff220e6ac77a1179197578d3a62ecdd2)

Change-Id: I3a789d49121ca383f7931f3803b6140be456340f

7 years agoMerge "Merge "Statically include android.test.runner classes in legacy-android-test...
Android Build Merger (Role) [Wed, 10 May 2017 12:04:00 +0000 (12:04 +0000)]
Merge "Merge "Statically include android.test.runner classes in legacy-android-test" am: 9588b607f0 am: e73cd1f690" into nyc-mr2-dev-plus-aosp

7 years agoMerge "Statically include android.test.runner classes in legacy-android-test" am...
Paul Duffin [Wed, 10 May 2017 11:59:02 +0000 (11:59 +0000)]
Merge "Statically include android.test.runner classes in legacy-android-test" am: 9588b607f0
am: e73cd1f690

Change-Id: I99ceef172af0eb3b302178928a642baace891a2f