Commit Graph

640958 Commits

Author SHA1 Message Date
TreeHugger Robot
2db08cea7e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 0d54de1b3c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I901ab68bd09bd075ebcbeffe2a037c7110ed80d7
2021-05-03 16:03:16 +00:00
Makoto Onuki
fb5f63e515 Merge "Fix field name" into sc-dev 2021-05-03 16:02:37 +00:00
TreeHugger Robot
fe4a41f16b Merge "Fix SurfaceControl.setDisplayBrightness error msg" into sc-dev 2021-05-03 16:02:07 +00:00
TreeHugger Robot
7b0989f35d Merge "Dismiss magnifier correctly in concurrent editing scenario" into sc-dev 2021-05-03 15:44:37 +00:00
Jerry Chang
52e3d9a45e Merge "Make sure tasks below home task is invisible while in split" into sc-dev 2021-05-03 15:43:11 +00:00
TreeHugger Robot
0d54de1b3c Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-03 15:41:51 +00:00
Jerry Chang
fedf86ed49 Add a flag to determin whether to support legacy split
Bug: 187041611
Test: launch with adjacent flag won't trigger stage split
Change-Id: Iefaad20636dda88caa6988802d1b7640b5077e4e
2021-05-03 23:36:45 +08:00
Leon Scroggins III
6116e5c0d8 AImageDecoder: return BAD_PARAMETER on null info
Bug: 186656488
Test: I4dc406e85709dda14af8b414e2da3d39bb07643b
Change-Id: Ibd7c1c3d1319818e86ac29bdc231e0e05cec2132
2021-05-03 11:34:34 -04:00
TreeHugger Robot
1d92fd8123 Merge "Fix nullability of the group name parameter in queryPermissionsByGroup()." into sc-dev 2021-05-03 15:12:34 +00:00
Winson Chung
44de40fda2 Merge "Revert "Fix a couple issues with nav bar & rotation button"" into sc-dev 2021-05-03 15:02:07 +00:00
TreeHugger Robot
401c03c2b4 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: aa55925a49 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4ee653e412aece99d581bfb2b3e2cfd63925cdbc
2021-05-03 15:01:35 +00:00
Alison Cichowlas
0842c93211 Revert "Fix a couple issues with nav bar & rotation button"
This reverts commit 90d8bcf8f0.

Reason for revert: Causes frequent flakes in presubmit

Bug: 187033888

Change-Id: I5a64f917e78b48f72552d0d8f99caee56f912cd5
2021-05-03 15:00:37 +00:00
TreeHugger Robot
aa55925a49 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-03 14:46:56 +00:00
Junyu Lai
94592d369e [automerger skipped] Merge changes I6c486303,I073934f3,I6ee66149,Ibbb4325c into mainline-prod am: d05921c661 -s ours
am skip reason: Merged-In I6c4863030c36328db571294fd12a40e59864def5 with SHA-1 ff05ee0fdb is already in history

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

Change-Id: If3ff5c4a714f3c4947a158a2b4e921c8bbc15eee
2021-05-03 14:38:47 +00:00
Bill Yi
c73048d6ae [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: beb3bd4255 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I64a3cf2f65a790733f728d828ae3cc3cdade8e97
2021-05-03 14:38:00 +00:00
Jordan Demeulenaere
4a381a0856 Merge "Polish status bar launch animations." into sc-dev 2021-05-03 14:33:59 +00:00
Junyu Lai
d05921c661 Merge changes I6c486303,I073934f3,I6ee66149,Ibbb4325c into mainline-prod
* changes:
  [SP29] Send interface warning bytes to NetworkStatsProvider
  [SP29.1] Simplify logic of calculating and applying data limit
  [SP28] Add API for set data warning
  NPMS lock improvement.
2021-05-03 14:21:37 +00:00
Riddle Hsu
0cadae1c71 Avoid intermediate orientation change
The onDescendantOrientationChanged in Task was used for reporting
requested orientation takes affect after display windowing mode
is changed. But when calling WMS#setWindowingMode, it will call
DC#reconfigureDisplayLocked that also updates orientation from
display so the task orientation can still propagate to display.

So just remove the invocation of onDescendantOrientationChanged
from task's config change. That prevents from reporting
intermediate orientation change when re-parenting multiple tasks
from multi-window to fullscreen.

Bug: 186657559
Test: TaskTests#testTaskOrientationOnDisplayWindowingModeChange
Change-Id: Ie722a4384829c2dab4ee4c35de6ffbbb4a0e4655
2021-05-03 21:54:13 +08:00
Jorim Jaggi
9b0767564e Correctly start tracing only where we are counting frames
Test: Take  trace, do CUJ
Bug: 185902609
Change-Id: I17db03d290d0c1ab82b7969888f1d7c06575b5d0
2021-05-03 15:51:22 +02:00
Jorim Jaggi
9516605d63 Mark first frames in metrics properly
Such that we only set the flag in case window visibility actually
changes. There are a lot of other cases where we need to do a
window relayout which can lead to visible jank.

Test: FrameMetricsListenerTest, manual
Bug: 185902609
Change-Id: Ia09ce640f3a89bf9dd4ff0f4e4469e88a513709a
2021-05-03 15:49:25 +02:00
TreeHugger Robot
3c865b129a Merge "Remove dividers of TopIntroPreference" into sc-dev 2021-05-03 13:06:21 +00:00
Shawn Lin
1bfc000a82 Merge "Move no cutout overlay packages to frameworks/base" into sc-dev 2021-05-03 12:28:30 +00:00
Austin Wang
56bdf23de8 Add dock_info_bottom_area_overlay
Add and overlay near keyguard_bottom_are to host the promo animation.

Bug: 182220090
Bug: 178998477
Test: atest SystemUITests:KeyguardBottomAreaTest
Test: atestSystemUITests:DockIndicationControllerTest
Change-Id: I93a3ddee3f4dc3273ba446dab6f9df49c262e955
2021-05-03 10:20:13 +00:00
Bill Lin
214bff101f Merge "Refactor OHM to use (float)offset for translating windows" into sc-dev 2021-05-03 09:49:20 +00:00
SongFerngWang
1e3717ef0d Add CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED
Bug: 185925786
Test: atest NetworkTypeControllerTest
Change-Id: I25f1b05c505ec6631efa742c3da4bea5e6cdd28a
2021-05-03 16:48:03 +08:00
wilsonshih
3221600d7e Support enable default splash screen reveal aninatmion
- Add a temp flag persist.debug.enable_reveal_animation so user can
enable reveal animation.
- Remove icon shift animation.
- For shift up animation, use AnimationAdapter to capture the surface
control and pass to Shell, then cancel the animation when
WindowState#removeIfPossible for starting window.
- Fix the flicker test fail issue caused from shift up animation, the
surface control should be release after the last frame was commit.
- Use SyncRtSurfaceTransactionApplier to synchronize the shift-up
animation, and use vsyncId to ensure the transaction doesn't applyied
too early.
- Do not play reveal animation for empty splash screen.

Test: atest SplashscreenTests StartingSurfaceDrawerTests
Bug: 183004107
Bug: 182815506
Bug: 184830058
Change-Id: I4fc8456633b3f4ecd69b168e0222915945210426
2021-05-03 16:20:09 +08:00
Bill Lin
0a117d8fca Refine dump info of One Handed Mode components
1) "ComponentName" + "States:" Sometimes confuse developers
   (e.g: OneHandedControllerStates)
2) The indent of OneHandedSettingsUtil is incorrect

Test: adb shell dumpsys activity service com.android.systemui
Test: make
Bug: 187014022
Change-Id: Icca01221986efdf9a1f9975efa30e485c5be36b0
2021-05-03 15:30:56 +08:00
Eran Messeri
84b3b6fb99 Merge "Document access to device identifiers on managed devices" into sc-dev 2021-05-03 07:27:22 +00:00
Bill Lin
eb9b719bc5 3/ Listen ONE_HANDED_MODE_ACTIVATED for A11y shortcut action
- Observe ONE_HANDED_MODE_ACTIVATED secure settings key
- Skip action when OneHandedState is in transition
  1. STATE_ENTERING
  2. STATE_EXITING
- Skip action if current OneHandedState = request activate
  1. STATE NONE -> Shortcut request ACTIVATED : StartOneHanded
  2. STATE_ACTIVE -> Shortcut request non ACTIVATED : StopOneHanded
  3. STATE_NONE -> Shortcut request non ACTIVATED : SKip
  4. STATE_ACTIVE -> Shortcut request ACTIVATED : Skip
- Controller will update latest state to secure setting
  ONE_HANDED_MODE_ACTIVATED either trigger by gesture or shortcut

Test: atest WMShellUnitTests
Test: enable shortcut and click
Bug: 182425480
Change-Id: I03bd2679a5a08801efc9868148adfddef87171f4
2021-05-03 15:04:24 +08:00
TreeHugger Robot
4a247f9186 Merge "Add the javadoc for HotwordDetectionService" into sc-dev 2021-05-03 06:40:04 +00:00
Jackal Guo
0a98d27b04 Migrate the usage of sCompatibilityModeEnabled
PackageManagerService still set global compatibility mode to the
Deprecated PackageParser. We should migrate the usage to the new
ParingPackageUtils.

Also replacing the usage of PackageParser#generateApplicationInfo
in PackageManagerService since we no longer set the compatibility
mode to PackageParser.

Bug: 186592266
Bug: 174723245
Test: atest -p core/java/android/content/pm \
        core/java/com/android/internal/content \
	services/core/java/com/android/server/pm \
	services/tests/servicestests/src/com/android/server/pm
Change-Id: I3f377273e06bd4adbd9311dd3bdc584af0028c77
2021-05-03 14:30:52 +08:00
Chris Li
fa7a40abae Determine whether to support activities in multi window (4/n)
Add shell command to override the multi window config. This can be used
in manual testing and flicker tests.

Bug: 176061101
Test: manual
Change-Id: I8bb9f3975e245a6eab0034aa5f6cc662f507ab4e
2021-05-02 22:07:40 -07:00
Bill Lin
0fd7baaf31 OneHandedUiEventLoggerTest sometimes flaky
Check : go/wm-tests

Ignore the unit tests until the better approach available

Test: atest WMShellUnitTests
Bug: 184813408
Change-Id: I3139afa58ed15c535a55822504c3331771f1bfdf
2021-05-03 12:45:33 +08:00
Sudheer Shanka
b01bfadaa1 Include uid in batterystats logs.
Bug: 182272121
Test: n/a
Change-Id: Ic5cbc02b4d72c7dd5b916e9eb1954438cc81492f
2021-05-02 21:33:05 -07:00
Bonian Chen
7fea8cef4e Merge "Revert "Enable remote animation for keygaurd going away."" into sc-dev 2021-05-03 04:30:35 +00:00
Junyu Lai
7c003ae011 Merge "Add doc to getNetworkCapabilities" am: c4520f1398 am: 1e15e9693a am: 488b6ef04a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690668

Change-Id: I0c41878350ffe4015fe9e6034651f50366503dfe
2021-05-03 04:06:34 +00:00
Bill Lin
e6a20cb2ba 2/ Implement Shortcut for One Handed mode feature
- Define ONE_HANDED_COMPONENT_NAME
- Define one handed mode string
- Add one handed mode temp drawable
- Add ToggleAllowListingFeatureTarget for OHM
- Add ONE_HANDED_COMPONEMENT_NAME to featuresMap

Test: manual enable shortcut of one handed mode
Bug: 182425480

Change-Id: I5993cd8dbd3925efeebb9b75bb10d423c9a02601
2021-05-03 11:57:19 +08:00
Junyu Lai
488b6ef04a Merge "Add doc to getNetworkCapabilities" am: c4520f1398 am: 1e15e9693a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690668

Change-Id: Iab7908bbeb3fd58599d7702e44450a4224a78f5b
2021-05-03 03:50:18 +00:00
lpeter
8fbe605e1a Add the javadoc for HotwordDetectionService
Bug: 180945857
Test: Build
Change-Id: I42bb01949ec019da80077eeaf96c63b2c94f70a5
2021-05-03 11:48:37 +08:00
Junyu Lai
1e15e9693a Merge "Add doc to getNetworkCapabilities" am: c4520f1398
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690668

Change-Id: I81c764ca04e3a300272ba18faa35d9fb0ecb54b1
2021-05-03 03:34:22 +00:00
Rhed Jao
b5716e698d Merge "Clean up uses-native-library targetSdkVersion check" into sc-dev 2021-05-03 03:27:31 +00:00
Junyu Lai
c4520f1398 Merge "Add doc to getNetworkCapabilities" 2021-05-03 03:16:24 +00:00
Jerry Chang
5663de7849 Merge "Make sure to reorder side stage above main stage to prevent flicker" into sc-dev 2021-05-03 02:36:14 +00:00
Santos Cordon
3ed02ffeb1 Merge "Fix crash on device without nits-backlight mapping" into sc-dev 2021-05-02 19:29:05 +00:00
Baligh Uddin
7b98fca2f0 Migrate apex/permission to packages/modules/Permission
BUG: 167963264
Test: TH
Merged-In: I31f2b4512164bb043d78d503f4f38accedc49f8d
Change-Id: I2a54a479c9462473d3c9d30da7d336e5a7c72131
2021-05-02 14:02:05 +00:00
Baligh Uddin
3d533ae271 Migrate apex/permission to packages/modules/Permission
BUG: 167963264
Test: TH
Merged-In: I38139a95761f70ad6a523888cdda2076ce65aa30
Change-Id: Id5e75ffb10d4a3c4ede300512d4d696b604e2e47
2021-05-02 13:58:45 +00:00
TreeHugger Robot
abc738e1c0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-02 12:27:39 +00:00
TreeHugger Robot
617ba8186d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-02 12:22:03 +00:00
TreeHugger Robot
d522072f2e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: f357945196 -s ours am: 8f5ae02ce1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I203f7ac4e039e8f39b2bbf993f4b2809d9d343b7
2021-05-02 11:19:10 +00:00
TreeHugger Robot
332ad74353 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: f63c0ad801 -s ours am: 9af600c09a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0c344b7f1ee1b3276172c7fb72cc43f70ae1fb34
2021-05-02 11:18:57 +00:00