Commit Graph

17675 Commits

Author SHA1 Message Date
Lucas Dupin
d3dc47a844 Merge "Set dark theme flag when initializing with Color" into rvc-dev am: 59dc371fed am: 4c69e80709
Change-Id: I8e9ad12378b6229932607830aa9f8c36056ded41
2020-03-23 23:15:53 +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
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
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
Taras Antoshchuk
0ad10c562b Merge "Change dynamic MIME feature accodring to API review" into rvc-dev am: 2ecaeeba03
Change-Id: I78e9715fde0b55ea8f36c0afb41854ab1c4244dd
2020-03-20 21:07:47 +00:00
Taras Antoshchuk
2ecaeeba03 Merge "Change dynamic MIME feature accodring to API review" into rvc-dev 2020-03-20 21:04:15 +00:00
TreeHugger Robot
602c6315e2 Merge "Remove references to the assistant overlay from setStatusBarDisabled" into rvc-dev am: 36cb1671de
Change-Id: I531558b2796a4cf3dfdd3f1d02df07cb7e1d2508
2020-03-20 20:57:59 +00:00
TreeHugger Robot
36cb1671de Merge "Remove references to the assistant overlay from setStatusBarDisabled" into rvc-dev 2020-03-20 20:56:30 +00:00
Yvonne Jiang
d854e94b11 Merge "Secondary Lockscreen API: improve documentation and rename onSurfaceReady method." into rvc-dev am: 20cf3de04c
Change-Id: I217d0f619be2696ebb86737f510b01af46dbf524
2020-03-20 19:55:45 +00:00
Yvonne Jiang
20cf3de04c Merge "Secondary Lockscreen API: improve documentation and rename onSurfaceReady method." into rvc-dev 2020-03-20 19:43:13 +00:00
TreeHugger Robot
790ecaa02c Merge "Unrestrict updated buggy apps." into rvc-dev am: 25098aa147
Change-Id: Ia1727084ea3f785c265963205ba3bd8a0a8a5ce5
2020-03-20 19:14:08 +00:00
TreeHugger Robot
25098aa147 Merge "Unrestrict updated buggy apps." into rvc-dev 2020-03-20 18:59:12 +00:00
Ryan Mitchell
c5f968d58b Merge changes from topic "res_loader_dir" into rvc-dev am: b0544a733c
Change-Id: I18c28c7293a24d712940c9e80e7817f9547512f8
2020-03-20 18:21:20 +00:00
Ryan Mitchell
b0544a733c Merge changes from topic "res_loader_dir" into rvc-dev
* changes:
  Allow using loaders on non-RM Resources instances
  Move AssetsProvider to native layer
  Add ResourcesProvider.loadFromDirectory
  Refactor tests for ApkAsset loading APIs
  Refactor ApkAsset loading APIs
  Fix bugprone-use-after-move warnings
  Fix bugprone-use-after-move warnings
2020-03-20 18:16:30 +00:00
Mady Mellor
bea5263acd Merge "Bubbles API council feedback" into rvc-dev am: 5e2ddf0391
Change-Id: Ie25e05ac59f11e0ba52492912b07f50fb0e544e1
2020-03-20 17:23:43 +00:00
Mady Mellor
5e2ddf0391 Merge "Bubbles API council feedback" into rvc-dev 2020-03-20 17:17:36 +00:00
Yvonne Jiang
8345da3a97 Secondary Lockscreen API: improve documentation and rename onSurfaceReady method.
- Documentation clarity and method rename per API review feedback.
- Specifying in documentation and implementation that the implementing service must be exported by the Profile Owner.

Bug: 150866056
Bug: 136085151
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I58175bd6cf8936f5b1267625ca15b4f9c57f4144
2020-03-20 17:06:24 +00:00
Taras Antoshchuk
8a6002477d Change dynamic MIME feature accodring to API review
Remove PackageManager#clearMimeGroup method. Add expected best
practices of the MIME group naming to Javadocs.
getMimeGroup/setMimeGroup throw in case of undefined MIME group.

Bug: 151101912
Test: atest CtsDynamicMimeHostTestCases
Change-Id: Ica468c77785cb0f9862b412a0bbc664f23e2f2d4
2020-03-20 17:07:56 +01:00
Alex Kershaw
a2fb224ccf Remove references to the assistant overlay from setStatusBarDisabled
Fixes: 146097450
Test: documentation changes only
Change-Id: Ibb1227859c37c3b301bdcfa0c170288611a61d76
2020-03-20 15:53:37 +00:00
TreeHugger Robot
7e1d70d37c Merge "Address API Review for setProfileOwnerCanAccessDeviceIds" into rvc-dev am: 7924f675e1
Change-Id: I35a8a266e8f26b185bedf67b0730a1783d3ea0eb
2020-03-20 15:51:16 +00:00
TreeHugger Robot
7924f675e1 Merge "Address API Review for setProfileOwnerCanAccessDeviceIds" into rvc-dev 2020-03-20 15:35:09 +00:00
Eran Messeri
17429b5394 Address API Review for setProfileOwnerCanAccessDeviceIds
Per API council's suggestion, make setProfileOwnerCanAccessDeviceIds
throw only if the API level of the calling app is R and above, and
call markProfileOwnerOnOrganizationOwnedDevice if called from apps
targeting Q and below.

This code path is extremely unlikely to ever trigger because this method
was marked as SystemApi unintentionally, and could only be called during
the provisioning flow.

Test: Manual
Bug: 150957726
Change-Id: I4215c7dce642c9e3ff00183f43867802507911ca
2020-03-20 13:33:41 +00:00
Neil Fuller
13242f9079 Merge "Misc tidy up before adding geolocation classes" am: f211324bfc am: f46cdaa859
Change-Id: Ib06c71b883411e432dd0e7c5ec657287ad711b2f
2020-03-20 10:13:21 +00:00
Neil Fuller
f211324bfc Merge "Misc tidy up before adding geolocation classes" 2020-03-20 09:47:19 +00:00
Ryan Mitchell
39cacf2de7 Allow using loaders on non-RM Resources instances
Currently there is a limitation where ResourcesLoaders cannot be  used
on Resources object not created through ResourcesManager. This change
creates an update handler for Resources objects that are not registered
with ResourcesManager.

The handler changes the loaders on the asset manager owned by the
Resources instance.

Bug: 151666644
Test: atest ResourceLoaderValuesTest
Change-Id: I5a89f686386bdb088dc964014e7becc0c2b4770f
2020-03-19 18:33:55 -07:00
Ryan Mitchell
ef40d2e832 Refactor ApkAsset loading APIs
To add the partner requested ResourcesProvider#loadFromDir APIs, this
change adds format type integer that allows us to reduce the number of
ApkAssets loading overrides.

This change also adds hidden offset and length based ResourcesProvider
APIs that could not make R.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: I926fde257cae701901dcd4ca408024feae8c90a6
Merged-In: I926fde257cae701901dcd4ca408024feae8c90a6
2020-03-19 18:33:55 -07:00
Malcolm Chen
629f9111f7 Hide APIs exposed for Telephony mainline which is no longer needed in R.
The APIs were added in b/144351078, b/148097978 and b/148116922.
b/151665796 is used to revert them.

Bug: 151665796
Bug: 144351078
Bug: 148097978
Bug: 148116922
Test: build
Change-Id: I08db8c5c0161747a7e775a8de0daa7077b513f10
2020-03-20 01:25:45 +00:00
Grace Jia
7c607d64ee Merge "Revert add isProfileForeground SystemApi in ActivityManager." into rvc-dev am: 886efd654f
Change-Id: Ia161524454deb37a742b7ae4aa9c423c16d44f32
2020-03-19 23:29:51 +00:00
Grace Jia
886efd654f Merge "Revert add isProfileForeground SystemApi in ActivityManager." into rvc-dev 2020-03-19 23:27:03 +00:00