Commit Graph

8837 Commits

Author SHA1 Message Date
Garfield Tan
293d3f5443 Merge "Pass activity stack when saving launch params." 2020-01-21 22:42:26 +00:00
Wale Ogunwale
9497e10f8f Merge changes Ibc47b63f,Ie625bf87,Ic9c6ea02
* changes:
  Renamed some getXXXStack methods to getRootXXXTask (87/n)
  Removed mStackId (86/n)
  Rename TaskStackContainers to TaskContainers (85/n)
2020-01-21 22:25:16 +00:00
Alex Kershaw
4c6d714539 Merge "Add a checks for _ACROSS_PROFILES apppop or permission." 2020-01-21 22:06:36 +00:00
Bernardo Rufino
8aa39acf60 Merge "Use IBinder token for indexing toasts instead of ITransientNotification" 2020-01-21 21:52:32 +00:00
Jay Aliomer
1d8df2ad91 Merge "Custom dark theme scheduling" 2020-01-21 21:27:28 +00:00
Garfield Tan
8b096b2d95 Pass activity stack when saving launch params.
When setParent() is called on a task with null as a step to remove it
mParent in WindowContainer is already set to null before
onParentChanged() is called. Therefore getStack() returns null and we'll
get an NPE. Thus pass ActivityStack into it to avoid that.

Bug: 147301825
Test: NPE disappears when a task is closed.
Test: atest TestRecordTest
Change-Id: I94e81f7f22d348b73eac70edd0998be721ad2597
2020-01-21 12:18:27 -08:00
Wale Ogunwale
734b896cc4 Renamed some getXXXStack methods to getRootXXXTask (87/n)
Also stacks are tasks now so this is "techincally" correct.
Also, stacks are going to be removed soon, so this CL helps reduce
size of future CLs.

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ibc47b63f19fd154b9162264f0ad1c9259a3e5d56
2020-01-21 12:17:42 -08:00
Wale Ogunwale
1ebcd8e4e2 Removed mStackId (86/n)
mStackId is the same as mTaskId since all stacks are now tasks
Also, switch some of the users to use getRootTask()/getRootTaskId()
where it makes sense.

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ie625bf8734ca01646f6f45705edf0eb240819c24
2020-01-21 11:27:03 -08:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
Julia Reynolds
73bc1e84e8 Merge "Fix notification history ordering" 2020-01-21 18:58:20 +00:00
Alex Johnston
35a650b9fd Merge "Add new APIs to control modification of admin configured networks" 2020-01-21 18:33:02 +00:00
Iavor-Valentin Iftime
7c872eca11 Merge "Add PinnerService unit test" 2020-01-21 18:30:44 +00:00
Iavor-Valentin Iftime
c2813cf16c Merge "Change some UserManager APIs to @SystemApi" 2020-01-21 18:21:57 +00:00
Wale Ogunwale
c17e5cf0ec Rename TaskStackContainers to TaskContainers (85/n)
All stacks are now tasks and there will be no stacks soon.
CL helps reduce the size of future CLs to remove stacks.
Also:
- Removed getSplitScreenPrimaryStackIgnoreVisiblity and have callers
use getSplitScreenPrimaryStack instead.
- Removed getRecentStack() that is only used during dump().

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ic9c6ea02c14a5508771c6513f187eff6b4b61e90
2020-01-21 10:07:11 -08:00
Vinit Nayak
2c12aac7c5 Merge "Revert "Revert "Change screen rotation animation""" 2020-01-21 17:38:41 +00:00
TreeHugger Robot
a76c1fa890 Merge "Fix FrameworksServicesTests:PrioritySchedulingTest." 2020-01-21 17:28:34 +00:00
Julia Reynolds
1cc5f842e4 Fix notification history ordering
Newest first!

Test: atest
Bug: 137396965
Change-Id: I83f8ddde5e5f929dff2bcafe55e26a51f82f90f5
2020-01-21 12:24:03 -05:00
Wale Ogunwale
3f0f270586 Merge "Unify ActivityStack extend Task (84/n)" 2020-01-21 16:29:41 +00:00
Alex Johnston
f13a6fb624 Add new APIs to control modification of admin configured networks
* Historically, only the device owner could prevent the user from modifying
  networks that have been configured by the device owner.
* In New COPE mode, the COPE profile owner should now be able to prevent the
  user from modifying networks as well as the device owner.
* This CL adds new APIs which are callable by the device owner or profile
  owner of an organization-owned managed profile. These new API can be used
  to toggle the global setting WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, instead of
  setting the global setting directly.
* This CL only affects networks configured by the admin, is does not prevent
  the user from creating more network configurations.

Bug: 147476790
Test: manual testing with TestDPC
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminConfiguredNetworks
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testAdminConfiguredNetworks

Change-Id: Ia16e639922bb08cdacd9a3766d978ac150b693c5
2020-01-21 15:51:47 +00:00
Bernardo Rufino
52af6db212 Use IBinder token for indexing toasts instead of ITransientNotification
In preparation for text toasts, which won't contain a
ITransientNotification object associated with them, indexing toasts
by an IBinder token provided by the app.

Bug: 144754526
Bug: 128611929
Test: atest android.widget.cts.ToastTest
Change-Id: I8ec649066154f59bc28bcb49bb6f156eadb796d8
2020-01-21 15:22:45 +00:00
kholoud mohamed
79a89f022d Add a checks for _ACROSS_PROFILES apppop or permission.
Use hasPermissionOrAppOpForPreflight to check for
INTERACT_ACROSS_PROFILES permission or appop rather than only
checking for the permission.

BUG: 140728653
BUG: 136249261
Test: atest CrossProfileAppsPermissionHostSideTest
Test: atest CrossProfileAppsHostSideTest
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Test: atest ContextCrossProfileHostTest
Change-Id: I81d428d47afd54f294ef9bb44133004762840d09
2020-01-21 14:28:46 +00:00
Ryan Lin
e21d279ba8 Merge "Gesture detection for window magnification (1/n)" 2020-01-21 02:48:56 +00:00
Charles Chen
eb0ebddc1a Merge "Split status bar window (1/N)" 2020-01-20 17:23:36 +00:00
Issei Suzuki
2f541849d1 Make sure AR#onAnimationFinished is triggered for related activities
Even when animation target is promoted from ActivityRecord to higher level,
AR#onAnimationFinished should be triggered for each ActivityRecord which is
a part of app transition.

Until hierarchical animation is enabled, app transition animation is
only on ActivityRecord, so this is no-op.

Bug: 131661052
Bug: 142617871
Test: atest ActivityLifecycleTests (sHierarchicalAnimations enabled)
Change-Id: Ic1c5d77075c64308ceadea2927c51e5af9a0c4dc
2020-01-20 14:33:59 +01:00
Wale Ogunwale
8f93b64d21 Unify ActivityStack extend Task (84/n)
Step towards merging stacks into tasks.

Test: Existing tests pass.
Bug: 80414790
Change-Id: Ifb167129c89a3aba11796daa21a9dee7200913ca
2020-01-20 21:25:54 +08:00
Valentin Iftime
89df4c8d17 Change some UserManager APIs to @SystemApi
Added @SystemApi to all APIs currently used by TvProfileService that were @hide only.

Bug: 139914710
Test: Apps built with stable_system or experimental_system can use the APIs
Change-Id: I3499244b4d545a7a9401c7941663045bcd89c6fe
2020-01-20 09:39:40 +01:00
Paul Crowley
658b4ca415 Merge "Provide secret to vold to remove credential" 2020-01-19 21:58:01 +00:00
Jing Ji
4a9cddd407 Merge changes from topic "app_kill_stats"
* changes:
  Add support to get historical app process exit reason
  Add support to send notification from Zygote to system_server
2020-01-19 18:37:04 +00:00
Alexander Dorokhine
aa6e9dd431 Switch setSchema API to be synchronous, based on discussion with API council.
Bug: 145635424
Test: Presubmit
Change-Id: I1419ca809eacea38bb8efd272771c0853d91efec
2020-01-18 11:15:00 -08:00
Jing Ji
8055a3a446 Add support to get historical app process exit reason
Apps can call ActivityManager.getHistoricalProcessExitInfos() to
get the historical process exit reason now.

Also add the below command to support dumping of the information
$ adb shell dumpsys activity exit-info [package name]

Bug: 136036078
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I634f247e42a7e8e4535eedd76cf84089abdf1129
2020-01-17 20:47:53 -08:00
Alexander Dorokhine
e2e63a57b2 Merge "Add forceSetSchema and fix the setSchema API comment." 2020-01-18 03:46:14 +00:00
Vinit Nayak
627ac309b5 Revert "Revert "Change screen rotation animation""
This reverts commit c17f3924c6.

Also cancel background surface color animation.

Change-Id: I82e436db653378f5097beee22594f64eaa2bb3bd
2020-01-17 15:23:10 -08:00
Automerger Merge Worker
19b1cb8c8b Merge "Tweak compat change override policy" am: 880792723a am: 3388e4181f am: f06eca1668
Change-Id: I434cbf4d32ecd3e79edb501c823e04c12583e85b
2020-01-17 22:15:01 +00:00
Automerger Merge Worker
f06eca1668 Merge "Tweak compat change override policy" am: 880792723a am: 3388e4181f
Change-Id: I55462975499d59a6e4a1686e85c11d0294d46f89
2020-01-17 22:03:15 +00:00
Andrei Onea
3388e4181f Merge "Tweak compat change override policy"
am: 880792723a

Change-Id: I8b93e3493cb4117891813ae58daa87ca4909e169
2020-01-17 12:23:54 -08:00
TreeHugger Robot
55e4896d52 Merge "Support setting the _PROFILES app-op" 2020-01-17 20:17:37 +00:00
Kweku Adams
36d844aa98 Fix FrameworksServicesTests:PrioritySchedulingTest.
1. Make sure the test schedules enough jobs that preemption becomes a
possibility.
2. Use a priority that won't be overriden (increased) when the jobs
start running.

Bug: 146570600
Test: atest FrameworksServicesTests:PrioritySchedulingTest
Change-Id: Ib1680091947998c3d6a1d9414a0c79bd6b4e0f96
2020-01-17 12:07:07 -08:00
TreeHugger Robot
c0e5f17fe0 Merge "Fix NPE during migration." 2020-01-17 19:44:17 +00:00
Julia Reynolds
5477bb44f0 Merge "Store pending 'history disabled' cmds" 2020-01-17 19:09:36 +00:00
Hongming Jin
60d32dbf5d Merge "API on AccessibilityService side to support customized system actions." 2020-01-17 19:09:11 +00:00
Pavel Grafov
522853818d Fix NPE during migration.
User restrictions are null for PO parent admin, so we need to ensure
they are initialized before adding.

Bug: 147884539
Test: atest com.android.server.devicepolicy.DevicePolicyManagerServiceMigrationTest#testCompMigrationAffiliated
Change-Id: I5024ac585e30081f944717cfe8d4b920b644213e
2020-01-17 18:28:59 +00:00
Julia Reynolds
6c11103cc1 Store pending 'history disabled' cmds
So the history can get deleted when the user is
next unlocked

Test: atest
Fixes: 147012298
Change-Id: I0142d3089251b9525579bdb02c49ecc05c83fc3d
2020-01-17 12:36:39 -05:00
Julia Reynolds
bfcda41613 Merge "Addressing conversation info todos" 2020-01-17 17:12:37 +00:00
wilsonshih
e832194dd0 Split status bar window (1/N)
This is the first step to create another new window for status bar.

Small window => TYPE_STATUS_BAR: The bar on top of screen.
Large window => TYPE_NOTIFICATION_SHADE: Anything else.

Bug: 136993073
Test: build then flash
Test: atest WmTests SystemUITests
Test: atest RegisterStatusBarResultTest InsetsFlagsTest

Manual Test:
- Bouncer can show when leave showWhenLocked activity.
- StatusBar can show when comes HUN in fullscreen mode.
- StatusBar can play enter/leave animation in fullscreen mode.
- Able to drag notification panel when bubble/glow existing.
- Switch to market launcher, and run above tests.
- Drag notification panel from launcher several times and observe it
  works fine.

Change-Id: Id9f72cd0e21f01b50d57f02ea60f97c6460926b7
2020-01-17 15:33:56 +00:00
Julia Reynolds
7c267526a1 Addressing conversation info todos
- Linking the conversation notification to the newly created
channel and triggering a ranking update
- Incorporating the flag for whether notifications/channels with
invalid shortcut ids should be allowed

Test: atest
Bug: 137397357
Change-Id: Ice1d545f2405a6c9b9eefaf1fd5481622ad72d7b
2020-01-17 10:20:19 -05:00
Automerger Merge Worker
d80723b65a Merge "Fix IsolatedUidAllocator for non-primary users." into qt-qpr1-dev am: 074d6fbd3f
Change-Id: I5694831cc81fe5e1b90740d369d6148971ac617c
2020-01-17 14:54:26 +00:00
Martijn Coenen
074d6fbd3f Merge "Fix IsolatedUidAllocator for non-primary users." into qt-qpr1-dev 2020-01-17 14:39:49 +00:00
Treehugger Robot
880792723a Merge "Tweak compat change override policy" 2020-01-17 14:07:29 +00:00
Ömer Nebil Yaveroğlu
c6eeb791ee Merge "Put size limits on the number of rules that can be pushed through a verifier." 2020-01-17 14:05:22 +00:00
TreeHugger Robot
16a6ec7e26 Merge "Add device policy API to toggle Common Criteria mode" 2020-01-17 12:22:54 +00:00