Commit Graph

9742 Commits

Author SHA1 Message Date
Anthony Chen
6edd7b509e Merge "Modifications to allow notification header to be customized." 2017-04-21 16:46:09 +00: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
TreeHugger Robot
42775f2a89 Merge "Add a way to read the last AutofillSelection." into oc-dev 2017-04-19 02:43:08 +00:00
Felipe Leme
e5f9c30688 Some Autofill API changes.
- Added View.IMPORTANT_FOR_AUTOFILL_YES_INCLUDE_DESCENDANTS
- Added View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS
- Added FillResponse.Builder.setIgnoredIds()
- Fixed javadoc links.

These changes are not implemented yet....

Bug: 37424141
Bug: 36171235
Test: m update-api

Change-Id: I604960443ab08cd3f2a84a70b0a2cece7cb0a00c
2017-04-18 19:27:58 -07:00
Philip P. Moltmann
cc684ed41f Add a way to read the last AutofillSelection.
- Check UID to make sure one service cannot read FillSelections of other
  services
- Add id to Dataset to allow to tag the datasets. This id is then found
  in the FillSelection.Event
- Add clientState to FillSelection to allow service to store more data

Fixes: 36871500
Test: CtsAutoFillServiceTestCases
Change-Id: Ice894245508227265294a1c59ea97842175e5aec
2017-04-18 16:59:40 -07:00
Evan Rosky
e01b955c27 Merge "Ignore nested keyboard navigation clusters" into oc-dev am: 7906d47f69
am: 9e140d9c91

Change-Id: Id8d414b684a576f288288aa439c15f3e59646889
2017-04-18 23:12:10 +00:00
Evan Rosky
7906d47f69 Merge "Ignore nested keyboard navigation clusters" into oc-dev 2017-04-18 22:54:08 +00:00
Evan Rosky
5b860719a3 Handle edge-case where no focusables exist
cluster navigation was previously crashing if there was
nothing focusable..

Bug: 37438383
Test: Added CTS: ContentPaneFocusTest#testNoFocusablesInContent
      Ran against support-v7-demos Toolbar demos to verify
      crash didn't occur

Change-Id: Ia1382cec138a948d080aeded4d38735983df2152
2017-04-18 15:49:43 -07:00
Felipe Leme
7e4c205d8f Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter.
Fixes: 37330022
Test: CtsAutoFillServiceTestCases pass
Test: manual verification using app from bug 37327881

Change-Id: I66260131c7ef0d5b3c2b20514f29efd5eb10057e
2017-04-18 15:36:04 -07:00
Lucas Dupin
0c207340b9 Fix for SurfaceView out of a view hierarchy
At most of the time, developers rely on GLSurfaceView to manage
the OpenGL lifecycle. This means that a SurfaceView might not
always have a ViewRootImpl.

Test: select timelapse wallpaper and set it.
Bug: 37363390
Change-Id: I3cdb1ec2a6e91cfad65fd823a7436f0010c0859c
2017-04-18 10:01:34 -07:00
Phil Weaver
db9a774013 Pre-merge hide API for a11y service state
Presubmit failed because automerge failed on master
for some reason.

Bug: 35764675
Test: Ran a11y CTS
Change-Id: I47b62f2b4fd1ea4a7e697d20a3bb2c3201f6bcce
2017-04-18 08:17:14 -07:00
Winson Chung
95d1b07936 Merge "Account for content insets in source rect hint for transition into PiP" into oc-dev am: eef5d285f9
am: 60c9403f10

Change-Id: I9d14c0aaeaa84548c307c315b022729092cd0e49
2017-04-18 02:43:19 +00:00