Commit Graph

9982 Commits

Author SHA1 Message Date
Eugene Susla
554edd35ec Serialize all standard actions as bit mask
As described in the attached bug, all(not just legacy) AccessibilityNodeInfo
standard actions can be serialized into a bit mask. This implements that.

Fixes: 33949542
Test: cts-tradefed run singleCommand cts -d --module CtsAccessibilityServiceTestCases
cts-tradefed run singleCommand cts -d --module CtsAccessibilityTestCases
cts-tradefed run singleCommand cts -d --module CtsUiAutomationTestCases
Change-Id: I0619ee33de3051d582420d4aef135205a9ec7e8c
2017-06-07 19:26:43 -07:00
Felipe Leme
0295914784 Merge "Moar Autofill Framework javadoc improvements:" into oc-dev am: 7990306b8b
am: fa2d7ffb95

Change-Id: I4734f1b5abbdf907692006355c2a60d13549819b
2017-05-26 19:12:33 +00:00
TreeHugger Robot
7990306b8b Merge "Moar Autofill Framework javadoc improvements:" into oc-dev 2017-05-26 18:55:38 +00:00
Felipe Leme
2b0181a16a Merge "Removed deprecated setAutofill() method for virtual children." into oc-dev am: 25ae29dfd5
am: 7dca2f6c74

Change-Id: Id3c55fac5286f9c77d09698711ca9467a3c43bae
2017-05-26 15:21:21 +00:00
TreeHugger Robot
25ae29dfd5 Merge "Removed deprecated setAutofill() method for virtual children." into oc-dev 2017-05-26 15:08:20 +00:00
Chet Haase
bea4e8341f Merge "Fix and clarify behavior of vertical/horizontal attributes" into oc-dev am: 68311f8712
am: 4b35637a4a

Change-Id: If37d42fffcd17cec5e00f92c8a24215cc5425751
2017-05-25 23:43:20 +00:00
Felipe Leme
6dcec87ea2 Moar Autofill Framework javadoc improvements:
- Fixed WebView < > and API calls.
- Improved description of virtual views.
- Described how to set boundaries of virtual views.
- Improved AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS doc.

Bug: 37567048
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Change-Id: Ic0d1e9ff2703c87d4007f0092a2f8dfe0efca6db
2017-05-25 16:10:08 -07:00
TreeHugger Robot
68311f8712 Merge "Fix and clarify behavior of vertical/horizontal attributes" into oc-dev 2017-05-25 22:51:18 +00:00
John Reck
89618d7feb Merge "Creating HW bitmaps from RenderNode" into oc-dev am: d63b77c627
am: df26122880

Change-Id: I7af81dd30eac562d50540bfb0ac60ffe4270530d
2017-05-25 19:09:23 +00:00
Felipe Leme
84f7264a9d Merge "docs: Clarifying code snippet for View.autoFill()" into oc-dev am: c8124cb94c
am: 79160ff86b

Change-Id: Id7a00b5e2e544cac3e9de54a7d610b7a3e4c899d
2017-05-25 19:00:53 +00:00
Felipe Leme
5f3dbb30fc Removed deprecated setAutofill() method for virtual children.
Test: CtsAutoFillServiceTestCases pass

Bug: 37563972

Change-Id: Icbffb89d86ee65831b7c78effd2522ac7891e1be
2017-05-25 11:51:50 -07:00
TreeHugger Robot
d63b77c627 Merge "Creating HW bitmaps from RenderNode" into oc-dev 2017-05-25 18:48:22 +00:00
Chet Haase
cb3d023639 Fix and clarify behavior of vertical/horizontal attributes
There were a couple of problems with the new paddingHorizontal
and layout_mareginHorizontal attributes. For one thing, the behavior
of layout_marginHorizontal needed to change with respect to marginStart/End.
Instead of the implemented behavior where Horizontal took precedence over
start/end, the behavior is being changed such that start/end can override
horizontal. This makes it consistent with the way that the attributes work
for padding.

Also, the attribute docs were not correct. For one thing, they needed to be
updated to match the new behavior for marginHorizontal. Also, the docs for
the padding attributes (including the docs for the existing "padding") were
not correct for the behavior as-implemented (specifically with respect to the
precedence of the attributes where paddingStart/End are concerned).

Bug: 37756178  double-check logic of horizontal/vertical attributes wrt start/end attributes
Test: Updated cts tests, submitting at the same time
Change-Id: I85a102549022cbec7d7b5c76f31ac985db103372
2017-05-24 18:35:48 -07:00
Andrew Solovay
05ceb4e0a6 docs: Clarifying code snippet for View.autoFill()
Per bug, updating code snippet to clarify that it's an example of an
implementation of the method. Oscar & Felipe, please check that I did
it right!

Also fixed a couple of HTML syntax errors while I had the file open
(badly formatted escape-characters that Chrome figured out, but other
browsers might choke on) and a spelling error.

Revised Javadoc is staged to:

http://go/dac-stage/reference/android/view/View.html#autofill(android.view.autofill.AutofillValue)

Test: make ds-docs
Bug: 38347106
Change-Id: I587a66c53fd5ebeeb6108529723d2d7a74c61cf7
2017-05-24 16:37:43 -07:00
John Reck
1fedd91687 Creating HW bitmaps from RenderNode
Allows creating a HW Bitmap from the drawing
commands of a RenderNode.

Bug: 38507414
Bug: 37698012
Test: Sample in HwAccelerationTest

Change-Id: I57c60b2c8bf5194f4412ad4b7f1c1f35e2e4c757
2017-05-24 22:10:40 +00:00
Abodunrinwa Toki
e3d7cfc6eb Merge "Make TextClassifier.getLinks(...) a default method." into oc-dev am: d80e82f917
am: 4d0cf17e19

Change-Id: Ie3d738623f687497cafdc38bac06074b9a6337b0
2017-05-24 02:11:39 +00:00
Abodunrinwa Toki
d80e82f917 Merge "Make TextClassifier.getLinks(...) a default method." into oc-dev 2017-05-24 01:57:50 +00:00
Felipe Leme
b9a8486b51 Merge "Hide Autofill UI when non-savable id is gone." into oc-dev am: eee1dd26fa
am: 8f3455c59c

Change-Id: I71fb0e6f4e6befb0d94fcd2b3a04aeaac83c6654
2017-05-23 23:55:59 +00:00
TreeHugger Robot
eee1dd26fa Merge "Hide Autofill UI when non-savable id is gone." into oc-dev 2017-05-23 23:28:38 +00:00
Abodunrinwa Toki
9115eeb483 Make TextClassifier.getLinks(...) a default method.
Fixes: 37907518
Test: cts-tradefed run cts-dev -o -m CtsSignatureTestCases -t
android.signature.cts.SignatureTest

Change-Id: I876781eccb2574ea01b6b460e14afd4e970a01b4
2017-05-23 21:29:39 +01:00
Felipe Leme
27e202208b Hide Autofill UI when non-savable id is gone.
AutofillManager keeps track of which views the AutofillServiec is interested to
save, so when these views are gone, the session is finished.

But when the AutofillService returns a dataset whose views it can not save,
the FillUi for these views are not hiding when the views are gone. This CL
fixes this issue by:

- Keeping track which non-savable views should be tracked.
- Pass the view (instead of it's id) when the UI on such views should be hid.

This CL also optimized some AIDL and internal calls by avoiding the creating of
unnecessary Lists.

Test: manual verification with Snapchat
Test: existing CtsAutoFillServiceTestCases pass
Test: new tests on MultipleFragmentLoginTest pass

Fixes: 38199452
Change-Id: I78fa357962dbc6667146d8e08cd6bacb63e0f337
2017-05-23 10:46:24 -07:00
Jorim Jaggi
d48fff4fa8 Merge "Fix window affecting SysUi visibility for once and all" into oc-dev am: 6cfc8afa7a
am: 768ce6edf6

Change-Id: Iac5ed116e1033ab741c123c2c758958ad914c493
2017-05-23 17:17:11 +00:00
TreeHugger Robot
6cfc8afa7a Merge "Fix window affecting SysUi visibility for once and all" into oc-dev 2017-05-23 16:58:42 +00:00
Rob Carr
6834944274 Merge "SurfaceView: Wait to gather transparent region." into oc-dev am: d9bf5ecf51
am: 3c78e73a33

Change-Id: Ifff868614ab70d9b99344abc41eab67745068937
2017-05-23 16:42:19 +00:00
Rob Carr
d9bf5ecf51 Merge "SurfaceView: Wait to gather transparent region." into oc-dev 2017-05-23 16:31:02 +00:00
Jorim Jaggi
23cc9aa50a Fix window affecting SysUi visibility for once and all
This unforunately introduces another quasi-visibiltiy method but
I think this is the best solution, as the code is pretty clean.

Test: Navigate through, settings, make sure no flickering
Test: Launch music from notification
Test: Launch United app
Test: Go settings -> app -> settings repeadetly 100 times, make
sure light bar transition is always clean
Fixes: 38216281

Change-Id: I0b97334dea3bfef2966ad0c7dd8bbd9907f2574c
2017-05-23 16:59:58 +02:00
Robert Carr
3ca12be796 SurfaceView: Wait to gather transparent region.
With the introduction of surfaceRedrawNeededAsync we may
be asked to gather the transparent region ahead of the SurfaceView
having been drawn.

Bug: 38324871
Test: Launch Chrome Canary a lot! No Flickers.
Change-Id: I35f09a1bb8316895fa704b10c912e64a8920bd90
2017-05-23 02:53:11 +00:00
Robert Carr
d65d63a546 Merge "SurfaceView: Don't destroy Surface while Stopped." into oc-dev am: 42c6529c1d
am: ffde264497

Change-Id: I17079f5e376f852aefa86d397a52c92b0864a442
2017-05-23 02:41:52 +00:00
TreeHugger Robot
42c6529c1d Merge "SurfaceView: Don't destroy Surface while Stopped." into oc-dev 2017-05-23 02:32:17 +00:00
TreeHugger Robot
1f5bc39373 Merge "Preserve order of a11y events" 2017-05-23 00:44:56 +00:00
Jiaquan He
3df405c78a Merge "Do not relayout on default focus highlight." into oc-dev am: badb83b332
am: 806ee59c00

Change-Id: I83152e4405573b21e92fc92190bee9bae82d101b
2017-05-22 22:58:09 +00:00
Eugene Susla
ccce5c9e64 Preserve order of a11y events
Test: cts-tradefed run singleCommand cts -d --module CtsAccessibilityServiceTestCases
cts-tradefed run singleCommand cts -d --module CtsAccessibilityTestCases
cts-tradefed run singleCommand cts -d --module CtsUiAutomationTestCases
Change-Id: I6a9230473f79148a3da9808d67d9e0c80abc8384
2017-05-22 14:16:47 -07:00
Jiaquan He
652e940ebd Do not relayout on default focus highlight.
Test: AdjacentListsWithAdjacentISVsInsideTest.testFocusedRectAndFocusHintWorkWithinListItemHorizontal
Bug: 38195445

Change-Id: I4ba61d1dd6b806bff5305986a086c436c3b05b12
2017-05-22 20:12:46 +00:00
Phil Weaver
87a1ec2b1e Merge "Revert "NumberPicker a11y (and a11y-inspired) fixes"" into oc-dev am: ed83139842
am: 204f535e2c

Change-Id: I16896585c4b4b1f064efb29631ca8c6684d3b76e
2017-05-22 13:27:17 +00:00
Phil Weaver
ed83139842 Merge "Revert "NumberPicker a11y (and a11y-inspired) fixes"" into oc-dev 2017-05-22 13:03:45 +00:00
Robert Carr
73678099f8 SurfaceView: Don't destroy Surface while Stopped.
We instead just want to leave it floating, and let
it's lifetime be controlled by the parent surface. This way it can
take part in animations. Normally the WindowManager handles this by
calling detachChildren but it seems sometimes stop arrives before
the window manager is even clued in. Rather than bringing ActivityManager
in to the detach children dance...this seemed more appropriate and very similar
to the behavior before SV->SurfaceControl port.

Bug: 37922210
Test: Manual from bug + Launch chrome a bunch
Change-Id: Iee4fb0078a6e8dfd4c7acdb0107f8edd3a995634
2017-05-19 15:21:58 -07:00
Phil Weaver
6ac1613cdd Merge "Throttle app a11y events in one place." 2017-05-19 22:12:26 +00:00
Keun-young Park
8c52b3fd49 Merge "Wait for keyguard draw before stopping boot animation" into oc-dev am: ff4cc4ebb5
am: 0bdd7ae68e

Change-Id: I53c900ebe66b99fc1596d57e0f43dc32248f8340
2017-05-19 20:22:54 +00:00
Keun-young Park
ff4cc4ebb5 Merge "Wait for keyguard draw before stopping boot animation" into oc-dev 2017-05-19 20:07:14 +00:00
Keun-young Park
4136d2d54b Wait for keyguard draw before stopping boot animation
- Add check for keyguard drawn before stopping boot animation.
  Otherwise blank screen can happen.
- Bind to keyguard service when sysui is launched to reduce waiting
  time later.
- Increase keyguard timeout to 5 secs if it is not boot completed.
  Otherwise (= normal screen on), keep the current 1 sec.
  This timeout can still lead into blank screen so use bigger timeout
  during boot-up to prevent such case.

bug: 37867510
Test: many reboots

Change-Id: Ibfdc42d295bb1d3f5b4ea316fe5aca9ab875e4be
2017-05-19 09:20:28 -07:00
Jorim Jaggi
bb14173b59 Merge "Take snapshot when screen is turning off" into oc-dev am: 64900ad13c
am: 8947e7a215

Change-Id: Ifec8c2e6368e01e47ae2fdf6fecded4a7aa9172e
2017-05-19 12:50:06 +00:00
Jorim Jaggi
64900ad13c Merge "Take snapshot when screen is turning off" into oc-dev 2017-05-19 12:29:54 +00:00
Jorim Jaggi
51304d7380 Take snapshot when screen is turning off
Since we can't take a snapshot when screen is turned off, we need
to snapshot before we are turning the screen off. For this, we
- Add a callback from DisplayPowerController to give policy a
chance to do something before display will be turned off.
- Implement this callback by taking snapshots of all visible
tasks.

Test: Inspect logs/traces about screen off blocking to make sure
callback is working correctly.
Test: Insert artificial 500ms delay in onScreenTurningOff and make
sure we are unblocking screen off when turning on screen in the
meantime.
Test: Open Maps, go to recents, open maps again, scroll to another
location, toggle power button, make sure the old location isn't
shown during unlock.

Change-Id: I489f31358f838d418f894f996495946084f136a4
Fixes: 37107783
2017-05-19 00:55:31 +02:00
Phil Weaver
10e340cb2a Throttle app a11y events in one place.
We were throttling content changed a11y events both in View
and in ViewRootImpl. This change eliminates the throttling
in View, so events can be consolidated to reduce the number
of IPCs.

Change-Id: I1e1ecf1afc399e4103da82e6ed1779abfd3ec955
2017-05-18 15:39:58 -07:00
Phil Weaver
a998b5f869 Revert "NumberPicker a11y (and a11y-inspired) fixes"
This reverts commit 1d359a6d31.

Bug: 38301562
Change-Id: I7a04f3068a8ecb0de63efcb82205b41916138a89
2017-05-18 16:19:23 +00:00
Jeff Sharkey
12f4b76db2 Merge "Unbreak even more APK 26 apps running on "O" preview/beta builds." into oc-dev am: 997042ac33
am: c244963675

Change-Id: I30e0155a9260ec4099ad45d7161c8459c8b657a2
2017-05-18 16:11:07 +00:00
TreeHugger Robot
294d4c29f6 Merge "Avoid a race condition on reading qemu.gles property" 2017-05-18 06:38:06 +00:00
Jeff Sharkey
f383c24749 Unbreak even more APK 26 apps running on "O" preview/beta builds.
Bug: 38391358
Test: builds
Change-Id: Ic48f9cb53da3ed8241e5d40d3096304ee4dfebd2
2017-05-17 17:53:38 -06:00
Eugene Susla
4a34f9c2f6 Print A11yEv. Content Change Types in DEBUG toString
Test: Enable debug, and ensure changeTypes are properly displayed
Change-Id: I1bf6a9f56a72e867a0bc967a5e3527eb4dc83952
2017-05-17 11:13:05 -07:00
Jaesung Chung
9a89d83dab Avoid a race condition on reading qemu.gles property
The qemu.gles property will be ready after the SurfaceFlinger service is
initializing. Once the all required variable is set, it caches the
result for the future calls.

Bug: 37759781
Test: Test with imx6ul and imx7d pico boards.
Change-Id: Ib9f11a51ec8a0707be854f67fc8591149ab7fd49
2017-05-17 23:26:14 +09:00