Commit Graph

9752 Commits

Author SHA1 Message Date
TreeHugger Robot
eace6ca7ee Merge "Allow a11y listeners to specify handlers" 2017-04-25 03:26:57 +00:00
Phil Weaver
ccaebc2b06 Allow a11y listeners to specify handlers
This follows recommended practice for listeners, and also
allows ViewRootImpl to register for callbacks on its own
handler, which can prevent crashes in apps that have
different threads managing the UI at different times (for
example the system process).

Bug: 37542371
Test: Adding CTS tests for new APIs. A11y CTS still passes.
Change-Id: I65db025275e153c20b20567346246d5bc13bf418
2017-04-24 17:48:18 -07:00
Felipe Leme
a61d217028 Merge "Replaced getUrl() by getWebDomain()." into oc-dev am: ffef2ad2b0
am: bf4451aa0e

Change-Id: I96fae5dae4a5b5a03d39170ad04b1d812f991668
2017-04-24 22:17:35 +00:00
TreeHugger Robot
7d56384a28 Merge "Minor fixes on Autofill Framework:" 2017-04-24 21:34:27 +00:00
Abodunrinwa Toki
e498b995d9 Merge changes from topic 'am-bbd64631c3584513a9a39c2ec7139a27' into oc-dev-plus-aosp
am: 9f17850a67

Change-Id: I2fb3c54ad622055353f6cec77088eaa5924bafa6
2017-04-24 20:36:20 +00:00
Abodunrinwa Toki
d007e9703f Hide TextClassificationManager.detectLanguages API am: 8557802248
am: dc3a44ec33

Change-Id: I8b6edfe8ef1b9c97d660c99ee89502953b913857
2017-04-24 20:34:52 +00:00
Felipe Leme
c651e4d34f Minor fixes on Autofill Framework:
- Removed default implementation of onProvideAutofillVirtualStructure() that
  was using accessibility API (it's useless because without the View calling
  AutofillManager.notifyViewEntered(), it would never be triggered).
- Fixed obsolete TODOs.
- Removed obsolete service class name constant.
- Removed unused debug constant.

Test: CtsAutoFillServiceTestCases (on oc-dev) pass
Test: manual verification (on oc-dev)
Bug: 37078783
Bug: 33197203
Bug: 33802548
Bug: 35956626

Change-Id: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
2017-04-24 12:38:21 -07:00
Felipe Leme
4711ed9f9f Replaced getUrl() by getWebDomain().
Bug: 37566507
Test: CtsAssistTestCases pass

Change-Id: I1b4dfa7259040b3b8bf1014ebb806eb7a3b36c58
2017-04-24 09:43:08 -07:00
Anthony Chen
6edd7b509e Merge "Modifications to allow notification header to be customized." 2017-04-21 16:46:09 +00:00
Abodunrinwa Toki
85ae12aee1 Hide TextClassifier.getLinks API.
Test: none
Bug: 37565246
Change-Id: I275a9d055ef0ab68f3ca339c37ee939257c4bd54
2017-04-21 17:39:23 +01:00
Abodunrinwa Toki
8557802248 Hide TextClassificationManager.detectLanguages API
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37562190
Change-Id: Ibc1b7f61a8c5c8109de70e9026434c91a3ea655c
2017-04-21 16:25:13 +01:00
Philip P. Moltmann
97130c555d Merge "Correctly compute visible views" into oc-dev am: 5cb3d6bea3
am: db74a12c58

Change-Id: Idf4cf825e7a30532c18330733573e4960d19e016
2017-04-21 06:10:21 +00:00
gaoshang
684303a4b3 Merge "fix KeyEvent can't correctly finish when inputmethod time out happend" into oc-dev am: 56879000d9
am: ea7fc08e0f

Change-Id: Iaf9a0298c0c1c8490c59de10015c0485d342ab25
2017-04-21 05:58:36 +00:00
TreeHugger Robot
5cb3d6bea3 Merge "Correctly compute visible views" into oc-dev 2017-04-21 05:15:40 +00:00
TreeHugger Robot
56879000d9 Merge "fix KeyEvent can't correctly finish when inputmethod time out happend" into oc-dev 2017-04-21 02:36:10 +00:00
Felipe Leme
c255bd443a Merge "Fixed NPE on dump() and other minor fixes..." into oc-dev am: dbc020983d
am: 584033675e

Change-Id: Ie6f04394c5ca21c4d28107bd61369263d144d48a
2017-04-21 01:34:28 +00:00
TreeHugger Robot
dbc020983d Merge "Fixed NPE on dump() and other minor fixes..." into oc-dev 2017-04-21 01:20:23 +00:00
Anthony Chen
0f6e96c1ab Modifications to allow notification header to be customized.
Changes include:
- Allowing the margins between header items to be customized.
- Allow expand button to be laid out at the end of the header view.
- Ensure the media header height can be customized.
- Allow entire header to be clicked to expand the notification rather
than just the notification button.

Also, fix how the color is resolved from the header. It currently checks
the color directly on the expand button. However, this color can simply
be retrieved by the header's getOriginalNotificationColor() method.

Test: booted on phone and Android Auto headunit
Bug: 33210494
Change-Id: I4bb3ff42d23b44de28dc1196799a7c3bda40bbac
2017-04-20 17:14:13 -07:00
Phil Weaver
4a5ea54710 Merge "Hide API to listen to a11y service state" into oc-dev 2017-04-21 00:11:08 +00:00
Philip P. Moltmann
e0e287170e Correctly compute visible views
addToSet needs the same set as parameters as it returns. Otherwise the
returned set it overrridden.

In this case only the last visible view was added as the set was
overriden with the invisible views.

Test: CtsAutoFillTestCases
Fixes: 37550229
Change-Id: I80e16cbd8a1af83373d7ea7b0f84a7c4d157119f
2017-04-20 16:57:36 -07:00
Felipe Leme
b97b8670db Merge "Added missing important-for-autofill mappings." into oc-dev am: b8305e9186
am: 9cc391bacf

Change-Id: I43ade0dcb20fb1b138df68283d0403445f5f83db
2017-04-20 23:57:06 +00:00
TreeHugger Robot
b8305e9186 Merge "Added missing important-for-autofill mappings." into oc-dev 2017-04-20 23:43:38 +00:00
Felipe Leme
49e96960d4 Fixed NPE on dump() and other minor fixes...
Bug: 36871500
Test: manual verification
Change-Id: I1c3a8406344280da37b728eae56f26447c48e0b2
2017-04-20 15:53:06 -07:00
Felipe Leme
38c399d4cc Merge "Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter." into oc-dev am: f4af35a5fe
am: 2d0eb5e33c

Change-Id: I0be68f409ddc6883061765ea1e3688eb6cd54b37
2017-04-20 18:36:54 +00:00
TreeHugger Robot
f4af35a5fe Merge "Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter." into oc-dev 2017-04-20 17:25:19 +00:00
Phil Weaver
88ac6d9605 Merge "Make a11y clickable span work after node recycle" into oc-dev am: 5d25f429bf
am: 0b3408a369

Change-Id: I8e354ba1ecb353c696d6a7df07701c5c19544b6e
2017-04-20 16:59:33 +00:00
Abodunrinwa Toki
c63a0033f8 Merge "Merge "TRON: Log "textAssist" actions." into oc-dev am: fa9d889d3e" into oc-dev-plus-aosp
am: a039aa4439

Change-Id: I417110a15dfef29ff01fcd923ae29ec6f76f4d51
2017-04-20 16:39:54 +00:00
Felipe Leme
5a791c8584 Added missing important-for-autofill mappings.
Bug: 36171235
Test: m update-api
Change-Id: I7bbbe7a323110c89976cab3e4f5c8f4acba407d7
2017-04-20 08:26:14 -07:00
Phil Weaver
5d25f429bf Merge "Make a11y clickable span work after node recycle" into oc-dev 2017-04-20 14:51:43 +00:00
gaoshang
863ad2f89d fix KeyEvent can't correctly finish when inputmethod time out happend
Symptom: If inputmethod handle an KeyEvent time out ,
Did not finish this event correctly , eventually lead to app ANR
Root Cause: without seq number when obtainMessage MSG_TIMEOUT_INPUT_EVENT
Solution: add seq parameter

Test: Input
Test: InputMethod
Bug: 28635475

Change-Id: I3a2b964b34aa57267bd777305200a2bfdc66f65c
Signed-off-by: gaoshang <gaoshang@xiaomi.com>
2017-04-20 15:22:13 +01:00
Abodunrinwa Toki
fa9d889d3e Merge "TRON: Log "textAssist" actions." into oc-dev 2017-04-20 13:08:52 +00:00
Evan Rosky
1d603abc3a Merge "Improve ViewDebug reporting for focus properties" into oc-dev am: 4ab21012a7
am: a5f350fbb6

Change-Id: I70dde5b45f07d4af510e37073e22a9f3679715cc
2017-04-20 00:35:11 +00:00
Abodunrinwa Toki
7013c0d0ff Merge "TextClassifierImpl: Fix empty locale list issue." into oc-dev am: ef0512a87a
am: a98659942a

Change-Id: Id71eabec30d32c70301aa8f454a35ed97fe39a57
2017-04-20 00:29:23 +00:00
Evan Rosky
8e95d6a9a1 Merge "Merge "Handle edge-case where no focusables exist" into oc-dev am: f4c31bf67b" into oc-dev-plus-aosp
am: a5abe8f1d1

Change-Id: Ic5dc4d9ddb8626196ea16638e431869f3fbb5536
2017-04-20 00:02:00 +00:00
Phil Weaver
4cab9308fc Hide API to listen to a11y service state
Hiding and adding the requested return value, so if we
later decide to unhide it we'll be up to snuff for API
review.

Bug: 35764675
Test: Verified that the two features that listen, a11y
volume and the accessibility button on the nav bar, work
properly. Also ran accessibility CTS.
Merged-In: I47b62f2b4fd1ea4a7e697d20a3bb2c3201f6bcce
Change-Id: I4df6164772eb01b4f988c201f46c788eb7124511
2017-04-19 16:19:53 -07:00
TreeHugger Robot
1dcb94632a Merge "Opt out default focus highlight for TV." 2017-04-19 22:18:57 +00:00
TreeHugger Robot
92dd7193d4 Merge "Pre-merge hide API for a11y service state" 2017-04-19 21:52:07 +00:00
Jiaquan He
85cee7ab38 Opt out default focus highlight for TV.
Test: Checked that the default focus highlight doesn't show on TV.
Bug: 37160940
Change-Id: Id3719ce1aa602ba6792cc94c9fa034670509cda0
2017-04-19 21:14:05 +00:00
Abodunrinwa Toki
54486c16ba TRON: Log "textAssist" actions.
- Logs when the assist menu item appears in the text selection menu.
- Logs when the assist menu item is selected.
- Logs the the type of the assist menu item that was presented.

Test: Manually tested by looking at the logs. See: go/tron-howto
Bug: 32572232
Change-Id: Ibbbf59423b3f510ab6f2f072962a556c3d6e2f65
2017-04-19 22:10:51 +01:00
Phil Weaver
23161e7170 Make a11y clickable span work after node recycle
Services recycle nodes when gathering possible actions
for users to take. It's very confusing for them if they
can't recycle the node without breaking their ability
to activate a clickable span inside it.

Making ClickableSpans used for accessibility independent
of their parent nodes.

Also adjusting the value used for invalid window ids to
come from AccessibilityWindowInfo. I must have missed this
in an earlier cleanup. I needed the value for the spans,
so I figured I might as well use the correct one.

Bug: 37004527
Test: Now recycling the node in the a11y cts test.
Change-Id: I6de4e98a182dd43c4fcd0430a3c082fcc8e458c7
2017-04-19 14:08:34 -07:00
Evan Rosky
4ab21012a7 Merge "Improve ViewDebug reporting for focus properties" into oc-dev 2017-04-19 19:50:30 +00:00
TreeHugger Robot
ef0512a87a Merge "TextClassifierImpl: Fix empty locale list issue." into oc-dev 2017-04-19 19:20:43 +00:00
Evan Rosky
f4c31bf67b Merge "Handle edge-case where no focusables exist" into oc-dev 2017-04-19 18:08:29 +00:00
Jiaquan He
f5a0d099b3 Opt out default focus highlight for TV.
Test: Checked that the default focus highlight doesn't show on TV.
Bug: 37160940
Change-Id: Id3719ce1aa602ba6792cc94c9fa034670509cda0
2017-04-19 10:54:10 -07:00
Abodunrinwa Toki
a2df6e5415 TextClassifierImpl: Fix empty locale list issue.
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37289966
Change-Id: Ib822f2cc2fbaeb67dcc06e1f9fea306ee1c8c9ef
2017-04-19 13:52:12 +01:00
Felipe Leme
20ab6c550d Merge "Some Autofill API changes." into oc-dev am: fe1bddfbb5
am: a4d2749cf8

Change-Id: I460229f5bf0c4fc832256e00746a813fd08991ea
2017-04-19 05:18:57 +00:00
Felipe Leme
fe1bddfbb5 Merge "Some Autofill API changes." into oc-dev 2017-04-19 05:05:48 +00:00
Lucas Dupin
74411669a2 Merge "Fix for SurfaceView out of a view hierarchy" into oc-dev am: 9cd92959e6
am: 9169df47c5

Change-Id: I52ee3b55f0e6e7735738ec1ac07dd0e44d04124d
2017-04-19 03:29:45 +00:00
TreeHugger Robot
9cd92959e6 Merge "Fix for SurfaceView out of a view hierarchy" into oc-dev 2017-04-19 03:17:50 +00:00
Philip P. Moltmann
e43fe0af9d Merge "Add a way to read the last AutofillSelection." into oc-dev am: 42775f2a89
am: ded76ed806

Change-Id: I8cf4a959e9d60bd15c61955a802115904a2baead
2017-04-19 02:56:07 +00:00