Commit Graph

312136 Commits

Author SHA1 Message Date
Chris Wren
282cfefea0 standardize system notification IDs
All the trivial cases, plus some fixes to try to
mitigate collisions with the complex ones.

Complex services to follow in another CL,

Bug: 32584866
Test: make framework services
Change-Id: Ie9663600171d8ede11676e9d66f009dbb06def03
2017-03-31 11:44:05 -04:00
Nicolas Geoffray
474662da39 Merge "Drop REASON_SHARED_APK." into oc-dev 2017-03-30 21:11:10 +00:00
TreeHugger Robot
60e0c19505 Merge "API refactor: context.startForegroundService()" into oc-dev 2017-03-30 20:54:24 +00:00
Sanket Padawe
d1d3cdcd4f Merge "Disable voice call barring notification for Verizon." into oc-dev 2017-03-30 20:52:22 +00:00
Rob Carr
2b33162e82 Merge "Remove code for seamlessly rotating SurfaceView's." into oc-dev 2017-03-30 20:10:26 +00:00
TreeHugger Robot
d584a5e65b Merge "Tweaking PiP for accessibility." into oc-dev 2017-03-30 19:56:39 +00:00
TreeHugger Robot
bb621fd95c Merge "Update ENSURE_VERIFY_APPS javadoc" into oc-dev 2017-03-30 19:31:23 +00:00
TreeHugger Robot
dada7c0e71 Merge "TextClassificationManager API updates." into oc-dev 2017-03-30 19:17:24 +00:00
TreeHugger Robot
7600925263 Merge "Hide TextClassifier.EntityType from the public API." into oc-dev 2017-03-30 19:15:17 +00:00
TreeHugger Robot
6a841cb88b Merge "Do not hold locks when calling getAccounts" into oc-dev 2017-03-30 19:02:39 +00:00
Christopher Tate
08992ac57e API refactor: context.startForegroundService()
Rather than require an a-priori Notification be supplied in order to
start a service directly into the foreground state, we adopt a two-stage
compound operation for undertaking ongoing service work even from a
background execution state.  Context#startForegroundService() is not
subject to background restrictions, with the requirement that the
service formally enter the foreground state via startForeground() within
5 seconds.  If the service does not do so, it is stopped by the OS and
the app is blamed with a service ANR.

We also introduce a new flavor of PendingIntent that starts a service
into this two-stage "promises to call startForeground()" sequence, so
that deferred and second-party launches can take advantage of it.

Bug 36130212
Test: CTS

Change-Id: I96d6b23fcfc27d8fa606827b7d48a093611b2345
(cherry picked from commit 79047c62b5)
2017-03-30 18:31:24 +00:00
Tianjie Xu
217ecd0729 Merge "Merge "Report the temperature during an OTA update" am: 47c7e7f41a am: 022682a721 am: 998c554463" into oc-dev 2017-03-30 18:28:09 +00:00
Sanket Padawe
db688bbad7 Disable voice call barring notification for Verizon.
Test: Manual
Bug: 31490566
Change-Id: I2cb9f9b08f54faa276ddef9df36725aa76337746
2017-03-30 11:23:49 -07:00
TreeHugger Robot
2042770ea5 Merge "BatteryStats: Clamp temperature to 0" into oc-dev 2017-03-30 18:22:44 +00:00
Rob Carr
1a89073d8f Merge "Change layer stack when moving displays." into oc-dev 2017-03-30 18:05:19 +00:00
Maurice Lam
257047b24b Merge "Make Notification.EXTRA_ALLOW_DURING_SETUP system API" into oc-dev 2017-03-30 18:04:24 +00:00
TreeHugger Robot
3b36051cb5 Merge "Fix fonts following 455f1bfc05" into oc-dev 2017-03-30 17:39:26 +00:00
Winson Chung
0f873de5ff Tweaking PiP for accessibility.
- Disabling timeout when the PiP menu is invoked via an accessibility event
- Increasing default duration before menu times out and collapses
- Fixing issue where temporary bundle data was being clobbered

Bug: 36103023
Test: Launch PiP activity with accessibility, ensure menu does not time out
Change-Id: I4beda18ef2fb2e2b638b0ff6bac9a71ed1986639
2017-03-30 10:26:48 -07:00
TreeHugger Robot
3030442b89 Merge "Simplified autofill() methods by returning void instead of boolean." into oc-dev 2017-03-30 17:21:33 +00:00
Chad Brubaker
cd181e63ff Merge "Track isolated process owners" into oc-dev 2017-03-30 17:03:51 +00:00
Fyodor Kupolov
16bedd4397 Do not hold locks when calling getAccounts
Not only it may cause a deadlock, calling authenticator while holding
the lock is also error-prone.

Test: manual
Bug: 36770176
Change-Id: I6871ea88643fc3c178214685c038b2238329e881
2017-03-30 10:01:08 -07:00
Evan Rosky
f114667f2d Merge "Allow ToolbarActionBar to pass-through unhandled keyShortcuts" into oc-dev 2017-03-30 16:46:27 +00:00
TreeHugger Robot
72c2760943 Merge "Switch libplatformproto to sharedlib" into oc-dev 2017-03-30 16:42:36 +00:00
Nicolas Geoffray
2ab076f611 Drop REASON_SHARED_APK.
This reason was only used by "system shared libraries", not shared
APKs like GMS.

Code that uses this reason is now obsolete, as we do compile these shared
libraries when we see an apk that uses it.

bug:33799337
Test: m -j32 && boot
Change-Id: I2eef22797551401a5c39ed339bc2486cf0d091a8
(cherry picked from commit 86d1e9e23e)
2017-03-30 16:33:17 +00:00
Nicolas Geoffray
8d68694951 Merge "Drop REASON_NON_SYSTEM_LIBRARY." into oc-dev 2017-03-30 16:32:38 +00:00
TreeHugger Robot
8386603230 Merge "Fix getting wrong instance when restoring non-config" into oc-dev 2017-03-30 16:27:41 +00:00
TreeHugger Robot
a07ce03d3c Merge "Wait to unlock before changing notification importance" into oc-dev 2017-03-30 16:14:03 +00:00
Abodunrinwa Toki
45cb3e6c1f Hide TextClassifier.EntityType from the public API.
Test: current.txt and friends updated correctly.
Bug: 35959173
Change-Id: I74011020a4e509bad98b94738d2e929fc068d9ae
2017-03-30 16:56:18 +01:00
Rubin Xu
9f592dbca3 Update ENSURE_VERIFY_APPS javadoc
Make it clear that now this restriction applies across the whole device,
and is settable by profile owner.

Bug: 31000521
Test: None; just javadoc update
Change-Id: If82d8f4167cf1b77d6e10554f1d96b2d3a2a54a0
2017-03-30 16:47:43 +01:00
Diego Perez
0677ce27b6 Fix fonts following 455f1bfc05
Test: Fixes broken tests
Change-Id: I62d001c6d0ed84fe1d1d9865b1027be0e1cad8b4
(cherry picked from commit de5a95d42c)
2017-03-30 15:35:09 +00:00
Makoto Onuki
2692dafa9b Merge "Show user running state in dumpsys user." into oc-dev 2017-03-30 15:18:28 +00:00
Geoffrey Pitsch
5278d3d38c Wait to unlock before changing notification importance
Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464
2017-03-30 09:55:51 -04:00
Nicolas Geoffray
de0272b85c Drop REASON_NON_SYSTEM_LIBRARY.
Dexopt them with the same "mode" as the apk we are
going to dexopt. Because we treat them as shared, this
means they are only going to be fully compiled once an app
that has it in its <uses-library> gets compiled.

bug:33799337
Test: m -j32 && boot
Change-Id: Ic93fbcf45be6b9cf31ad3a3eb498f9fbbefeb288
(cherry picked from commit 90978b4159)
2017-03-30 13:55:10 +00:00
Nicolas Geoffray
f451f7b05b Merge "Drop REASON_CORE_APP." into oc-dev 2017-03-30 13:54:33 +00:00
TreeHugger Robot
261dd2305a Merge "Handle the case where no session exists" into oc-dev 2017-03-30 13:27:00 +00:00
Abodunrinwa Toki
df61b0328e TextClassificationManager API updates.
- Changes getDefaultTextClassifier to getTextClassifier
- Adds a setTextClassifier API

Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t
android.widget.cts.TextViewTest
Bug: 35763797

Change-Id: I24e86272cf58bf6864505bee3b06978c1c0d46e5
2017-03-30 14:15:44 +01:00
Diego Perez
3134462c5e Merge "Make layoutlib more lenient with recoverable errors" into oc-dev 2017-03-30 13:12:39 +00:00
Nicolas Geoffray
30f18587e3 Drop REASON_CORE_APP.
After ensuring apps used by system server are speed compiled
on /system, we don't need a special reason anymore.

bug:36532541
bug:33799337

Test: m -j32 && boot
Change-Id: I1fb894f0f5b796cb9d59ed01a4afb2709c0f5496
(cherry picked from commit b70e4bfe07)
2017-03-30 11:55:26 +00:00
TreeHugger Robot
921daeed2f Merge "Correctly blame ANR on process using another process token" into oc-dev 2017-03-30 11:25:08 +00:00
Diego Perez
a55b3ba642 Handle the case where no session exists
In some cases, if an error happens, no session will exist in
BridgeRenderSession.

Test: Added small regression test
Change-Id: Ic9be381767626766395c65044542c197ed7649e7
2017-03-30 12:21:07 +01:00
Diego Perez
d88c717b4e Make layoutlib more lenient with recoverable errors
In many cases, throwing an exception will stop the inflation or
rendering of a layout. Sometimes, we could recover from some of the
failures and render a layout that is "usable".
I've done a first pass trying to follow the following rules:
 - Try simple recoveries by choosing sensible defaults. Not trying
 complex recoveries.
 - Only recover if the exception is not part of the class behaviour.
 Avoided removing declared exceptions or exceptions that are expected by
 the framework.
 - I've kept assertions in place so, in most cases, the behaviour will
 be almost identical to the previous one with assertions enabled.

Test: Checked with existing tests
Change-Id: I0001fdd3c808cf405c4eb8d734b9bbe63493e05c
2017-03-30 12:07:28 +01:00
Sudheer Shanka
8c85b1d0b7 Merge "Fix flaky tests in NetworkPolicyManagerServiceTest." into oc-dev 2017-03-30 07:38:09 +00:00
Sudheer Shanka
ed25ce6d59 Fix flaky tests in NetworkPolicyManagerServiceTest.
Test: runtest -c com.android.server.NetworkPolicyManagerServiceTest frameworks-services
Change-Id: I0a6f0d11e3922bfeb2bd3784f23e10ae45e5e40c
2017-03-29 20:46:30 -07:00
TreeHugger Robot
859789061f Merge "Cherry-pick: Remove implementation of bssid hotlist" into oc-dev 2017-03-30 02:58:41 +00:00
Adam Lesinski
29ddfe55fb BatteryStats: Clamp temperature to 0
Temperature is encoded without the sign-bit, meaning
negative temperatures cause an underflow and show up
in the history as large values. We do not expect to
deal with negative temperatures for debugging/diagnostics
so just clamp the temperature to 0.

Bug: 33270828
Test: adb shell dumpsys battery set temp -10 && adb shell dumpsys batterystats --history
Change-Id: I8a92f770e4a90333eade1bb38f21d2d87bb00430
2017-03-29 19:34:08 -07:00
TreeHugger Robot
dfbc8517ee Merge "Rename ACTION_VOICEMAIL_SMS_RECEIVED" into oc-dev 2017-03-30 01:51:56 +00:00
Romain Guy
33813bd439 Merge "Convert bitmaps to sRGB/scRGB when they have a color profile" into oc-dev 2017-03-30 01:42:32 +00:00
John Reck
e5549d414c Switch libplatformproto to sharedlib
libplatformprotos is really really unhappy if it gets
loaded twice into the same process which trivially happens
if it's a static library. Switch it to a shared library
instead to fix this.

Change-Id: I90297d076d0739bab683fbd9607d7fc0884a002d
Fixes: 36272398
Test: Ran hwui_unit_test, didn't crash
2017-03-29 18:41:27 -07:00
TreeHugger Robot
5acdc8c3d5 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-03-30 01:30:09 +00:00
TreeHugger Robot
ce3cf36652 Merge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev 2017-03-30 01:26:13 +00:00