Commit Graph

3464 Commits

Author SHA1 Message Date
Kevin Chyn
fc92b9ff8e Add setting to enable ES while sleeping
Also changed code so that our contentObserver updates relevant ES
variables when settings are changed

Fixes: 37719853

Test: manual
Change-Id: I624fd5e6cec728ccb01d01b6a8779764aa418a6a
2017-04-26 18:52:39 -07:00
Seigo Nonaka
865ae63322 Merge "Font API clean up" into oc-dev am: 25c2cdc052
am: 7de96042ed

Change-Id: If2580c1ea3b58b377484a26fd7e9107e9958e3ed
2017-04-26 23:49:09 +00:00
Seigo Nonaka
443afa50fc Merge "Load font file from remote provider synchronously." into oc-dev am: 1c661d1943
am: 6c0dd10a7c

Change-Id: Ifc66af9b116093e3d63bfedd1782f017a7126d3a
2017-04-26 18:13:40 +00:00
Seigo Nonaka
d26950e0a8 Merge "Update FontsContract.requestFonts" into oc-dev am: 57dc8328f5
am: 927353aa3e

Change-Id: I81c18b59201641440da1d4678722c7c7e5a81771
2017-04-26 18:08:29 +00:00
Seigo Nonaka
080b054bdd Font API clean up
- Move FontRequest from android.graphics.fonts to android.provider since
  this is only used by android.provider.FontsContract and never draw
  anything.
- FontRequest is no longer being Parcelable.
- Remove FontSpec.aidl which is not necessary.

Bug: 37326126
Test: am instrument -w -e class android.provider.FontsContractTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontProviderTest
      android.provider.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontRequestTest
      android.provider.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0eb501844247c2f07eaa1fc7a71f72e404888b5b
2017-04-26 18:00:17 +00:00
Seigo Nonaka
1c661d1943 Merge "Load font file from remote provider synchronously." into oc-dev 2017-04-26 17:49:59 +00:00
Seigo Nonaka
57dc8328f5 Merge "Update FontsContract.requestFonts" into oc-dev 2017-04-26 17:48:42 +00:00
Seigo Nonaka
d9de8be233 Load font file from remote provider synchronously.
Since CancellationSignal is not guaranteed to be handled by remote
process, introduce threaded font loading mechanism.
At the same time, this fixes possible NPE issue in openFont.

Bug: 37552479
Test: am instrument -w -e class android.provider.FontsContractE2ETest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner

Change-Id: Ie235c5a57bd172b0882da5aa27a990d7c6686ff2
2017-04-25 21:19:22 -07:00
Seigo Nonaka
8ea62b036d Update FontsContract.requestFonts
- Change FontsContract.requestFont plural form to meet other method
naming convension.
- Change FontsContract.requestFonts to accept CancellationSignal to
be able to notify to remote.

Bug: 37326126
Test: am instrument -w -e class android.provider.FontsContractE2ETest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner

Change-Id: I154f943eb4e7c91bff8afd86be479f72e66e5cb7
2017-04-25 19:56:56 -07:00
Svetoslav Ganov
07856ab8dc Make sure autofill service is backed up am: d8561a26da
am: 92e412dfb3

Change-Id: If46c616d922701493f797be1919b158707bc5574
2017-04-26 02:24:31 +00:00
Svetoslav Ganov
d8561a26da Make sure autofill service is backed up
Test: manual

bug:36638606

Change-Id: I3367b9eb40a542267fb5d49f9a8bb7aa97ca57fa
2017-04-26 01:57:07 +00:00
Jeff Sharkey
e00742f4c5 Merge "Fix some issues found by new doclava linter." into oc-dev am: a00c7c0a99
am: db73950734

Change-Id: I388d85c9eedccee594832e9947e2f8f095fbb10d
2017-04-26 00:41:04 +00:00
Seigo Nonaka
802c41bd11 Merge "Font provider cleaning ups." into oc-dev am: 5313eee98a
am: a3d5786a3d

Change-Id: Ic9a30e9bf8404c3a469bb0c998fd876ee94a3488
2017-04-26 00:39:15 +00:00
Jeff Sharkey
a00c7c0a99 Merge "Fix some issues found by new doclava linter." into oc-dev 2017-04-25 22:11:01 +00:00
Phil Weaver
fb805e0fe6 Merge "Merge "Remove a11y web flags and associated settings" into oc-dev am: cd68c334ba" into oc-dev-plus-aosp
am: b471a37b10

Change-Id: Ic6ccf5e38686d5169d70bece449c3c6ade3ab9fd
2017-04-25 21:13:19 +00:00
Amin Shaikh
f3024d69ec Merge changes from topic 'experio-scoring' into oc-dev am: bad4573bd4
am: 592ecd0b5a

Change-Id: I4780e742c271df5e1c4d791c86ee77f697e46d6c
2017-04-25 20:14:37 +00:00
Seigo Nonaka
54084b64b1 Font provider cleaning ups.
- Remove Columns.STYLE
- Decouple Context from Typeface.
- Make FontsContract constructor private since it is essentially static.
- Removed unused constants.

Bug: 37281200
Bug: 37268410
Test: am instrument -w -e class android.provider.FontsContractE2ETest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.FontsContractTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ic46c256141d27ca28f30023bcc40f4e1161d5338
2017-04-25 19:40:58 +00:00
Seigo Nonaka
94bc52b2e1 Merge "Remove Typeface.create" into oc-dev am: 0a7096dccb
am: 0582ccb776

Change-Id: Ie116f1f179730d488913bf89627dad1f76b635b3
2017-04-25 19:38:26 +00:00
Phil Weaver
cd68c334ba Merge "Remove a11y web flags and associated settings" into oc-dev 2017-04-25 19:25:23 +00:00
Jeff Sharkey
0f3f60b576 Fix some issues found by new doclava linter.
Add missing API annotations for permissions and SdkConstants, and
invoke doclava with new "-android" flag.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I970bb2655eb568fd25004636f134c794663a6c33
2017-04-25 13:12:45 -06:00
TreeHugger Robot
bad4573bd4 Merge changes from topic 'experio-scoring' into oc-dev
* changes:
  Remove Settings.CURATE_SAVED_OPEN_NETWORKS
  Remove request recommendation from AIDL files.
  Remove the recommendation request impl and test code.
  Deprecate the recommendation request code.
2017-04-25 18:51:51 +00:00
Seigo Nonaka
5a09c64345 Remove Typeface.create
Test: Manually done
Bug: 37514611
Bug: 37463988
Bug: 37281200
Change-Id: Ida704af910e0ae195b96803de506fa1e1d66c9f5
2017-04-25 09:38:39 -07: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
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
09d4ff8960 Remove a11y web flags and associated settings
Bug: 35707622
Bug: 28322375
Test: Ran a11y cts. Updated those tests in linked CL to
ignore this feature.

Change-Id: I1dccb3ae4e1f4d6bb832ae1b0edd4dad4a54289e
2017-04-22 01:21:03 +00:00
Suprabh Shukla
475cb57d80 Merge "Renaming intent action for unknown sources" into oc-dev am: f277ccbca6
am: de8f784bb2

Change-Id: Icaa3dc557f4a63250f22d334f57978e682830ab4
2017-04-21 21:45:24 +00:00
TreeHugger Robot
f277ccbca6 Merge "Renaming intent action for unknown sources" into oc-dev 2017-04-21 21:22:09 +00:00
Seigo Nonaka
a691442ce0 Merge "Cache the Typeface based on the FontRequest." into oc-dev am: 5b96e55d90
am: a121eabf99

Change-Id: Ib4e0860910b498cc8effb5b62b5642d0d9bbd39d
2017-04-21 18:18:19 +00:00
Seigo Nonaka
daa8dfc690 Cache the Typeface based on the FontRequest.
Bug: 37471729
Test: FontsContractE2ETest
Change-Id: Ifb1bd2b50077471404f5f1dffc01e7697d7042e6
2017-04-21 09:11:10 -07:00
Clara Bayarri
506847aa92 Merge "Update Typeface callback docs about error codes" into oc-dev am: 337be5a12f
am: 5d2334fb7c

Change-Id: Ib85820fd4e743102b6697ecb9ac92b5e45aa9c05
2017-04-21 09:55:49 +00:00
TreeHugger Robot
337be5a12f Merge "Update Typeface callback docs about error codes" into oc-dev 2017-04-21 09:44:53 +00:00
Suprabh Shukla
89aae4463a Renaming intent action for unknown sources
Renaming to maintain consistency with neighboring constants

Test: gts-tradefed run gts GtsExternalSourcesTestCases

Bug:37515311
Change-Id: I5e153d93fce01633ee69363c0725b026f1551b1e
2017-04-20 16:32:44 -07:00
Seigo Nonaka
c6b42059ef Merge "Stop fetching font data if the context is restricted." into oc-dev am: 4e45b1491a
am: 785738c2fc

Change-Id: I86a640a461d10de2acf7db95da0439f470a12502
2017-04-20 19:14:13 +00:00
TreeHugger Robot
4e45b1491a Merge "Stop fetching font data if the context is restricted." into oc-dev 2017-04-20 18:56:46 +00:00
Abodunrinwa Toki
e0a8e5bcef Merge "Merge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev am: 06a53d4729" into oc-dev-plus-aosp
am: 528adaed4f

Change-Id: If30d4f866655de89618d1afcb5560f9827691e11
2017-04-20 16:44:24 +00:00
Clara Bayarri
fb164c34f2 Merge "Api Council: hide FontsContract.Columns constructor" into oc-dev am: 1ef45a8bed
am: 18d539cd0a

Change-Id: I1712bdf8f1cb559a657407785230eccb4dd75722
2017-04-20 16:31:49 +00:00
Amin Shaikh
1321dda19f Remove Settings.CURATE_SAVED_OPEN_NETWORKS
Bug: 37356724
Test: make
Change-Id: I2763b3cfc4e1ebe38135a35e8fd36fee9750ba6b
2017-04-20 09:26:58 -07:00
Jeremy Joslin
b1a0139590 Remove the recommendation request impl and test code.
Removing most of the platform side request recommendation code and
its tests.

Test: adb shell am instrument -e class android.net.NetworkRecommendationProviderTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 37357264
Change-Id: I36e592c5c82c38aa2174a51cf02c6e9825ef4f11
2017-04-20 09:24:18 -07:00
Chad Brubaker
696ab6b7ff Merge "Change ANDROID_ID for Instant Apps" into oc-dev am: 904e6cad28
am: 97eecf8d09

Change-Id: Ibbea27ef27bfaa43649d0ff86e23f0ffd559d7f6
2017-04-20 13:34:06 +00:00
Abodunrinwa Toki
06a53d4729 Merge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev
* changes:
  SmartSelection Config installer.
  LangId Config installer.
2017-04-20 13:30:35 +00:00
TreeHugger Robot
1ef45a8bed Merge "Api Council: hide FontsContract.Columns constructor" into oc-dev 2017-04-20 12:52:43 +00:00
Clara Bayarri
5706a1b12d Update Typeface callback docs about error codes
As requested by API council, mention that the provider may
return its own error codes within the positive int range.

Bug: 37084803
Test: none
Change-Id: Ia8ee99432cc5025a12d43049e327605095dd2b57
2017-04-20 12:02:57 +01:00
Clara Bayarri
7fea2e264e Api Council: hide FontsContract.Columns constructor
Bug: 37515256
Test: none
Change-Id: I2a9de7ea30ffa39af5104977f6604ce3bda220fb
2017-04-20 11:56:09 +01:00
Abodunrinwa Toki
bb957d12ba SmartSelection Config installer.
Test: none
Bug: 34780396
Change-Id: I9cb04e7b20b565ac5d128475a90bd065c805e95e
2017-04-19 21:39:41 +01:00
Abodunrinwa Toki
51c4203ab4 LangId Config installer.
Test: none
Bug: 34780396
Change-Id: I6cdd608ea9a41041d03640997c076c6e6fea0129
2017-04-19 21:35:07 +01:00
Chad Brubaker
0d277a7b18 Change ANDROID_ID for Instant Apps
ANDROID_ID for Instant Apps now has the following properties:
1) per-app scoped
2) reset if the user clears the Instant App
3) remains the same if the Instant App gets upgraded to an installed
app.

Note that if the user goes instant -> installed_1 -> uninstall ->
installed_2 the ANDROID_ID at installed_1 will not be the same as
installed_2. This was deemed better than the id changing on the upgrade
step.

Test: manual
Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f
2017-04-19 11:10:53 -07:00
Felipe Leme
8a7b06d865 Merge "Clone autofill service settings on managed profile." into oc-dev am: fad9b07e31
am: 0f3a9cf166

Change-Id: I24535dee497b3a4c0e7247f0cf5bb3e6054f62f0
2017-04-19 00:33:58 +00:00
Felipe Leme
aa00896b8d Clone autofill service settings on managed profile.
Test: manual verification
Change-Id: I9d13e4230265b18444bfd30fd403c5fb98b88159
Fixes: 37351722
2017-04-18 15:14:43 -07:00
Daniel Sheng
45e0d34f45 Added Sesame camera lift gesture settings.
Test: make

Change-Id: I84ea9a8db0e09e0c02abc18a8f63e0b04efe8b7f
2017-04-18 12:47:54 -07:00
Seigo Nonaka
ebecd7e802 Stop fetching font data if the context is restricted.
Bug: 35763094
Test: android.provider.cts.FontsContractTest passes
Change-Id: I6b1a27c2a4898966b558ff98b0023670da6769dc
2017-04-17 15:22:22 -07:00