Commit Graph

4773 Commits

Author SHA1 Message Date
TreeHugger Robot
d47fcfdc72 Merge "Adding support for adaptive battery saver." 2019-01-31 08:37:32 +00:00
TreeHugger Robot
bdd22d05a9 Merge "Consolidate wake-screen settings" 2019-01-31 05:30:10 +00:00
Alex Salo
f29e2228ce Merge "Remove PROPERTY_ prefix" 2019-01-31 01:49:10 +00:00
Soonil Nagarkar
c845053656 Merge "Location settings documentation and migration" 2019-01-31 01:14:12 +00:00
TreeHugger Robot
8dacd6195c Merge changes I8569aa7c,I2ac4ee57
* changes:
  Rename location access check flag.
  Rename Permissions Hub property.
2019-01-31 00:57:53 +00:00
Yiwen Chen
c948e0a4ef Merge "Add ramping ringer vibration duration flag" 2019-01-31 00:32:03 +00:00
TreeHugger Robot
2bd06a3062 Merge "Add sample rate for app compaction metrics." 2019-01-31 00:17:00 +00:00
Jeff Sharkey
2fbc125658 Merge "Respond to API feedback for directory names." 2019-01-31 00:05:06 +00:00
Kweku Adams
9f488e2eae Adding support for adaptive battery saver.
Adaptive battery saver is a state that can be entered into dynamically
without the user turning on full EBS. With this, some features of
battery saver can be enabled to save power before the user needs to have
EBS turned on.

Bug: 119261320
Bug: 32423528
Test: atest android.provider.SettingsBackupTest
Test: atest com.android.server.power.PowerManagerServiceTest
Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest
Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest
Test: atest com.android.server.power.batterysaver.BatterySavingStatsTest
Test: atest CtsBatterySavingTestCases
Change-Id: Ib11ea069828275d788e20cd2e858375eaaea888e
2019-01-30 15:38:25 -08:00
Soonil Nagarkar
5e185019f0 Location settings documentation and migration
-Add new LOCATION_MODE_ON for internal use only
-Update location docs for Q
-Fix egregious copy/pasta bug

Bug: 118883513
Test: NA
Change-Id: I5c04786f912f1b8db33930449ae2ba5854a55981
2019-01-30 14:42:04 -08:00
Jeff Sharkey
c4597797d1 Respond to API feedback for directory names.
We have public APIs to set "primary" and "secondary" directory names
when contributing new media, but we don't have a way to read out that
information once an app targets Q.  So define columns to provide API
symmetry.

Also, since these are called "primary" and "secondary", it's
confusing to have a "secondary bucket ID" defined, so rename that to
be a "group ID" instead.

Since this is a major schema change, recalculate all columns that
are derived from file paths.

Fix bugs where we tried dropping SQLite internals when wiping the
schema of a database, which would have always failed.

Bug: 115377970
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I7b7b7e03bfdae6f94a1d70ac1d9e80776a2171b8
2019-01-30 15:14:26 -07:00
Ben Murdoch
2384df757c Add sample rate for app compaction metrics.
Introduce a parameter for simple sampling of app compaction
metrics as they go into statsd. Rate is confirgurable with
DeviceConfig.

Test: atest FrameworksServicesTests:AppCompactorTest
Bug: 123574961

Change-Id: Iebfd815dc4f7c6db7b849259d8b0b031e7de8621
2019-01-30 21:51:40 +00:00
Yiwen Chen
555b83df78 Add ramping ringer vibration duration flag
Bug: 120789399
Test: When finish the whole change, flash into a dev phone to test first.
Change-Id: I5ece793f1214e7b8a29f4c8d4abcc7fa6d7b511a
2019-01-30 21:27:41 +00:00
David Su
66ae702cdc Merge changes from topics "link-probe-overlay", "link-probe-feature-flag"
* changes:
  Link Probing: Add overlay flag to disable feature by default
  Link Probing: Add feature flag
2019-01-30 20:50:24 +00:00
Sudheer Shanka
415c74155c Merge "Don't ignore COLUMN_MEDIA_SCANNED values from caller." 2019-01-30 18:22:02 +00:00
Joel Galenson
c4d8921e5f Rename location access check flag.
Bug: 112390914
Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest
Change-Id: I8569aa7c3567241bd4f6a03ce3449d29b4ea3795
2019-01-30 10:02:24 -08:00
TreeHugger Robot
5bbb5b4d57 Merge "Add native boot flag namespace for activity_manager" 2019-01-30 17:35:20 +00:00
TreeHugger Robot
f5e3df81cf Merge "Rename fsi_boot to dex_boot and the flag names" 2019-01-30 17:26:51 +00:00
Joel Galenson
d382ad4858 Rename Permissions Hub property.
Bug: 122615235
Test: Manually set/unset flag, see/don't see Permissions Hub screens.
Change-Id: I2ac4ee57352726d9e84ee062a0f6884c9fcba0ad
2019-01-30 07:26:09 -08:00
Yueming Wang
17af4f0050 Merge "Update startViewCalendarEventInManagedProfile API according to API review" 2019-01-30 13:44:49 +00:00
Oscar Shu
aaf9b88835 Merge "Revert "Wifi MAC Randomization: Developer option change global settings"" 2019-01-30 10:55:34 +00:00
Lucas Dupin
e3218c1acd Consolidate wake-screen settings
Test: manual
Bug: 111414690
Change-Id: I8e0eee3ea00b1eb9cbe534cc60bfccec43cf8e31
2019-01-30 05:16:46 +00:00
Sudheer Shanka
684c02a773 Don't ignore COLUMN_MEDIA_SCANNED values from caller.
Right now, DownloadProvider only uses the COLUMN_MEDIA_SCANNED
value if it is coming from addCompletedDownload and for the rest
of the requests, it ignores the incoming COLUMN_MEDIA_SCANNED value
and always invokes mediascanner. This is not what the documentation
says. For e.g., if the caller uses DownloadManager.setDestinationUri()
API, then unless otherwise specified, the download doesn't need to be
mediascanned.

Also, since we are inserting user visible downloads to MediaProvider,
use that info to populate the COLUMN_MEDIAPROVIDER_URI column as well
and update DownloadProvider to not invoke MediaScanner.

Bug: 123440050
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I65ccae672eabe2efd5132d4b105c18bb591379fc
2019-01-29 19:09:26 -08:00
yuemingw
05896da8de Update startViewCalendarEventInManagedProfile API according to API review
1. Replaced ACTION_VIEW_WORK_CALENDAR_EVENT with
ACTION_VIEW_MANAGED_PROFILE_CALENDAR_EVENT
2. Improved the javadoc for EXTRA_EVENT_ID
3. Improved the javadoc for startMs and endMs

Bug: 122899642
Bug: 122898273
Bug: 122900059
Test: atest ManagedProfileTest#testCrossProfileCalendar
Change-Id: Ida84cd0d7d941e18acb9140c8fffc27b1ebd0a6c
2019-01-30 01:42:42 +00:00
Victor Hsieh
51c440366a Rename fsi_boot to dex_boot and the flag names
During the discussion in cl/229444950, we decide to rename the namespace.

Test: make
Bug: 120793002
Change-Id: I3ff2024912cc0df19b7c92a33f68476242158301
2019-01-29 17:19:52 -08:00
Mathieu Chartier
4625b2e489 Merge "Add runtime_native namespace for properties" 2019-01-30 01:15:36 +00:00
Alex Salo
c7b9c08f57 Remove PROPERTY_ prefix
Test: manually tested, works as expected
Bug: 111939367
Change-Id: I8f93b1bb5fe759ad10562b2e27af97e7c5147bf3
2019-01-30 00:32:21 +00:00
Mathieu Chartier
7f11eb9057 Add runtime_native namespace for properties
Create a namespace for runtime native properties, java language
properties will be added in a later CL.

Bug: 111397239
Bug: 120794191
Bug: 123524494

Test: adb shell device_config put runtime_native gctype CC,preverify
Test: verify the property is set correctly
Exempt-From-Owner-Approval: Previously approved

Change-Id: I84ec84f0befdbf778b9cef43991b63fbab3b0943
2019-01-30 00:15:59 +00:00
Adam He
b278ec3836 Merge changes from topics "dsiable_settings_2", "disable_cc_settings"
* changes:
  Added new APIs to let ContentCaptureService enable / disable the feature.
  Added new APIs to let Settings enable / disable ContentCapture
2019-01-29 22:46:24 +00:00
TreeHugger Robot
577c93bd2e Merge "Update IntentFactory to construct intents using RemoteActionTemplate... objects that are returned by the model" 2019-01-29 22:03:03 +00:00
Philip P. Moltmann
5fb9cef346 Merge "New device config to enable location perm re-up" 2019-01-29 21:55:12 +00:00
TreeHugger Robot
8a5c213cf7 Merge "Add experiment flag for maximum number of smart actions per notification" 2019-01-29 21:07:04 +00:00
Gustav Sennton
78ce9ed65b Merge "Update the notification_assistant DeviceConfig namespace." 2019-01-29 21:05:47 +00:00
TreeHugger Robot
7447f3bda9 Merge "Add privacy platform flags." 2019-01-29 19:00:10 +00:00
Oscar Shu
ca823585e4 Revert "Wifi MAC Randomization: Developer option change global settings"
This reverts commit 0a20eda58d.

Reason for revert: Enabling feature by default. Global flag moved to OEM configurable overlay instead

Bug: 123408542
Test: unit tests
Test: Manually verify developer option is gone

Change-Id: I34bfedba786e53426a941ad12ea7c7b119987420
2019-01-29 10:27:51 -08:00
TreeHugger Robot
c62d5fab0a Merge "Moved Content Capture settings to DeviceConfig." 2019-01-29 18:22:07 +00:00
TreeHugger Robot
63d14042a2 Merge "Support Slices in Settings Search" 2019-01-29 16:40:57 +00:00
Gustav Sennton
4bf5ff5859 Add experiment flag for maximum number of smart actions per notification
We here add an experiment flag to limit the number of smart actions
shown per notification (including turning all small actions off) from
the System UI.

Bug: 122506860
Test: atest SystemUITests
Test: call "adb shell settings put global
    smart_replies_in_notifications_flags enabled=true,max_num_actions=X" for
    different values of X and ensure the behaviour is correct.
Change-Id: I2759f4bc297386d20f3a6d1cb2975165e5c87c38
2019-01-29 16:31:15 +00:00
Gustav Sennton
73a8c1b06c Update the notification_assistant DeviceConfig namespace.
To adhere to new API guidelines we here update the
notification_assistant namespace in DeviceConfig.

Bug: 120792826
Test: make ExtServices
    && adb install -r $OUT/system/priv-app/ExtServices/ExtServices.apk
    && atest ExtServicesUnitTests
Change-Id: I85f714931c28c7a35c64b1394992afcd7aa68490
2019-01-29 12:19:27 +00:00
TreeHugger Robot
1ea5775448 Merge "Game Driver: rename GUP to Game Driver" 2019-01-29 10:51:26 +00:00
Pavel Grafov
1f47ab08c1 Merge "Whitelist packages from VPN lockdown." am: 774c3ce152 am: b478bb25ac
am: 2b996ad0dd

Change-Id: Ice1f8f27da3d0092af58c8e93969575ba9f8f925
2019-01-28 22:13:24 -08:00
Pavel Grafov
2b996ad0dd Merge "Whitelist packages from VPN lockdown." am: 774c3ce152
am: b478bb25ac

Change-Id: I10094606f74e6cdc5f4b0b6591cf776fd895b1d3
2019-01-28 21:34:03 -08:00
Sudheer Shanka
ca923a9aab Merge "Update DownloadStorageProvider to include MediaStore.Downloads." 2019-01-29 02:57:44 +00:00
Felipe Leme
70bcf38e2c Moved Content Capture settings to DeviceConfig.
To test, manually played with 'adb shell device_config'. Examples:

$ adb shell device_config list content_capture
$ adb shell device_config delete content_capture enable_contentcapture
$ adb shell stop && adb shell start
$ adb shell service check content_capture
Service content_capture: not found

$ adb shell device_config put content_capture enable_contentcapture always
$ adb shell stop && adb shell start
$ adb shell service check content_capture
Service content_capture: found

Then ran CTS and FrameworkCoreTests below...

Test: atest CtsContentCaptureServiceTestCases \
      FrameworksCoreTests:android.provider.SettingsBackupTest#secureSettingsBackedUpOrBlacklisted
Test: m update-api

Bug: 121037717
Bug: 121153631

Change-Id: Ib93bf8181253228ccbdb3edbd84c5d0431c84eb4
2019-01-28 16:34:40 -08:00
Felipe Leme
91ddecac0a Added new APIs to let Settings enable / disable ContentCapture
Bug: 123286662
Test: atest ChildlessActivityTest#testSetContentCaptureFeatureEnabled_disabledBySettings \
        ChildlessActivityTest#testSetContentCaptureFeatureEnabled_disabledThenReEnabledBySettings\
        FrameworksCoreTests:SettingsBackupTest#secureSettingsBackedUpOrBlacklisted
Test: atest CtsContentCaptureServiceTestCases # for sanity check

Change-Id: I7cd2c36c1d7e23efb9acacf4f18cecd8838f5ac5
2019-01-28 16:20:30 -08:00
Matthew Fritze
51598602e3 Support Slices in Settings Search
Add an API for Settings search to associate Uris to Keys,
to enable support for Slices in search.

We add a separate API rather than updating IndexableData because:
- Apps will need to support a method of collecting all slices for the
Slices API, and that method can be shared between the Slices API and
this one.
- To update search indexableresource, we would need to establish a
contract on how to declare a slice Uri in each xml. Even if we did that,
the providing app would need their own logic to parse the Xml for
the Slices api, so we can't save them work.

Bug: 62807132
Test: contract files
Change-Id: Ie8853ac57643231794afdbb2f7ce1cc0f77619a2
2019-01-28 15:54:24 -08:00
Chris Tate
d10f95dcef Merge "Defer broadcasts to slow-handling apps" 2019-01-28 22:30:26 +00:00
Ng Zhi An
e1bff3f027 Add native boot flag namespace for activity_manager
Bug: 120794810
Test: m, flash, boot
Change-Id: I2b1d9274ac1d185845a906b0e3e3a899fa4f8e74
2019-01-28 13:45:35 -08:00
Christopher Tate
2f558d2659 Defer broadcasts to slow-handling apps
When an app takes a long time to handle broadcasts, we start deferring
further broadcasts to it to make sure that other broadcast traffic in
the system can continue to make progress.  Global delivery order is
technically rearranged, but delivery order from the point of view of any
given app remains consistent with issuance order.

When alarm broadcasts are issued, we prioritize delivery of deferred
alarms to the alarm recipients (i.e. we suspend the deferral policy and
catch up as promptly as possible) in order to minimize wake time spent
waiting for the alarm broadcast to be delivered.  Once an app with a
deferred broadcast backlog is no longer the target of an in-flight
alarm, we re-impose deferral policy on it.

This policy intentionally trades off increased broadcast delivery
latency to apps that take a "long" time to handle broadcasts, in
exchange for lowering delivery latency to all other apps in the system
that would previously have had to wait behind the slow app.

In addition, broadcast dispatch policy parameters can now be overlaid
via the usual global Settings mechanism.  In particular, configuring the
"bcast_slow_time" parameter to a value in milliseconds higher than the
queue's broadcast timeout period will disable the new slow-receiver
policies.

Bug: 111404343
Test: device boots & runs
Test: tests/ActivityTests
Change-Id: I76ac79bdf41ca3cfcc48515bca779ea0f5744c0b
2019-01-28 12:32:41 -08:00
Alex Salo
440fe3d817 Add a flags to AttentionManagerService
Additionally, simplify some flag names.

Test: manually tested, works as expected
Bug: 111939367
Change-Id: I8c2702dbbaf964096d6907cbcd6c90dfd38b7d07
2019-01-28 18:20:44 +00:00