Commit Graph

12740 Commits

Author SHA1 Message Date
Charles Chen
5a2e6040c2 Merge "Revert "Unify context in ViewRoot"" into qt-dev 2019-04-17 13:45:23 +00:00
Charles Chen
fd85036cc7 Revert "Unify context in ViewRoot"
This reverts commit 44f5215ee8.

Reason for revert: <Make Ime test in SystemDecorationTest failed>
Bug: 130715649

Change-Id: I9afb1d5ee7e7a4f1e7de6fa4c7c3ec5dcc336f08
2019-04-17 13:39:06 +00:00
TreeHugger Robot
c1a0fbcec5 Merge "Unregister ImeInsetsSourceConsumer when focus lost" into qt-dev 2019-04-17 13:03:28 +00:00
TreeHugger Robot
59ed9a7f27 Merge "Follow-up CL of ag/6935284, add entities to extras in generateLinks" into qt-dev 2019-04-17 10:11:18 +00:00
TreeHugger Robot
143c735ee6 Merge "Doing sublisting after deduplication" into qt-dev 2019-04-17 10:09:38 +00:00
Tony Mak
0bf14e4804 Merge "Split TextClassifierEvent into multiple subclasses" into qt-dev 2019-04-17 10:05:20 +00:00
TreeHugger Robot
2569d579a4 Merge "Unify context in ViewRoot" into qt-dev 2019-04-17 04:11:46 +00:00
Felipe Leme
17203cd88b Merge "Fixed AutofillOptions.isAugmentedAutofillEnabled to use the right client." into qt-dev 2019-04-17 03:43:59 +00:00
TreeHugger Robot
341ea09831 Merge "Gesture exclusion rects for Window" into qt-dev 2019-04-17 03:18:55 +00:00
Jacky Kao
fd9a858a40 Merge "Clarify documentation for View#setScreenReaderFocusable" into qt-dev 2019-04-17 02:11:52 +00:00
Adam Powell
5a40b71cd9 Gesture exclusion rects for Window
Property methods to get/set gesture exclusion rects for a window.
This is useful for games or other frameworks that use Window#takeSurface
and do not have a view hierarchy, leaving the associated View methods
unavailable.

Bug: 130572780
Test: cts via "atest SystemGestureExclusionRectsTest"
Change-Id: I2704aef1d1950158fcabf7c91413bedee08b8971
2019-04-16 14:38:55 -07:00
Felipe Leme
e5aa5ebd60 Fixed AutofillOptions.isAugmentedAutofillEnabled to use the right client.
Also removed ContentCaptureClient, which is not used anymore (it probably became obsolete with the
ContentCaptureOptions optimization).

Fixes: 130585342
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.AugmentedLoginNotImportantForAutofillActivityTest
Test: manual verification with Dialer app

Change-Id: I041922874fac749f1f5d49793f1ad3e26cc345d6
2019-04-16 13:14:41 -07:00
Felipe Leme
dc868e04f9 Merge "Clarified format of ContentCaptureCondition.FLAG_IS_REGEX" into qt-dev 2019-04-16 19:34:37 +00:00
TreeHugger Robot
50a56879e5 Merge "Grant clipboard access to the Augmented Autofill service." into qt-dev 2019-04-16 19:19:37 +00:00
Abodunrinwa Toki
6d06337157 Split TextClassifierEvent into multiple subclasses
As per the suggestion from API council, we now have a subclass for event
of each category.

Bug: 129344540

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/
Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/SmartActionsHelperTest.java

Change-Id: Ic43b33c2176447c40e64bd0e410e906d5fb9c4cc
2019-04-16 13:22:25 +01:00
TreeHugger Robot
786714e526 Merge "Add missing set/getExtras to ConversationActions.Request." into qt-dev 2019-04-16 00:17:10 +00:00
TreeHugger Robot
11141109f4 Merge "DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit." into qt-dev 2019-04-15 23:42:14 +00:00
TreeHugger Robot
472893443d Merge "Fix for unexpected scale factors in ScaleGestureDetector" into qt-dev 2019-04-15 21:02:19 +00:00
Tony Mak
170f35bc59 Add missing set/getExtras to ConversationActions.Request.
All requests / result objects from TextClassifier have get/setRequest,
so ConversationActions.Request should have them as well.

BUG: 130529981

Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/ConversationActionsTest.java

Change-Id: I19719b009d4f34df8650c669cc24cb304293407a
2019-04-15 20:11:36 +00:00
Felipe Leme
4cb2c3db13 Clarified format of ContentCaptureCondition.FLAG_IS_REGEX
Test: make ds-docs
Fixes: 130313634

Change-Id: I715ba4b7a1e3f3b13fbc521db925f716607763e6
2019-04-15 12:27:26 -07:00
Felipe Leme
ef1c0b36ab DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit.
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api
Test: make ds-docs

Fixes: 129982633

Change-Id: I5a0fa4231d0222638830c1abd8015d9f2635996a
2019-04-15 09:36:25 -07:00
Charles Chen
44f5215ee8 Unify context in ViewRoot
To fix the issue that mContext is not updated when moved to another
display, we previously introduce mDisplayContext as a workaround in [1].
Change to use Context#updateDisplay(int) to unify mDisplayContext to
mContext.

[1]: Ifa0ca24e9cf764caf492ee065606680b6a06751a

Bug: 116349163
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest InputMethodManagerTest
Test: atest InsetsControllerTest
Test: atest InsetsSourceConsumerTest
Test: atest ImeInsetsSourceConsumerTest
Test: atest CtsActivityManagerDeviceTestCases:MultiDisplayClientTests

Change-Id: Ic2010e8b533caf01418e0deb8062b8ff597c5abc
2019-04-15 18:02:14 +08:00
Michael Wright
b0241bd88a Merge "Add class docs for InputMonitor." into qt-dev 2019-04-12 21:39:51 +00:00
Tony Mak
b6afd3c13e Follow-up CL of ag/6935284, add entities to extras in generateLinks
Forgot to add this in generateLinks.

BUG: 129119759

Test: frameworks/base/core/tests/coretests/src/android/view/textclassifier/

Change-Id: I1882ed496b4a8aa04aaced4e9d632b47393dccbf
2019-04-12 17:38:36 +00:00
Abodunrinwa Toki
b7f24a557e Merge "Null annotations in TC APIs." into qt-dev 2019-04-12 17:36:24 +00:00
Peiyong Lin
2a4e6f6e2d Merge "Determine the dataspace of the screenshot buffer based on display color mode." into qt-dev 2019-04-12 16:57:38 +00:00
Felipe Leme
c743634138 Grant clipboard access to the Augmented Autofill service.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.ClipboardAccessTest
Fixes: 130166067

Change-Id: I5d55a5921bb961565d6e9cb535927df80c67f79b
2019-04-12 09:22:10 -07:00
Mihai Popa
8621631bf8 Merge "Revert "Stop window redraws for invisible parent children"" into qt-dev 2019-04-12 10:26:10 +00:00
Adrian Roos
76d2f52e3f Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev 2019-04-12 09:43:57 +00:00
Jacky Kao
d55fb27c9d Clarify documentation for View#setScreenReaderFocusable
Modify the document of this method, View#setScreenReaderFocusable,
To make as clear and precise as possible

Bug: 109898645
Test: Java Doc Build PASS
Change-Id: I683d420b6f1a4743d57dad9d06a343b85ec5da00
2019-04-12 16:59:06 +08:00
Louis Chang
3d4a7d1bc9 Unregister ImeInsetsSourceConsumer when focus lost
ImeInsetsSourceConsumer was not unregistered when focus lost, it
was still references by InputMethodManager. So, the last activity
in the process won’t be GCed even though it has been destroyed.

Bug: 130216346
Test: atest ImeInsetsSourceConsumerTest
Change-Id: Ida19411d8361180692e7de7e012d2cd3b431fa9f
2019-04-12 16:18:30 +08:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
Alison Cichowlas
902e82278a Merge "Add a longpress timeout config for screenshot chord" into qt-dev 2019-04-11 18:33:43 +00:00
Tony Mak
aa496d04b4 Doing sublisting after deduplication
For message like "a@anrdoid.com b@android.com", we wanna show no
suggestion on them because it will be ambiguous (Two chips with
label "Send Email"). And this is achieve by deduplication.

Previously, we did sublisting before duplication, and thus
we failed to remove some duplications. Let's do it the another way round.

BUG: 130344529

Test: atest
Change-Id: Idb4ea439daca710ce6247611f97c657e6a1c1a1b
2019-04-11 17:52:33 +01:00
Mihai Popa
175579b4b8 Revert "Stop window redraws for invisible parent children"
This reverts commit 4add16c4b8.

Bug: b/130061620
Bug: b/129692959

Change-Id: I07c54f1510d7a5e3aff92cbfffe944e9e8dae9a9
2019-04-11 16:43:56 +00:00
TreeHugger Robot
ac3d917aa3 Merge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev 2019-04-11 15:54:52 +00:00
Adrian Roos
6eb1ed3a61 System Bars: API to ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: I42facefc15dce227193a4db5f368184e1b5ebd32
2019-04-11 16:50:32 +02:00
Sunny Goyal
62915b28e0 Fixing HardwareBuffer leak when creating a bitmap
Callers are supposed to close the hardware buffer themselves. Creating
a utility method around this

Bug: 123874711
Test: No more leak warning on device
Change-Id: I2cf215f0646222f63e564a58edab1ffffa396ff3
2019-04-10 21:59:57 +00:00
TreeHugger Robot
b5258351ea Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev 2019-04-10 21:58:42 +00:00
TreeHugger Robot
a00cee7fed Merge "Nullability for ViewTreeObserver gesture exclusion" into qt-dev 2019-04-10 21:32:33 +00:00
Adam Powell
dafee65f21 Fix for unexpected scale factors in ScaleGestureDetector
Provided by levischmidt@google.com

Test: cts: atest ScaleGestureDetector
Fixes: 122328202
Change-Id: Ie229c39f65e4ac72a3f8e22317633f648f7fa008
2019-04-10 21:25:04 +00:00
Tony Mak
748281037b Remove remaining deepCopy() usages in TextClassifier
Did a grep to ensure no more deepCopy() in textclassifier folder.

BUG: 129901152

Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/

Change-Id: Ia1e6f3ad1664a0b57495d94d2cf5aa8945965862
2019-04-10 21:15:10 +00:00
Peiyong Lin
21e499ac88 Determine the dataspace of the screenshot buffer based on display color mode.
Previously when we capture layers into graphic buffer we always assume SRGB
dataspace, however, if we have an app that is in wide color gamut mode, we want
to show the difference. This patch adds the ability to determine the dataspace
screenshot graphic buffer based on the color mode of the display.

BUG: 116112787
Test: Build, flash and boot. Verify with WCG Photos.
Change-Id: Ie2df32cad056576c256b9299a67855ed73714f50
2019-04-10 13:30:51 -07:00
Abodunrinwa Toki
9aed55ebd9 Null annotations in TC APIs.
Fixes: 126699077
Fixes: 126698613
Test: none
Change-Id: I5eab3d7e4e15995e0b5a163dbfdc2b2923ddc136
2019-04-10 21:27:15 +01:00
TreeHugger Robot
3fa2657fd6 Merge "Hard-disable precompiled layouts" into qt-dev 2019-04-10 18:16:41 +00:00
Adam Powell
aa78d796f0 Nullability for ViewTreeObserver gesture exclusion
Bug: 128704597
Test: n/a
Change-Id: Ia89458cf967ab4e01738ba1658e3460f27ae1830
2019-04-10 18:09:44 +00:00
Felipe Leme
bef3d76b16 Merge "Clarified ContentCaptureCondition constructor." into qt-dev 2019-04-10 16:19:56 +00:00
Adrian Roos
4c864595bd System Bars: Ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: Ib8f4045b9e8e7bf65c13437133f114d91d0cb050
2019-04-10 18:16:25 +02:00
Eric Holk
49e7040b92 Hard-disable precompiled layouts
The feature is not enabled for Q, so although the cost of checking if it's
enabled is low, there's no reason to pay it at all.

Bug: 111895153
Change-Id: I0d20f47d2c8ddc15031257ce87b40a0d23a617ff
2019-04-10 09:16:05 -07:00
TreeHugger Robot
9214de571f Merge "Do not deep copy bundle in getExtras()" into qt-dev 2019-04-10 16:00:56 +00:00