Commit Graph

104683 Commits

Author SHA1 Message Date
TreeHugger Robot
bfde8d1d56 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev am: 72a3d44773
Change-Id: Ica8dff14fbd3e0968eac6010cfa52d3d0704115a
2020-04-11 02:40:04 +00:00
TreeHugger Robot
72a3d44773 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev 2020-04-11 02:19:12 +00:00
Yurii Zubrytskyi
ea99744a5c Merge changes I668e8664,Ia44f7e45 into rvc-dev am: 207f1d3036
Change-Id: I73b6ad0e82811d55971cd7a4d4cfb6c422c01e56
2020-04-11 01:43:40 +00:00
Yurii Zubrytskyi
207f1d3036 Merge changes I668e8664,Ia44f7e45 into rvc-dev
* changes:
  [incfs] Fix a crash in worker thread calling JNI
  [incfs] Make native library extraction async
2020-04-11 01:24:45 +00:00
TreeHugger Robot
7b48e03224 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev am: c3721ac874
Change-Id: I0d931ea2289e9167342045b18cc51222c7536d78
2020-04-10 23:28:53 +00:00
TreeHugger Robot
c3721ac874 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev 2020-04-10 23:13:52 +00:00
Hongwei Wang
3c981f6eb7 Deprecates the animatingBounds from WM to SysUI
PipTouchHandler, similar to other components in SysUI, should be in-sync
with the destination bounds calculated within SysUI rather than WM.

Fixed also the empty movement bounds upon the first call to
PipTouchHandler#onMovementBoundsChanged. Together, this change should
fix the PIP not being lifted on IME show up. PipTouchHandlerTest is
updated correspondingly.

Bug: 153352899
Test: manually enter/exit PiP
Test: atest PipTouchHandlerTest
Change-Id: I2912af2a181b7fb57c6d90751744d46c6b3366d2
2020-04-10 13:47:14 -07:00
Yurii Zubrytskyi
da208016d6 [incfs] Make native library extraction async
IncrementalService can create the library files beforehand, but
delay filling in their data. As it takes quite a while in
general (over a second in cases when the phone is busy), it's
better to run the unzipping and filling in a separate thread
and only make sure it finishes before the whole installation
process is complete.
This speeds up the megacity.apk installation by ~250-300ms,
1000-1100ms -> 750-800ms

Bug: 153513507
Test: adb install megacity.apk

Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10 12:30:49 -07:00
Treehugger Robot
df0ee25d57 Merge "Fix a theoretical NPE" am: c312053b39 am: 668661d94c
Change-Id: Ibf814e81ca984b47b9be1e423e2cde908cf7f193
2020-04-10 17:08:04 +00:00
Treehugger Robot
668661d94c Merge "Fix a theoretical NPE" am: c312053b39
Change-Id: Idf4cb0acbfb9bc8fef43d42be477778e8ec2fc09
2020-04-10 16:44:25 +00:00
Treehugger Robot
c312053b39 Merge "Fix a theoretical NPE" 2020-04-10 16:25:07 +00:00
Ryan Mitchell
cca1593b23 Merge changes from topic "invalidate_idmap" into rvc-dev am: 6cb79cdfb7
Change-Id: Iec3d0e3bab28964442c5aada00c2586e284feb92
2020-04-10 15:53:05 +00:00
Cody Kesting
fb9ff36b95 Merge "Fix typo in VpnManager Docs." into rvc-dev 2020-04-10 15:52:10 +00:00
TreeHugger Robot
5e6c81e36f Merge "Return actual failure to parse base APK" into rvc-dev am: fd09fe5cea
Change-Id: I265307b7e8c3fbb171890cb80200edb72e6b76fb
2020-04-10 15:51:00 +00:00
Ryan Mitchell
6cb79cdfb7 Merge changes from topic "invalidate_idmap" into rvc-dev
* changes:
  Fix InstallOverlayTests fail to install overlay
  Test that upgrading target apk invalidates idmap
  Invalidate idmap when target updates
2020-04-10 15:50:15 +00:00
TreeHugger Robot
fd09fe5cea Merge "Return actual failure to parse base APK" into rvc-dev 2020-04-10 15:28:13 +00:00
TreeHugger Robot
d22d23ee9c Merge "Add an empty IMM#windowDismissed(IBinder) for app compat" into rvc-dev am: 51ec322208
Change-Id: If84c542ac1c3f156f61d0952a58ecae0256f6bc0
2020-04-10 15:17:36 +00:00
TreeHugger Robot
51ec322208 Merge "Add an empty IMM#windowDismissed(IBinder) for app compat" into rvc-dev 2020-04-10 15:10:43 +00:00
Yurii Zubrytskyi
a8e15d8611 [incfs] Fix a leaked pending_reads FD am: 4e21986e59
Change-Id: I380b911059be8dbb2e4dcf6df7505b8d65c5c2a0
2020-04-10 15:07:29 +00:00
Yurii Zubrytskyi
4e21986e59 [incfs] Fix a leaked pending_reads FD
Bug: 153670585
Test: adb install/uninstall a dozen times
Change-Id: Iac05b5dc3792e55c2f103ac08bdd734b3b398882
2020-04-10 14:49:31 +00:00
Darryl Johnson
f1c8746e77 Merge "Temporal fix of the Android Auto orientation chaniging on phone's orientation change." into rvc-dev am: 6c6d81a121
Change-Id: Idb50c517925b64041772af2cbd35c6ff553c29cf
2020-04-10 14:26:28 +00:00
Chalard Jean
3854ed0c53 Fix a theoretical NPE
Test: NetworkAgentTests
Bug: 153718627
Change-Id: I08f57cce0cd85d5cd66e9a0ef948224290e9200e
2020-04-10 23:08:00 +09:00
Darryl Johnson
6c6d81a121 Merge "Temporal fix of the Android Auto orientation chaniging on phone's orientation change." into rvc-dev 2020-04-10 14:07:36 +00:00
Wei Sheng Shih
aca2cebdf6 Merge "Support addWindow as other user" into rvc-dev am: 1a46294fdb
Change-Id: If9e967421f4156b6cb8c3df9111f22557b953089
2020-04-10 08:42:30 +00:00
Wei Sheng Shih
1a46294fdb Merge "Support addWindow as other user" into rvc-dev 2020-04-10 08:33:12 +00:00
Ming-Shin Lu
69498ce39c Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into rvc-dev am: 1c92e1f789
Change-Id: I8f4d671e5f9e278198f4af7b721809f76f5cd6db
2020-04-10 06:34:01 +00:00
Ming-Shin Lu
1c92e1f789 Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into rvc-dev 2020-04-10 05:46:13 +00:00
Yohei Yukawa
7029cc3da8 Add an empty IMM#windowDismissed(IBinder) for app compat
It seems that there are several applications that call
InputMethodManager#windowDismissed(IBinder), which was recently
removed [1], then crash due to unhandled NoSuchMethodException
exception.

The most probable hypothesis that explains why these apps ended up
calling this method via reflection is trying to address object leaks
from InputMethodManager, which we have received reports then fixed all
the known issues [2][3][4][5][6].  There are several Internet articles
that claim calling InputMethodManager#windowDismissed(IBinder) can
*fix* such object leaks, which is in fact no longer necessary in
recent versions of Android.  However, it seems that some of such apps
didn't gracefully take care of cases where IMM#windowDismissed()
doesn't exist then ended up crashing due to unhandled
NoSuchMethodException.

Note also that AndroidX Activity (androidx.activity.ComponentActivity)
already implements a similar workaround [7] hence app developers no
longer need to work around by themselves.

Anyways, in order to avoid unnecessary crashes from apps that call
IMM#windowDismissed() via reflection, this CL re-introduce it as an
empty method.  As their goal is supposed to be clearing internal
fields within InputMethodManager to avoid object leaks, an empty
method is believed to be sufficient.

 [1]: Ib455704fe1e9d243f93190a84f230210dbceac2a
      970d9d2e0c
 [2]: Iad09cf5dbb7f6f156fd39ed243431432e00f8945
      4478de3c02
 [3]: Iaf3fe2c065b5bf91e49a729ba46262114bb6da88
      b13f015ab5
 [4]: I219394178e4172bc47864297f1418e677dba25e5
      5f05965f54
 [5]: Id6afc8fc64512225578c62557b96c7dc2e969adf
      0f3a99d837
 [6]: I8fabb30f14bcb2cd7019e29b6642b4562d49d248
      dff365ef4d
 [7]: I615e92f0c64b6d668b31f2c83527b7409a7bef6f
      b1bf8502e0574a4bfcf450235595372b7cb3778a

Fix: 152261618
Test: manually verified with apps in question
Change-Id: I599896a96267fc60a738eac31be02b770e10dff3
2020-04-09 22:38:04 -07:00
TreeHugger Robot
5135be6702 Merge "Fine tune performance for notifyContentCapture()" into rvc-dev am: 2a7091d896
Change-Id: I0904cd567a4e4f1a5ed320231d12a830ba3e1300
2020-04-10 04:53:53 +00:00
TreeHugger Robot
2a7091d896 Merge "Fine tune performance for notifyContentCapture()" into rvc-dev 2020-04-10 04:42:58 +00:00
Winson Chung
6d9820e707 Merge changes I7d2ca2a2,I9f1fc593 into rvc-dev am: cb437ade00
Change-Id: If75e0e60c1988ee9d94a7d3884fc4c905cf21e27
2020-04-10 03:25:49 +00:00
Winson Chung
cb437ade00 Merge changes I7d2ca2a2,I9f1fc593 into rvc-dev
* changes:
  Fix a couple issues with previous CL (keeping tasks hidden)
  Keep task hidden until task appeared
2020-04-10 03:03:21 +00:00
TreeHugger Robot
4701c1dc6b Merge "Pass inline suggestions renderer info Bundle to Frameworks and IME" into rvc-dev am: c0404ff5e5
Change-Id: I5dbca1e5fce9fa7ba39c905f48cdeb54d93b1ebe
2020-04-10 02:40:30 +00:00
TreeHugger Robot
c0404ff5e5 Merge "Pass inline suggestions renderer info Bundle to Frameworks and IME" into rvc-dev 2020-04-10 02:19:23 +00:00
Cody Kesting
b840c602ed Fix typo in VpnManager Docs.
Bug: 153364039
Test: n/a. Docs change only.
Change-Id: I8259bfc09735515f428bb41d69fedd3ea1961f79
Merged-In: I8259bfc09735515f428bb41d69fedd3ea1961f79
(cherry picked from commit 3150b04b67)
2020-04-10 00:30:38 +00:00
Winson Chung
1b5d055f2e Keep task hidden until task appeared
- If the task is previously not visible or has no visible children at
  the point when we start controlling it in the task org, hide the task
  until we send taskAppeared to ensure that the task org can reparent
  and show it otherwise we could see a flash of the task.

  This happens mainly from two cases:
  - when starting a new task with a given win mode, we show it and wait
    for first draw before notifying the task org
  - when transitioning into pip from swipe up, the activity is hidden
    and when it requests to enter pip is made visible again

  Since we are hiding the task w/ the pending transaction, we also need
  to defer all task org callbacks until that's applied to ensure proper
  lifecycle of the calls.
- Also skip app transitions for task org tasks for now

This reverts commit d2fb07e4f6.

Bug: 152809695
Bug: 152134460
Test: Open a bubble, ensure that we don't see the task in fullscreen
      first.  Enter pip, ensure that we don't see flash of the task
      before SysUI can fade it in.
Test: atest PipAnimationControllerTest
Test: atest TaskOrganizerTests
Test: atest SplitScreenTests
Change-Id: I9f1fc5931df1d69a7086c02b633347162cda94bf
2020-04-09 15:55:03 -07:00
Sergey Volnov
9dddfdcd12 Merge "Fix Content Capture Data Share" into rvc-dev am: 51ecd453b3
Change-Id: I6a955d9605d1a3604b84c8c33574bba91d6d0014
2020-04-09 22:52:34 +00:00
Sergey Volnov
51ecd453b3 Merge "Fix Content Capture Data Share" into rvc-dev 2020-04-09 22:35:08 +00:00
Cody Kesting
bfa6da0970 Merge "Fix typo in VpnManager Docs." am: 138575a48c am: 245ef6bdf9
Change-Id: If72bc191faad9e5024e8d2200aceed88803ef102
2020-04-09 22:10:32 +00:00
Cody Kesting
245ef6bdf9 Merge "Fix typo in VpnManager Docs." am: 138575a48c
Change-Id: I8e32b11c6a4b4437ba2977742a013d78856b5386
2020-04-09 21:37:28 +00:00
Cody Kesting
138575a48c Merge "Fix typo in VpnManager Docs." 2020-04-09 21:12:23 +00:00
Rob Carr
c03ac773b8 Merge "ViewRootImpl: Pass buffer to finishDrawing when requested" into rvc-dev am: 0a57530be1
Change-Id: I62a6036bfed4d319f7e4ef64ee93102899ef5c3d
2020-04-09 20:58:54 +00:00
Winson
36c4470a20 Return actual failure to parse base APK
This exposes errors directly, which mirrors what PackageParser
used to do. Just a leftover TODO from the refactor.

Bug: 153472626

Test: manual install broken APK and check the error is logged

Change-Id: I06804ad7396196e28ce2177a671d4eef3958e1d6
2020-04-09 13:51:37 -07:00
Adam He
89afcd6f5d Pass inline suggestions renderer info Bundle to Frameworks and IME
Bug: 146454892
Test: manual verification
Change-Id: I5db6c3795a4a295486e497f2d27eaa561e1a3887
2020-04-09 13:30:33 -07:00
Rob Carr
0a57530be1 Merge "ViewRootImpl: Pass buffer to finishDrawing when requested" into rvc-dev 2020-04-09 20:26:43 +00:00
Sergey Volnov
6c74f7cc9a Fix Content Capture Data Share
Fixing a typo in the previous commit: s/remove/put/

Bug: 153013604
Test: ran CTS tests on sdk_gphone_x86
Change-Id: Iabe8ce51f38ac921aa5cc0e78b559e4a512b9273
2020-04-09 21:23:03 +01:00
Hui Yu
080037053c Merge "Document process capability in AppOps.md." into rvc-dev am: d0139b01dd
Change-Id: I46c7e278db9ef7749619c65b392c852f2c900b1d
2020-04-09 19:51:02 +00:00
Hui Yu
d0139b01dd Merge "Document process capability in AppOps.md." into rvc-dev 2020-04-09 19:42:09 +00:00
Nikita Ioffe
a3fd43040b Merge "Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()" am: d8f9951f21
Change-Id: I35e5111b5db8be175c85032a90c82336ff9373be
2020-04-09 18:28:37 +00:00
lumark
04bceb99f1 Trigger onTaskAppeared when a task started from recents becomes ready.
In quick switch flows, launcher will first swipe task snapshot
through recents animation, and then start new task with custom animation
options through startActivityFromRecents after gesture finish detected,
and then finish recents animation finally.

But that way user may experience flickering before the new task launch
and recents animation finish.

To improve quick switch flickering, we ignore the new task's custom
animation from recents and generate task remote animation target,
and then trigger a callback for launcher to control/animate this
task surface, more like a part of RecentsAnimation,

Also, adding removeTask method for launcher can flexibility remove the
new task animation target once no need to animate, so that launcher
can decide when to finish recents animation.

Bug: 152480470
Test: manual as below steps:
  1) Doing quick switch task.
  2) Make sure launcher can receive onTaskAppeared callback.
  3) Make sure launcher calls removeTask successfully.
  4) Make sure launcher can finish recents animation after 3).
Change-Id: I0692a280a49719229fa8871509bad37a1343a00f
2020-04-10 02:20:03 +08:00