Commit Graph

17701 Commits

Author SHA1 Message Date
TreeHugger Robot
2412980dfd Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev am: b04ab6ceb1 am: 629a579f79
Change-Id: Ida0e9b71562570678e109b63f757f0a600b44425
2020-03-25 12:11:12 +00:00
TreeHugger Robot
b04ab6ceb1 Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev 2020-03-25 11:36:11 +00:00
Galia Peycheva
cb6d447d00 Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev am: 389580c7da am: 1c205d5a5c
Change-Id: I675643c8d47763e1d1b4f741bb930a9db750169e
2020-03-25 10:33:36 +00:00
Galia Peycheva
389580c7da Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-25 10:23:47 +00:00
Bernardo Rufino
36e998520a Merge "Gate toast block and remove warning" into rvc-dev am: 7afc8b101b am: fed3f548d3
Change-Id: Iebe0a02d3a1738c81ef15e30e666931b1ecc1403
2020-03-25 09:59:05 +00:00
Bernardo Rufino
7afc8b101b Merge "Gate toast block and remove warning" into rvc-dev 2020-03-25 09:32:40 +00:00
Charles Chen
b3230a3594 Fix false positive of activity leak in NexusLauncherTests
by postponing StrictMode.decrementExpectedActivityCount
and clear Activity reference of ActivityClientRecord

fixes: 150715257
Test: atest NexusLauncherTests
Change-Id: I0f20194fe59b45eb9954efef62a9afbcd2048ad1
2020-03-25 17:02:28 +08:00
Philip P. Moltmann
53ace23998 Pipe through attributeId to notification app-op am: e4b03b589f
Change-Id: I8f9e553a0ecfcd3f332a9ec09cf8b74131c840b4
2020-03-25 00:01:01 +00:00
Philip P. Moltmann
7556065b55 Merge "Pipe through attributeId to notification app-op" into rvc-dev 2020-03-24 23:53:51 +00:00
TreeHugger Robot
4b4d52645c Merge "Update documentation" into rvc-dev am: c01b818bae
Change-Id: Ia237153c557306eb01672b60d3830e6706d500fc
2020-03-24 22:09:34 +00:00
Bernardo Rufino
c797aac41e Gate toast block and remove warning
Gate background custom toast block on targetSdk for beta 1, after
having gathered dogfood feedback. So, enabling the change for apps with
targetSdk > Q (>= R). Also removed warning toast.

Added tests in topic CL to cover all the cases.

Bug: 144152069
Test: atest android.widget.cts29.ToastTest android.widget.cts.ToastTest
Change-Id: If368a97a2a8ff56770635615f89c79007bb27075
2020-03-24 20:22:18 +00:00
Julia Reynolds
460292f789 Update documentation
Test: make
Fixes: 152262228
Change-Id: I66eca44b649e209ea7adc39e38c24d21e564fe8d
2020-03-24 15:44:25 -04:00
Philip P. Moltmann
e4b03b589f Pipe through attributeId to notification app-op
The noteOp API without attributeId is deprecated.

For @UnsupportedApi Binder calls we need to keep the old name there.

Test: TH
Bug: 136595429
Change-Id: Ib758b431c0842bb16ce8e8fb3a33d4524ab0878c
2020-03-24 11:41:09 -07:00
Pavel Grafov
39fddbebc2 Merge "Suspend newly installed apps when personal apps are suspended" into rvc-dev am: 70b1c45a9e
Change-Id: I88a7e04874b5db368f16bfd17c35e9cd3f886bec
2020-03-24 17:48:05 +00:00
TreeHugger Robot
384a8b9177 Merge "Use REPLACE_EXISTING for rename(2) workaround." into rvc-dev am: 78243297c0
Change-Id: I5645498654beb240097b4f32fd00889ee26fabc8
2020-03-24 17:47:15 +00:00
Pavel Grafov
70b1c45a9e Merge "Suspend newly installed apps when personal apps are suspended" into rvc-dev 2020-03-24 17:42:11 +00:00
TreeHugger Robot
78243297c0 Merge "Use REPLACE_EXISTING for rename(2) workaround." into rvc-dev 2020-03-24 17:42:03 +00:00
Galia Peycheva
45f48d3082 Create ACTIVITY_TYPE_DREAM
Previously the dream activity was of a standard activity type. This
allows other activities to be started in front of it, which should not
happen.

This CL adds a new ACTIVITY_TYPE_DREAM and makes dream activities to be
attached on top of all other activities. It also adds activities of type
dream to be one of the always on top activities.

Bug: 150749838

Test: make && flash; start PiP and then start the screensaver. Verify
      that PiP is hidden by the dream.

Change-Id: I852db2455d580d5c99aca3dbbd1ee3bea20aa7ae
2020-03-24 15:31:25 +01:00
Pavel Grafov
97bb33b93c Suspend newly installed apps when personal apps are suspended
Also make use of PackageManager.getUnsuspendablePackages() which
already takes care of launcher and dialer packages and some
other critical apps, like package verifier, package
[un-]installer, etc.

For newly installed packages it PackageManager.getUnsuspendableApps()
seems to be sufficient since that app won't be critical for the
functioning of the device.

Test: Test: atest
    OrgOwnedProfileOwnerTest#testPersonalAppsSuspensionInstalledApp
Bug: 149394138
Change-Id: Ic3196dbfdd5c506e708563d305a42494391dc878
2020-03-24 12:28:07 +00:00
Wale Ogunwale
5c865d499d Merge "Introduce WindowOrganizer" into rvc-dev am: e5cfca4454
Change-Id: Iaf211c386760c39a2aa5d389f0a0df69fc9e26d5
2020-03-24 02:13:53 +00:00
Wale Ogunwale
e5cfca4454 Merge "Introduce WindowOrganizer" into rvc-dev 2020-03-24 02:01:29 +00:00
Santiago Etchebehere
2d459fb89c Merge "Send a command to the wallpaper when re-applying it" into rvc-dev am: 9c750b3084
Change-Id: Ic9b60474b167380bf3112bf79d1982279b69fcaa
2020-03-24 01:55:17 +00:00
Santiago Etchebehere
9c750b3084 Merge "Send a command to the wallpaper when re-applying it" into rvc-dev 2020-03-24 01:46:29 +00:00
Lucas Dupin
101e40f09a Merge "Set dark theme flag when initializing with Color" into rvc-dev am: 59dc371fed
Change-Id: Ic0ee4d8fa956b023a890c59c86f9af036147e60b
2020-03-23 22:54:56 +00:00
Lucas Dupin
59dc371fed Merge "Set dark theme flag when initializing with Color" into rvc-dev 2020-03-23 22:49:37 +00:00
Santiago Etchebehere
85ef2fddce Send a command to the wallpaper when re-applying it
We don't set a wallpaper component again if it's the one
already set, so we're now sending it a command notifying
of this in case the wallpaper needs to reload or apply
settings.

Bug: 147677688
Test: atest WallpaperManagerServiceTests
Change-Id: If65671287ba3270933b75771a8c1c65c5ff0216a
2020-03-23 15:37:39 -07:00
Andrii Kulian
6f97663eff Merge "Revert "Don't override activity display adjustments with app config"" into rvc-dev am: 87a59b2dfb
Change-Id: I02c1db2255b89429fe63863d7ccf8bfae485c1f5
2020-03-23 18:37:13 +00:00
Andrii Kulian
87a59b2dfb Merge "Revert "Don't override activity display adjustments with app config"" into rvc-dev 2020-03-23 18:24:10 +00:00
Wale Ogunwale
568f9f41c6 Introduce WindowOrganizer
WM currently only allows the organization of tasks, however we will soon
be allowing the organization of DisplayAreas. To help with the code
structure, we are introducing WindowOrganizer interface which will
contain common APIs for all types of windows organizers (e.g.
applyTransaction) and also be the interfaece for getting the controller
for other organizers.

Test: they pass!
Bug: 147406652
Bug: 152113464
Bug: 152117221

Change-Id: Id2797b288ce92430206c25345d60e7b0e3be98c8
2020-03-23 08:59:18 -07:00
Wale Ogunwale
0193a39672 Merge "Move some window related files to android.window package" into rvc-dev am: f09fdecd55
Change-Id: Iac4f76a87c267f20cd47c6076d04c7d5fcf5ceb8
2020-03-23 14:10:10 +00:00
Wale Ogunwale
f09fdecd55 Merge "Move some window related files to android.window package" into rvc-dev 2020-03-23 13:48:30 +00:00
bsears
558f025f4d Revert "Don't override activity display adjustments with app config"
Revert "Verify reported display sizes in multi-window"

Revert submission 10636794-app_config_updates_adjustments-rvc-dev

Reason for revert: See b/151903752#comment29.  This CL was identified (via bisection) as the CL that is breaking Android Auto.
Reverted Changes:
Ib3ee007bc:Don't override activity display adjustments with a...
I5ba4dd354:Verify reported display sizes in multi-window

Bug: 151903752

Change-Id: I845ed4871637d6d8a5fac1a6a5236378829b837e
2020-03-22 17:59:40 +00:00
Wale Ogunwale
5794658be0 Move some window related files to android.window package
Window management files on the client side have normally been dumped in
either android.view or android.app package. This CL starts to
centralized them in android.window package so there is better
separation.

Test: they pass
Bug: 147406652
Bug: 152113464
Bug: 152117221
Change-Id: I4d64bd256e9b3581af0ccf9396f7dd2454132719
2020-03-22 09:47:43 -07:00
Lucas Dupin
2e7170bb21 Set dark theme flag when initializing with Color
Users want to be able to use this flag and have been relying on
WallpaperColors#fromBitmap given that flags were not parsed by
the main constructor.

Fixes: 151717291
Test: atest WallpaperColorsTest
Change-Id: I0470a867c54756df9a758b24835a50bc67191050
2020-03-22 00:12:26 +00:00
Hui Yu
56deaab4c8 Merge "Update AppOps & UsageStats when app widget tapped." into rvc-dev am: aa3d42b129
Change-Id: I415deec0a9f7b168fc6ccdd5878be4fd57d53a58
2020-03-21 20:10:24 +00:00
Hui Yu
aa3d42b129 Merge "Update AppOps & UsageStats when app widget tapped." into rvc-dev 2020-03-21 19:54:59 +00:00
Michael Groover
7eab1f0f2c Merge "Refactor device ID access SystemAPI to PermissionManager" into rvc-dev am: ffd92af9a5
Change-Id: I1e41bc3f2f5419ff8103d8688dac4508fb4ae845
2020-03-21 15:45:43 +00:00
Hui Yu
3dc45fbc57 Update AppOps & UsageStats when app widget tapped.
When the app widget on the launcher is tapped on:
1. Update AppOps. AppOps treats the underlying app as foreground so the app can get while-in-use
permission.
2. Report a USER_INTERACTION event to UsageStats so UsageStats can
update mLastTimeUsed and mLastTimeVisible of this package.

Bug: 149043079
Test: manual test, tapped on a widget.
Change-Id: Ic8c91190881cf5dcf89f0f72cfd410b0c2e86bf6
2020-03-21 08:36:54 -07:00
Michael Groover
ffd92af9a5 Merge "Refactor device ID access SystemAPI to PermissionManager" into rvc-dev 2020-03-21 15:30:53 +00:00
Stanislav Zholnin
54012151ea Merge "Remove separate OpIds for logging and enforce op ids instead." into rvc-dev am: 58e8d270a7
Change-Id: Ide0c0d1751a15a36fcb68f1fef4a2b143aff9a5b
2020-03-21 10:42:58 +00:00
Stanislav Zholnin
58e8d270a7 Merge "Remove separate OpIds for logging and enforce op ids instead." into rvc-dev 2020-03-21 10:28:23 +00:00
Stanislav Zholnin
d5378e96a5 Remove separate OpIds for logging and enforce op ids instead.
Bug: 143519689
Test: atest UidAtomTests
Change-Id: Ia1897c9c2ffa11547ec09f899a45cfed9b7b0d5d
Merged-Id: Ia1897c9c2ffa11547ec09f899a45cfed9b7b0d5d
2020-03-21 10:27:08 +00:00
TreeHugger Robot
ec3533b22e Merge "Fixed an issue where the largeIcon wouldn't be shown for non-shortcuts" into rvc-dev am: a3c47e791e
Change-Id: I5b2cfd47b613860864a0aa8cf45fc61e421df967
2020-03-21 03:15:39 +00:00
TreeHugger Robot
a3c47e791e Merge "Fixed an issue where the largeIcon wouldn't be shown for non-shortcuts" into rvc-dev 2020-03-21 03:06:25 +00:00
TreeHugger Robot
89a4b908a6 Merge "Add importance ring around conversation badge" into rvc-dev am: fd8d9650ac
Change-Id: Ibfac285196b55e7cfec00cebdfd722ed8eff9f53
2020-03-21 00:48:23 +00:00
TreeHugger Robot
fd8d9650ac Merge "Add importance ring around conversation badge" into rvc-dev 2020-03-21 00:46:13 +00:00
Selim Cinek
d2dcd46518 Fixed an issue where the largeIcon wouldn't be shown for non-shortcuts
We should only use the shortcut icon if it's available

Bug: 150905003
Test: add group message from Notify with largeIcon
Change-Id: Icd5b0991b34fbfb517344cc6c908a2588973cdca
2020-03-21 00:23:15 +00:00
TreeHugger Robot
ef4fc7bcdc Merge "Hide APIs exposed for Telephony mainline which is no longer needed in R." into rvc-dev am: 98f6a63baa
Change-Id: Ib68ea1fde39cfb8922c1dc43837a5fa55bd7a2b5
2020-03-20 23:23:31 +00:00
TreeHugger Robot
98f6a63baa Merge "Hide APIs exposed for Telephony mainline which is no longer needed in R." into rvc-dev 2020-03-20 23:19:53 +00:00
Steve Elliott
928bb16c9f Add importance ring around conversation badge
Bug: 150905003
Test: manual
Change-Id: I967122fcf6404491fb514bc42e5f9e64490b8024
2020-03-20 18:03:32 -04:00