Commit Graph

5118 Commits

Author SHA1 Message Date
Anna Wasewicz
4072075f9d Merge "Add DeviceConfig flag for ContentSuggestionsService. Test: presubmit Bug: 123289833" into qt-dev
am: 3eb46249bd

Change-Id: Ic35f82ad4f95251eb0f749921431ac468b063667
2019-04-30 20:05:11 -07:00
Soonil Nagarkar
b60d7f4fef Merge "Correct visibility for LOCATION_MODE_ON" into qt-dev
am: ec554bddec

Change-Id: I24a5830e2d3fc38f52b394bfec9a8ddaa7b8a07a
2019-04-30 18:44:30 -07:00
Anna Wasewicz
3eb46249bd Merge "Add DeviceConfig flag for ContentSuggestionsService. Test: presubmit Bug: 123289833" into qt-dev 2019-04-30 18:15:09 +00:00
Soonil Nagarkar
c67cc12148 Correct visibility for LOCATION_MODE_ON
As per API feedback in b/126727563, move LOCATION_MODE_ON to SystemApi
instead of deprecated. This is safe as this constant is not used
anywhere yet.

Test: manual
Bug: 126727563
Change-Id: Iddbea546d1585cb8677c4adb97e465d5ac7a76a4
Merged-In: Iddbea546d1585cb8677c4adb97e465d5ac7a76a4
(cherry picked from commit 7449108978)
2019-04-30 01:06:46 +00:00
Anna Wasewicz
3ecea55725 Add DeviceConfig flag for ContentSuggestionsService.
Test: presubmit
Bug: 123289833

Change-Id: I016a7585bc03e25bd494b9e3bd3080416d67ee50
2019-04-29 16:16:22 -07:00
Julia Reynolds
dccba21aac Merge "Add setting for silent notifs on lockscreen" into qt-dev
am: 1f8b77d213

Change-Id: Iecc6094fbfaf28d3a8a95e9ad36b18f09a09a089
2019-04-29 13:35:44 -07:00
Julia Reynolds
5b655c3915 Add setting for silent notifs on lockscreen
Test: atest
Bug: 128445911
Change-Id: If07b593aa0588f494691c7399e471a142fb585c6
2019-04-25 10:05:15 -04:00
Sudheer Shanka
0fe94f264a Merge "Update behavior of some DownloadManager APIs." into qt-dev
am: cbfe50d70c

Change-Id: Ib6f9296dd94bdeae9a470a769e4505aa8b6df5b0
2019-04-24 20:40:19 -07:00
Sudheer Shanka
cbfe50d70c Merge "Update behavior of some DownloadManager APIs." into qt-dev 2019-04-25 00:51:59 +00:00
Chiachang Wang
3429aac7ab Merge "Remove Settings constants for NetworkStack" into qt-dev
am: c84e33b3f1

Change-Id: I7291cfa86cd6e907df35e8fbc97e2e9a77e56cab
2019-04-24 09:15:30 -07:00
TreeHugger Robot
c84e33b3f1 Merge "Remove Settings constants for NetworkStack" into qt-dev 2019-04-24 11:46:25 +00:00
Sudheer Shanka
25f1c6ebeb Update behavior of some DownloadManager APIs.
-- Update behavior of DownloadManager.setDestinationUri(),
   DownloadManager.setDestinationInExternalPublicDir() and
   DownloadManager.addCompletedDownload() based on the latest
   storage re-design. Essentially, going forward these APIs
   will only allow downloading files into package owned dirs
   or the top-level Download dir.
-- Allow some system components to specify
   MediaColumns.OWNER_PACKAGE_NAME when inserting items into
   MediaProvider.
-- Don't copy DownloadManager.COLUMN_TITLE to MediaProvider.
   DownloadProvider and MediaProvider have different constraints
   around "title" and there isn't really a need to keep these
   in sync.
-- Sanity check file download paths hinted by apps.
-- Remove sandbox related logic in DownloadProvider.

Bug: 120879208
Bug: 128630262
Bug: 130797842

Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*

Change-Id: If48bc9ecf9ed94412c6c62ce4e5e6a55fff9b789
2019-04-23 18:55:51 -07:00
Santos Cordon
d84514fddc Merge "Add delay to power-button power-off after gesture wakeup." into qt-dev
am: 65cf57bf6c

Change-Id: I063e124f45cf7d55d04217ad1123db9ce9b14bf0
2019-04-23 10:59:51 -07:00
Santos Cordon
623526b4b3 Add delay to power-button power-off after gesture wakeup.
Adds a small delay to avoid turning off the device if the user
hits the power button right after the device wakes up via a gesture.

Bug: 126560003
Test: Manual
Change-Id: I3116ce98f244e5660573d5fa764a77083aee7fc5
2019-04-23 11:55:29 +01:00
Chiachang Wang
4dd1b47b0b Remove Settings constants for NetworkStack
The definitions reference of these constants are moved from
Settings to DeviceConfig. These definitions are @hide and the
usage in the Settings are removed. Thus, remove the definitions
from API level.

Bug: 123167629
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Test: atest NetworkStackTests
Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
2019-04-23 09:32:14 +08:00
Steve Elliott
777b4d93c8 Merge "Power key behavior tweaks." into qt-dev
am: 2c570c179a

Change-Id: I4773528666f941cb2c0aaa3d014de1f3292d79ec
2019-04-19 16:21:50 -07:00
Salvador Martinez
6b4578d941 Merge "Make Settings and SysUI estimates use same data class" into qt-dev
am: d6aa4d3e8e

Change-Id: I062f1dd455cfa1632d0e3378bb3070d4b7163ecd
2019-04-19 16:03:59 -07:00
Steve Elliott
2c570c179a Merge "Power key behavior tweaks." into qt-dev 2019-04-19 23:02:08 +00:00
Salvador Martinez
d6aa4d3e8e Merge "Make Settings and SysUI estimates use same data class" into qt-dev 2019-04-19 22:00:27 +00:00
Lei Yu
1be2dcb3c3 Merge "Add DeviceConfig namespace for settings ui" into qt-dev
am: 622d628fa8

Change-Id: I1d587383085f869a7540b542483f19c2fd6a4cf4
2019-04-19 13:26:03 -07:00
Lei Yu
622d628fa8 Merge "Add DeviceConfig namespace for settings ui" into qt-dev 2019-04-19 19:44:53 +00:00
Salvador Martinez
580098fe44 Make Settings and SysUI estimates use same data class
This moves everything over to using a shared data class
for Estimates in SettingsLib which will facilitate a cl
that will help ensure greater consistency across
surfaces where battery estimates are shown.

Test: Tests pass
Bug: 124030091
Change-Id: I0b7f1f3a806255ff4804a00e6d90a7846c484484
2019-04-19 17:35:20 +00:00
Dan Sandler
b458f4eee8 Power key behavior tweaks.
- Added a new value for config_longPressOnPowerBehavior:
    "5" means "launch assist intent"
  - Added global settings for power key longpress and "very
    long press" (3.5 sec), allowing these functions to be
    tweaked at runtime by privileged code

Bug: 130415373
Test: adb shell settings put global power_long_press 5
      # ^ set longpress to assist
      adb shell settings put global power_very_long_press 1
      # ^ set vlongpress to globalactions (so you can still
      # power off the device)
Test: atest frameworks/base/core/tests/coretests
Change-Id: Ic611b2850dc98fddd7662d32b0a60ca1e8231efb
2019-04-19 16:46:44 +00:00
Tyler Gunn
410d9e20ad Merge "Add CallLog provider loggging to check for app-ops denial." am: cc469a276b
am: ab13f3096a

Change-Id: Ife8b4fa9a52ca03e539343012f06af9eea031e50
2019-04-19 08:57:19 -07:00
Tyler Gunn
cc469a276b Merge "Add CallLog provider loggging to check for app-ops denial." 2019-04-19 15:33:53 +00:00
Jeff Sharkey
285f6ffff9 Merge "Remove GROUP_ID; not actively being used by apps." into qt-dev 2019-04-18 03:39:26 +00:00
Yiwei Zhang
c4db14e72d Game Driver: rename GUP to Game Driver
Bug: 119221883
Test: Build, flash, boot and make RunSettingsRoboTests
Change-Id: I39724917b516b4871c6b1b1f0d30aa0f793942a4
Merged-In: I39724917b516b4871c6b1b1f0d30aa0f793942a4
2019-04-17 19:54:52 -07:00
Peiyong Lin
0b0b48d8f5 [Game Driver] Add support for whitelist.
Instead of keeping reading the whitelist everytime, we want to store it in
Settings.Global variable and reuse it later.

BUG: 120869311
Test: Build, flash and boot.
Change-Id: I5e39757383c5ba7d31af7efb3e6e8a2996e669f4
Merged-In: I5e39757383c5ba7d31af7efb3e6e8a2996e669f4
2019-04-17 17:02:39 -07:00
Yiwei Zhang
79c5356a07 GUP: Add a global property for genreal preference
This change also fixes typos and adds some missing comments

Bug: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: Ida976c4fb3d4af5ffc1d9b977f00fa9c7239a434
Merged-In: Ida976c4fb3d4af5ffc1d9b977f00fa9c7239a434
2019-04-17 15:54:48 -07:00
TreeHugger Robot
5ed91dd1cd Merge "Revert "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API"" into qt-dev 2019-04-17 22:16:24 +00:00
Michael Wright
665fa7a8d6 Revert "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API"
This reverts commit c568477004.

Reason for revert: API concerns.
Bug: 129901520

Change-Id: I658de3933353ac93b13ce1f6f6616fd653663152
2019-04-17 20:32:44 +00:00
Jeff Sharkey
5e1ca0e889 Remove GROUP_ID; not actively being used by apps.
Bug: 130744218
Test: none
Change-Id: I2917b84ffcc698d3cbffe7dfbd49c76b21c46515
2019-04-17 13:35:16 -06:00
Yiwei Zhang
a35e865b97 GUP: Update global property for the new dev opt
We updated the development opt in mechanism for GUP. Now we have
GUP_DEV_OPT_IN_APPS for applications selected to use GUP and
GUP_DEV_OPT_OUT_APPS for applications selected not to use GUP.

Bug: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: I52869ecf9e411a8dbdc1146f00c82023ba41bebf
Merged-In: I52869ecf9e411a8dbdc1146f00c82023ba41bebf
2019-04-17 00:17:53 -07:00
Peiyong Lin
8eeb14e639 Rename updatable graphics driver to Game Update Package.
We have rebranded this project to Game Update Package, and GUP for short.

BUG: 119221883
Test: Build, flash and boot. Verify by going to developer options.
Change-Id: If284bd3e0b29cb025833be29fa33179011c151d7
Merged-In: If284bd3e0b29cb025833be29fa33179011c151d7
2019-04-16 23:06:24 -07:00
Peiyong Lin
e23f59aa5a Add global property to store opt-in application package name.
We provide a way in developer option to opt-in an application to use updated
graphics driver. To make sure we set up the graphics environment correctly, we
need to access the package name of the selected application. This patch
introduces a global property to store the package name.

BUG: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: I49dfcccf387169c072fb9345f7a50c00fcdb0737
Merged-In: I49dfcccf387169c072fb9345f7a50c00fcdb0737
2019-04-16 18:35:17 -07:00
TreeHugger Robot
f4fc729acd Merge "Add custom title for settings dialogs" into qt-dev 2019-04-16 18:16:54 +00:00
Salvador Martinez
bca4564516 Add custom title for settings dialogs
This is a generic version of the custom title that will
be used in settings dialogs soon. Adding it to settings
lib since others will need to make use of it as well.

Test: robotests pass
Bug: 130251804
Change-Id: I48f8e24a2b2a117e5a8054c5bc0b240ba68fe1ad
2019-04-16 09:42:01 -07:00
TreeHugger Robot
4bf8532689 Merge "Add more documentation for ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS." into qt-dev 2019-04-16 16:41:03 +00:00
Sean Stout
a0d852907d Merge "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API" into qt-dev 2019-04-16 05:50:30 +00:00
Hai Zhang
770a29bf72 Add more documentation for ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS.
Bug: 130351486
Test: build
Change-Id: If15aa04a3a3ebe717718ae99157e845acbccf6ae
2019-04-16 13:16:16 +08:00
Kevin Chyn
12154d85a4 Merge "Cache and log enrollment settings" into qt-dev 2019-04-16 04:43:32 +00:00
Sean Stout
c568477004 Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API
Test: cts-tradefed run cts -m CtsSystemIntentTestCases -t \
android.systemintents.cts.TestSystemIntents
Bug: 129901520

Change-Id: I710867f6d6fffb86d7f3991f39bde4bf9d62e5f7
2019-04-15 17:15:44 -07:00
Matt Pape
1220c347a2 Annotate single property listener from DeviceConfig as removed.
Will remove entirely after all references (esp. Play Services) are cleaned up.

Test: atest FrameworksCoreTests:DeviceConfigTest
Bug: 128902955
Change-Id: I1ab11fa2a2bbdb673841364c36b87a7356ba1e28
2019-04-15 21:52:26 +00:00
Kevin Chyn
c78071f29a Cache and log enrollment settings
Bug: 130370995

Test: Builds
Change-Id: Id23b6befe62cf5ea3a4468169f36da191ae97cc9
2019-04-15 14:34:30 -07:00
Sudheer Shanka
3c60d28729 Deprecate MediaStore.DownloadColumns.DESCRIPTION.
Bug: 130226648
Test: manual
Change-Id: I020d681e988eaa37871994860bea5ae2ab81d10e
2019-04-12 15:29:05 -07:00
Lei Yu
5d3461b1f6 Add DeviceConfig namespace for settings ui
Fixes: 130302238
Test: RunSettingsRoboTests
Change-Id: Idb20718165a598bfe73734fc06ef12d4f8d8d8e5
2019-04-12 13:56:02 -07:00
Jeff Sharkey
fc24615213 Promote generic columns up to MediaColumns.
Based on feedback from developers, they need to query these columns
on the general "Files" table, so we need to promote them to the
general "MediaColumns" common interface to make them available.

Bug: 130254706
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I66afa14799ae42deea519d121177b2c8469889ab
2019-04-12 11:52:18 -06:00
Kevin Chyn
a0d2d2021d Merge changes from topic "face-logging" into qt-dev
* changes:
  Populate debug value for biometric atoms
  Adding debug value to Biometric atoms.
2019-04-12 00:14:36 +00:00
Kevin Chyn
4858da4aa6 Populate debug value for biometric atoms
Fixes: 130363518

Test: Builds
Change-Id: I73e8bbb6d9f310ee025bce271bf9470b47626ecc
2019-04-11 16:41:44 -07:00
TreeHugger Robot
3d6d6f0085 Merge "Changed intents for data and saver tiles" into qt-dev 2019-04-11 22:20:13 +00:00