Commit Graph

77116 Commits

Author SHA1 Message Date
TreeHugger Robot
684cae74e3 Merge "Extreme battery saver: Force background check on all apps" 2017-11-29 00:43:29 +00:00
TreeHugger Robot
409743395c Merge "Added database package OWNERS" 2017-11-28 23:48:28 +00:00
Phil Weaver
e03bc13161 Merge "Bypass a11y cache when requested" 2017-11-28 22:47:02 +00:00
Makoto Onuki
e7ec72a5df Extreme battery saver: Force background check on all apps
- Power-saver whitelisted (including temp whitelist) apps and system UIDs
are exempted.

- Otherwise, background services and manifest receivers will be restricted
as if OP_RUN_IN_BACKGROUND is set to IGNORE.

Test: manual test
Bug: 68769804
Change-Id: I49e7d32357ffc177ace38a064f943643f4f71058
2017-11-28 14:45:11 -08:00
Fyodor Kupolov
f0d4810026 Added database package OWNERS
Test: N/A
Change-Id: I30993e7e20265b88d2cda246155fde50081866cb
2017-11-28 14:14:37 -08:00
Chavi Weingarten
418346a8cc Merge "Snapshot Task with the app window crop for Recents" 2017-11-28 21:51:43 +00:00
TreeHugger Robot
cc6b4be220 Merge "Correct ordering of status bar panel layers." 2017-11-28 21:17:13 +00:00
Andrii Kulian
4d26c21a82 Merge changes from topic "lifecycle_transaction_base"
* changes:
  Add transaction unit tests
  Add basic lifecycle transaction containers
2017-11-28 20:47:34 +00:00
Makoto Onuki
3c1d0caedb Merge "Extreme battery saver: Tweak to file saver" 2017-11-28 20:02:54 +00:00
TreeHugger Robot
733ce63778 Merge "Extend SearchIndexablesProvider to support query sitemap." 2017-11-28 19:39:02 +00:00
TreeHugger Robot
68081e7e16 Merge "New API to specify accessibility focus grouping" 2017-11-28 19:24:22 +00:00
Robert Carr
8360a782fa Correct ordering of status bar panel layers.
Not sure what bug was hiding this before but seems pretty clear,
that this is the ordering we need. See the documentation, APPLICATION_PANEL, etc...

Bug: 69591927
Test: Manual
Change-Id: I82fc011aff6122efa5c3ed63da154761e7065612
2017-11-28 11:19:41 -08:00
chaviw
fbe47df2a4 Snapshot Task with the app window crop for Recents
Snapshot a specific task and its children instead of taking a snapshot
of the whole screen with max and min layer values. This makes it clear
what the desired screenshot is instead of trying to determine what the
max and min z layers should be.

In the process of updating the snapshot code, I split the code that
captures a layer from the code that captures the whole screen. This
simplified the code so the capture screen doesn't need to invoke the
frame calculations since it will be capturing the whole screen anyway.

Test: Recents snapshots work correctly without the IME, status, and
navigation bar

Change-Id: I8776c1ddb9cd8a23a482b045720960702796fd5f
2017-11-28 10:52:43 -08:00
TreeHugger Robot
e75c145fba Merge "Add Multicast wakelock stats in battery-stats dump" 2017-11-28 18:43:55 +00:00
TreeHugger Robot
c26f4c5678 Merge "Remove scanFile argument" 2017-11-28 18:37:55 +00:00
Fan Zhang
9a0f6febf0 Extend SearchIndexablesProvider to support query sitemap.
Bug: 67359411
Bug: 64938328
Test: manual
Change-Id: Ic6e1ba4fc518b3aa7a26303d195c1119f6eeaafc
2017-11-28 09:59:16 -08:00
Makoto Onuki
e098b7595a Extreme battery saver: Tweak to file saver
- Restore the default values after a runtime restart.
- debug.batterysaver.no_write_files sysprop to avoid writing max_freq

Bug 63527520
Test: manual
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/FileUpdaterTest.java

Change-Id: Ic4783f181252b063cfe7ea6fee47b9241f1688cc
2017-11-28 09:46:58 -08:00
TreeHugger Robot
61121757e1 Merge "Display Cutout: Add Cutout to WindowInsets" 2017-11-28 17:11:21 +00:00
Jeff Sharkey
14e1b283e8 Merge "Skip FDE-specific operations, mkdir() throwing." 2017-11-28 16:57:19 +00:00
TreeHugger Robot
b0bebcfa09 Merge "WM: Add PhoneWindowManagerLayoutTest" 2017-11-28 16:14:35 +00:00
Adrian Roos
d4970af157 Display Cutout: Add Cutout to WindowInsets
Adds a facility for communicating the display cutout to
windows. A follow-up CL will make this a public API.

Bug: 65689439
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/view/DisplayCutoutTest.java
Change-Id: I2290adea0130a7e5764a9412616fd3192800e06a
2017-11-28 16:14:31 +01:00
Naomi Musgrave
d2c83c08bf Merge "Add id to NetworkEvent." 2017-11-28 13:30:19 +00:00
Adrian Roos
e1856fe710 WM: Add PhoneWindowManagerLayoutTest
Test: runtest -x services/tests/servicestests/src/com/android/server/policy/PhoneWindowManagerLayoutTest.java
Change-Id: I85af4bdd023a274233362d42628de19483b0c4ea
2017-11-28 14:11:09 +01:00
TreeHugger Robot
62c9860111 Merge "New Autofill API: Validators.not" 2017-11-28 08:04:26 +00:00
TreeHugger Robot
a6a8970baf Merge "Add persistent state for Hearing Aid Profile" 2017-11-28 03:05:01 +00:00
Jeff Sharkey
cba2b00258 Merge "Deeper sanity checking of emitted types." 2017-11-28 02:36:17 +00:00
Andrii Kulian
6b9d3a1400 Add transaction unit tests
Bug: 64797980
Test: android.app.servertransaction.ClientTransactionTests
Test: android.app.servertransaction.TransactionParcelTests
Change-Id: I108bacc819e9d43d0a2f5a30338ae88674a53239
2017-11-27 18:15:49 -08:00
Phil Weaver
1e6ecc69b7 New API to specify accessibility focus grouping
We've been telling developers to use the focusable
attribute to control grouping for accessibility focus. This
new API can be used in place of the focusable attribute.

Bug: 63889180
Test: Adding new CTS tests for new api.

Change-Id: I5cbeb736a3b206f87aa3d921a39c43861c7ff082
2017-11-27 17:03:27 -08:00
Jakub Pawlowski
c2d7be6667 Add persistent state for Hearing Aid Profile
Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
2017-11-28 01:03:01 +00:00
Dianne Hackborn
bd0cdcdcc7 Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev am: b94e697dcf
am: 532c2f8a36

Change-Id: I27d9a43ec394fd9634d380b385b7317d1d92d89c
2017-11-28 01:02:23 +00:00
Dianne Hackborn
532c2f8a36 Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev
am: b94e697dcf

Change-Id: I40ef78ee243cbb2f5967115e40740a3f36b253ef
2017-11-28 00:50:13 +00:00
TreeHugger Robot
edbd1d3dde Merge "Fix issue #68002319: Allow current VoiceInteractionService to avoid..." 2017-11-28 00:42:46 +00:00
TreeHugger Robot
b94e697dcf Merge "Add documentation for O and O_MR1 target SDK changes." into oc-mr1-dev 2017-11-28 00:28:07 +00:00
Jeff Sharkey
c204c223a7 Deeper sanity checking of emitted types.
When emitting a method or field, verify that we're able to reference
all mentioned types.  This ensures that we don't accidentally
reference undefined classes/interfaces.

Test: manual inspection of API files
Bug: 69791141
Change-Id: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
2017-11-27 17:07:40 -07:00
Ahmed ElArabawy
ddd096924e Add Multicast wakelock stats in battery-stats dump
This commit adds the statistics for multicast wakelocks (count/time)
in dump of battery-stats.
This enables debugging of power issues due to extensive wakeup of host
processor due to arrival of multicast packets, and help identify the
blamed application

Bug: 33649966
Test: Manual Test
Change-Id: I882f945dd36fa2881c59776b4954017bf3c76cd7
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-11-27 14:59:44 -08:00
Nikolas Bravo
cde72f1be7 Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
am: 8aaf928fcd

Change-Id: I4a2efd6052b1bcc5344fd23722745b3532fb01c9
2017-11-27 22:29:21 +00:00
Fyodor Kupolov
31342ca615 Merge "Use the root case to set remote stack trace for" 2017-11-27 22:14:38 +00:00
Todd Kennedy
ddaaf4cf48 Remove scanFile argument
In several locations we were passing both a parsed Package object
and a scanFile File object. But, the Package object was parsed from
the scanFile! Instead, just pass the singular Package object and
pull the scanned file from it.

Bug: 63539144
Test: bit FrameworksServicesTests:com.android.server.pm.
Change-Id: Ibd200fb567e005869de61d9c123f211fa9a38f0a
2017-11-27 14:10:03 -08:00
Dianne Hackborn
a47d0453d9 Add documentation for O and O_MR1 target SDK changes.
Whoops, forgot to do this!

Bug: 69805350
Test: built and looked
Change-Id: Ic42cbcb7a62e7474c4864d66944452fed2e9005c
2017-11-27 14:08:16 -08:00
Jeff Sharkey
7cf056ac8e Merge "Clarify docs, sanity check roaming state." am: 419ec05284 am: 63b5615b2a
am: f8590d1f79

Change-Id: I59fbe09afc74e94e2f56cb6fd833fc2deb7023e5
2017-11-27 21:48:46 +00:00
Jeff Sharkey
f8590d1f79 Merge "Clarify docs, sanity check roaming state." am: 419ec05284
am: 63b5615b2a

Change-Id: If4f09f8a0e32c245552f025f1a61d67f842b1841
2017-11-27 21:39:56 +00:00
Jeff Sharkey
63b5615b2a Merge "Clarify docs, sanity check roaming state."
am: 419ec05284

Change-Id: Ic30d5aaadf2c59978162c53d7e7781847244ce52
2017-11-27 21:30:57 +00:00
TreeHugger Robot
41499dfe18 Merge "New Autofill API: SaveCallback.onSuccess(IntentSender)." 2017-11-27 21:06:52 +00:00
Jeff Sharkey
ae26646824 Skip FDE-specific operations, mkdir() throwing.
vold already complains about calls that are FDE specific, which
results in a lot of wtf() noise, so skip those operations outright.

Throw from failed mkdir() back to caller instead of wtf().

Test: builds, boots
Bug: 68736572, 68736551
Change-Id: I4dc06bdedacd2b66a1e7ae8e1434b194a875a756
2017-11-27 13:32:28 -07:00
Nikolas Bravo
8aaf928fcd Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
* Current "See also" link in https://developer.android.com/reference/android/content/pm/PackageInstaller.SessionParams.html#setOriginatingUid(int) is not only wrong, but also broken
* Added a missing "the"

Bug: 69799046
Fixes: 69799046
Test: make ds-docs (run by asolovay@)
Change-Id: I90410ed3393b5c37afdf0476eb70821fae9f63fd
(cherry picked from commit 6283100a87)
2017-11-27 19:50:40 +00:00
Jeff Sharkey
49bcd60a8d Clarify docs, sanity check roaming state.
Update public docs to hide the fact that NetworkCapabilities is only
used inside NetworkRequest as an implementation detail.

Take up less room on the wire when passing NetworkCapabilities around
via NetworkRequest.

Sanity check that the roaming state between NetworkInfo and
NetworkCapabilities is in agreement.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.,com.android.server.ConnectivityServiceTest
Bug: 67040695
Change-Id: I982b4c3c41a140934bbad3b8ca8f12dc3814e86c
2017-11-27 12:47:14 -07:00
Bryce Lee
bc8c25a407 Merge "Store bounds in WindowConfiguration." 2017-11-27 19:15:06 +00:00
Felipe Leme
4bcb01a3b5 New Autofill API: SaveCallback.onSuccess(IntentSender).
This overloaded method is useful for cases where the service needs to launch
an activity (for example, to unlock the user's vault), in which case it's
launched from the context of the activity being filled.

Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testSave_launchIntent
Test: atest CtsAutoFillServiceTestCases
Fixes: 69458616

Change-Id: I41bf5fd4954c38051e3275f2e8500a00dcf24724
2017-11-27 10:52:50 -08:00
Felipe Leme
1cdf5fb4e2 New Autofill API: Validators.not
Test: atest CtsAutoFillServiceTestCases:ValidatorsTest
Test: atest CtsAutoFillServiceTestCases

Fixes: 69482353

Change-Id: Ib6be24f7d8c30915bd139f39b61ad6916b2e42d7
2017-11-27 10:41:58 -08:00
Fyodor Kupolov
3b946f43a4 Use the root case to set remote stack trace for
Otherwise it may cause ISE if a cause has already been set like
in ParcelableException.

Test: manual install/uninstall an app on secondary user
Bug: 69704045
Change-Id: Ia8631ea76d5acf38e60fc609eef65f010ade21b5
2017-11-27 10:40:46 -08:00