Commit Graph

12645 Commits

Author SHA1 Message Date
TreeHugger Robot
bd2f2e991f Merge "Add slice subtype constants for sliders/progress." 2018-01-29 18:31:57 +00:00
Ricardo Loo Foronda
8a9ca8e911 Docs: Removed rogue "(TODO)" note in FLAG_SHOW_LIGHTS member am: f8f6d0a8ec
am: 753f325909

Change-Id: Ib6fb6b03669f789a9b0c9dc789cfb371ce1350c4
2018-01-29 17:20:29 +00:00
Ricardo Loo Foronda
753f325909 Docs: Removed rogue "(TODO)" note in FLAG_SHOW_LIGHTS member
am: f8f6d0a8ec

Change-Id: I8aabec3ac04c0a732efe705919f53a3cadd8c63a
2018-01-29 17:12:00 +00:00
David Brazdil
eeed184127 Merge "Control hidden API toast with a system property" am: 13020490be am: a9b3f91828
am: 1e1c4fc802

Change-Id: I0b2d898dbdac8ed6ac8995bab521b62adb5d0f2e
2018-01-29 16:07:23 +00:00
David Brazdil
1e1c4fc802 Merge "Control hidden API toast with a system property" am: 13020490be
am: a9b3f91828

Change-Id: Iac1fdeff968b131e8f3486060dfb7cdeed446157
2018-01-29 15:59:49 +00:00
David Brazdil
a9b3f91828 Merge "Control hidden API toast with a system property"
am: 13020490be

Change-Id: Ib390fd568e4a5d71cdceec3a84b0d55e02b9c45d
2018-01-29 15:52:46 +00:00
TreeHugger Robot
81f7471a22 Merge "Remove return value in clearApplicationUserData" 2018-01-29 15:41:28 +00:00
Eric Sandness
88ca395b5b Merge "Javadoc For DA Deprecation" 2018-01-29 12:34:28 +00:00
David Brazdil
795cbfb1c1 Control hidden API toast with a system property
CL Id0a4200f912ac3303026cb26b6d8974c47332828 sets a system property
"ro.art.hiddenapi.warning" for non-release, non-user builds. This
patch reads that flag and unless the flag is set, will only ever show
the warning message if the app is debuggable.

Test: manual
Bug: 64382372
Change-Id: I9b552792779589a7a91818a82d5c86141fc0a30b
2018-01-29 10:22:54 +00:00
Ricardo Loo Foronda
f8f6d0a8ec Docs: Removed rogue "(TODO)" note in FLAG_SHOW_LIGHTS member
Status: Ready for review
Note: This is a Javadoc only change.

Changes: Removed unnecessary "(TODO)" note.

Test: Build the docs with "make ds-docs" and staged updated content.

Staged content:
go/dac-stage/reference/android/app/Notification.html#FLAG_SHOW_LIGHTS

Bug: 20150478
Change-Id: I3a7fc0414ccb6f52e9b4919031a93ca1a7a29336
2018-01-29 04:21:10 +00:00
TreeHugger Robot
eb68f65224 Merge "Comment more on component callback order for N+ OS" 2018-01-29 00:50:17 +00:00
TreeHugger Robot
206593e49c Merge "Add freeze period support in SystemUpdatePolicy" 2018-01-28 16:11:37 +00:00
TreeHugger Robot
b443123538 Merge "Add throwIfParentInstance check to setMandatoryBackupTransport." 2018-01-27 18:09:33 +00:00
TreeHugger Robot
8036428c56 Merge "Revert "Move A11y events throttling away from View(RootImpl)"" 2018-01-27 03:45:39 +00:00
Makoto Onuki
1f805b44ea Merge "Allow system jobs to be exempted from app-standby" 2018-01-27 00:31:42 +00:00
Yohei Yukawa
0308e6a216 Comment more on component callback order for N+ OS
This CL attempts to clarify that just having a ContentProvider does
not necessarily mean ContentProvider#onCreate() is always called
before Application#onCreate() on Android N and later devices because
of direct boot.

Fix: 67559645
Test: make -j doc-comment-check-docs
Change-Id: I33b7cda42146333f48fb445027f5d31f3c5af5b6
2018-01-26 15:10:42 -08:00
Rubin Xu
29b9a7d1f4 Add freeze period support in SystemUpdatePolicy
Freeze period is defined as a pair of calendar dates (recurring annually)
during which the system should block any incoming system updates, including
security patches. They are set on top of existing system udpate policy
types (automatic, windowed, postpone) such that outside the freeze
periods existing policy semantics will still apply. They are created to
allow admin to keep their device fleet from any destabilizing changes during
critical period of the year, for example during Christmas sales period.

Device Owner can set several freeze periods, although to prevent the device
from not receiving OTAs indefinitely, each single freeze period is
restricted to be at most 90 days, and adjacent freeze periods need to be at
least 60 days apart. To properly enforce these restrictions, any freeze
periods the device previously experienced is tracked by DevicePolicyManager
and are validated against any new policy. This is to deal with corner cases
such as the admin repeatedly set a short but overlapping freeze period on a
rolling basis, hence bypassing the 90-day freeze period restriction.

Test: runtest -c com.android.server.devicepolicy.SystemUpdatePolicyTest frameworks-services
Bug: 64813061
Change-Id: I2864192797dc194edd9c183b881da6cfe3fdba5e
2018-01-26 23:07:59 +00:00
TreeHugger Robot
d2e162890e Merge "Proto enum reference for App Transitions" 2018-01-26 22:12:26 +00:00
Makoto Onuki
959acb5273 Allow system jobs to be exempted from app-standby
This flag will allow the sync manager to exempt certain kind of sync requests.

- This will only exempt jobs from app-standby.

- EBS still won't exempt them. Battery saver cuts background network anyway, so
background syncs will still not work, and it didn't used to work pre-P either.

- Manual force-app standby still doesn't allow them to run.

Bug: 72443754
Test: Build and boot. The behavior shouldn't change since none uses the flag yet.
Test: atest CtsJobSchedulerTestCases
Change-Id: I806b97bb4b7da773479e878e6eccb792b03eadc1
2018-01-26 14:10:03 -08:00
TreeHugger Robot
86356ec7a6 Merge "Get the themes outside of the resource lock" 2018-01-26 19:55:28 +00:00
Eugene Susla
72c510f1c4 Revert "Move A11y events throttling away from View(RootImpl)"
This reverts commit e4d31b3c10.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -08:00
Chris Tate
55c84552cc Merge "Let the job scheduler know when the user interacts with an app" 2018-01-26 18:21:04 +00:00
Lenka Trochtova
629001203f Add throwIfParentInstance check to setMandatoryBackupTransport.
Throw SecurityException from setMandatoryBackupTransport if
in a parent instance.

BUG: 72332943
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled

Change-Id: Iff2367256ce372641fd5569ad27b32f0894597ce
2018-01-26 14:27:30 +00:00
Alex Chau
1033e3861e Remove return value in clearApplicationUserData
Bug: 65280228
Test: cts-tradefed run singleCommand cts -m DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testClearApplicationData_testPkg
Test: cts-tradefed run singleCommand cts -m DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testClearApplicationData_deviceProvisioning
Test: cts-tradefed run singleCommand cts -m DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testClearApplicationData_activeAdmina
Change-Id: I8808ba49492771321a3b7eb1773f1bda9c595bc6
2018-01-26 11:43:44 +00:00
TreeHugger Robot
9add1b8c1b Merge "Revert "Fix issue #72116995: Add permission guarding Service#startForeground"" 2018-01-26 04:05:31 +00:00
Bookatz
80d11a00eb Proto enum reference for App Transitions
App transitions, from ActivityManagerInternal, are now referenced via a
proto enum. This is also referenced by statsd's atoms.proto.

Bug: 69478930
Test: still compiles
Change-Id: Ifb5cb0120d4cd4e2464ce3b5a7455842cb55259c
2018-01-25 17:12:31 -08:00
Bryce Lee
c91d86152a Merge "Perform Activity#onStart when launching in LocalActivityManager." 2018-01-26 01:11:56 +00:00
Bryce Lee
886e7fed9e Perform Activity#onStart when launching in LocalActivityManager.
We move to the start state when launching a tabbed activity through
LocalActivityManager, but currently do not inform the activity
thread due to changes in how ActivityThread is updated through the
ActivityLifecycler. This changelist addresses this issue.

Change-Id: Ibc2bda39617e1741bb3ee8637a182dc9f14dd61d
Fixes: 70813462
Fixes: 70812753
Test: atest CtsAppTestCases:android.app.cts.LifecycleTest
Test: atest LocalActivityManagerTest
Test: atest ActivityGroupTest
2018-01-25 17:10:28 -08:00
Winson Chung
66f0026f3f Merge changes from topics "reland_recents_animation", " reland_recents_animation"
* changes:
  Fix issue with reparenting stacks on displays.
  Revert "Revert "4/ Update SysUI shared lib for Recents transition""
  Revert "Revert "3/ Add input consumer to capture touches during a Recents transition""
  Revert "Revert "2/ Add support for remote Recents animation""
  Revert "Revert "1/ Create display content window controller to position stacks in the display""
2018-01-26 00:46:34 +00:00
Winson Chung
41234f6248 Merge "Add feature check before entering PIP." 2018-01-26 00:16:14 +00:00
David Brazdil
f416008101 Merge "Show a warning toast/dialog when an app uses hidden APIs" am: fbef950d95 am: d750a7c68c
am: 61c4d63c98

Change-Id: If75eacd24b072e382042885e20434b184dc91426
2018-01-26 00:07:33 +00:00
Android Build Merger (Role)
a6216a86f0 Merge "Merge "Merge "ActivityManager: Add support for agents on startup" am: d5cba89b98 am: ebc0afd811" into oc-mr1-dev-plus-aosp am: 954ba2c6a1" 2018-01-25 23:06:23 +00:00
Android Build Merger (Role)
6b3dd70b1f Merge "Merge "ActivityManager: Add support for agents on startup" am: d5cba89b98 am: ebc0afd811" into oc-mr1-dev-plus-aosp
am: 954ba2c6a1

Change-Id: I218eb054ef0da896c72674c597249c6a5120500d
2018-01-25 23:03:11 +00:00
David Brazdil
61c4d63c98 Merge "Show a warning toast/dialog when an app uses hidden APIs" am: fbef950d95
am: d750a7c68c

Change-Id: I9b62537d76e4ceb7ce03ca4de5ccf5a182c4439c
2018-01-25 22:32:28 +00:00
Winson Chung
80fa2d88b4 Add feature check before entering PIP.
Bug: 72063615
Test: ActivityManagerPinnedStackTests
Change-Id: I4bed3a39c28c62121db47b8a61dda2516e41d245
2018-01-25 14:26:48 -08:00
TreeHugger Robot
b93b797199 Merge "Update to the ActivityManager proto" 2018-01-25 22:21:30 +00:00
Andreas Gampe
d6e151c469 Merge "ActivityManager: Add support for agents on startup" am: d5cba89b98
am: ebc0afd811

Change-Id: Ie8b991014a43ca4fba83aeab3ba826996d2813df
2018-01-25 22:10:27 +00:00
David Brazdil
d750a7c68c Merge "Show a warning toast/dialog when an app uses hidden APIs"
am: fbef950d95

Change-Id: Icab7166bf83d2920c8d3f22774eafa4aea9fdaa4
2018-01-25 22:01:49 +00:00
Andreas Gampe
ebc0afd811 Merge "ActivityManager: Add support for agents on startup"
am: d5cba89b98

Change-Id: Iee82ac1a08183857ea4fcf2d67b99dede5d5a2ae
2018-01-25 21:50:42 +00:00
Winson Chung
e2d721781f Revert "Revert "2/ Add support for remote Recents animation""
This reverts commit 9f8518e532.

Reason for revert: Testing relanding changes with ag/3515280

Change-Id: I410bd752c815a5b998a719453def01e00a9d47c8
2018-01-25 13:44:44 -08:00
TreeHugger Robot
15dc9d7ddd Merge "Internal Framework changes needed by DocumentUI's ScopedAccessProvider:" 2018-01-25 21:30:22 +00:00
Todd Kennedy
35a9a3864e Get the themes outside of the resource lock
According to the documentation surrounding the resource manager
lock, the lock should _not_ be held when calling back into the
activity manager. The process of getting the system context [in
order to obtain the theme] _may_ call back into the activity
manager.

Change-Id: Ibddf728a39e651f0b3ec1e2f56e09da233b963c3
Fixes: 71592993
Test: Manual
2018-01-25 13:25:37 -08:00
David Brazdil
fbef950d95 Merge "Show a warning toast/dialog when an app uses hidden APIs" 2018-01-25 19:53:13 +00:00
Felipe Leme
23a0c7a009 Internal Framework changes needed by DocumentUI's ScopedAccessProvider:
- Changed AM.getGrantedUriPermissions() API.
- Made DocumentsContract.PATH_TREE public.

Also fixed related AM methods to use explicit for on some loops.

Bug: 63720392
Test: manual verification

Change-Id: I33bdcb949f4301534bd8467c8018d6f03b4588a4
2018-01-25 11:04:29 -08:00
Calin Juravle
2b6e24c7e5 Merge "[framework] Extend profile operations to take the profile name" 2018-01-25 18:58:09 +00:00
TreeHugger Robot
15050aaa99 Merge "Statsd broadcasts when it is alive" 2018-01-25 18:55:45 +00:00
Dianne Hackborn
c2cbc0727a Revert "Fix issue #72116995: Add permission guarding Service#startForeground"
This reverts commit 994b5ad737.

Waiting for Chrome prebuilt.

Test: NA
Bug: 72116995
Change-Id: Ifcfea94ddefda27267640283038c9d0f933ea1d8
2018-01-25 10:43:28 -08:00
Artem Iglikov
0edd645492 Merge "Revert "Make idiomatic use of ApkAssets and AssetManager"" 2018-01-25 18:06:49 +00:00
Michal Karpinski
3b6be64e85 Merge "Deprecate BackupManager#requestRestore()" 2018-01-25 16:46:25 +00:00
Selim Cinek
d41477f494 Merge changes from topic "notification_launch"
* changes:
  Added the reply draft as an extra to the content intent
  Launching notification settings correctly inline
  Launching Notification animations inline
2018-01-25 16:05:15 +00:00