Commit Graph

771760 Commits

Author SHA1 Message Date
Christian Göllner
8ac996fd0d Merge "Create WM letterbox background color API" into tm-qpr-dev 2022-07-29 14:48:13 +00:00
Nikita Ioffe
77f15d3194 Merge "Fix the visibility check for sdk_sandbox processes" into tm-dev am: f1ac54d3a0 am: f3bbee232f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19416411

Change-Id: I550d2cb8264c08bd8f3f9a7312f919c7ee3ba1ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 14:03:16 +00:00
Nikita Ioffe
f3bbee232f Merge "Fix the visibility check for sdk_sandbox processes" into tm-dev am: f1ac54d3a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19416411

Change-Id: Ied0052bed5997a328613c9e320b2509e24928730
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 13:48:09 +00:00
Nikita Ioffe
f1ac54d3a0 Merge "Fix the visibility check for sdk_sandbox processes" into tm-dev 2022-07-29 13:31:57 +00:00
Wei Sheng Shih
334a4be176 Merge "Correct SHOW_WALLPAPER conflicts the definition of isTranslucent" into tm-qpr-dev 2022-07-29 12:44:05 +00:00
Vali Calinescu
1d45c18296 Create WM letterbox background color API
Create a WM API that gives access to the letterbox background color and
checks for the multi-colored case (e.g. blurred background) for status
bar treatment

Fix: 238637307
Test: atest WmTests:WindowManagerServiceTests
Change-Id: I644c8fa36f20f4d11414a998396bb066f1a36a28
2022-07-29 12:18:30 +00:00
Islam Elbanna
a67ac6d78b Merge "RESTRICT AUTOMERGE Since these are profiles for T release only." into tm-qpr-dev 2022-07-29 12:01:55 +00:00
art-benchmark-service
803fd5e8a5 RESTRICT AUTOMERGE
Since these are profiles for T release only.

Update boot image and system server profiles [M10C10P80S0]

= Perf stats =
(lower is better)

Startup time, memory and boot time are improving at the cost of a slight increase in code size, which could be an acceptable cost.

Startup: -1.20%%
PSS: -0.43%
RSS: 0.16%
Privat Dirty: -0.23%
Boot time: -13.09%
Code size: 1.95%

=Generation Strategy=

method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.8
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0

=Profile stats=

Data info:
- total aggregations: 14464
- number of (device types, builds): 396

File boot-image-profile.txt
  - hot methods: 1867 added, 1852 removed
  - methods: 1867 added, 1852 removed
  - classes: 36 added, 0 removed
  - totals now: 22336 hot methods, 22336 methods, 13658 classes
  - totals before: 22321 hot methods, 22321 methods, 13622 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1772, 1757, 28, 0, 20771, 9484
    com.android, 95, 95, 8, 0, 1469, 3104
    android.view, 367, 363, 7, 0, 3378, 949
    android.hardware, 16, 17, 0, 0, 465, 807
    android.animation, 54, 45, 1, 0, 393, 73
    android.app, 141, 141, 6, 0, 2908, 1030
    android.content, 193, 193, 3, 0, 1854, 564
    android.graphics, 210, 209, 0, 0, 1971, 334
    android.icu, 162, 162, 0, 0, 2033, 1472
    android.media, 12, 12, 0, 0, 796, 576
    android.net, 32, 32, 0, 0, 254, 219
    android.widget, 139, 139, 2, 0, 1396, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 7 added, 3 removed
  - totals now: 0 hot methods, 0 methods, 13176 classes
  - totals before: 0 hot methods, 0 methods, 13172 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 1, 3, 0, 9166
    android.app, 0, 0, 0, 2, 0, 988
    android.icu, 0, 0, 1, 0, 0, 1471

File boot-image-profile.txt
  - hot methods: 2682 added, 2667 removed
  - methods: 2682 added, 2667 removed
  - classes: 77 added, 0 removed
  - totals now: 32275 hot methods, 32275 methods, 16803 classes
  - totals before: 32260 hot methods, 32260 methods, 16726 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1773, 1758, 35, 0, 20834, 9515
    com.android, 136, 136, 12, 0, 2479, 3526
    java, 640, 640, 11, 0, 7034, 2042
    android.view, 367, 363, 7, 0, 3378, 949
    android.hardware, 16, 17, 0, 0, 465, 807
    android.animation, 54, 45, 1, 0, 393, 73
    android.app, 141, 141, 10, 0, 2908, 1030
    android.content, 193, 193, 3, 0, 1854, 564
    android.graphics, 210, 209, 0, 0, 1971, 334
    android.icu, 162, 162, 0, 0, 2033, 1472
    android.media, 12, 12, 3, 0, 796, 576
    android.net, 32, 32, 0, 0, 254, 219
    android.widget, 139, 139, 2, 0, 1396, 381

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 11 added, 2 removed
  - totals now: 0 hot methods, 0 methods, 16246 classes
  - totals before: 0 hot methods, 0 methods, 16237 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 3, 1, 0, 9197
    java, 0, 0, 0, 1, 0, 2011
    android.icu, 0, 0, 1, 0, 0, 1471

File art-profile
  - hot methods: 5252 added, 1620 removed
  - methods: 3641 added, 1707 removed
  - classes: 373 added, 1 removed
  - totals now: 36261 hot methods, 62897 methods, 5389 classes
  - totals before: 32629 hot methods, 60963 methods, 5017 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 50, 17, 4, 0, 451, 148
    com.android, 5199, 1603, 361, 1, 35794, 5149
    android.hardware, 35, 15, 2, 0, 355, 104
    android.content, 0, 0, 0, 0, 1, 5
    android.net, 14, 1, 2, 0, 74, 27

InternalReferenceRawProfileId: 10558
InternalReferenceCandidateProfileId: 10566

Test: build & benchmark

Change-Id: I70e504ecad27ec4f213ce71bcef3c44ef0f57e3a
2022-07-29 10:07:47 +00:00
Simon MacMullen
c7cbe1691d Merge "Trace Doze states." into tm-qpr-dev 2022-07-29 09:19:25 +00:00
Tiger Huang
93a238d15d Merge "Send size-compat scale to the client" into tm-qpr-dev 2022-07-29 08:56:14 +00:00
SongFerng Wang
e2d4dcf0e5 Merge "[LeBroadcast] Fix the NullPointerException for launching dialog" into tm-qpr-dev 2022-07-29 06:18:29 +00:00
Arthur Hung
f52b49886c Merge "Cancel back invoke when window focus has lost" into tm-qpr-dev 2022-07-29 01:18:09 +00:00
TreeHugger Robot
a3c10df0b9 Merge "Allow remote inset transient bar configuration" into tm-qpr-dev 2022-07-29 01:17:04 +00:00
TreeHugger Robot
8e045dfc38 Merge "Play in-window animations during swipe to unlock to launcher." into tm-qpr-dev 2022-07-28 23:24:52 +00:00
Winson Chung
c047fa42ee Merge "Add running apps icons to taskbar for desktop environment." into tm-qpr-dev 2022-07-28 22:14:41 +00:00
John Wu
5cfe9c01c2 Merge "Ignore sharedUserId when package already left shared UID" into tm-dev am: bb2e856381 am: 578aa3e8c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19295566

Change-Id: I604d149a1d01cc2fcee569b666e4d7489662a893
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 22:09:36 +00:00
John Wu
578aa3e8c1 Merge "Ignore sharedUserId when package already left shared UID" into tm-dev am: bb2e856381
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19295566

Change-Id: I439b4ccf73455c6e9d918693db0488704d7a8627
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 21:52:06 +00:00
John Wu
bb2e856381 Merge "Ignore sharedUserId when package already left shared UID" into tm-dev 2022-07-28 21:33:38 +00:00
TreeHugger Robot
3f2c081a30 Merge "Add FreeformTaskTransitionHandler" into tm-qpr-dev 2022-07-28 19:50:15 +00:00
Nick Chameyev
5837f00409 Merge "[Partial Screensharing] Add a temporary entrypoint in SysUI screen recorder" into tm-qpr-dev 2022-07-28 18:20:03 +00:00
Merissa Tan
a729c5a26b Add running apps icons to taskbar for desktop environment.
This CL adds app icons for launched/running apps to the Launcher
taskbar hotseat. When the activity is closed, the app icon is
removed. The apps that are added to the taskbar on boot are never
removed.

Recall: http://recall/clips/ad6d3cfc-7358-4b37-846e-de843ad3000d

Bug: 183906774
Test: Launch an app and verify the app icon is added on the taskbar.
Close the app and verify the icon is removed from the taskbar.
Test: Switch navigation modes on the emulator and ensure that running
app icons are added to the taskbar after it is reinitialized.
Test: atest NexusLauncherTests:com.android.quickstep.RecentTasksListTest RecentTasksControllerTest

Change-Id: I2c839b6f35310d2d0fa98cc8d4a432eb1163861d
Merged-In: I2c839b6f35310d2d0fa98cc8d4a432eb1163861d
2022-07-28 17:50:29 +00:00
Tiger Huang
b4a6c4bf46 Merge "Let the client know the initial visibility of an InsetsSourceControl" into tm-qpr-dev 2022-07-28 17:37:13 +00:00
TreeHugger Robot
62f5d644ec Merge "Add home controls dream complication." into tm-qpr-dev 2022-07-28 16:45:37 +00:00
BK Choi
654f1a6b6d Merge "Fix a bug in UserSystemPackageInstaller#installWhitelistedSystemPackages" into tm-qpr-dev 2022-07-28 16:27:59 +00:00
TreeHugger Robot
3c7368d84c Merge changes from topic "b238333941" into tm-qpr-dev
* changes:
  Move NotificationShadeWindowControllerImpl to the shade package
  Move ShadeController to the shade package
2022-07-28 13:33:00 +00:00
Riddle Hsu
673639d955 Merge "Support display resize animation for shell transition" into tm-qpr-dev 2022-07-28 12:42:58 +00:00
Shawn Lin
9d4ac70ae2 Merge "Fix the NPE crash when device reboot with hide cutout set" into tm-qpr-dev 2022-07-28 12:18:48 +00:00
Louis Chang
eb92ed9ce2 Merge "No longer embedding activity if started-for-result across TFs" into tm-qpr-dev 2022-07-28 11:12:48 +00:00
TreeHugger Robot
0193d7c4d5 Merge "Ensure PIN text view stays on screen regardless of font size." into tm-qpr-dev 2022-07-28 10:47:56 +00:00
Riddle Hsu
0897c09ee7 Merge "Make a copy for draw transaction of local window" into tm-qpr-dev 2022-07-28 10:41:13 +00:00
Jeff DeCew
0a291f4f64 Merge "Clean up index assignments and comparators" into tm-qpr-dev 2022-07-28 10:35:17 +00:00
Riddle Hsu
a55a6425a4 Merge "Avoid potential recursion of surface placement" into tm-qpr-dev 2022-07-28 10:33:58 +00:00
Riddle Hsu
b14c95da7a Merge "Revert "Don't notify animation finished if no animation"" into tm-qpr-dev 2022-07-28 10:33:46 +00:00
Shawn Lin
2a4ddb9c14 Fix the NPE crash when device reboot with hide cutout set
1. Set initial values to the fields.
2. Also listen to onDisplayAdded for the case that only the
   onDisplayAdded is being called after reboot.

Bug: 220884764
Test: 1. Go Settings > System > Developer option > Display cutout
      2. Select Rednder apps below cutout area
      3. Reboot device
Change-Id: I35ba3dcebcded19373901b88f7bb208633587392
2022-07-28 09:25:21 +00:00
TreeHugger Robot
224306180e Merge "AudioDeviceVolumeManager: set volume per device" into tm-qpr-dev 2022-07-28 07:59:53 +00:00
Riddle Hsu
36c5f0c16c Revert "Don't notify animation finished if no animation"
This reverts commit 50355ae4e4.

Reason for revert: b/240517064
Bug: 239519375
Bug: 230588790
Bug: 240517064

Change-Id: I3601e3b19fffe1b050519b99b9dadd19a88308c5
2022-07-28 07:54:32 +00:00
Arthur Hung
e3476afe2a Cancel back invoke when window focus has lost
This reverts commit 0099ca8fab and provide
new mechanism.

The back invoke target could lost focus during back navigation gesture.
To prevent the non-focused window could still trigger back action cause
some unexpected behavior, this CL will listen the focus change of
current focused window and cancel back gesture when its focus has lost.

Bug: 238050065
Bug: 239792909
Test: atest BackNavigationControllerTests
Test: atest BackNavigationLegacyGestureTest BackNavigationLegacyTest
Test: atest BackNavigationTests
Test: atest WindowOnBackInvokedDispatcherTest BackNavigationTest
Test: atset BackAnimationControllerTest

Change-Id: I65eb19371020ce39977eeb2a2a80c7f08600aaec
2022-07-28 06:42:10 +00:00
Louis Chang
8be2f81086 Merge "Sending TaskFragmentInfo and operation type in #onTaskFragmentError" into tm-qpr-dev 2022-07-28 05:51:54 +00:00
Shaowei Shen
1d7f570eaa Merge "[Output Switcher] Fix LocalMediaManagerTest" into tm-qpr-dev 2022-07-28 02:16:59 +00:00
Louis Chang
ccb275fecb No longer embedding activity if started-for-result across TFs
Instead of sending RESULT_CANCELED to the caller activity, let's
making sure the caller activity can get the result by stop embedding
the result activity in another TaskFragment.

Bug: 236668365
Test: atest TaskFragmentTest
Change-Id: I2a1d3203cc64df6a3b2004529d067990ae17d1d5
2022-07-28 01:38:49 +00:00
Louis Chang
61bfe6e0dc Sending TaskFragmentInfo and operation type in #onTaskFragmentError
So, the TaskFragmentOrganizer can know what exact operation was
failed and perform error handles if needed.

Removes the pending appeared activities when starting/reparenting
activity into a TaskFragment was failed.

Deprecating the #onTaskFragmentError method with another overloaded
version, but still making sure the deprecated one is called in order
to make it compatible with Android T CTS.

Bug: 236668365
Bug: 233989810
Test: atest TaskFragmentTest
Test: atest TaskFragmentOrganizerControllerTest
Test: atest TaskFragmentOrganizerTest
Test: atest TaskFragmentOrganizerPolicyTest
Change-Id: Id328d037536d32b3acb9c424d36052b6dca8628a
Merged-In: Id328d037536d32b3acb9c424d36052b6dca8628a
2022-07-28 01:36:38 +00:00
Hawkwood Glazier
9158a60bce DefaultClockProvider implementation using AnimatableClockView
Bug: 229771520
Test: Automated
Change-Id: Iba6c81f8b469ef2d0a5bc38dd89454d75bfe8a43
(cherry picked from commit c742a9cb68)
Merged-In: Iba6c81f8b469ef2d0a5bc38dd89454d75bfe8a43
2022-07-28 00:51:26 +00:00
TreeHugger Robot
f6e087e3ee Merge "Move plugin definition to plugin library" into tm-qpr-dev 2022-07-28 00:49:57 +00:00
Songchun Fan
92a6541de9 Merge "Set scan flags correctly for preloaded applications" into tm-qpr-dev 2022-07-28 00:36:27 +00:00
TreeHugger Robot
33cd58dc9a Merge "Promote REMOVE_UNRANKED_NOTIFICATIONS to TeamFood" into tm-qpr-dev 2022-07-27 22:47:02 +00:00
Hawkwood Glazier
44fa7428e7 Move plugin definition to plugin library
Bug: 229771520
Test: No new tests, just a package change
Change-Id: I591c337f8f6062befdb2a08f61a1456c5af04be3
(cherry picked from commit 14f67f4d74)
Merged-In: I591c337f8f6062befdb2a08f61a1456c5af04be3
2022-07-27 22:24:31 +00:00
bkchoi
cb2ba4bd13 Fix a bug in UserSystemPackageInstaller#installWhitelistedSystemPackages
When userWhitelist was not null, it only mutated the packages in
userWhitelist, and other packages left untouched.
The correct behavior is to iterate all packages and install or
uninstall according to userWhitelist.

BYPASS_INCLUSIVE_LANGUAGE_REASON=existing code that cannot be changed

Fixes: 234877652

Test: atest UserSystemPackageInstallerTest
Test: Manual test with gcar_emu_x86_64 emulator

(cherry picked from commit 2fce090146)
Merged-In: I4325565d8acaeffd4aab5a4b6295d325edb738a9
Change-Id: I4325565d8acaeffd4aab5a4b6295d325edb738a9
2022-07-27 21:36:03 +00:00
Darrell Shi
0f7ec4e867 Add home controls dream complication.
This change adds a home controls chip on the dream overlay as a
complication. The chip shows when the user has devices in the home
device control panel (same as the home controls chip on keyguard).

Test: atest DreamHomeControlsComplicationTest
Test: test on device that the home controls chip on dreams is consistent
with that on the lockscreen
Bug: 239090040

Change-Id: Idc3dee1602a566ce7ee7f543588b6be2f12f0cb0
2022-07-27 20:49:59 +00:00
Neha Jain
bd614b00a0 Merge changes from topic "revert-19279477-UFVLVIEMJU" into tm-qpr-dev
* changes:
  Revert "Add an @Inject-able MobileSignalControllerFactory"
  Revert "[Cleanup] Order NetworkController's intent filters"
  Revert "Change from deprecated telephony api"
  Revert "Create a MobileStatusTrackerFactory"
  Revert "Remove support for COMBINED_SIGNAL_ICONS"
2022-07-27 20:30:11 +00:00
Jeff DeCew
6c579ef0eb Clean up index assignments and comparators
* The main "fix" here is to set the stable index on the summary of a notification, which ensures that if we prune the group, we won't lose the ordering.
* Additionally, I made a functional change here to ignore the stable index when a notification moves between sections (which is super rare anyway) because that value would enforce an incorrect order.

Test: atest ShadeListBuilderTest
Bug: 237216329
Change-Id: Ia36f652478a9efdad71ba651640a12da5fa1345b
2022-07-27 20:30:01 +00:00