Commit Graph

12763 Commits

Author SHA1 Message Date
Charles Chen
b2e3d1aa25 Merge "Revert "Unify context in ViewRoot"" into qt-dev
am: 5a2e6040c2

Change-Id: Icc3281cab710b0dfa615a6d7abcafac62cd0466b
2019-04-17 07:10:45 -07:00
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
Louis Chang
27105fb73a Merge "Unregister ImeInsetsSourceConsumer when focus lost" into qt-dev
am: c1a0fbcec5

Change-Id: Idde12e81d4f41ab039823470302e099a3c225f68
2019-04-17 06:22:08 -07:00
TreeHugger Robot
c1a0fbcec5 Merge "Unregister ImeInsetsSourceConsumer when focus lost" into qt-dev 2019-04-17 13:03:28 +00:00
Tony Mak
909bc69433 Merge "Follow-up CL of ag/6935284, add entities to extras in generateLinks" into qt-dev
am: 59ed9a7f27

Change-Id: I2544e5cc4439cc4344dcff8d435fec1cf9c18831
2019-04-17 03:46:28 -07:00
Tony Mak
d43ead222f Merge "Doing sublisting after deduplication" into qt-dev
am: 143c735ee6

Change-Id: I766154f9831feab0884a58a7ad27606a99f7d299
2019-04-17 03:38:22 -07:00
Tony Mak
389a79c28c Merge "Split TextClassifierEvent into multiple subclasses" into qt-dev
am: 0bf14e4804

Change-Id: I7a83d8a29a85e20789fb30353a4fd97275992f4f
2019-04-17 03:23:23 -07: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
Charles Chen
0ce542cac4 Merge "Unify context in ViewRoot" into qt-dev
am: 2569d579a4

Change-Id: I0e459f6b8e94489dc0e2f133d6c9df2382ebffe2
2019-04-16 21:47:22 -07:00
Felipe Leme
a0129ed980 Merge "Fixed AutofillOptions.isAugmentedAutofillEnabled to use the right client." into qt-dev
am: 17203cd88b

Change-Id: I1698b5b35f7998ad136eb4ea5629a4d1c22d70af
2019-04-16 21:36:03 -07:00
Adam Powell
b1cf22ef0a Merge "Gesture exclusion rects for Window" into qt-dev
am: 341ea09831

Change-Id: I07a9ad1a0d3ab20aeb1227c0895fa27bb4de3b19
2019-04-16 21:25:02 -07:00
TreeHugger Robot
2569d579a4 Merge "Unify context in ViewRoot" into qt-dev 2019-04-17 04:11:46 +00:00
Jacky Kao
2b0b849acc Merge "Clarify documentation for View#setScreenReaderFocusable" into qt-dev
am: fd9a858a40

Change-Id: I829c8b40a24e7f9c7654410453216bdd9960c307
2019-04-16 20:55:22 -07: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
3173de0a09 Merge "Clarified format of ContentCaptureCondition.FLAG_IS_REGEX" into qt-dev
am: dc868e04f9

Change-Id: Ic71cb4310bf7fa1d7933048bd6a0107afd6ec497
2019-04-16 14:10:51 -07:00
Felipe Leme
6ea4934587 Merge "Grant clipboard access to the Augmented Autofill service." into qt-dev
am: 50a56879e5

Change-Id: I04776328cb605e27ff5a69c30e00681bbdce7e19
2019-04-16 13:38:54 -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
Tony Mak
b9eda81d08 Merge "Add missing set/getExtras to ConversationActions.Request." into qt-dev
am: 786714e526

Change-Id: I0e70aba7a8a4dfc9192ee3f9e4559f2eaa1509eb
2019-04-15 18:12:55 -07:00
Felipe Leme
3e7ebd525b Merge "DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit." into qt-dev
am: 11141109f4

Change-Id: I096edc57c27211e1365e397d8782fba6637fe1ad
2019-04-15 17:19:21 -07: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
Adam Powell
3d83ec9640 Merge "Fix for unexpected scale factors in ScaleGestureDetector" into qt-dev
am: 472893443d

Change-Id: I22f0968e01cdd8ab20a7abaecc1050f4a1dbbab4
2019-04-15 14:27:12 -07: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
30f34f278a Merge "Add class docs for InputMonitor." into qt-dev
am: b0241bd88a

Change-Id: I2d1ad860aa6655b626502c91514ebf04571acef8
2019-04-12 15:35:39 -07:00
Michael Wright
b0241bd88a Merge "Add class docs for InputMonitor." into qt-dev 2019-04-12 21:39:51 +00:00
Abodunrinwa Toki
6f254cfc6c Merge "Null annotations in TC APIs." into qt-dev
am: b7f24a557e

Change-Id: If8b00fbf4b231de7dbf81c9b7e228f668e4ee246
2019-04-12 11:45:40 -07: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
22f795623c Merge "Determine the dataspace of the screenshot buffer based on display color mode." into qt-dev
am: 2a4e6f6e2d

Change-Id: I2ae05b0e0a55cabc97e6613a491115c42d215ad0
2019-04-12 10:26:20 -07: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
4ea8e43e52 Merge "Revert "Stop window redraws for invisible parent children"" into qt-dev
am: 8621631bf8

Change-Id: Ic42265cf6bb54787abb23488113d6af6385c9d6b
2019-04-12 07:22:42 -07:00
Adrian Roos
928a1a1826 Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev
am: 76d2f52e3f

Change-Id: I24f9a8d0c94a4b99a80b1439051b220a41cf4576
2019-04-12 06:46:52 -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