Commit Graph

12869 Commits

Author SHA1 Message Date
yj81.kwon
b2f088409b Merge "[wm]: Fixed TaskPositioner leak" into qt-dev
am: 050d6df74c

Change-Id: Ife9c5d5da6fae4d40183a6a56a71165001bf6674
2019-05-20 04:54:49 -07:00
TreeHugger Robot
050d6df74c Merge "[wm]: Fixed TaskPositioner leak" into qt-dev 2019-05-19 23:12:25 +00:00
yj81.kwon
19585ffabf [wm]: Fixed TaskPositioner leak
If application process handles motion events late, it requests to start
moving task after MotionEvent.ACTION_UP is already fired. In that case,
system will wait for event that is not comming and cannot end drag state.
It's expected that the system finishes moving task when system receives
ACTION_UP by transfering touch focus. In a problem case, ACTION_UP event
is already sent to the application process before transfering touch focus.

If application receives ACTION_UP event after requesting moving task,
notify the system of finishing previous request.

Test: Quickly try to resize freeform windowing app repeatedly.
Test: atest WmTests:TaskPositioningControllerTests
Bug: 129507487

Change-Id: Ifa457ddc55524cae6da455e770472781a7805282
(cherry picked from commit 9a1cd7b5063229da536a1281916ae15ec9246d1a)
2019-05-16 16:42:10 -07:00
Adam He
851c703681 Merge "Metrics for content capture." into qt-dev
am: 815979d5df

Change-Id: I0abb01fbef13917a9bcb494f72afa4879e46e1c8
2019-05-16 13:29:40 -07:00
Adam He
815979d5df Merge "Metrics for content capture." into qt-dev 2019-05-16 19:53:04 +00:00
Rob Carr
be569d6301 Merge "Restore new SurfaceView background implementation." into qt-dev
am: e6ffb72e55

Change-Id: I5c0c01206c27c1d9e3d0d5b227dda065c46fb531
2019-05-15 22:31:58 -07:00
Adam He
ff2185346e Metrics for content capture.
Bug: 119613670
Test: statsd_testdrive & manual test
Change-Id: Ib2c61d2a3c08a9db779790417eb0177c2420d8fd
Merged-In: If43465ccee7454a7ebf9e15caa23fce7bae33cfe
2019-05-15 11:12:02 -07:00
Rob Carr
e6ffb72e55 Merge "Restore new SurfaceView background implementation." into qt-dev 2019-05-15 17:41:01 +00:00
Jorim Jaggi
1548ff08ee Merge "Fix copying of insets" into qt-dev
am: c3371300eb

Change-Id: I50b086283f08ff783ab9cdd33b71789a6f1a918d
2019-05-15 03:44:47 -07:00
Jorim Jaggi
c3371300eb Merge "Fix copying of insets" into qt-dev 2019-05-15 10:26:02 +00:00
Tiger Huang
a741d7c8c2 Merge "Fix a bug about the z-order of layers caused by merging transactions" into qt-dev
am: 6e52f838ba

Change-Id: I9f164db94a2c943ec1b6d39b2e2f4678f2a39452
2019-05-14 21:24:14 -07:00
Jorim Jaggi
7882548b92 Fix copying of insets
Test: WindowInsetsTests
Fixes: 132057323
Change-Id: I8836a9d81ab85ce64071c48f8407e5e96dbbb1da
2019-05-14 18:54:40 +02:00
Robert Carr
b923f543e4 Restore new SurfaceView background implementation.
A previous commit reverted the new SurfaceView background implementation
due to a Z-ordering issue (where previously the backgrounds were below
ALL SurfaceView rather than EACH SurfaceView). It's easier to solve this
with relative layering as this CL does, and then we can keep the new implementation.
The new implementation has some other bug fixes in it too (see linked bug
w.r.t to setZOrderOnTop) and so it's a win.

Bug: 132353087
Test: SurfaceViewSurfaceValidator
Change-Id: I07b6e601e57fce3adb8e5ea8e173c7d7904422ca
2019-05-13 14:51:09 -07:00
Tiger Huang
ed6794ece5 Fix a bug about the z-order of layers caused by merging transactions
Each WindowContainer has its own pending transaction. These transactions
may be merged to the global one within WindowContainer.prepareSurfaces()
in a hierarchy-based order, not in a time-based order. It may cause
that a later surface operation overwritten by an earlier surface
operation. For example, atokenA.setLayer(t1, 0) was called earlier, and
then atokenA.setLayer(t2, 1) was called later. However, the layer of
atokenA might eventually be 0 because t1 could be merged into the
global transaction later.

This CL uses a single transaction per display to solve this problem.

Fix: 120282809
Test: atest SurfaceAnimatorTest
Test: Manual test with the steps in the issue.
Change-Id: Idca57d01d8be884369510642c2d9345b6ee4e3b1
2019-05-13 20:38:32 +08:00
Felipe Leme
0aa64e1790 Merge "Fixed NPE when AutofillManager.getClient() returns null." into qt-dev
am: db2d535782

Change-Id: Idea2c7ce8db6740c32b09470f0db3e080821e573
2019-05-10 07:05:35 -07:00
TreeHugger Robot
db2d535782 Merge "Fixed NPE when AutofillManager.getClient() returns null." into qt-dev 2019-05-10 13:54:19 +00:00
Philip P. Moltmann
ab1d65c340 Merge "Re-mark addPrivateFlags as UnsupportedAppUsage" into qt-dev
am: 1806895bc6

Change-Id: I44974f366dee4bd1cedc3e4287cc487ca977572c
2019-05-09 23:47:07 -07:00
John Reck
f2a772bbbd Merge "Add back to greylist" into qt-dev
am: f97ca2d9ca

Change-Id: I58d2deb6fdbe141e4371b4c47a80461c73e0488d
2019-05-09 22:55:11 -07:00
TreeHugger Robot
1806895bc6 Merge "Re-mark addPrivateFlags as UnsupportedAppUsage" into qt-dev 2019-05-09 22:31:49 +00:00
Philip P. Moltmann
88de965bfd Re-mark addPrivateFlags as UnsupportedAppUsage
it used to be in P and we have not removed all callers yet.

Fixes: 132356891
Test: None
Change-Id: I13b3bd3c791fedde4324bbc13ab5a413b7f4205f
2019-05-09 22:17:44 +00:00
John Reck
f97ca2d9ca Merge "Add back to greylist" into qt-dev 2019-05-09 21:07:46 +00:00
Felipe Leme
ea706a23bc Merge "Fixed autofill workflow to handle manual requests after session became for augmented autofill only." into qt-dev
am: 51cdec536b

Change-Id: I79fc197f3f2827b383d787318c9cb3f78f25930e
2019-05-08 18:39:48 -07:00
Felipe Leme
51cdec536b Merge "Fixed autofill workflow to handle manual requests after session became for augmented autofill only." into qt-dev 2019-05-09 00:18:56 +00:00
Felipe Leme
e5db59df2f Fixed autofill workflow to handle manual requests after session became for augmented autofill only.
Test: atest \
  AugmentedLoginActivityTest#testAutoFill_neitherServiceCanAutofill_manualRequest \
  AugmentedLoginActivityTest#testAutoFill_neitherServiceCanAutofill_thenManualRequest \
  AugmentedLoginActivityTest#testAugmentedAutoFill_mainServiceDisabled_manualRequest \
  AugmentedLoginActivityTest#testAugmentedAutoFill_mainServiceDisabled_autoThenManualRequest \
  AugmentedLoginActivityTest#AugmentedLoginNotImportantForAutofillActivityTest#testAutofill_manualRequest \
  AugmentedLoginActivityTest#AugmentedLoginNotImportantForAutofillActivityTest#testAutofill_autoThenManualRequests
Test: atest CtsAutoFillServiceTestCases # for sanity check

Fixes: 132119724

Change-Id: I500fabc8f9a5258ea1a6184d7e7712efb56714c0
2019-05-07 17:32:31 -07:00
Rob Carr
5fe299fbe8 Merge "Revert SurfaceView background implementation." into qt-dev
am: cd58d5a512

Change-Id: Icf36d5e206b76efb908e335a4f85388cd039e046
2019-05-07 13:48:05 -07:00
Rob Carr
cd58d5a512 Merge "Revert SurfaceView background implementation." into qt-dev 2019-05-07 19:59:57 +00:00
Rob Carr
c29d0dcafc Merge "WM/ViewRootImpl: Fix convertFromTranslucent to respect existing state." into qt-dev
am: 87b66465b6

Change-Id: I870979a63662f84b07c972dfd17b21a7dd0fccb3
2019-05-07 12:52:27 -07:00
Rob Carr
87b66465b6 Merge "WM/ViewRootImpl: Fix convertFromTranslucent to respect existing state." into qt-dev 2019-05-07 19:31:36 +00:00
Robert Carr
109a8663d1 Revert SurfaceView background implementation.
We changed the SurfaceView background to be a boundless
child layer. However this was a semantic change. Each SurfaceView now
has its own background behind it instead of the backgrounds being
behind all SurfaceView. This causes an issue with some apps which
have an invisible SurfaceView hanging out for no particular reason.

Revert "SurfaceView: Correct comparison operator.",
"SurfaceView: Only show background when behind ViewRoot.",
"SurfaceView: Check correct OPAQUE flag for background visibility.",
"Correct SurfaceView background visibility.",
"Replace SurfaceView background with boundless color layer."

Bug: 123920952
Test: SurfaceViewTest. SurfaceViewSurfaceValidatorTest
Change-Id: I88ff31542ee0139d15c84ed2d6791c5cd455604b
2019-05-06 18:19:44 -07:00
Felipe Leme
74d81b8f9d Fixed NPE when AutofillManager.getClient() returns null.
Test: atest CtsContentCaptureServiceTestCases # sanity check, issue is not easily reproducible

Fixes: 131924763

Change-Id: I5785a0b03eb1bc73b4e5d3a8da6e044dafac3012
2019-05-06 09:59:14 -07:00
Yohei Yukawa
6d28fb9943 Merge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev
am: 23d047ab15

Change-Id: I18cccf69c6e904d96e79b842f784bbaa94fc1a3d
2019-05-03 15:18:25 -07:00
Charles Chen
e665dc6b36 Merge changes from topic "check display id update" into qt-dev
am: 0819556982

Change-Id: If5a6b1a6b3cc5a570248f7d111c37d5a09637beb
2019-05-03 14:23:07 -07:00
Yohei Yukawa
d4cd66a8e2 Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev
am: 0c8199dc59

Change-Id: Ia0a4c7ab444838144e0cb1c938aaf99e1de589b4
2019-05-03 14:11:46 -07:00
Felipe Leme
763536a513 Merge "Inject session id on all AutofillIds kept in the service." into qt-dev
am: b5112587de

Change-Id: Ida7b144c346a5a6fb57b0ec7c14871aafc07c6a9
2019-05-03 10:56:52 -07:00
Adam He
4f8759216f Merge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windows." into qt-dev
am: 0459aaab3b

Change-Id: I1d1eb7d988a0f815e4551f95a7044beeac203bf0
2019-05-03 10:29:19 -07:00
John Reck
71d81d2d4c Merge "Revert change to force_dark property" into qt-dev
am: a88da2b7c7

Change-Id: I49fd9dc456e21f1f3399e0c5a3c68d97cec15e74
2019-05-03 10:17:50 -07:00
TreeHugger Robot
23d047ab15 Merge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev 2019-05-03 17:07:35 +00:00
Felipe Leme
4949fd4c3d Merge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev
am: 77f574dfe9

Change-Id: Ia869c4c5e3b3681014013ae31105177b3d088e81
2019-05-03 09:15:35 -07:00
TreeHugger Robot
0819556982 Merge changes from topic "check display id update" into qt-dev
* changes:
  Unify context in ViewRoot
  Add test API getDisplayId for cts test
2019-05-03 16:11:01 +00:00
TreeHugger Robot
0c8199dc59 Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev 2019-05-03 15:56:32 +00:00
John Reck
ebd1e66515 Merge "Adjust SurfaceView visibility on parent change" into qt-dev
am: f1c4f30c54

Change-Id: I6d9dc4fe3df03bcc0380be67e474d5063b73241d
2019-05-03 06:44:39 -07:00
Abodunrinwa Toki
772447f0bd Merge "Lazy-load textclassifier settings." into qt-dev
am: 9829cf5451

Change-Id: Ia96d8725c1375078161fe0d4cefc8104b17e3abd
2019-05-03 05:15:09 -07:00
TreeHugger Robot
b5112587de Merge "Inject session id on all AutofillIds kept in the service." into qt-dev 2019-05-03 02:17:37 +00:00
TreeHugger Robot
0459aaab3b Merge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windows." into qt-dev 2019-05-03 01:33:38 +00:00
TreeHugger Robot
a88da2b7c7 Merge "Revert change to force_dark property" into qt-dev 2019-05-03 00:21:38 +00:00
Tiger Huang
29d6767ee0 Merge "Refine getTransformationMatrix for windows in a re-parented display" into qt-dev
am: 090cb13600

Change-Id: I747cbbc4a06a2beedf0a9e620ef4fc7e46639cc4
2019-05-02 16:43:40 -07:00
Adam He
43c0699042 ContentCaptureManager is notified when FLAG_SECURE is set dynamically on
windows.

Fixes: 130377514
Test: # manual verification
Change-Id: I18126de8284a0c95ff61107031ffff941ca26be7
2019-05-02 16:22:50 -07:00
TreeHugger Robot
77f574dfe9 Merge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev 2019-05-02 22:49:24 +00:00
John Reck
cc702bfbc6 Merge "Fix NPE in findFrameMetricsObserver" into qt-dev
am: 1d40ffcabf

Change-Id: Ia13a64a01faa9ab1cc5d7fa914ef306db159a146
2019-05-02 15:27:19 -07:00
TreeHugger Robot
f1c4f30c54 Merge "Adjust SurfaceView visibility on parent change" into qt-dev 2019-05-02 21:11:43 +00:00