Use SCREEN_ORIENTATION_PORTRAIT for the launcher if the fixed_rotation
is enabled
Test: manual, check that the launcher doesn't rotates when the flag is
enabled and we are coming from a landscape activity
Bug: 147469164
Bug: 146416687
Change-Id: I0fe0d16ec1fbfe096fbdfcf2c315e12fb3423cf8
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history
Change-Id: I3b14bf2900d044bfa1acd9b160272544b7e8e901
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history
Change-Id: I5d8ff10c1284f9da6f8108941bb8cd5b994dc039
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a93c2dcd56 is in history
Change-Id: I46b3720f070a1094a616432dcd30fdfa06fb988a
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history
Change-Id: I42c8cbb04fcc1a9ca31c3ace8ee7655857c0fe65
Generally mEndRect is still correct from when we set it in
animateOpen(), but there are cases where it is no longer valid and
should be recomputed in animateClose(). For example, if you dismiss
notifications, the height of the popup changes between opening and
closing it.
Test: Long press an icon with a notification dot, dismiss all
notifications from the popup and then close the popup. The shadow
follows the outline of the popup, instead of extending well below it.
Change-Id: Ic5d6ad2807ea1ec8aff5e3d6ce8abaa11ce5d33c
Also, need callback from SysUI to Launcher once the pip animation is
started to keep back compatibility.
Bug: 146594635
Test: manually
Merged-In: I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca
Change-Id: I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca
Change high res loading state implementation to toggle on/off based on
config_lowResTaskSnapshotScale!=0 instead of ro.config.low_ram=true
Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I316e553a8a13fe38f1224c38f7aa717a0f628f57
Enable preloading if config_enableTaskSnapshotPreloading instead of
assuming it should be off for all low ram devices. This allows it to be
configured via an overlay.
Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I9e3320dcff5b710e110cc7199c41c5a004991592
Bug description: When folder label is updated from a suggested label to a custom label,
EditFolderLabelEvent log expected to have FromFolderLabelState = FROM_SUGGESTED.
Currently FromFolderLabelState is logged as FROM_CUSTOM in such scenarios.
Root cause: Folder label state is decided based on whether IME has entered into compose mode while editing.
This works fine for initial folder creation and also updated to non-empty label(to both custom or suggested).
But when folder is edited from suggested to empty label, its internal state changes from SUGGESTED to CUSTOM as expected.
Later when empty label is updated to suggested again, its internal state remains custom forever.
Fix: Instead of setting folder's internal state based on IME's compose mode, comparing actual folder label with suggestions
and set it to SUGGESTED if any suggestion matches else CUSTOM.
Change-Id: Ieea572ee93fd5567e3128c9bbcea3b670f0f01d9