Commit Graph

5606 Commits

Author SHA1 Message Date
Wale Ogunwale
b86466edb7 Merge "Don't send configuration that app doesn't support to it." into oc-dev am: 22c1275c89
am: f528efd2fc

Change-Id: I5ad92b83b66996101ec7c8144d5924ff2bfd08c4
2017-05-02 15:47:10 +00:00
TreeHugger Robot
22c1275c89 Merge "Don't send configuration that app doesn't support to it." into oc-dev 2017-05-02 13:58:59 +00:00
Rob Carr
b57c441fb4 Merge "Fix rotation animation selection." into oc-dev am: e8d7c01e8a
am: 0a2b84d6d2

Change-Id: I947689d13d974117273e3e54d4170f8b064927ef
2017-05-02 01:15:35 +00:00
Rob Carr
e8d7c01e8a Merge "Fix rotation animation selection." into oc-dev 2017-05-02 01:01:34 +00:00
Wale Ogunwale
d4b1d1ee72 Don't send configuration that app doesn't support to it.
If an app doesn't support the current device orientation configuration,
then don't run the app in that configuration. Instead have the run in
the last configuration that it supports.
This mostly fixes transient cases where there is a short window that the
device is switching configuration and the app could be sent the single
incorrect configuration that is quickly corrected

Test: Will be added soon.
Fixes: 36897968
Change-Id: I030a04200fdf33c4c1938bda980ea8c14aa1c736
2017-05-01 17:48:58 -07:00
Jeff Sharkey
74bfa11974 Merge "Rename to follow API council guidance." into oc-dev am: 0d6c3a691e
am: 6560d8845b

Change-Id: Ie9b4a033dfb08ea9326725e66ed4787a1ed69651
2017-05-01 23:36:36 +00:00
TreeHugger Robot
0d6c3a691e Merge "Rename to follow API council guidance." into oc-dev 2017-05-01 23:15:59 +00:00
Svetoslav Ganov
19ef3fceab Merge "Addess API council comments" into oc-dev am: a9bb97993f
am: 58d3836914

Change-Id: I095d5c9a488db01bd3dcf6b3609aa4e928311ca9
2017-05-01 23:00:25 +00:00
Calin Juravle
6958495360 Merge "SystemApi for dex module registration" 2017-05-01 22:56:31 +00:00
Robert Carr
c0149bf0f6 Fix rotation animation selection.
The default activity specified value for rotation animation
should be unset, not ROTATE, so that it will not override
window specified versions.

Bug: 37671120
Test: Rotate camera 180 degrees...expect crossfade or jumpcut depending on APK version but never rotate animation.
Change-Id: I6acbf32b3de0e2848565cc6cb6fb62f625053634
2017-05-01 15:22:22 -07:00
Jeff Sharkey
f29d19610d Rename to follow API council guidance.
Test: builds, boots
Bug: 37422404
Change-Id: Idcec897e775f2613805a86209615e389b63bd78d
2017-05-01 15:09:46 -06:00
Svetoslav Ganov
e6b4614d88 Addess API council comments
Test: manual

bug:37322491

Change-Id: I2017e667c5452c7ef7c56ec19c594e685700b33a
2017-05-01 13:42:04 -07:00
Jeff Sharkey
c5c6114dc4 Merge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev am: a5e8bfe999
am: edfa1561c5

Change-Id: I4939f105dbc55b1a486d1ecb3a435e651279b2c2
2017-05-01 18:40:45 +00:00
Jeff Sharkey
a5e8bfe999 Merge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev 2017-05-01 18:22:37 +00:00
Matthew Snider
b38f886fb8 Merge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev am: ef08871d6b
am: fa88787309

Change-Id: Icf3f61c961fcd2684c9b32edd5617f0514445c7d
2017-05-01 16:55:39 +00:00
Matthew Snider
ef08871d6b Merge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev 2017-05-01 16:42:24 +00:00
Jeff Sharkey
ea2710d27c Merge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPTION_CHANGED and EXTRA_SUBSCRIPTION_INDEX from Intent class to SubscriptionManager class." into oc-dev am: 080e16575a
am: f89879a133

Change-Id: Iac4f73f0c20ce3b95d406d487a5ed2f8ed391033
2017-05-01 16:19:39 +00:00
Jeff Sharkey
080e16575a Merge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPTION_CHANGED and EXTRA_SUBSCRIPTION_INDEX from Intent class to SubscriptionManager class." into oc-dev 2017-05-01 16:05:35 +00:00
Holly Jiuyu Sun
c93c3b9cf3 Rename restartOnConfigChanges to recreateOnConfigChanges.
Bug: 37738136
Test: unit test
Change-Id: Icea9faf1d7f55b875d6ff9e4cc9aed4868637895
2017-05-01 08:27:39 -07:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
f1a4b50739 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev 2017-04-30 17:19:34 +00:00
Martijn Coenen
37a08d4bf4 Merge "Rename persistentFeature to persistentWhenFeatureAvailable." into oc-dev am: 35312fd4c6
am: 23a0f58eea

Change-Id: I2b7aada5d0ec51c2a5513b15f6f855fd7cf5166c
2017-04-30 14:01:00 +00:00
Martijn Coenen
35312fd4c6 Merge "Rename persistentFeature to persistentWhenFeatureAvailable." into oc-dev 2017-04-30 13:47:12 +00:00
Svet Ganov
c5ef292548 Merge "Address API council comments" into oc-dev am: 4c60abc9ae
am: 4ad7cb3347

Change-Id: I676b6f5d97a893c478c2f0e02efa17456c178a17
2017-04-30 06:58:29 +00:00
TreeHugger Robot
4c60abc9ae Merge "Address API council comments" into oc-dev 2017-04-30 06:43:15 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Jeff Sharkey
1e07905467 Merge "Revert "Treat Telephony as legacy app for now."" into oc-dev am: e14159d2c5
am: 4be5c41542

Change-Id: I4b505c1cd61d92d1a4aca4efd5760506379c1f86
2017-04-29 19:15:35 +00:00
Jeff Sharkey
e8acf307a8 Merge "Experimental features only on debuggable builds." into oc-dev am: d9f6946c42
am: 8e19424e6f

Change-Id: Ia4a2dc323116ae44bb906d77ba4809845247c65d
2017-04-29 19:12:39 +00:00
Jeff Sharkey
e14159d2c5 Merge "Revert "Treat Telephony as legacy app for now."" into oc-dev 2017-04-29 17:38:59 +00:00
Jeff Sharkey
d9f6946c42 Merge "Experimental features only on debuggable builds." into oc-dev 2017-04-29 17:33:58 +00:00
Svet Ganov
f965b87a78 Address API council comments
bug:37769694
bug:37322491

Change-Id: I931cfb5ea5fef1505a97b169125ed2cdaaa3d6ff
2017-04-28 23:45:17 +00:00
Jeff Sharkey
25fdc90020 Merge "Respond to API council feedback." into oc-dev am: d275dc83be
am: 858fd1bf47

Change-Id: Ie58915ab6882725ac030a024a09b719f7f9db249
2017-04-28 23:15:55 +00:00
Jeff Sharkey
d275dc83be Merge "Respond to API council feedback." into oc-dev 2017-04-28 22:54:39 +00:00
Dianne Hackborn
fcab4e793b Merge "Fix issue #37324532: API Review: android.content.pm.InstrumentationInfo" into oc-dev am: fb5840b0e6
am: 0ef4ea95f2

Change-Id: Ib196133e3affc2a9adc8bb66ffdf7dbf0792d307
2017-04-28 22:52:35 +00:00
Dianne Hackborn
1be5354aba Fix issue #37324532: API Review: android.content.pm.InstrumentationInfo
targetProcess -> targetProcesses

Test: bit CtsAppTestCases:InstrumentationTest

Change-Id: I859985c689cc588c585cd0ec6e0a20411493a7c0
2017-04-28 13:38:34 -07:00
Jeff Sharkey
1a74942fbf Respond to API council feedback.
Test: builds
Bug: 37752002
Change-Id: I7ae1699c4c5e1a098d16465c41fb41510478b678
2017-04-28 14:24:03 -06:00
Jeff Sharkey
71af5d35d7 Merge "Change ClipData.addItem signature" into oc-dev am: 5b26dac2c3
am: bd3fa3c72c

Change-Id: I475d9eca8667005959c5578548b622ed7460b2b0
2017-04-28 18:42:27 +00:00
Malcolm Chen
598d24c558 Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED,
ACTION_DEFAULT_SUBSCRIPTION_CHANGED and EXTRA_SUBSCRIPTION_INDEX
from Intent class to SubscriptionManager class.

Bug: 37497166
Test: Manual
Change-Id: Ifeedf974328cd3d839d7f66bf41a91c479d66316
2017-04-28 11:27:10 -07:00
Jeff Sharkey
5b26dac2c3 Merge "Change ClipData.addItem signature" into oc-dev 2017-04-28 17:53:14 +00:00
Jeff Sharkey
dd6a433163 Merge "Respond to API council feedback." into oc-dev am: 77cc43e0d2
am: 86e27f65f8

Change-Id: I7933a8ba6858d38423b29a52dfc5f9f65c641faf
2017-04-28 17:48:26 +00:00
TreeHugger Robot
77cc43e0d2 Merge "Respond to API council feedback." into oc-dev 2017-04-28 17:10:16 +00:00
Martijn Coenen
8d74ca4ee4 Rename persistentFeature to persistentWhenFeatureAvailable.
Addresses API review comments.

Bug: 37742058
Test: builds
Change-Id: If7ddeefa4f1ccbdf087c837d1584f255585886c1
2017-04-28 09:41:48 -07:00
Jaekyun Seok
84daedcdff Merge "Apply static RRO when parsing Android manifest of a target package" into oc-dev am: dc326a883e
am: 1a4bcd04ee

Change-Id: I342faf8a6486f3b6dfdf42047e90ae11671b58e5
2017-04-28 10:02:11 +00:00
TreeHugger Robot
dc326a883e Merge "Apply static RRO when parsing Android manifest of a target package" into oc-dev 2017-04-28 09:48:48 +00:00
Jaekyun Seok
30dc2a0866 Apply static RRO when parsing Android manifest of a target package
This CL creates idmaps for static RROs right before parsing a target
package. Those idmaps will be used to parse correctly the Android
manifest of the target package.

Later, OverlayManagerService will update each idmap with the correct
gid from the target package app id.
Note that the idmaps generated here will be used by OverlayManagerService
as well until they are outdated (http://ag/2127839).

Additionally a target package should be parsed again if its overlays are
updated to apply the changes.

Test: building succeeded and tested with sailfish-userdebug.
Bug: 37179531

Change-Id: Ie0d5e92ae6e06b2d377ebd4cfdb0a8519b49a944
2017-04-28 15:51:20 +09:00
Calin Juravle
3d2af7f72a SystemApi for dex module registration
PackageManager#registerDexModule() allows apps which can call
system apis to register a dex module with the Package Manager.

The PM may optimize the modules on the spot if needed. This is
particular useful for shared dex modules (e.g. chimera modules)
which are loaded in multiple processes.

Test:  adb  shell am instrument -e class
'android.content.pm.PackageManagerTests' -w
'com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner'
Bug: 37290820
Change-Id: I9ea8f937a76d2549a29e90a6c84c53c2e44a1ee4
2017-04-27 17:16:16 -07:00
Sujith Ramakrishnan
153da0d8de Merge "Updated intent action name to comply with CTS." into oc-dev am: b4f21f0482
am: 193b44dfb5

Change-Id: I7fb668ba666a39beb6e6a12f79dc5d8bb4f38f47
2017-04-28 00:14:27 +00:00
Vladislav Kaznacheev
c35c02f1ea Change ClipData.addItem signature
Make ContentResolver the first parameter.

Bug: 37419379
Test: android.content.cts.ClipboardManagerTest
Change-Id: I3f7772e8ddc93eec0e930b62c722a145f9e6f0fa
2017-04-27 15:29:11 -07:00
Makoto Onuki
1bfe94164f Merge "Change IMPORTANCE_PERCEPTIBLE_DEPRECATED to IMPORTANCE_PERCEPTIBLE_PRE_26" into oc-dev am: 301663a61b
am: 27521581fb

Change-Id: I8b0443ccf4a876b4de0d6de6d1af7909a4dee00e
2017-04-27 20:32:27 +00:00
Sujith Ramakrishnan
48e19c8cc9 Updated intent action name to comply with CTS.
- Updated "android.intent.action.GLOBAL_BUTTON" to
	  @SystemApi

Test: manual - Bottom button on Fugu brings up pairing screen
Test: manual - GUIDE button on Fugu brings up TV channels app

Bug: 37499047
Change-Id: I3b92ed99aeb53674fbaac91126e8c5e7fcffa715
2017-04-27 13:26:43 -07:00