Commit Graph

9775 Commits

Author SHA1 Message Date
Svet Ganov
6d07726bbd Merge "Handle package changes in autofill manager service" into oc-dev am: 01d51288df
am: 9bf772566b

Change-Id: I0f18c9754249050c626c9078ed7fd5b705f84e9e
2017-04-27 04:46:53 +00:00
Svet Ganov
48f10a2ab5 Handle package changes in autofill manager service
Autofill manager service was not observing package changes thus
we did not properly handle the cases of the service being updated,
added, and removed. Handling, additions is needed to properly
support restore from a backup. Fixed a few missing locks.

Test: all autofill CTS tests pass and manually tested update, add,
      and remove of autofill services.

bug:36638606
bug:36978445

Change-Id: Idd47891774ba2a4e562a1952cbb5a048211fd4e3
2017-04-26 19:22:05 -07:00
Felipe Leme
66dc79b16c Merge "Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev am: 62bb027d12
am: 889bdc8dc9

Change-Id: Icc27cc9f47339845ebeed647116c914db1cca162
2017-04-27 00:18:21 +00:00
Felipe Leme
62bb027d12 Merge "Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev 2017-04-26 23:46:21 +00:00
Rob Carr
10382bf1ca Merge "Fix logspam NPE." into oc-dev am: bd1ef76684
am: 96a018166a

Change-Id: Iaae66abc2d4709d84498522483f5042e48d7f6b4
2017-04-26 22:05:04 +00:00
Rob Carr
bd1ef76684 Merge "Fix logspam NPE." into oc-dev 2017-04-26 21:43:30 +00:00
Felipe Leme
bb81092a31 Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE.
Also removed obsolete 'cmd autofill save'

Bug: 2153814
Test: manual verification

Change-Id: I082e6bb098e9be5d9e26d0941efcf6f28ab01e1d
2017-04-26 12:07:17 -07:00
Felipe Leme
6551a50c3d Merge "Provide a way to set AutofillId on ViewStructure." into oc-dev am: 5f7979222d
am: 58510a2d6b

Change-Id: I2850e33f2be4970aeac8ca1bd0f61703a73b18db
2017-04-26 19:05:13 +00:00
Felipe Leme
5f7979222d Merge "Provide a way to set AutofillId on ViewStructure." into oc-dev 2017-04-26 18:38:21 +00:00
Chris Craik
cf200f26eb Merge "Fix ViewOverlay#onDescendantInvalidated" into oc-dev am: db8f2fc025
am: a08dd9fff3

Change-Id: Icd0035e3b21e679f3fff01d165b5b3170b497929
2017-04-26 00:59:58 +00:00
TreeHugger Robot
db8f2fc025 Merge "Fix ViewOverlay#onDescendantInvalidated" into oc-dev 2017-04-25 23:15:52 +00:00
Felipe Leme
e4f30650ac Provide a way to set AutofillId on ViewStructure.
So far that was done indirectly by public methods that could
be overridden in away that does not set the proper id in the structure,
which would crash apps.

Bug: 36171235
Test: modified VirtualContainerActivityTest#testAutofillOverrideDispatchprovideAutofillStructure

Change-Id: I3f1c64020125cbb8349971a0bc52ccd1e0c81e62
2017-04-25 14:12:03 -07:00
Chris Craik
bc44b1a693 Fix ViewOverlay#onDescendantInvalidated
Fixes: 37307001
Test: android.view.ViewInvalidateTest

Also removes damageChildInParent, since it's not called anywhere.

Change-Id: Ic81d4465e4828c5826957ace2c44ac263b4662bd
2017-04-25 13:32:19 -07:00
Robert Carr
3651ab8e09 Fix logspam NPE.
Harmless but spammy.

Bug: 37622525
Test: Repro from bug.
Change-Id: I7fa2404fddb0c62efdd4553d5c61e92ae8f3a876
2017-04-25 12:05:34 -07:00
Phil Weaver
efb859f2af Merge "Allow a11y listeners to specify handlers" into oc-dev 2017-04-25 17:18:03 +00:00
Felipe Leme
e6623e5b2f Merge "Added APIs that let AutofillService implementations set themselves as such." into oc-dev am: fc513f98d7
am: 535422c80b

Change-Id: I978f429f100af65df6483364a90e29fc26ae0379
2017-04-25 09:11:04 +00:00
TreeHugger Robot
fc513f98d7 Merge "Added APIs that let AutofillService implementations set themselves as such." into oc-dev 2017-04-25 08:56:03 +00:00
Felipe Leme
d8dddc8c72 Merge "Hide deprecated APIs." into oc-dev am: 59fe3108fa
am: 4e71ae1243

Change-Id: Ib15e77c4ad3915ed41837584e587c2abbc6657de
2017-04-25 05:28:21 +00:00
TreeHugger Robot
59fe3108fa Merge "Hide deprecated APIs." into oc-dev 2017-04-25 05:09:27 +00:00
TreeHugger Robot
eace6ca7ee Merge "Allow a11y listeners to specify handlers" 2017-04-25 03:26:57 +00:00
Felipe Leme
db041188bc Added APIs that let AutofillService implementations set themselves as such.
Bug: 37576671
Test: manual verification
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: I6fd61f8a2826dbf6b6fce831f3deadf6df025386
2017-04-24 18:44:09 -07: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
85d1c2d290 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.

Fixes: 37078783
Fixes: 33197203
Bug: 33802548
Bug: 35956626

Test: CtsAutoFillServiceTestCases pass
Merged-In: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
Change-Id: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
2017-04-24 16:01:12 -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
Felipe Leme
cb4dd8090b Hide deprecated APIs.
Test: CtsAutoFillServiceTestCases pass
Bug: 37563972

Change-Id: Ia5f33c5624b7a6be3c152e126c99800914d23cbd
2017-04-24 14:04:56 -07: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
Phil Weaver
26d709fdfa 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-21 09:24:40 -07: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