Commit Graph

17728 Commits

Author SHA1 Message Date
TreeHugger Robot
ba85991139 Merge "Add TimeZoneRulesDataContract to system API" 2017-07-17 16:44:47 +00:00
Przemyslaw Szczepaniak
9c308e6a36 Merge "Track libcore commit 58228b82c64808eddac02736f18f5003730443a0" am: 29926838d4 am: 40dfadda77 am: 004ae3ae71
am: 9022cf0c2e

Change-Id: Ic50e0daa27503660cce8f65a3fbb84f8ee5d323e
2017-07-17 11:11:52 +00:00
Przemyslaw Szczepaniak
9022cf0c2e Merge "Track libcore commit 58228b82c64808eddac02736f18f5003730443a0" am: 29926838d4 am: 40dfadda77
am: 004ae3ae71

Change-Id: I74a0d7f3623bb1e6fdf6142a702c0e5dcfe1d5ee
2017-07-17 11:02:55 +00:00
Przemyslaw Szczepaniak
40dfadda77 Merge "Track libcore commit 58228b82c64808eddac02736f18f5003730443a0"
am: 29926838d4

Change-Id: I7c0f6b9c064ce7eba1eb0cd4c6bca7464ce24100
2017-07-17 10:48:50 +00:00
Przemyslaw Szczepaniak
29926838d4 Merge "Track libcore commit 58228b82c64808eddac02736f18f5003730443a0" 2017-07-17 10:37:35 +00:00
TreeHugger Robot
080838c0a4 Merge "Test if allocation supported; @removed clean up." 2017-07-16 05:18:36 +00:00
Jeff Sharkey
4233f032fd Test if allocation supported; @removed clean up.
SM.allocateBytes() doesn't offer a clear way to detect if a failed
request could ever succeed.  (For example, we can never work with
pipes, or files on an unsupported storage device.)  So give
developers a first-class API to test if allocation is supported.

If the underlying filesystem doesn't support fallocate(), fall back
to ftruncate() instead of failing completely.

Clean up @removed APIs that were refactoring during API 26 review
process.

Remove support for storing downloads on the /cache partition, which
doesn't exist on many devices.

Bug: 63057877
Test: bit DownloadProviderTests:*
Test: bit DocumentsUITests:com.android.documentsui.services.CopyJobTest
Test: bit DocumentsUITests:com.android.documentsui.services.MoveJobTest
Change-Id: I85d42a1a7240034b4f2a6f359011ac182bdce36e
2017-07-15 21:08:56 -06:00
TreeHugger Robot
42b4446b0e Merge "Iterate NetworkPolicy towards SubscriptionPlan." 2017-07-15 19:57:08 +00:00
Evan Rosky
99b254be5c Merge "Clean up @hide usages in cts tests" 2017-07-15 01:17:35 +00:00
Jeff Sharkey
53313d7e81 Iterate NetworkPolicy towards SubscriptionPlan.
Add new SubscriptionPlan API to describe the various types of carrier
data plans.  Internally the OS will only use the first plan for
driving policy, but it will blindly plumb through the details for
Settings to display any secondary plans.

As part of getting Settings ready to roll towards SubscriptionPlan,
reduce references to NetworkPolicy internal fields.  All usage cycle
details are now obtained from an Iterator which converts to
SubscriptionPlan under the hood.

Replace all data usage cycle calculation with new SubscriptionPlan
implementation, and retrofit large suite of existing tests to
exercise and verify the new logic.

Offer a debugging property that can be used to return "fake" plan
examples for testing.

Bug: 63391323
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Exempt-From-Owner-Approval: Bug 63673347
Change-Id: I889c653980eeb7887abdfa4f5b6986f35855ee6d
2017-07-14 16:18:40 -06:00
Evan Rosky
c5420ea31b Clean up @hide usages in cts tests
Bug: 62066671
Bug: 62067303
Test: ViewGroupTest and View_FocusHandlingTest still pass
Change-Id: I010a570bfcea212f1319a26f616c7841e841c00d
2017-07-13 15:36:56 -07:00
Tomasz Wasilczyk
e83dbb90fa Merge "Publish new Broadcast Radio APIs." 2017-07-13 20:50:10 +00:00
Tomasz Wasilczyk
05392d6360 Publish new Broadcast Radio APIs.
Also, rename FEATURE_RADIO to FEATURE_BROADCASTRADIO.

Bug: b/34348946
Bug: b/63405337
Test: instrumentalization
Change-Id: Ibf5851a10b94f9e82db85f740fde6f28efe48666
2017-07-13 07:46:25 -07:00
Przemyslaw Szczepaniak
f36ecf37f3 Track libcore commit 58228b82c64808eddac02736f18f5003730443a0
Test: CtsLibcoreTestCases
Bug: 62949898
Change-Id: Icc41052e9476cc08bf3fa9579964f141d164c36c
2017-07-13 14:23:44 +01:00
Nate Fischer
465104817d Merge "WebView: Fix SafeBrowsingResponse API" 2017-07-13 05:17:39 +00:00
Nate Fischer
520a8ba279 WebView: fix WebView#setSafeBrowsingWhiteList
This corrects the WebView#setSafeBrowsingWhiteList method to accept a
List<String> instead of a String[], as per API council recommendation.

Bug: 63084528, 63615148
Test: N/A
Change-Id: I53f490c6ab9c10fffe6c89010d7509747ac8f95f
2017-07-12 17:37:07 -07:00
Nate Fischer
6aabdc4dbc WebView: Fix SafeBrowsingResponse API
The methods were previously package-private by mistake. This fixes them
to be public.

Bug: 63615582, 62723291
Test: N/A
Change-Id: Ie9095f861213a70fd655561f911385bdd06632b3
2017-07-12 17:20:55 -07:00
Hall Liu
19b49f6c3c Merge "Implement getDownloadStatus and add permission" am: 2fa880d016 am: d45a007222 am: 9888af1dfc
am: 81d9c6fe71

Change-Id: Ida7f8cfd440553658108688b84f866dddafa3166
2017-07-12 23:57:21 +00:00
Hall Liu
81d9c6fe71 Merge "Implement getDownloadStatus and add permission" am: 2fa880d016 am: d45a007222
am: 9888af1dfc

Change-Id: I98d30f379072302a5e76a8b157d8aecdd1616235
2017-07-12 23:44:51 +00:00
Hall Liu
d45a007222 Merge "Implement getDownloadStatus and add permission"
am: 2fa880d016

Change-Id: I1c8b9140d6fdc20347858f1296dbccfc60319959
2017-07-12 23:27:49 +00:00
Hall Liu
2fa880d016 Merge "Implement getDownloadStatus and add permission" 2017-07-12 23:18:37 +00:00
TreeHugger Robot
d16aeddbd1 Merge "Make CustomDescription safe against crashes" 2017-07-12 22:29:10 +00:00
TreeHugger Robot
72c323964c Merge "Verify regex for SimpleRegexVerifier" 2017-07-12 22:24:18 +00:00
TreeHugger Robot
6d2ae1fd73 Merge "Handle failures in validators" 2017-07-12 22:18:31 +00:00
TreeHugger Robot
d1e123cbad Merge "Autofill: Add API for virtual view visibility" 2017-07-12 17:36:29 +00:00
Neil Fuller
baf1c3df80 Add TimeZoneRulesDataContract to system API
Add TimeZoneRulesDataContract to system API and remove
TODOs to add other classes that should not now be needed
in the system API (since they are used by a platform-only
app).

Bug: 31008728
Test: make droid
Change-Id: I600e7b08853b86b27463193411cf85207ae09ce8
2017-07-12 18:20:59 +01:00
Philip P. Moltmann
3858aa6736 Make CustomDescription safe against crashes
... And allow users of the public APIs use Transformations.

Test: bit CtsAutoFillServiceTestCases:.CustomDescriptionTest
Bug: 62534917
Change-Id: I6b7b7d5e343e78f2f0381303451e08bb16c5c3e6
2017-07-12 09:38:08 -07:00
Philip P. Moltmann
f28764d900 Verify regex for SimpleRegexVerifier
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
          --test=android.autofillservice.cts.SimpleRegexValidatorTest
Bug: 62534917
Change-Id: I63a887643bff0f8d584069ee47f091b0edb8684c
2017-07-12 08:38:41 -07:00
Philip P. Moltmann
0e3e6f8274 Handle failures in validators
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
          --test=android.autofillservice.cts.ValidatorTest
Bug: 62534917

Change-Id: I3aad06cd2e8b6caf7238e420727aca0cb3703bc5
2017-07-12 08:05:01 -07:00
Svetoslav Ganov
4db89ba82e Autofill: Add API for virtual view visibility
Test: VirtualContainerActivityTest

bug:38509603

Change-Id: I3546c99d0b13316337c5015e003337b8019194a9
2017-07-11 19:43:01 -07:00
TreeHugger Robot
071072f33e Merge "Implement Luhn checksum algo" 2017-07-12 01:06:55 +00:00
Nate Fischer
1753646c28 Merge "Add SafeBrowsingResponse abstract class" 2017-07-11 20:35:23 +00:00
Nate Fischer
2f7af06efb Add SafeBrowsingResponse abstract class
This adds a new class called SafeBrowsingResponse to replace the
ValueCallback parameter for WebViewClient#onSafeBrowsingHit. This
class contains specific methods for each of the available actions.

This also removes the SAFE_BROWSING_ACTION_* constants from the
WebViewClient class.

Bug: 62723291
Test: N/A
Change-Id: Ie4fe878ea470f7aea7a716ae9edb80b53b73e172
2017-07-11 20:32:04 +00:00
Philip P. Moltmann
4e5ce39039 Implement Luhn checksum algo
Ignore all non-digits. If only digits should be allowed, the
developer can use a combination of SimpleRegexValidator and
RequiredValidators.

Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
          --test=android.autofillservice.cts.LuhnChecksumValidatorTest

Change-Id: I4a7c68a236c3d4cb967f1bc61115df89e584a86d
2017-07-11 09:19:31 -07:00
TreeHugger Robot
99f0e0ef1e Merge "Verify regex on ImageTransformation" 2017-07-11 01:40:09 +00:00
Philip P. Moltmann
de78fabb74 Verify regex on ImageTransformation
Also change the constructor of the Builder of this class

Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
Change-Id: Ie54f3a1d4b3a0ecd25945d3deafb4858423f926e
2017-07-10 16:54:52 -07:00
Philip P. Moltmann
ebbe2d4899 Verify regex on CharSequenceTransformation
... Also
- change the constructor of the Builder of this class
- Do not crash if the subsitutions for the regexes are invalid

Change-Id: I965d5830f4932eb40ec22d7fa308815955920a99
Bug: 62534917
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
2017-07-10 15:15:48 -07:00
TreeHugger Robot
de295549d1 Merge "Hide some systemapi methods" 2017-07-10 17:59:36 +00:00
TreeHugger Robot
b2f9ab3347 Merge "Allow splits to declare a classloader type." 2017-07-10 15:01:52 +00:00
Przemyslaw Szczepaniak
a2c84e7afa Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621" am: c895fcef8f am: 03e304e4e8 am: 0d53000386
am: 193c7d05c8

Change-Id: I2f31a97b8392a1085b485eed831fc67a57dc46ba
2017-07-10 14:09:01 +00:00
Przemyslaw Szczepaniak
193c7d05c8 Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621" am: c895fcef8f am: 03e304e4e8
am: 0d53000386

Change-Id: I7e6064ba6d0b74584eec526d61ebb46abc02ad4f
2017-07-10 14:02:33 +00:00
Przemyslaw Szczepaniak
03e304e4e8 Merge "Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621"
am: c895fcef8f

Change-Id: I1aecc608b0eaa807489683526a9267003eb975b1
2017-07-10 13:40:49 +00:00
Przemyslaw Szczepaniak
44d7cd06d2 Track libcore commit 2fd032687ba3d4d7f6af560482c5aba525584621
Test: Make
Bug: 62779247
Change-Id: I919df93b20e809f42a27225403e1549b763b0a60
2017-07-10 11:56:55 +00:00
Lucas Dupin
f058f7a58d Merge "Merge "Hide all color hints references" into oc-dr1-dev am: b1ab0ff21e" into oc-dr1-dev-plus-aosp
am: 6e7e4ed024

Change-Id: I66ba5dd375d68f90ab21a37e37735d0e22a9a933
2017-07-07 03:07:42 +00:00
Lucas Dupin
1446809f30 Merge "Hide all color hints references" into oc-dr1-dev
am: b1ab0ff21e

Change-Id: I54e5d27f52d197ae2512ab7216e12e11cf5c8c30
2017-07-07 02:42:35 +00:00
TreeHugger Robot
b1ab0ff21e Merge "Hide all color hints references" into oc-dr1-dev 2017-07-07 00:12:08 +00:00
Alex Light
4276eb8ae9 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor" am: a4267fd89f am: c9b8de6136 am: e45205825f
am: 48f04c9da2

Change-Id: I44b433ac58d83ad029ee74e211385e0bd6e1ab19
2017-07-06 21:36:45 +00:00
Alex Light
48f04c9da2 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor" am: a4267fd89f am: c9b8de6136
am: e45205825f

Change-Id: I703cfcec537911bb46b917b93ed6647031bf3ba6
2017-07-06 21:24:27 +00:00
Alex Light
c9b8de6136 Merge "Unhide InMemoryDexClassLoader ByteBuffer[] constructor"
am: a4267fd89f

Change-Id: If31e5d218bd00b3281923c80cd4f61ca734d4388
2017-07-06 21:10:11 +00:00
Abodunrinwa Toki
5b0a5fc160 Merge "Make ActionMode.isUiFocusable a TestApi" 2017-07-06 20:44:58 +00:00