Commit Graph

20355 Commits

Author SHA1 Message Date
Bernardo Rufino
7bb4bb0304 Adjust ACSD APIs
* ChangeId DROP_CLOSE_SYSTEM_DIALOGS doesn't need to be @TestApi.
* BROADCAST_CLOSE_SYSTEM_DIALOGS permission needs to be @SystemApi given
its protectionLevel

Bug: 181593849
Test: Builds
Test: atest CloseSystemDialogsTest
Change-Id: I6cbbc4a396f920e6cc60299ba827c76158e2e7cf
2021-03-18 18:17:31 +00:00
Julia Reynolds
d31299c5a8 Merge "Rename notificationchannel constant values" into sc-dev 2021-03-18 14:03:53 +00:00
Julia Reynolds
18417de2c5 Merge changes I5a807bbb,Icc3dd959 into sc-dev
* changes:
  Add an intdef
  Fix contrast issues in channel blocking ui
2021-03-18 13:49:05 +00:00
Kholoud Mohamed
9c8071e410 Merge "Exposed some testAPIs in ActivityManager" into sc-dev 2021-03-18 10:13:04 +00:00
Wei Sheng Shih
4a1f799020 Merge "Remove the timeout which used for cleanup splash screen" into sc-dev 2021-03-18 09:45:39 +00:00
Almaz Mingaleev
d355fee300 Merge "Add time related API to TimeManager." into sc-dev 2021-03-18 09:23:30 +00:00
wilsonshih
5cafb53ce6 Remove the timeout which used for cleanup splash screen
Remove the internal timeout to clean up the starting window, for now on
the developers are responsible for removing it.

- Also clean up some redundant members.

Bug: 181838419
Test: atest SplashscreenTests
Change-Id: Iebcccbca454eb7fda4bed637cb5866deec36cf6b
2021-03-18 11:36:44 +08:00
Julia Reynolds
4c8fecf214 Rename notificationchannel constant values
Test: make
Fixes: 183052700
Change-Id: Ib44c142f4aecbd7f834034ef392ff53a05e7ae0e
2021-03-17 21:43:27 -04:00
Julia Reynolds
039f924455 Add an intdef
Test: make
Fixes: 176822079
Change-Id: I5a807bbbb89a7bd07d7d46c792b9e2199201713a
2021-03-18 01:31:58 +00:00
Chalard Jean
717e9eeaee Merge "Annotate NSM heavy methods with @WorkerThread" am: db9e849986 am: 11166d7d71 am: 25cae56500
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625859

Change-Id: I6115f4ed727a78f5ed800e7e254913220d1d5bec
2021-03-17 22:10:58 +00:00
kholoud mohamed
23c36dbe21 Exposed some testAPIs in ActivityManager
- Added the following testAPIs to replace the usage
of adb shell commands in tests:
* stopUser and ACTION_USER_STOPPED
* waitForBroadcastIdle

- Changed the documentation for switchUser to correctly
reflect that it accepts CREATE_USERS

Test: verfied that tests can access the APIs
Bug: 181030374
Change-Id: I92b92471a18cf97a118d3f1946d6e06c277a76f1
2021-03-17 21:08:02 +00:00
TreeHugger Robot
883f474ea8 Merge "Expand try/catch for DeviceConfig in AppOpsManager" into sc-dev 2021-03-17 19:29:56 +00:00
TreeHugger Robot
d5cf5ab4a8 Merge "Fixed broken HTML tag." into sc-dev 2021-03-17 18:40:02 +00:00
Nate Myren
e1add58118 Merge "Remove R QPR attribution hacks" into sc-dev 2021-03-17 18:26:54 +00:00
Nate Myren
add3f1bdf1 Expand try/catch for DeviceConfig in AppOpsManager
Some apps, such as the shell, do not seem to be able to always access
the DeviceConfig, and get an NPE. Fail gracefully when this happens.

Test: manual
Fixes: 182907280
Change-Id: If4de34f2022c165ad8bf5a950c8a04cfd5abacc9
2021-03-17 10:03:59 -07:00
Bernardo Rufino
b5c1bd7b0d Merge "Remove collapsePanels() publicAlternatives" into sc-dev 2021-03-17 11:30:15 +00:00
Chalard Jean
25cae56500 Merge "Annotate NSM heavy methods with @WorkerThread" am: db9e849986 am: 11166d7d71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625859

Change-Id: I4091f82e7b95901a88cd9528c92df4519fb3edd1
2021-03-17 03:08:28 +00:00
Chalard Jean
db9e849986 Merge "Annotate NSM heavy methods with @WorkerThread" 2021-03-17 02:03:22 +00:00
Ivan Chiang
8017e2b6dd Merge "Add new permission MANAGE_MEDIA" into sc-dev 2021-03-17 01:50:59 +00:00
Nate Myren
f882feeabc Remove R QPR attribution hacks
Bug: 172868375
Test: manual
Change-Id: I5e731bb821e879f6c314604912f13800ca668aa4
2021-03-16 15:10:36 -07:00
Felipe Leme
7f49f69f02 Fixed broken HTML tag.
Test: m -j doc-comment-check-docs
Fixes: 182908993

Change-Id: I8514c1010f3be6ffcbc0f160b6354050ff9a930e
2021-03-16 19:44:48 +00:00
Evan Rosky
1b529aa19d Merge "Do the same size-configuration bucketing on both server and client" into sc-dev 2021-03-16 19:37:12 +00:00
Jay Aliomer
adb6b16829 Merge "Local Wallpaper Color high resource usage" into sc-dev 2021-03-16 17:43:00 +00:00
Benjamin Franz
0b3f22b216 Merge "Create per-app treatment for overriding minimum aspect ratio" into sc-dev 2021-03-16 15:51:43 +00:00
Bernardo Rufino
5752b1b27b Remove collapsePanels() publicAlternatives
Back when we added Intent.ACSD to publicAlternatives of collapsePanels()
in ag/13035420, we didn't have the complete picture of which use-cases
the Intent.ACSD would remain valid for and I thought there might still
be 3p valid use-cases. Turns out cinek@ was right in that CL.

After finished implementation, there are not 3p valid use-cases for
Intent.ACSD anymore - this is explained in detail in ag/13331897 but
TL;DR; for security reasons we're deprecating the intent and in S the
platform will automatically be responsible for collapsing the shade
where applicable. So, the result is that there are no public
alternatives to collapsePanels() anymore and this is on purpose since
having this capability lead to abuse.

Test: Builds
Bug: 159105552
Change-Id: I5ead6f83d19b00a27498a0ef42b6957667964644
2021-03-16 14:21:22 +00:00
Benjamin Franz
c4a55ff629 Create per-app treatment for overriding minimum aspect ratio
We define three change ids in this change:
OVERRIDE_MIN_ASPECT_RATIO
OVERRIDE_MIN_ASPECT_RATIO_MEDIUM
OVERRIDE_MIN_ASPECT_RATIO_LARGE

Depending on which change ids are enabled, we override the minimum
aspect ratio of a given app to the value corresponding to the treatment.

Bug: 174042980
Test: atest WmTests:SizeCompatTests
Change-Id: I2db2a3acbd051b651b7ab0dc4c51c38a0276430b
2021-03-16 09:50:16 +00:00
Ivan Chiang
f31754e049 Add new permission MANAGE_MEDIA
Test: m -j, Booted
Test: atest CtsPermission2TestCases
Bug: 181112025
Change-Id: I4f2ef6c0562346ab61e43a7fdc8a2316d75c509c
2021-03-16 15:09:33 +08:00
Evan Rosky
6c5f8fc3d8 Do the same size-configuration bucketing on both server and client
Otherwise they get out-of-sync and sometimes AR will not relaunch
the app, but the app client will think it needs to be relaunched

Bug: 181697795
Test: app configuration tests pass.
      With 3-button nav, open app in split and observe launcher
      reconfigure properly.
Change-Id: Idc8d71d92d9ae107e3adb949a2137de6c08908e9
2021-03-15 15:37:07 -07:00
Jay Aliomer
6bb6687f88 Local Wallpaper Color high resource usage
Fixes: b/182482946
Test: WallpaperManagerTest
Change-Id: Ic4161e43e30f71886984d22a47b086d647188613
2021-03-15 17:58:31 -04:00
Zhen Zhang
23f7206dbc Create component used metrics in UsageStats
Created a new metrics called mLastTimeComponentUsed in UsageStats.
It is persisted and loaded as other metrics.

Bug: 175829712
Test: core/tests/coretests/src/android/app/usage/UsageStatsTest
Test: cts/UsageStatsTest
Test: UsageStatsDatabaseTest
Test: UsageStatsServiceTest
Test: UsageStatsPersistenceTest
Change-Id: I10cf5c40cf5955246a6a04e96ac0352b4ed29acd
2021-03-15 14:24:08 -07:00
Jeff DeCew
2981ba6e75 Merge "Allow color in minimized notifications" into sc-dev 2021-03-15 13:29:36 +00:00
Jeff DeCew
3530bccf2b Merge changes I6e96864c,I6bc865d5,I15ca6994 into sc-dev
* changes:
  Hide app name from collapsed CallStyle.
  CallStyle now supports contextual actions (e.g. smart replies)
  Fix the layout issue with the expand button of the CallStyle
2021-03-15 13:18:03 +00:00
Aaron Huang
e29f0a55d8 Merge changes from topic "pacproxy-service" am: 16f50075b1 am: 688ae36dcb am: ce43593e5e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553959

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If6d34753e8bf9201e16121b8f3c6c83aa6358986
2021-03-15 12:56:09 +00:00
Aaron Huang
ce43593e5e Merge changes from topic "pacproxy-service" am: 16f50075b1 am: 688ae36dcb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553959

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ife210de3adbdaff6c88caf744d805571b365b294
2021-03-15 12:30:17 +00:00
Aaron Huang
16f50075b1 Merge changes from topic "pacproxy-service"
* changes:
  Make PacProxyService be a system service
  Revert^2 "Refactor setCurrentProxyScriptUrl to a void method"
2021-03-15 11:49:45 +00:00
Aaron Huang
5d31a15d84 Make PacProxyService be a system service
PacProxyInstaller class is running a thread all the time and is
listening to intent ACTION_PAC_REFRESH so it would be better to
make it be a system service with a manager class PacProxyManager
which is obtained with getSystemService(PacProxyManager.class).
Besides, rename PacProxyInstaller to PacProxyService will
be easier to know it's the service for PacProxyManager.

ConnectivityService is going to be a mainline module and it
needs constructor of PacProxyService to be SystemApi.
However, in current design, it needs to pass a handler and
an int arguments to the constructor which would be difficult
to maintain if just expose the constructor directly.

So, define a listener for the event that the current PAC
proxy has been installed so that the handler and the int
arguments can be removed from the constructor.

Bug: 177035719
Test: FrameworksNetTests
Change-Id: I2abff75ec59a17628ef006aad348c53fadbed076
2021-03-15 14:40:58 +08:00
Charles Chen
91734009df Merge "Add more logs in RootTDAOrganizer" into sc-dev 2021-03-15 02:47:52 +00:00
Jeff DeCew
5c72acc451 Allow color in minimized notifications
* This prevents the color change problem when expanding minimized notifications.
* The expander for minimized groups will use the non-highlight colors.

Fixes: 176899982
Test: manual
Change-Id: I592ebc1edc18075537c81bfa8d36dee9b6d011d1
2021-03-13 20:41:35 -05:00
Chris Li
3c2c7d9b42 Merge "Allow non-resizable to enter split screen from recent" into sc-dev 2021-03-13 22:31:52 +00:00
Chris Li
f834092444 Allow non-resizable to enter split screen from recent
Before, LegacySplitScreen is not allowing non-resizable to enter split
screen. Now, it also checks supportsNonResizableMultiWindow.

Fix: 181377395
Bug: 176061101
Test: manual
Change-Id: Iae4c65b5c8b0a139dbf8af55caba9f6c99d1f470
2021-03-12 16:04:11 -08:00
Nate Myren
23080b5bb5 Add a flag check in AppOpsManager to enable full stacktrace
Bug: 181558559

Test: N/A
Change-Id: I4b3d7ad50fa1937189ccc6572b55919275deae74
2021-03-12 15:54:11 -08:00
Almaz Mingaleev
fda49aa575 Add time related API to TimeManager.
It copies time zone API to keep in consistent.

Bug: 172891783
Test: atest services/tests/servicestests/src/com/android/server/timedetector/*
Change-Id: Id32745540483eafe8292a0de2221e6a7ff22cc84
2021-03-12 16:04:02 +00:00
TreeHugger Robot
8771e57dd8 Merge "Created new @TestApi (and Shell command) to get policy-exempt apps." into sc-dev 2021-03-12 15:41:27 +00:00
Ching-Sung Li
0f77a1a084 Load default wallpaper by device's CMF color
Load default wallpaper by device's CMF color in WallpaperManager. The
fallback is to use default wallpaper if no matching wallpaper with
corresponding CMF color.

Bug: 178161042
Test: Build ROM and manual test
Change-Id: Iea818784f05f730e3cde79e95771a84db1b39225
2021-03-12 08:25:13 +00:00
Felipe Leme
4691ce920a Created new @TestApi (and Shell command) to get policy-exempt apps.
Test: adb shell cmd device_policy list-policy-exempt-apps
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testGetPolicyExemptApps_noPermission,testGetPolicyExemptApps_empty,testGetPolicyExemptApps_baseOnly,testGetPolicyExemptApps_vendorOnly,testGetPolicyExemptApps_baseAndVendor

Bug: 181238156
Fixes: 182373142

Change-Id: I990c53d1a2b9a6e15ad9fcae310badb7aae834d1
2021-03-11 15:20:13 -08:00
Jeff DeCew
4018c5075a Hide app name from collapsed CallStyle.
Also some small fixes:
* Bind the title in the CallStyle builder.
* Remove an unnecessary findViewById.
* Rename a method overload for clarity.

Bug: 179178086
Test: manual inspection
Change-Id: I6e96864c17718b9729b108e4db82534aad33675f
2021-03-11 14:53:07 -05:00
Jeff DeCew
12fa627bfb CallStyle now supports contextual actions (e.g. smart replies)
* This required that call style also has a collapsed state which has no actions.  Removing actions from the collapsed state resolves a bunch of bugs that were being introduced.  There's just too much of SystemUI that assumes collapsed notifications don't have actions to fix this right now.
* To make the collapsed state match stylistically, I also had to remove the progress bar from that state for vertical space reasons.

Bug: 179178086
Test: atest NotificationTemplateTests
Test: visual inspection ; expand/collapse
Change-Id: I6bc865d5fca8459ffaa6031d220d8bfa08545d89
2021-03-11 14:53:07 -05:00
TreeHugger Robot
e8eaea0ef2 Merge "Documentation fix: Permission grant opt-out" into sc-dev 2021-03-11 13:26:20 +00:00
Riddle Hsu
592bdb62b8 Merge "Do not report config change to activity if nothing changed" into sc-dev 2021-03-11 12:25:03 +00:00
Kholoud Mohamed
5c88989203 Merge "Allow forceUpdateUserSetupComplete on user builds" into sc-dev 2021-03-11 11:31:42 +00:00