Commit Graph

3665 Commits

Author SHA1 Message Date
Dave Friedman
8be86f28f8 Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed am: d1412d3d60
am: b8ae843a20

Change-Id: Ic72fdc1f0833b8ebcd6d789cc2023266287dc341
2017-09-14 02:22:00 +00:00
Sundeep Ghuman
bd89855f46 Merge "Change score cache eviction time to settings value." into oc-mr1-dev
am: 2193f912f3

Change-Id: Ifec764594fcaa858a81d52896cc501d56dcf20e0
2017-09-14 02:18:01 +00:00
Dave Friedman
b8ae843a20 Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed
am: d1412d3d60

Change-Id: Ia63b719e65f0d82f7aa65fd4a74a442ffa27190d
2017-09-14 00:11:57 +00:00
Dave Friedman
d1412d3d60 Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718
am: 4b3a4b58ed

Change-Id: I2925d1d3bf70cebfb8d830a28a977208138d91af
2017-09-13 23:42:48 +00:00
Sundeep Ghuman
1e98151104 Change score cache eviction time to settings value.
Reduce default eviction time from intended 24 hours (erroneously input
as 24 days) to 20 minutes.

Bug: b/63073866
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I89eae2483b9a65a65d7cf5b1151952609b6b7fd7
Merged-In: I89eae2483b9a65a65d7cf5b1151952609b6b7fd7
2017-09-13 13:23:55 -07:00
Dave Friedman
4b3a4b58ed Docs: Updating ANDROID_ID information to reflect Android O changes.
Bug: 38270718

Test: Verified on local build.

Change-Id: If4f86d261ae950cc14579aeba65c36a289cdf56c
2017-09-13 08:47:46 -07:00
Daniel Nishi
a5288e7ae6 Merge "Flag storage settings cache invalidation time." into oc-mr1-dev
am: b53b925f68

Change-Id: Ib6706048900ee19a72ad412da091a9278adb42c5
2017-09-07 15:15:04 +00:00
Daniel Nishi
b53b925f68 Merge "Flag storage settings cache invalidation time." into oc-mr1-dev 2017-09-06 23:07:13 +00:00
Chad Brubaker
47be923fd5 Merge "Allow Instant Apps to access send_action_app_error" into oc-mr1-dev
am: 102f564165

Change-Id: Iaec41b49ab0fd6d312efc08b05b3cff0b12c4401
2017-09-06 18:30:18 +00:00
Chad Brubaker
a6170b86ba Allow Instant Apps to access send_action_app_error
Bug: 65294464
Test: Manual
Change-Id: I81964362b5109037315064ebc4610adb0edc151f
2017-09-01 14:48:46 -07:00
Lei Yu
04e7d1fa20 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev
am: 67594c6f54

Change-Id: Ifbb83939c2c2c30048fe43b2092b2afe4c3b234c
2017-09-01 01:01:47 +00:00
Lei Yu
67594c6f54 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev 2017-09-01 00:54:01 +00:00
jackqdyulei
8443dd0e76 Hook up AOD knobs to Settings.Global
This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
2017-08-31 13:20:04 -07:00
Jeff Sharkey
8ab5f7f324 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev
am: f31cf45e82

Change-Id: Ia6c6d5893d841f21d181363dc01f77efa6579a8f
2017-08-30 19:14:21 +00:00
Jeff Sharkey
f4de294297 Augment network stats based on SubscriptionPlan.
When a carrier provides an "anchor" of data usage at a specific
moment in time, augment the network statistics used by warning/limit
thresholds and Settings UI.  For example, if the OS measured 500MB
of usage, but the carrier says only 400MB has been used, we "squish"
down the OS measured usage to match that anchor.

Callers using the hidden API will have their data augmented by
default, and the public API offers a way to opt-into augmentation.

Thorough testing to verify behavior.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: cts-tradefed run commandAndExit cts-dev -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 64534190
Change-Id: Id3d4d7625bbf04f57643e51dbf376e3fa0ea8eca
2017-08-30 10:01:10 -06:00
xulicheng
4755a1a41a Merge "Ensure the generation is not changed before put value to cache" am: 11ae580f81 am: 489f2c2c48
am: 848cde3beb

Change-Id: I52b5811ab3aab9bda73d1c4706858e3e8a70bef2
2017-08-28 20:21:45 +00:00
xulicheng
489f2c2c48 Merge "Ensure the generation is not changed before put value to cache"
am: 11ae580f81

Change-Id: I5bf2c557f6f46f1455204761a9045b8b90d7ea32
2017-08-28 19:58:06 +00:00
Daniel Nishi
5782b5c52d Flag storage settings cache invalidation time.
Fixes: 37923463
Test: Settings Robotest

Change-Id: Ibd4c90dde6d378621ab5e8a96408cd3f496c1f6e
2017-08-25 10:37:32 -07:00
xulicheng
a5db9b42ea Ensure the generation is not changed before put value to cache
It may get old value from mValues, so check the generation
is not changed before update cache

Bug: https://issuetracker.google.com/issues/64995655
Test: Build
Change-Id: Ia7ae18baa269d0590e36f186e2f14b0bfbab3504
Signed-off-by: xulicheng <xulicheng@xiaomi.com>
2017-08-25 01:22:24 +00:00
Baligh Uddin
230c78cec5 DO NOT MERGE ANYWHERE Revert "Merge "Remove gender-specific pronouns from documentation" into oc-dev"
Bug: 64864568

This reverts commit fd35d7c0a2, reversing
changes made to 07a21754f4.
2017-08-19 15:49:05 -07:00
Neil Fuller
39ca5b870b Change SystemApi as per API council feedback
API council have requested a manifest constant be added
to the SystemApi directly in preference to an indirect
SystemApi constant here:
android.provider.TimeZoneRulesDataContract.READER_PERMISSION.

This is the third of three changes to (1) add the new constant,
(2) switch over code using the constant, (3) remove the old
constant.

Bug: 64568899
Test: None, build only
Change-Id: I75731b13ce2046556d6148aa5707cab6ed9cf9bf
(cherry picked from commit db57c03434)
2017-08-11 20:51:10 +00:00
Jeff Sharkey
5cb2d64b9b Merge "Fix handling of @removed APIs." into oc-mr1-dev 2017-08-10 15:18:58 +00:00
Tyler Gunn
8adf430f30 Merge "Enforce call log length limit on a per PhoneAccount basis."
am: 647b520a00

Change-Id: I8962fc326d0e2888656c2764e94131c6eebd1471
2017-08-09 19:03:32 +00:00
Tyler Gunn
c971bf1760 Enforce call log length limit on a per PhoneAccount basis.
Performing the auto delete based on the PhoneAccount of the new entry.
This ensures no one CS can cause the removal of entries by another.

Test: Manual
Bug: 38196259
Merged-In: I382cb62a1b2b7e482c49ece05f90fc982b797add
Change-Id: I382cb62a1b2b7e482c49ece05f90fc982b797add
2017-08-09 09:53:00 -07:00
Jeff Sharkey
f52db085e2 Fix handling of @removed APIs.
The @removed docs tag means that a particular API should be considered
as removed from the API surface area that it otherwise would have been
exposed through.

This set of CLs is fixing a bug where we @removed had been treated as
always removing from the public API.

Bug: 62341924
Test: make -j32 update-api
Change-Id: I336b2df4804e947a0b93a12269d6e7c5594eef7e
2017-08-09 09:18:20 -06:00
Jeff Sharkey
67f9d5070a Fix broken javadocs.
Bug: 64337634
Test: make -j32 doc-comment-check-docs
Change-Id: I20fdd3dcddef09111d35946c41c596c7689effa6
2017-08-06 07:37:08 -06:00
Tadashi G. Takaoka
7b16a3c64a Remove @hide ACTION_SHOW_INPUT_METHOD_PICKER
All references to
android.provider.Settings.ACTION_SHOW_INPUT_METHOD_PICKER have been
removed by the following CLs.

 Id36c8c34159bea8b72557b40bcf024d401f580b6 frameworks/base
 Id990c66516c9b3ed7ada6891746ec0e0eecbe545 packages/apps/Settings
 I915231678b94f97c1b5105cb607d6631e3df6b6a vendor/google_clockworks
 I3e26ed807445725262485ac1065fdfa299d1b624 cts

Test: make checkbuild
Fixes: 64008672
Bug: 6364455
Change-Id: I4210a5b5662be497d395a454f7f1cc395637683e
2017-08-04 04:30:33 +00:00
Neil Fuller
af4cfc5c81 Add a new constant to TimeZoneRulesDataContract
This enables time zone data app code (provided by Google)
to check the manifest (provided by the OEM) uses the right permission
without referencing internal manifest permission Strings directly.

Bug: 64139059
Test: Ran internal xTS tests
Change-Id: I4b1a8608beff3b5218ecf5162cfe8e31027e2007
(cherry picked from commit 8e2a85752b)
2017-07-31 18:20:05 +01:00
Christine Franks
379c317ab8 Merge "DO NOT MERGE - Remove RetailDemoModeService" into oc-dr1-dev
am: 484115b77d

Change-Id: Id9f50aeab430db43e9f18bcdfd80b6dcac2c43a7
2017-07-21 19:00:31 +00:00
Christine Franks
b7c929977c DO NOT MERGE - Remove RetailDemoModeService
Bug: 62712426
Test: make -j100
Change-Id: I483f2e3518a48fbc833562e71c3acd17ad565881
Merged-In: I483f2e3518a48fbc833562e71c3acd17ad565881
2017-07-21 15:51:32 +00:00
Christine Franks
732c0439e7 Remove RetailDemoModeService
Bug: 62712426
Test: make -j100
Change-Id: I483f2e3518a48fbc833562e71c3acd17ad565881
2017-07-21 15:04:55 +00:00
TreeHugger Robot
dc751a3867 Merge "Add provider support for metadata extraction" 2017-07-20 00:29:59 +00:00
Julian Mancini
b65051579f Add provider support for metadata extraction
In this CL, I'm adding ability to retrieve image metadata. I've added
the class MetadataRetriever that can currently retrieve Exif data from
an image. This class is used withing FileSystemProvider in order to
return a given image's exif data.

Test: Hidden API
Bug: 62621970
Change-Id: Ibb329492df4db1a65f65722c6a52582c43de8fe5
2017-07-19 15:46:23 -07:00
Ricardo Loo
d31a663f02 Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev am: 8e644a7510 am: 73f94e7896
am: 8fef5bf360

Change-Id: Iceee88d3362d7e8392cbf99666daeb1bd9eb0046
2017-07-19 04:56:56 +00:00
Ricardo Loo
8fef5bf360 Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev am: 8e644a7510
am: 73f94e7896

Change-Id: I5f6181c026d443357226f6b7e5332a754b130476
2017-07-19 04:52:24 +00:00
Ricardo Loo
73f94e7896 Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev
am: 8e644a7510

Change-Id: Ib12f6abb1cd3bdc4701b13e607288fcaf48ce43e
2017-07-19 04:44:52 +00:00
Ricardo Loo
2bca3ab254 Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev
am: 8e644a7510

Change-Id: I51aa7e1c4d294ef567212ebb6b445a2730289d66
2017-07-19 04:44:51 +00:00
Narayan Kamath
94bcdbca22 NetworkPolicyManagerService: Allow data saver to be on by default.
This value is read from the global settings provider, and can be
configured via an overlay.

Bug: 63112872
Test: NetworkPolicyManagerServiceTest

Change-Id: If55ea08df1dd8440189f9b46a5606118de99c930
2017-07-18 10:40:50 +01:00
Neil Fuller
34aca9e2c5 Merge "Remove TODOs that are not needed" am: 0f9842304a am: 5c2cfc51c5
am: 444616f4bf

Change-Id: I5f4265d738aa3669a0c7acb8df49b454a3e27f9c
2017-07-17 22:40:28 +00:00
Neil Fuller
5c2cfc51c5 Merge "Remove TODOs that are not needed"
am: 0f9842304a

Change-Id: Ie46a57ce88e25e40193b073c0add69adccc14a79
2017-07-17 22:24:36 +00:00
Calvin On
2f272bf326 DO NOT MERGE ANYWHERE: Fix build
Hide NET_TRANSITION_WAKELOCK_OVERRIDE_MS setting

Bug: 63760887
Bug: 30574433
Change-Id: I6069e275cfd64a2c994b14962df1ca31f39d3943
2017-07-17 14:15:23 -07:00
Neil Fuller
a9f0eeb36f Remove TODOs that are not needed
Remove TODOs to add classes to the system API that are not needed
(since they are used by a platform-only app).

Bug: 31008728
Test: make droid
Change-Id: I0d75686ddeae929e9d87c5ca8703a609a1450d76
Merged-In: I600e7b08853b86b27463193411cf85207ae09ce8
2017-07-17 17:57:11 +01:00
TreeHugger Robot
ba85991139 Merge "Add TimeZoneRulesDataContract to system API" 2017-07-17 16:44:47 +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
Adrian Roos
e3fd65f9e5 Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev am: 3fbd93056e
am: 6d626acdbf

Change-Id: Iabff9ca955aef414ad7e62e0c68e2774ff01c9b7
2017-07-13 12:17:44 +00:00
Adrian Roos
6d626acdbf Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev
am: 3fbd93056e

Change-Id: I8bc8e01a97711fdd30ff59aeb72d38e8acaa7c75
2017-07-13 12:10:21 +00:00
Adrian Roos
3fbd93056e Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev 2017-07-13 12:01:52 +00:00
Calvin On
95434b51af DO NOT MERGE ANYWHERE: Allow NetTransitionWakelock to be overridden via Settings
Bug: 30574433
Change-Id: If0d2a0b99266d60557623105728feace9ea16943
2017-07-13 00:27:45 +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
Neil Fuller
2f029ed26c Merge "Address further API review comments" am: b279ec51b6 am: cf8e06c0ac am: 92189b6e21
am: 7776b49c13

Change-Id: I0ae1025d7382ca0dca3cf69d7362df38898ee048
2017-07-12 16:14:00 +00:00