Commit Graph

640958 Commits

Author SHA1 Message Date
Sunny Goyal
b04efdff70 Merge "Removing generalization from OneHandledAnimationController" into sc-dev 2021-05-11 16:20:44 +00:00
Ady Abraham
a3139a4011 Enable preferredDisplayModeId for frame rate override
Route preferredDisplayModeId vote to SurfaceFlinger using the
setFrameRate API to frame rate override to be enabled for applications
that vote with preferredDisplayModeId.

Bug: 183225713
Test: atest RefreshRatePolicyTest
Test: atest DisplayModeDirectorTest
Test: atest FrameRateSelectionPriorityTests
Test: atest DisplayTest
Test: Launch an app that sets preferredDisplayModeId and observe
refresh rate

Change-Id: I0f9110adc83eb1c7c994440e6b40f3e1036176e6
2021-05-11 16:19:15 +00:00
Treehugger Robot
56ba9447cf Merge changes I87740397,I0cc4538b,Iaceb2b7c
* changes:
  Wait for BOOT_COMPLETE event before scheduling the bootDexoptJob
  Use BatteryManagerInternal to determine low battery.
  BackgroundDexOptService: defer post-boot job further
2021-05-11 16:18:00 +00:00
Treehugger Robot
43927fdefc Merge "Fix the path of boot image profile and preloaded classes for frameworks." am: 0e52d9c6f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698770

Change-Id: If22a276324bb680cdcbd5a2f05fac1d65047f76d
2021-05-11 16:16:55 +00:00
Collin Fijalkovich
919e8c1ba3 Merge "Compile libhwui.so with 2MB section alignment." 2021-05-11 16:13:58 +00:00
David Su
9e29893e5a Merge "Emphasize possibility of multiple networks with same transport" am: f9c9dba0fb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1620459

Change-Id: I5ce97c2040817b68c6b70640db22d5d04bb304f3
2021-05-11 16:10:55 +00:00
Vova Sharaienko
9ebad8e1ce Merge "Stats: Deprecate IStats HIDL interface for the Android S" into sc-dev 2021-05-11 16:04:36 +00:00
TreeHugger Robot
b0bcca6c78 Merge "Restrict appops when location is off" into sc-dev 2021-05-11 15:58:06 +00:00
Treehugger Robot
0e52d9c6f9 Merge "Fix the path of boot image profile and preloaded classes for frameworks." 2021-05-11 15:56:46 +00:00
Chen Xu
9c4f884ed0 Merge "missing permission check to access multi_sim_data_call settings" into sc-dev 2021-05-11 15:56:20 +00:00
Pavel Grafov
9eb3f1e986 Merge "Clean device-wide policies on COPE PO relinquish" into sc-dev 2021-05-11 15:55:54 +00:00
Makoto Onuki
987f904072 Merge "Implement requestForegroundServiceExemption, without enabling it" into sc-dev 2021-05-11 15:55:14 +00:00
Siim Sammul
fff7124d3a Store the collected binder latency samples in buckets to form a
histogram. Add the ability to generate histograms with varying bucket
counts and sizes.

This is a direct cherrypick with no changes

Bug: 179999191
Test: unit tests

Change-Id: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
Merged-In: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
(cherry picked from commit dcd3dc69a1)
2021-05-11 15:52:04 +00:00
David Su
f9c9dba0fb Merge "Emphasize possibility of multiple networks with same transport" 2021-05-11 15:51:28 +00:00
Jordan Demeulenaere
47c51fe80e Enable {ANTI_ALIAS,DITHER}_FLAG by default (1/2)
Test: atest android.graphics.cts.PaintTest
Bug: 186644628
Change-Id: I5d5d03e430af380e23016c6deba5eca46067a22b
2021-05-11 17:40:08 +02:00
Ryan Mitchell
2ec8e1b71f Add <staging-public-group-final> to aapt2 (2/2)
Fixes BinaryResourceParser loading of alias chunk and makes changes
that did not get committed in 2fedba9a32.

Bug: 183411356
Test: aapt2_test
Change-Id: Ieff9166100019f38ddcfe900014709b15db24e43
2021-05-11 08:28:00 -07:00
Beverly Tai
3ee3029e96 Merge "Enable start haptic for udfps by default" into sc-dev 2021-05-11 15:25:37 +00:00
Nate Myren
0945ce8e5b Merge "Add concept of "paused" appOp (started, but MODE_IGNORED)" into sc-dev 2021-05-11 15:16:00 +00:00
Jordan Demeulenaere
4acb22437c Scale splash screen icon by 1.2 instead of 1.3
Bug: 186847483
Test: Open an app
Change-Id: I889df24a8a39bafa3c4c5eec6b14536a7cc804a2
2021-05-11 17:15:54 +02:00
Ryan Mitchell
15bb7d1379 Merge "Add <staging-public-group-final> to aapt2" into sc-dev 2021-05-11 15:05:02 +00:00
TreeHugger Robot
d45c3c8ddc [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 67814f82b9 -s ours am: a9eb5e04d4 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14494035

Change-Id: I158da80095527b4bc52a5a66787d5dedbf0f6d04
2021-05-11 14:58:53 +00:00
Kholoud Mohamed
80ed0ced6c Merge "Allow forceUpdateUserSetupComplete for non system users" into sc-dev 2021-05-11 14:50:38 +00:00
TreeHugger Robot
50d6c5237b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: a808f08c5f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14494034

Change-Id: I1cccd9ab416c208d7da2b573aead5ec2c4d691f6
2021-05-11 14:39:39 +00:00
TreeHugger Robot
a9eb5e04d4 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 67814f82b9 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14494035

Change-Id: Iaa58132bf87600deeab4faf337402b262608ede3
2021-05-11 14:38:44 +00:00
Orion Hodson
a2b37706b5 Merge "Move to renamed NDK symbol AFileDescriptor_getFd" into sc-dev 2021-05-11 14:31:42 +00:00
Pavel Grafov
ea96577017 Clean device-wide policies on COPE PO relinquish
Policies that should be now cleaned up properly:
* setRequiredStrongAuthTimeout
* setScreenCaptureDisabled
* setPersonalAppsSuspended
* setFactoryResetProtectionPolicy
* setSecurityLoggingEnabled
* setConfiguredNetworksLockdownState
* setSystemUpdatePolicy

The cleanup is performed upon receiving ACTION_USER_REMOVED
after policy data is removed.

Bug: 162815601
Test: atest DevicePolicyManagerTest#testWipeDataManagedProfileOnOrganizationOwnedDevice
Test: atest OrgOwnedProfileOwnerTest#testCanRelinquishControlOverDevice
Change-Id: I23434c6e103a558304b6b83b86f9ea2cca5ed36c
2021-05-11 15:29:40 +01:00
TreeHugger Robot
951e3ea011 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-11 14:27:32 +00:00
TreeHugger Robot
a808f08c5f Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-11 14:27:22 +00:00
TreeHugger Robot
67814f82b9 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-05-11 14:22:18 +00:00
TreeHugger Robot
2a7c449484 Merge "Fix race condition in DiscreteRegistry test set up." into sc-dev 2021-05-11 14:20:22 +00:00
Remi NGUYEN VAN
f053615d2a Use jniThrowErrnoException from JNIHelp
Use the jniThrowErrnoException that is available in JNIHelp, instead of
reimplementing in NetworkUtils.

Bug: 179229316
Test: device boots and has connectivity
Merged-In: I257a9d55ce1f5a7c588e209b4a89d3e7a3e09994

Change-Id: I257a9d55ce1f5a7c588e209b4a89d3e7a3e09994
2021-05-11 14:18:27 +00:00
Nathalie Le Clair
30d28b1cbf Set config values explicitely in unit tests
Fixes: 187275931
Test: atest
Change-Id: Ie8a1707b760a157181100dc6a49b4a70ea5f096f
2021-05-11 15:55:38 +02:00
Lorenzo Colitti
327cff1969 Immediately redact VcnTransportInfo.
Redaction of NetworkCapabilities is changing from redacting at
parcel time to redacting immediately when makeCopy() is called.
Update VcnTransportInfo redaction accordingly.

Bug: 183938194
Test: atest VcnTransportInfoTest
Change-Id: I0c9406f426b66fd36b47d11799955def531c16ba
2021-05-11 22:47:34 +09:00
Lorenzo Colitti
58250b2032 Do not automatically redact TransportInfo objects.
Currently, NetworkCapabilities always redacts the TransportInfo
objects it contains whenever a defensive copy is made. This makes
it impossible to make a defensive copy on a TransportInfo
parcelled from another process without redacting it.

Stop redacting by default; instead rely on ConnectivityService
explicitly calling NetworkCapabilities' redacting constructor
when it returns a NetworkCapabilities object to an app via a
callback or synchronous call. This is currently done by
- createWithLocationInfoSanitizedIfNecessaryWhenParceled, which
  is called from callCallbackForRequest, getNetworkCapabilities,
  and getDefaultNetworkCapabilitiesForUser.
- getNetworkCapabilitiesWithoutUids, which is used when sending
  ConnectivityDiagnosticsManager callbacks. In this method,
  unconditionally redact all information, which is what the code
  did previously due to the default redaction setting for empty
  NetworkCapabilities objects being REDACT_ALL.

Bug: 183938194
Test: atest NetworkCapabilitiesTest
Test: atest FrameworksNetTests CtsNetTestCases HostsideVpnTests
Change-Id: I3108ee94cb0930958e071ba678c3554525b0db82
2021-05-11 22:47:03 +09:00
ryanlwlin
0b0634c4a9 Fix hard dragging the window magnification from the bottom of the screen
The window magnifier is hard to drag when it is at the bottom
of the screen. This is due to that launcher is detecting
swipe-up system gesture.

To fix it, we set the system ui state flag to true when
the window is overlapped with the gesture detection area.
We also update the gesture dection area via OnApplyWindowInsetsListener
Once the area is changed, we will update the flag again if necessary.

In the testing part, we use real WindowManager to verify the
functionality.

Bug: 179648683
Test: atest com.android.systemui.accessibility
      manually test and use the following command to check the flag
      adb shell dumpsys activity service TouchInteractionService
Change-Id: Ia09bd26b3eb164790614c173594d997d45f4ecdc
2021-05-11 21:29:27 +08:00
Soonil Nagarkar
8b56ce99da Restrict appops when location is off
Bug: 187421886
Test: manual
Change-Id: Ib25e299b395ba99aa7c7c33f5a9beb49df3aa3da
2021-05-11 06:21:25 -07:00
Michal Olech
d261ad7bfe Merge "[CEC Configuration] Modify FakeHdmiCecConfig to not persist changes" into sc-dev 2021-05-11 13:12:35 +00:00
Remi NGUYEN VAN
4b2a192b5a Move NetworkUtils JNI out of core/jni
Keep the utilities included via a library, but move them out of
core/jni, and prepare a library to package them together with
framework-connectivity.

Also remove unnecessary dependencies in framework-connectivity.

Bug: 171540887
Test: device boots and has connectivity

Merged-In: I0b55dfe92f3cb6e848d79ac7953756f39aaa2597

Change-Id: I0b55dfe92f3cb6e848d79ac7953756f39aaa2597
2021-05-11 13:02:39 +00:00
Remi NGUYEN VAN
5bc1623e50 Build framework-connectivity using module_current
framework-connectivity needs to build only against stable APIs.

Bug: 171540887
Test: m framework-connectivity.impl
Merged-In: I2d51d37d067bf6fe86e4dedf05855a2dd67ed57c

Change-Id: I2d51d37d067bf6fe86e4dedf05855a2dd67ed57c
2021-05-11 13:00:42 +00:00
Anton Hansson
369bb74a97 Merge "Apply the same filtering for docstubs and jarstubs" am: 46dff8e09f am: 8f1928f4ca am: 9e8186aaaf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700027

Change-Id: I83b173302f75d5536e47fcbb221fe806c691536a
2021-05-11 12:59:34 +00:00
Riddle Hsu
dc4915de60 Use rotation animation for visible wallpaper rotation
Although the activity may show in next rotation directly,
the wallpaper was shown in different orientation. If there
is no animation to cover the change, there will be obvious
jump cut that looks flickering.

Bug: 187149609
Test: 1. Enable launcher rotation and auto rotation
      2. Put device in landscape
      3. Lock and unlock screen
      There will be a rotation animation.
Change-Id: I5048d0c7597cdc5c9a84fa4a3b7d6feea80892ee
2021-05-11 20:56:12 +08:00
Stanley Wang
929b1490f9 Create preference widget to support Lottie illustrations.
Fixes: 186409607
Test: run robo test and see the UI
Change-Id: Ie78e6585dfe0aefeb6ffa50db3935e59010648f5
2021-05-11 20:51:18 +08:00
TreeHugger Robot
d85097d1ad Merge "Add android: to text constant to prevent namespace conflicts." into sc-dev 2021-05-11 12:50:54 +00:00
Arc Wang
9a4722e022 Add SettingsSpinnerPreference#setClickable
This change add the API for Storage Settings to set
the spinner not clickablewhen there is only 1 volume.

Bug: 187801712
Test: manual
      Click the spinner when there is only default volume.
      Click the spinner when there is USB drive connected.
Change-Id: I1e6d46c9772b641678085d41d4905022e893acc4
2021-05-11 20:36:55 +08:00
Wesley Wang
f162726eb3 Merge "Update battery not charging state string" into sc-dev 2021-05-11 12:35:10 +00:00
Wesley Wang
76d6e8404f Merge "Update UsageProgressBarPref layout" into sc-dev 2021-05-11 12:33:54 +00:00
Wesley.CW Wang
157a0c5dbc Update battery not charging state string
Bug: 185448191
Bug: 187767337
Test: make SettingsRoboTests
Change-Id: If29aa20bd93467c46b0bd2ccbdd1984fc6c1afd8
2021-05-11 12:26:00 +00:00
Anton Hansson
9e8186aaaf Merge "Apply the same filtering for docstubs and jarstubs" am: 46dff8e09f am: 8f1928f4ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700027

Change-Id: I677802ea22a342a9fae1e50e1f9ad91593e1251f
2021-05-11 12:23:54 +00:00
Ming-Shin Lu
edfb5c0acc Merge "Fix Keyboard covered input box after leaving split screen" into sc-dev 2021-05-11 12:23:16 +00:00
Jeff DeCew
0cd6fb1250 Merge "Increase the max height of Heads Up notifications." into sc-dev 2021-05-11 12:20:20 +00:00