Commit Graph

479928 Commits

Author SHA1 Message Date
Wonsik Kim
e37ef4bc92 media: fix race condition on async release
Clear Java object state at releaseAsync(), and delete native object
upon async release complete.
Clearing CodecBase object only led to a rare race condition which
caused null pointer dereference.

Bug: 158501286
Test: atest CtsMediaTestCases:MediaCodecTest#testAsyncRelease (100 times)
Test: atest CtsMediaTestCases:MediaCodecCapabilitiesTest#testGetMaxSupportedInstances
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I691d39007c0ea770318f4038558ad338252bd2fb
2020-06-19 13:04:02 -07:00
TreeHugger Robot
721a3ac836 Merge "Controls UI - Update bg color for Stateless templates" into rvc-dev 2020-06-15 18:55:43 +00:00
Miranda Kephart
3a9ce8d11a Merge "Revert "Post a silent notification if screenshot is dismissed"" into rvc-dev 2020-06-15 18:45:29 +00:00
Evan Rosky
40f7d48309 Merge "Adjust drag regions to accomodate split-minimized home" into rvc-dev 2020-06-15 18:12:30 +00:00
Mohammad Samiul Islam
4c11355e08 Merge "Prevent sessions from resuming once boot is completed" into rvc-dev 2020-06-15 18:11:05 +00:00
Winson Chung
813ac747b6 Merge "Minor touch changes for resizing" into rvc-dev 2020-06-15 18:05:48 +00:00
TreeHugger Robot
928625a8b5 Merge "Call the scrim unlock callback when transitioning to BUBBLES_EXPANDED." into rvc-dev 2020-06-15 18:00:33 +00:00
Ben Lin
32724409f5 Merge "PiP: Animate resize even if the bounds are the same." into rvc-dev 2020-06-15 17:44:45 +00:00
TreeHugger Robot
c4568caf2c Merge "Catch SqlLiteException if database query throws an exception in CalendarTracker.java" into rvc-dev 2020-06-15 17:35:33 +00:00
Matt Pietal
5a5de403c9 Controls UI - Update bg color for Stateless templates
Provides a basic indication that an action is in progress. Also, do
no tint app icons.

Fixes: 158289112
Test: manual, mock app with TYPE_ROUTINE
Change-Id: I7f9db43dd895dd94ac1ec32d1f0339d84c414938
2020-06-15 13:29:57 -04:00
TreeHugger Robot
14a02055eb Merge "Remove obsolete string resource." into rvc-dev 2020-06-15 17:20:40 +00:00
TreeHugger Robot
7566f6d34c Merge "Properly collapse QQS header when QQS is disabled" into rvc-dev 2020-06-15 17:06:17 +00:00
Selim Cinek
addcaf9f51 Merge "Fading in edit button much later" into rvc-dev 2020-06-15 16:48:02 +00:00
TreeHugger Robot
e0ba6d9dff Merge "Don't provide read logs for shell-initiated installations." into rvc-dev 2020-06-15 16:38:32 +00:00
Eugene Susla
4b3418bfed Merge "Exempt companion apps from auto revoke" into rvc-dev 2020-06-15 16:38:27 +00:00
Jay Aliomer
284afca897 Merge "Dark theme twilight mode not initializing properly" into rvc-dev 2020-06-15 16:30:02 +00:00
Ned Burns
59a62fc264 Properly collapse QQS header when QQS is disabled
In landscape, we need to fully hide the QQS when the user starts to do
an inline reply, otherwise nothing fits on the screen. This CL adds back
in some of the old Q behavior wherein we set the height of the header to
essentially zero when the QQS has been disabled (in this case, by the
inline reply logic).

Fixes: 157150870
Test: manual
Change-Id: Ib14603eb2e67bf4bf3b624b677a74754d4e54f41
2020-06-15 11:55:40 -04:00
Will Brockman
0e93473703 Merge "More accurate notification panel logs." into rvc-dev 2020-06-15 15:44:29 +00:00
Steve Elliott
c744ad246e Merge "Fix occasional bad placement of Conversation header" into rvc-dev 2020-06-15 14:56:14 +00:00
Riddle Hsu
541633e3d6 Merge "Set pillar box bounds in fixed orientation display" into rvc-dev 2020-06-15 14:36:32 +00:00
TreeHugger Robot
3616fd6330 Merge "Revert "Add multi-user support for AutoTileManager"" into rvc-dev 2020-06-15 14:21:43 +00:00
Nathalie Le Clair
eeff674786 Merge "Get HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED from overlay" into rvc-dev 2020-06-15 13:36:05 +00:00
Tiger Huang
edd4859399 Merge "Don't notify dead client about losing control" into rvc-dev 2020-06-15 13:21:43 +00:00
Riddle Hsu
080ae84199 Set pillar box bounds in fixed orientation display
Assume a non-resizable fixed portrait activity launched in a fixed
landscape display, the activity should keep its portrait bounds by
fitting the height to display and the width with the same ratio to
height. Previously the pillar box bounds are only set to app bounds
that causes the activity shown in landscape size compat mode. This
change makes them consistent.

Fixes: 158863196
Test: SizeCompatTests#testMoveToDifferentOrientDisplay
Change-Id: Ib7c2b07d9b252a88d2e965cc16ca93f7804b16d0
2020-06-15 12:41:29 +00:00
TreeHugger Robot
3fb94d8e9d Merge "Add logging on sharesheet displayList to help investigate issue that icons launch different apps unexpectedly." into rvc-dev 2020-06-15 12:12:07 +00:00
TreeHugger Robot
ccd0d1e05d Merge "Fix testGlobalActions_doesntStealImeControl" into rvc-dev 2020-06-15 11:11:56 +00:00
Mohammad Samiul Islam
a922531124 Prevent sessions from resuming once boot is completed
This will prevent sessions from resuming when system server crashes or
restarted.

Bug: 158283778
Test: staged a session and crashed system server to verify session stays
      unchanged
Test: atest StagedInstallInternalTest
Test: atest StagedInstallTest
Change-Id: I99337ea2898cfdf2cc515819b4f5b5db4b038f31
Merged-In: I99337ea2898cfdf2cc515819b4f5b5db4b038f31
2020-06-15 12:10:16 +01:00
TreeHugger Robot
65ddf5fa17 Merge "Compare letterbox and bar content frame with the same rotation" into rvc-dev 2020-06-15 10:59:15 +00:00
TreeHugger Robot
40bdc176e1 Merge "Fix advanced icon will incorrect on some device" into rvc-dev 2020-06-15 10:31:33 +00:00
Wei Sheng Shih
67a056a94c Merge "Fix the root task of secondary split screen could be overwritten." into rvc-dev 2020-06-15 09:45:02 +00:00
Riddle Hsu
ee5df39e93 Merge "Finish fixed rotation of recents until transition is done" into rvc-dev 2020-06-15 09:43:53 +00:00
Louis Chang
e873ed3290 Merge "Wait for all of associated activities done animating" into rvc-dev 2020-06-15 09:43:24 +00:00
Wei Sheng Shih
17efbc6266 Merge "Moving all hierarchy chain to top when adjust focusable task." into rvc-dev 2020-06-15 09:43:05 +00:00
Hyundo Moon
e7ae494759 Merge "Clear preferred feature when unregistering MediaRouter2" into rvc-dev 2020-06-15 09:38:23 +00:00
Lorenzo Colitti
242087ad3e Merge "Automatically add FEATURE_IPSEC_TUNNELS for Q+ devices." into rvc-dev 2020-06-15 09:06:29 +00:00
Tiger Huang
ac4e36b948 Merge "Let position of system bars can be restored by swipe" into rvc-dev 2020-06-15 08:54:46 +00:00
Hugh Chen
c06745b3d3 Fix advanced icon will incorrect on some device
Use the fixed value to locate the center of icon instead
of use value of density. Because the value of density will
different between the device according the resolution.

Bug: 156689249
Test: build pass
Change-Id: I6d3a53e68058232871dd281ec4736179090a6580
2020-06-15 16:04:38 +08:00
TreeHugger Robot
c944f5e947 Merge "Revert "Only add divider when it need to show"" into rvc-dev 2020-06-15 07:59:00 +00:00
TreeHugger Robot
ec09667201 Merge "Don't lock rotation to natural rotation when entering overview" into rvc-dev 2020-06-15 07:05:25 +00:00
Tony Huang
3dd2b93add Revert "Only add divider when it need to show"
This reverts commit a0ee06083c.

Reason for revert: Cause cf devices cts tests failed

Bug: 158836294
Change-Id: I5b439cf1aaee51f0c6d2e7e7e8d73487ec851648
2020-06-15 06:47:10 +00:00
TreeHugger Robot
316f0d3604 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-06-15 05:51:51 +00:00
TreeHugger Robot
b637ab0e38 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-06-15 05:50:22 +00:00
Yanting Yang
2db442459a Merge "Update mainline module utils function of AppUtils" into rvc-dev 2020-06-15 02:59:12 +00:00
wilsonshih
046523ce96 Moving all hierarchy chain to top when adjust focusable task.
Find a issue that when a background app crashed, the top focus
task would also changed because of AMS trigger resumeTopActivities.
However there should be nothing changed.

For some tasks like home or split screen, because they can be more
than one layer of task-to-container structure, so when adjusting
focus task, we should move the whole chain to the top of it's
container.
Also update preferred top focusable stack in
TaskDisplayArea#positionChildAt so the API can be more identical.

Fixes: 157393169
Test: atest ActivityRecordTests
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest MultiDisplayPolicyTests
Change-Id: Ibf86f375ac91a50a013cfa7a7ea19e571a0a0d61
2020-06-15 01:50:03 +00:00
Louis Chang
242be90516 Wait for all of associated activities done animating
Fixed rotation transform was finished and continued
to update the orientation when transferring the
starting window, which was before the activity ready to
show and caused flickers. This can happen while trampoline
activities were started during app launch.

This also fixes other flickers that happens when the
fixed rotation launching app's animation finished
before other associated activities.

Bug: 157446341
Test: atest DisplayContentTests AppWindowTokenTests
Change-Id: Ibeb50edc7dfd9dddffe2c420fde92c1ebb70ed37
2020-06-15 09:11:24 +08:00
Louis Chang
5463497bed Merge "Deliver latest intent extras to recents" into rvc-dev 2020-06-15 00:53:56 +00:00
Song Hu
f473e42f96 Add logging on sharesheet displayList to help investigate issue that icons launch
different apps unexpectedly.

Bug: 158172791
Test: manual test on the phone
Change-Id: I003b83f6a76dca2f97cfd43b2f265ad572f0e5c5
2020-06-14 14:50:54 -07:00
Bill Yi
ded92e2dc8 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I4c1d3548690832aa1ef73149dd17b2b087daaa1d
2020-06-14 21:01:37 +00:00
Josh Tsuji
5bef1eb6da Merge "Avoid bad animation states." into rvc-dev 2020-06-14 20:00:56 +00:00
Bill Yi
d4e9808001 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I96a1e755ee621f7a313d4660d56b78fc5295a040
2020-06-14 19:47:32 +00:00