Phil Weaver
af00cb406c
Merge "Properly translate text locations to screen coords" into oc-dev am: 2a86bad94c
...
am: c89c9dd3a9
Change-Id: I873787374ca65c0d18bf0c62416c4ffd4db69ef3
2017-05-06 15:46:00 +00:00
Phil Weaver
2a86bad94c
Merge "Properly translate text locations to screen coords" into oc-dev
2017-05-06 15:29:24 +00:00
Philip P. Moltmann
c1e1810ca2
Merge "Report less data in structure to autofill provider" into oc-dev am: d19113b390
...
am: 889b15b4c2
Change-Id: Id60c55e06e94c3f639703beda9b249dcf0f8bd6c
2017-05-06 02:37:00 +00:00
Philip P. Moltmann
c368a240c9
Report less data in structure to autofill provider
...
Fixes: 35899963
Test: CtsAutoFillServiceTestCases, CtsAccessibilityTestCases,
CtsAccessibilityServiceTestCases
Change-Id: Ia7dba3e252e7678c033d67bcf653e592f3134304
2017-05-05 14:20:11 -07:00
Phil Weaver
6c617f0a93
Properly translate text locations to screen coords
...
Using the same method as getBoundsInScreen.
Bug: 35095925
Test: Manually verified location with test app, ran a11y cts
Change-Id: I1eee2a4eb23912698be61c9030d92bbade1d743a
2017-05-05 14:19:58 -07:00
Abodunrinwa Toki
fc9b396c10
Merge "Reject smart selection if outside original selection." into oc-dev am: 6dcae2b91f
...
am: 4aeea2404c
Change-Id: I2ef8f172023446def205cfd0b3e6384ab12fee7a
2017-05-05 20:41:59 +00:00
TreeHugger Robot
6dcae2b91f
Merge "Reject smart selection if outside original selection." into oc-dev
2017-05-05 20:29:33 +00:00
Abodunrinwa Toki
db8e72c5a8
Merge "TextClassifier: Remove debug logs." into oc-dev am: dc4fc1ebc2
...
am: 79c87bdf20
Change-Id: I6293ee9dbe6291b486ffd9b8fe01d1dcbe5cf96c
2017-05-05 18:01:37 +00:00
TreeHugger Robot
dc4fc1ebc2
Merge "TextClassifier: Remove debug logs." into oc-dev
2017-05-05 17:49:43 +00:00
Abodunrinwa Toki
b416297433
Reject smart selection if outside original selection.
...
- The aim is to be defensive and prefer to reject a selection if
it is likely to be wrong.
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 38019270
Change-Id: I35ebc84fb102373949366296434a31d899edfef3
2017-05-05 18:07:17 +01:00
Siarhei Vishniakou
6a9ad74c29
Merge "Adding feature: input device disable/enable."
2017-05-04 18:51:27 +00:00
Siyamed Sinir
914d42dbcd
Merge "Don't copy NoCopySpans for assist and autofill" into oc-dev am: 5073b91236
...
am: fb37bba30d
Change-Id: I4dc4116e456af56969a4c7559e19fa6369f0df12
2017-05-04 00:48:08 +00:00
Siyamed Sinir
5073b91236
Merge "Don't copy NoCopySpans for assist and autofill" into oc-dev
2017-05-04 00:27:31 +00:00
Felipe Leme
58c32e88fa
Merge "Removed deprecated ViewStructure.setUrl() method." into oc-dev am: 246cc5bf51
...
am: 5152055973
Change-Id: Ie3ea24baf32960eeaa8c85b71e25b8ec017212a1
2017-05-03 23:42:27 +00:00
TreeHugger Robot
246cc5bf51
Merge "Removed deprecated ViewStructure.setUrl() method." into oc-dev
2017-05-03 23:16:15 +00:00
Abodunrinwa Toki
15644eff8d
TextClassifier: Remove debug logs.
...
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 34778895
Change-Id: I1478fe1a2849b1d4661a71ecbf9a27f38430ee28
2017-05-03 21:10:20 +01:00
Abodunrinwa Toki
3f6daab8eb
Merge "TextClassifier: Append http:// to url intents that need one." into oc-dev am: 3baad0234b
...
am: 5adca9d964
Change-Id: I6c99ad6e10765f04d296e99e45df76aa5dc7aba7
2017-05-03 19:01:31 +00:00
TreeHugger Robot
3baad0234b
Merge "TextClassifier: Append http:// to url intents that need one." into oc-dev
2017-05-03 18:49:19 +00:00
Evan Rosky
df10a77589
Merge "Don't focus search user-specified views which are invisible" into oc-dev am: 3b213ed438
...
am: 078728f100
Change-Id: I313b35f2f20ed4e0a0af5c45ba95816a2ed7d083
2017-05-02 21:18:23 +00:00
Abodunrinwa Toki
70d41cd792
TextClassifier: Append http:// to url intents that need one.
...
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 36504599
Change-Id: I5008225a6a3df2d8e07e4a9ae0e340a6582f9e7b
2017-05-02 22:12:33 +01:00
Evan Rosky
3b213ed438
Merge "Don't focus search user-specified views which are invisible" into oc-dev
2017-05-02 20:54:12 +00:00
Felipe Leme
a8fce3b29e
Don't copy NoCopySpans for assist and autofill
...
For AssistStructure, and AutofillValue, create a copy of the text in
setText and forText methods if it is a Spanned.
Fixes: 36838999
Test: cts-tradefed run cts -m CtsAutoFillServiceTestCases
Test: cts-tradefed run cts -m CtsAssistTestCases
Test: cts-tradefed run cts --test android.widget.cts.TextViewTest -m \
CtsWidgetTestCases
Change-Id: I52e780fa9baa17c375d3945dc714171f41fd7db5
2017-05-02 13:33:07 -07:00
Abodunrinwa Toki
021119d5a2
Merge "Close file descriptor after SmartSelection is initialized." into oc-dev am: b950ac6b0f
...
am: 2deb2fab29
Change-Id: I7cf2ecfb78c64f626371dedab5394d0079c8cadc
2017-05-02 19:07:30 +00:00
Felipe Leme
61b7f12172
Removed deprecated ViewStructure.setUrl() method.
...
Fixes: 37623568
Test: CtsAutoFillServiceTestCases pass
Test: CtsAssistTestCases pass
Change-Id: I13cdf08f40ba3db31ddb3f104f99b7ab8839bd01
2017-05-02 10:58:42 -07:00
Abodunrinwa Toki
6ace893026
Close file descriptor after SmartSelection is initialized.
...
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37446398
Change-Id: I6f6d927f447d3cc1dffaee2406ff240d0600eb19
2017-05-02 17:17:26 +00:00
Casey Burkhardt
337e2aae53
Merge "Refactor accessibility button support detection" into oc-dev
2017-05-02 04:05:30 +00:00
Evan Rosky
ca6b876575
Don't focus search user-specified views which are invisible
...
While searching for next user-specified focus, skip over any
views which are not visible. This will continue searching down
the chain until it either finds a visible view or until the
chain ends (at which point the normal findNextFocus search is
used).
This was causing problems in apps like the wallpaper selector
where focus would get stuck because calling requestFocus on an
invisible view is a no-op.
Bug: 37789849
Test: Added CTS. Checked that focus no-longer gets stuck in
wallpaper app.
Change-Id: I1a52143bd6c63364418fe6250e6c3f83e2e1c726
2017-05-01 16:36:24 -07:00
Casey Burkhardt
ad217d1f86
Refactor accessibility button support detection
...
- Moves logic to detect devices capable of supporting the
accessibility button into AccessibilityManager from
SettingsLib to avoid issues with resource shifting in the
SUW binary
Bug: 37650567
Test: Existing Robolectric / Manual
Merged-In: Ibb2aaa3c2f79570df768cfa796fa890988ef82cc
Change-Id: I83bbecdf7836ae0de32ce7d39155ac0c111a8f15
2017-05-01 15:53:17 -07:00
Casey Burkhardt
2233fb13e0
Manually merge CL 2175149 to master for green build
...
Refactor accessibility button support detection
- Moves logic to detect devices capable of supporting the
accessibility button into AccessibilityManager from
SettingsLib to avoid issues with resource shifting in the
SUW binary
Bug: 37650567
Test: Existing SUW Robolectric
Change-Id: Ibb2aaa3c2f79570df768cfa796fa890988ef82cc
2017-05-01 15:45:32 -07:00
Jeff Sharkey
a03c9d1640
Merge "Updates based on API council guidance." into oc-dev am: 3ba7117164
...
am: e13d60764c
Change-Id: Ib0a727b11cc24c20d10adf9df85df100f603a87f
2017-05-01 18:52:23 +00:00
Siarhei Vishniakou
a7f99b5ea8
Adding feature: input device disable/enable.
...
This functionality will only be available for signed system applications.
A disable call will cause a file descriptor to the input device
driver to be closed, which in turn may cause the input device
to switch into a low-power mode.
An enable call will reopen the input device.
Bug: 30143923
Test: developed a custom apk with signature permission that
calls disable/enable on touchscreen device. Verified that
touchscreen stops working when disable is called and starts
working again when enable is called. Verified that the file
handle to the driver is closed and reopened. Verified that
the notification onInputDeviceChanged is received in the app.
CTS test - android.view.cts.InputDeviceEnabledTest
Change-Id: I1e42c6996e679c083cd3f0c9adfaef8ba22c4ee4
2017-05-01 11:52:13 -07:00
Jeff Sharkey
3ba7117164
Merge "Updates based on API council guidance." into oc-dev
2017-05-01 18:36:25 +00:00
Abodunrinwa Toki
84c6b60476
Merge "TextClassifier: API rename" into oc-dev am: 093eb12994
...
am: 7acf27c9be
Change-Id: Iab9dd6b5bc8fdcb8cbe1150748dfc67fcc304bf8
2017-04-30 17:36:38 +00:00
TreeHugger Robot
093eb12994
Merge "TextClassifier: API rename" into oc-dev
2017-04-30 17:15:55 +00:00
Svet Ganov
c5ef292548
Merge "Address API council comments" into oc-dev am: 4c60abc9ae
...
am: 4ad7cb3347
Change-Id: I676b6f5d97a893c478c2f0e02efa17456c178a17
2017-04-30 06:58:29 +00:00
TreeHugger Robot
4c60abc9ae
Merge "Address API council comments" into oc-dev
2017-04-30 06:43:15 +00:00
Abodunrinwa Toki
e0b57893c6
TextClassifier: API rename
...
getTextClassificationResult() -> classifyText()
TextClassificationResult -> TextClassification
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37769880
Change-Id: I2d926e89058babf06bcff390bee3a45e965984e8
2017-04-30 01:06:03 +01:00
Jeff Sharkey
000ce80505
Updates based on API council guidance.
...
Test: builds, boots
Change-Id: I223faf55c1e1b4d81d11b4c8b2d93ccd131c969b
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423
2017-04-29 13:14:17 -06:00
Phil Weaver
6c6aac0f2f
Merge "A11y changes for API council" into oc-dev am: 060f0f0341
...
am: 3ed7b9e257
Change-Id: I9365af91fa88239b95c602806e04c86b548e5b2e
2017-04-29 16:12:30 +00:00
TreeHugger Robot
060f0f0341
Merge "A11y changes for API council" into oc-dev
2017-04-29 15:54:27 +00:00
Philip P. Moltmann
11f1bb3967
Merge "Make autofilled highlight an attribute" into oc-dev am: c7bd554d06
...
am: 5732faa336
Change-Id: Ib4ed809cd2aadb385cbb5bce7de18fcb4d1563ca
2017-04-29 05:43:45 +00:00
Svet Ganov
f965b87a78
Address API council comments
...
bug:37769694
bug:37322491
Change-Id: I931cfb5ea5fef1505a97b169125ed2cdaaa3d6ff
2017-04-28 23:45:17 +00:00
Philip P. Moltmann
f5e4bfd856
Make autofilled highlight an attribute
...
Fixes: 37738299
Test: - CtsAutoFillServiceTestCases
- CtsUiRenderingTestCases:.testclasses.AutofillHighlightTests
Change-Id: I6106f7b2e44d18cd8c80c084f25737e43cbc44de
2017-04-28 16:13:46 -07:00
Phil Weaver
be2922ff34
A11y changes for API council
...
Bug: 37749679
Bug: 37747749
Bug: 37737948
Bug: 37718183
Bug: 37720667
Bug: 37724600
Bug: 37708057
Test: Updating unit and cts tests, which still pass.
Change-Id: If28bdf985c4314e8e84dcd6510f406dd4e80dd38
2017-04-28 14:58:35 -07:00
Felipe Leme
e7555f04dc
Merge "Changed EXTRA_DATA_EXTRAS to EXTRA_CLIENT_STATE." into oc-dev am: c21f723ca2
...
am: 977cbc6690
Change-Id: Ibc07c8b9b614e5fbfc1fbedd609f45f1a2fe7398
2017-04-28 20:49:56 +00:00
Felipe Leme
c21f723ca2
Merge "Changed EXTRA_DATA_EXTRAS to EXTRA_CLIENT_STATE." into oc-dev
2017-04-28 20:29:49 +00:00
Felipe Leme
37a440fd8b
Changed EXTRA_DATA_EXTRAS to EXTRA_CLIENT_STATE.
...
Test: CtsAutoFillServiceTestCases pass
Fixes: 37775662
Change-Id: I85c016c3eb84a439371ac707f78b01d9882b75e9
2017-04-28 11:03:57 -07:00
Evan Rosky
b2e1fec142
Merge "removeAllViews should also clean-up focusedInCluster" into oc-dev am: 7666d6f967
...
am: adcc61d65f
Change-Id: I91829dceceaf3d2a273f43d9f1d7732cd30b8ff4
2017-04-28 17:19:38 +00:00
Evan Rosky
7666d6f967
Merge "removeAllViews should also clean-up focusedInCluster" into oc-dev
2017-04-28 17:05:46 +00:00
Felipe Leme
02adf09e5b
Merge "Improved Autofill logging." into oc-dev am: 2d5c0d89e5
...
am: eb9a99c3d4
Change-Id: Iefa99c2578934ba959d075e5b620d9cc81df668c
2017-04-28 16:02:56 +00:00