Commit Graph

4082 Commits

Author SHA1 Message Date
Annie Meng
2facec37e3 Merge "Don't backup/restore screen brightness" 2018-04-06 12:45:07 +00:00
Yu-Han Yang
954238347a Merge "Implements GNSS satellite blacklist" into pi-dev
am: b1bcab2210

Change-Id: I2b02d5a1c898be0745eb88f65c6518b069d412a2
2018-04-05 16:47:36 -07:00
TreeHugger Robot
b1bcab2210 Merge "Implements GNSS satellite blacklist" into pi-dev 2018-04-05 23:28:19 +00:00
Hall Liu
a13852d071 Merge "Move RTT system setting to Settings.Secure" into pi-dev
am: fe85e4589b

Change-Id: Idd9171f313136911e2dc6031f6356463e51bf16f
2018-04-05 11:36:10 -07:00
Hall Liu
fe85e4589b Merge "Move RTT system setting to Settings.Secure" into pi-dev 2018-04-05 18:15:37 +00:00
Annie Meng
931b41b71a Don't backup/restore screen brightness
We no longer want to backup and restore screen brightness as it could
leave the new device in an unusable state and doesn't make sense
cross-device.

Test: 1) atest SettingsBackupTest
2) atest SettingsValidatorsTest
3) Manual:
- Old backup set that has screen brightness does not restore with change
- Screen brightness does not backup or restore with change
Bug: 77583401

Change-Id: I8a6d950717e6aeb9bf6773c14708ee70069f9df0
2018-04-05 18:49:52 +01:00
Yu-Han Yang
66c7ea91b4 Implements GNSS satellite blacklist
Bug: 38269641

Test: m -j ROBOTEST_FILTER=GnssSatelliteBlacklistHelperTest RunFrameworksServicesRoboTests
Test: atest SettingsBackupTest
Test: Tested with adb on device

Change-Id: Ifaa330bf74353ea5c8826f0000d1935258b8dbf2
2018-04-05 08:57:04 -07:00
Hall Liu
44e41012ec Move RTT system setting to Settings.Secure
Bug: 76449217
Test: manual
Change-Id: I85620d5b834aa7e04579212f3fd5cf6c0498b570
2018-04-05 01:18:02 +00:00
Remi NGUYEN VAN
1a6c9e6061 Merge "Add settings to configure default multipath quota." into pi-dev
am: 9ab1da2052

Change-Id: I01e25079def030c43b0800d610590a3a6a5ac1be
2018-04-03 20:17:22 -07:00
Remi NGUYEN VAN
9ab1da2052 Merge "Add settings to configure default multipath quota." into pi-dev 2018-04-04 01:23:42 +00:00
Remi NGUYEN VAN
e0ec992630 Add settings to configure default multipath quota.
Bug: 72631572
Test: Tests in go/ag/3828171 pass
Change-Id: I795debd0328ea7cad32c968cb4b407928e054528
2018-04-03 17:16:29 +09:00
Gil O'Neil
b15319dcb5 Merge "Made a note that app names may not contain delimiter characters" into pi-dev
am: c610677258

Change-Id: I9581a7af5f34111ee3608f3ec2088fc9b0fffdcd
2018-04-02 20:27:23 -07:00
Gil O'Neil
c610677258 Merge "Made a note that app names may not contain delimiter characters" into pi-dev 2018-04-02 23:42:01 +00:00
Makoto Onuki
e42450f9a7 Merge "Make battery saver suggestion configurable" into pi-dev
am: cd21f1c5c2

Change-Id: I4fb41a9382d2a073f7673cdaa5c4a3d670ff4349
2018-03-30 17:32:15 +00:00
TreeHugger Robot
cd21f1c5c2 Merge "Make battery saver suggestion configurable" into pi-dev 2018-03-30 14:29:30 +00:00
goneil
986fae20ea Made a note that app names may not contain delimiter characters
This includes ":" and ";"

Bug: 77241786
Test: None
Change-Id: Iabbfa7770e599d1fcd6ff76a55358d5e71e03a2b
2018-03-29 17:33:27 -07:00
Artem Iglikov
d723b5ea24 Merge "Clear app data before full restore for specified packages" into pi-dev
am: bb0bcc4460

Change-Id: I707a2f5fbe2d8c7bac2bc405e684016c61c2ddca
2018-03-29 13:36:34 +00:00
Artem Iglikov
5b53875fdc Clear app data before full restore for specified packages
In some cases (deferred restore) the app data needs to be cleared even
if the app has implemented backup agent. As a quick fix introduce
PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE secure setting, which
transport can fill prior to restore.

Bug: 69069240
Test: adb shell settings put secure packages_to_clear_data_before_full_restore com.google.android.apps.nexuslauncher && adb shell bmgr restore com.google.android.apps.nexuslauncher
Change-Id: I2a4651365d9cf4747f32d2ba69312f54cd03d118
2018-03-29 11:01:50 +01:00
Makoto Onuki
bc064d4b4b Make battery saver suggestion configurable
Test: Manual test with: settings put global low_power_mode_suggestion_params start_nth=2,end_nth=3
Bug: 74120126

Change-Id: If165892477b41547a3880e2e961a38328b33c5bd
2018-03-27 15:41:20 -07:00
Makoto Onuki
d3d249ab37 Merge "Add auto battery saver suggestion notification/dialog" into pi-dev
am: 452ae34af5

Change-Id: Ifaa72ab628c4fd319f0b1d23fe6d6ec7f9149477
2018-03-27 22:19:01 +00:00
Makoto Onuki
452ae34af5 Merge "Add auto battery saver suggestion notification/dialog" into pi-dev 2018-03-27 21:20:13 +00:00
Makoto Onuki
52c6295e22 Add auto battery saver suggestion notification/dialog
Spec: go/ebs-low-battery-mode-flow

- Basically when the user manually enables battery saver 4 times,
we show this notification to suggest turning on "scheduled"
(i.e. auto) battery saver.

- We show it through 8th time. If the user hits "no thanks",
or if auto-saver is enabled already, we will not show it.

- Introduced a new notification channel "HINTS" with
IMPORTANCE_DEFAULT.

Bug: 74120126
Test: Manual test with ll development/scripts/battery_simulator.py

Change-Id: I713abc59dc7caee6882ba848c3e3aabaf778c2bd
2018-03-27 10:42:05 -07:00
Tyler Gunn
baa5cc8fef Add exception catching for BlockedNumberContract methods used by Telecom.
The content resolver can throw in some instances when using the blocked
number provider.  Rather than crashing all of telecom, adding exception
handling to provide graceful fallback in these cases.

Test: Compile / build
Bug: 74965829
Merged-In: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
Change-Id: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
(cherry picked from commit b408ebe557)
2018-03-27 15:20:09 +00:00
Julia Reynolds
2d38ea9929 Merge "Add link to notification app listing in shade" into pi-dev
am: b429012907

Change-Id: I692a7829d800225b8db13fbb79e8224cf9d7b3b2
2018-03-27 14:25:09 +00:00
TreeHugger Robot
b429012907 Merge "Add link to notification app listing in shade" into pi-dev 2018-03-27 14:09:18 +00:00
Tyler Gunn
8b07cc5819 Merge "Add exception catching for BlockedNumberContract methods used by Telecom." am: 13791285aa
am: 7f4c7a1b88

Change-Id: Ibc4e5312b04abd5bad43f59c66a6f48a8150760e
2018-03-26 22:39:19 +00:00
Makoto Onuki
7e62948ab3 Merge "Sticky battery saver" into pi-dev
am: 110a7c20f4

Change-Id: Ieac07ecfaa0489d08a0bb9e2670da5b7e1a2d67c
2018-03-26 21:54:07 +00:00
TreeHugger Robot
110a7c20f4 Merge "Sticky battery saver" into pi-dev 2018-03-26 21:41:09 +00:00
Tyler Gunn
13791285aa Merge "Add exception catching for BlockedNumberContract methods used by Telecom." 2018-03-26 21:18:54 +00:00
Julia Reynolds
ed1c9af653 Add link to notification app listing in shade
Test: atest SystemUITests
Bug: 74318867
Change-Id: Ic309dfb08be0d41b7d524adc1b5910ab61b2d9fb
2018-03-26 17:14:48 -04:00
Makoto Onuki
a3cd7b9d53 Sticky battery saver
- When battery saver is enabled manually (i.e. via PM.setPowerSaveMode()),
it'll stick, and we'll re-enable battery saver even after a reboot
or a charge.

- Extracted all battery saver state transition logic into a separate
class.

Fix: 75033216
Bug: 74120126
Test: Manual test with "dumpsys battery set ...."
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: If020cd48f341b339783fe09dd35bc7199e737a52
Test: dumpsys power
Test: incident_report power
Test: atest CtsBatterySavingTestCases
2018-03-26 10:27:56 -07:00
Richard Ledley
6a29d0772d Merge "Add flag to control blocking Smart Replies for apps targeting an Android version below P." into pi-dev
am: 525b182864

Change-Id: I57974b8dc2b55d938ed48760654936d4bce61b11
2018-03-23 23:16:18 +00:00
Tyler Gunn
2ed0ab2f40 Add exception catching for BlockedNumberContract methods used by Telecom.
The content resolver can throw in some instances when using the blocked
number provider.  Rather than crashing all of telecom, adding exception
handling to provide graceful fallback in these cases.

Test: Compile / build
Bug: 74965829
Change-Id: I2e1accce3ed6fac4ec2b8e6a92585abf630b84fe
2018-03-23 14:39:37 -07:00
Richard Ledley
4069f7a167 Add flag to control blocking Smart Replies for apps targeting an Android version below P.
Bug: 73802997

Test: atest SmartReplyConstantsTest

Change-Id: Id340cba09da7931ff6a4689802b3a5f594852a72
(cherry picked from commit 28944cbdcf)
2018-03-23 21:14:27 +00:00
Alice Sheng
6036a2b5bf Merge "Add setting for disabling swap." into pi-dev
am: 7384995cf8

Change-Id: I2a8207237a5cf2e0b2d1be0996aece7542d9b90d
2018-03-23 19:47:06 +00:00
Alice Sheng
7384995cf8 Merge "Add setting for disabling swap." into pi-dev 2018-03-23 18:11:12 +00:00
Julia Reynolds
b598333775 Merge "Add vol up + power ringer toggle gesture" into pi-dev
am: 224e2fb2ef

Change-Id: I3b15061159a345a006dc0f5f532e93291ca1b383
2018-03-22 23:58:37 +00:00
Julia Reynolds
224e2fb2ef Merge "Add vol up + power ringer toggle gesture" into pi-dev 2018-03-22 22:03:48 +00:00
Alice Sheng
b32b1ad373 Add setting for disabling swap.
Bug: 73089999
Change-Id: I89c50ae2badcb75c52652acaeb181a3161233375
2018-03-22 13:00:13 -07:00
Felipe Leme
16f6c77d95 Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev
am: 4e561f83cb

Change-Id: Id6e661b49cc9a28bb6464930210eac41f061d61a
2018-03-22 17:05:36 +00:00
Felipe Leme
4e561f83cb Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev 2018-03-22 16:24:53 +00:00
Michael Plass
ad35dfa2a1 Merge "Add Settings.Global.WIFI_SCORE_PARAMS" into pi-dev
am: dddd69ef3e

Change-Id: I981b1d4fe36044e47b12051bf0dfd499eea2a155
2018-03-22 15:17:30 +00:00
Michael Plass
dddd69ef3e Merge "Add Settings.Global.WIFI_SCORE_PARAMS" into pi-dev 2018-03-22 15:03:51 +00:00
Mike Digman
5527286e08 Add vol up + power ringer toggle gesture
It only runs when the screen is on.

Test: manual, invoking gesture with different system settings
Bug: 75252670
Change-Id: I934d0bbb0a9fffecf34ebaadf77f3e1241d4faf7
2018-03-22 10:55:24 -04:00
Felipe Leme
fd4003bf09 Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES.
The syntax of that setting changed from P Developer Preview1 to the final P, so
it's safer to use a new name than risk breaking devices during the update.

Bug: 74458004
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest\
FrameworksCoreTests:SettingsBackupTest

Change-Id: I1c507e8eae20f598dfe259178667ae6c2bc892ff
2018-03-21 16:36:25 -07:00
Tyler Gunn
b77daf6a8f Merge "Add Telecom debug setting for enabling enhanced call blocking." am: 727097a400
am: c0411e0be5

Change-Id: I99ba46420fb998112709d63abc502f6742e9558a
2018-03-21 23:18:23 +00:00
Tyler Gunn
727097a400 Merge "Add Telecom debug setting for enabling enhanced call blocking." 2018-03-21 21:02:24 +00:00
Makoto Onuki
16a0dd2d5e Implement new BS warning / notification flow (1/2)
- Show the battery saver confirmation dialog only for the first time.
- Start counting # of manual activations, which will be used in a
follow-up CL.

Bug: 74120126
Test: Manual tests with ./vendor/google_experimental/users/omakoto/android-battery-tester
Test: m -j ROBOTEST_FILTER=BatterySaverUtilsTest RunSettingsLibRoboTests
Test: cd frameworks/base/packages/SystemUI/tests && \
        atest src/com/android/systemui/power/PowerUITest.java src/com/android/systemui/power/PowerNotificationWarningsTest.java
Change-Id: If6a081a6222e6a87c4cd332364c89856e7648a36
2018-03-21 12:15:51 -07:00
Ben Lin
01cee8e686 Merge "Add new Intent start a package's Open By Default page directly." into pi-dev 2018-03-21 06:07:45 +00:00
TreeHugger Robot
6ed6340e3c Merge changes from topic "SoundTriggerJobService-steps" into pi-dev
* changes:
  Throttle number of sound trigger operations / day
  Add SoundTriggerDetectionService
  Expose SoundTriggerManager and SoundTrigger APIs
2018-03-21 03:27:56 +00:00