Commit Graph

4231 Commits

Author SHA1 Message Date
Steven Wu
a680beb24d Store flashlight status and broadcast it needed for flashlight slice.
Test: manual
Bug: 74913192
Change-Id: I54ead1727d08b113dec13e3f7c128895770e68f1
2018-05-24 17:44:03 +00:00
Remi NGUYEN VAN
7bea387500 Merge "Add configurable captive portal probes" into pi-dev am: 1f8f21af60
am: 23d3487caa

Change-Id: Ia958815325d1466345e9626efc8f62fc9d08d774
2018-05-23 17:15:44 -07:00
Remi NGUYEN VAN
23d3487caa Merge "Add configurable captive portal probes" into pi-dev
am: 1f8f21af60

Change-Id: Iec7a74bbf2569a91e958c497200d77e8451cbf7b
2018-05-23 15:22:24 -07:00
Matthew Fritze
9a32638480 Merge "Add Settings Slice Whitelist key" into pi-dev
am: 1561bb41bd

Change-Id: Ic0843740958ff9e191f98220c3a80bf29a5e8251
2018-05-23 10:51:35 -07:00
Remi NGUYEN VAN
1f8f21af60 Merge "Add configurable captive portal probes" into pi-dev 2018-05-23 14:26:39 +00:00
Remi NGUYEN VAN
8255c2d6c2 Add configurable captive portal probes
The probes allow testing for a configurable status code and location
header (regexes). They are disabled by default, so this CL is a
no-op unless the probe configurations are pushed.

Bug: b/79499239
Test: tests in CL pass, manual: captive portal login works
Change-Id: I785723aaed06054b9aa8ebff77803f23d7836db9
2018-05-23 20:48:46 +09:00
TreeHugger Robot
1561bb41bd Merge "Add Settings Slice Whitelist key" into pi-dev 2018-05-22 23:40:24 +00:00
Matthew Fritze
640821bbc8 Add Settings Slice Whitelist key
Bug: 79779103
Test: None - only a flag.
Change-Id: I764f2fddf05bf2b9df4e633c7f6c6c7e781c1149
Merged-In: I794159db4ff8aba7b6dcd91e13a984db40da47e7
2018-05-22 22:42:57 +00:00
Tony Huang
886299c526 Add theme mode design let user can choose theme self am: f0800fa3bd
am: aef9007d12

Change-Id: I240f76ff5cb982a15aff65e3d683c9c9df031fa3
2018-05-22 15:11:02 -07:00
Tony Huang
aef9007d12 Add theme mode design let user can choose theme self
am: f0800fa3bd

Change-Id: Ie4b645af602aac8575e1c220714b094118a3aaa6
2018-05-22 15:04:57 -07:00
Tony Huang
f0800fa3bd Add theme mode design let user can choose theme self
Add a ContentObserver on WallpaperManagerService to
listen THEME_MODE value change. When changed, call
notifyWallpaperColorsChanged and set WallpaperColors
color hint by the current mode.

Bug: 63903361
Test: manual
Change-Id: I4f7aa7b184565b1bb23c7f4f1f07fc310dac7546
2018-05-22 21:35:03 +00:00
TreeHugger Robot
4b2bd72b74 Merge "Add Settings Slice Whitelist key" 2018-05-22 21:02:45 +00:00
Annie Meng
745039cb96 Merge "Allow restore of settings with nullable components" into pi-dev am: 2d6dbbac04
am: 89f02f871d

Change-Id: If9389caa9f5159bd7983eb785e092b24fd1b7cab
2018-05-22 12:17:45 -07:00
Annie Meng
89f02f871d Merge "Allow restore of settings with nullable components" into pi-dev
am: 2d6dbbac04

Change-Id: I28f02ff934aed4e51395c6c1692f655cf35bbbed
2018-05-22 12:02:00 -07:00
Matthew Fritze
7c5fa7ff09 Add Settings Slice Whitelist key
Bug: 79779103
Test: None - only a flag.
Change-Id: I794159db4ff8aba7b6dcd91e13a984db40da47e7
2018-05-22 08:08:27 -07:00
Annie Meng
4451179411 Allow restore of settings with nullable components
Creates a new settings validator that allows for null components, which
have semantic meaning for certain settings (in this case, that no
service is selected).

Bug: 79925290
Test: 1) atest SettingsValidatorsTest
2) Manual:
- In Settings UI, select "None" for autofill service and accessibility
shortcut target
- "adb backup -keyvalue -f nullsettings.ab com.android.providers.settings"
- "adb restore nullsettings.ab"
- Verify no crashes and that autofill service and accessibility shortcut
target both have "None" in Settings UI

Change-Id: I159b3f4706c6b981a30437c31724b106eb4e3f2a
2018-05-22 11:11:58 +01:00
Annie Meng
0e4f3bf243 Merge "Check settings validators for NPE" into pi-dev am: 3a95d0bb94
am: 0b653bc5e4

Change-Id: I5afb8ce11e978bc2290cb1ef266b6b68e638fce1
2018-05-22 03:10:33 -07:00
Annie Meng
0b653bc5e4 Merge "Check settings validators for NPE" into pi-dev
am: 3a95d0bb94

Change-Id: I75fe10196f29f10f80631f2a11ceda9e8a6d5d87
2018-05-22 03:03:21 -07:00
Annie Meng
eed1b812a4 Check settings validators for NPE
From b/79910479, we need to have better checks on settings validators.

Catch NPE for various settings validators and add a @Nullable annotation
to try to prevent NPEs in new validators.

Bug: 80067772
Test: atest SettingsValidatorsTest
Change-Id: I9a5058e1bae1ba0dea084c0589aa3e4ef3a51836
2018-05-21 16:42:23 +01:00
Beverly
f1ef5833b0 Merge changes Id4feeefa,Ie0a501b8 into pi-dev am: 45a250a2be
am: 6e66b320fd

Change-Id: I8f185099f0f00f62a9ae6e219f29c9dd2efd8d2d
2018-05-18 17:01:25 -07:00
Beverly
6e66b320fd Merge changes Id4feeefa,Ie0a501b8 into pi-dev
am: 45a250a2be

Change-Id: Id58b92f3400f17fedb30524cc851fa3c1304af61
2018-05-18 16:33:20 -07:00
TreeHugger Robot
45a250a2be Merge changes Id4feeefa,Ie0a501b8 into pi-dev
* changes:
  Add counter for predictive info for hush gesture
  Update DND strings
2018-05-18 23:08:19 +00:00
Beverly
38fcfd0500 Add counter for predictive info for hush gesture
Test: adb shell settings get secure hush_gesture_used
Test: adb shell settings get secure manual_ringer_toggle_count
Change-Id: Id4feeefa03a5951c03b09ab466a6c399d8aadd0e
Fixes: 79537757
2018-05-18 21:45:17 +00:00
Beverly
89876010f1 Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev
am: fedf04f3df

Change-Id: Ib7ee0e91da5d475bc2fa989b7e0a152c50f9f886
2018-05-18 14:25:45 -07:00
TreeHugger Robot
fedf04f3df Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev 2018-05-18 20:57:21 +00:00
Erik Kline
bdc41e2dd2 Merge "Add explicit override for default Private DNS mode" into pi-dev am: 2b3c858296
am: 413d00c1c0

Change-Id: Ifbb9922c4226c5a8a7ef9422dc4bd0e5b83a56b9
2018-05-18 01:16:38 -07:00
Erik Kline
413d00c1c0 Merge "Add explicit override for default Private DNS mode" into pi-dev
am: 2b3c858296

Change-Id: If480ab40c7cf9ab75c52feafc28338a049cbceef
2018-05-18 01:08:26 -07:00
TreeHugger Robot
2b3c858296 Merge "Add explicit override for default Private DNS mode" into pi-dev 2018-05-18 07:59:58 +00:00
Annie Meng
803f9480a7 Merge "Fix NPE in ComponentNameValidator" into pi-dev am: b105913098
am: c9fd5be45f

Change-Id: I111f172e269c9541bb98d7d742c27dae77afa048
2018-05-17 11:42:32 -07:00
Annie Meng
c9fd5be45f Merge "Fix NPE in ComponentNameValidator" into pi-dev
am: b105913098

Change-Id: I9725217151634a66d7cd3dc0e80acb5f78f15c39
2018-05-17 11:34:33 -07:00
Annie Meng
b105913098 Merge "Fix NPE in ComponentNameValidator" into pi-dev 2018-05-17 18:20:29 +00:00
Annie Meng
5d26b8c03a Fix NPE in ComponentNameValidator
In general, we should consider null component names as invalid settings,
meaning that we don't restore.

b/79925290 to allow restoring null component names for specific
settings where null has semantic meaning.

Bug: 79910479
Test: 1) atest SettingsValidatorsTest
2) Manual:
- In Settings UI, select "None" for autofill service and accessibility
shortcut target
- "adb backup -keyvalue -f nullsettings.ab com.android.providers.settings"
- "adb restore nullsettings.ab" and verify no crashes
Change-Id: Iffecbe7d26a93a816e7be42f564ba471f9681876
2018-05-17 17:56:58 +00:00
Beverly
69721d647c (Behind flag) Wireless charging vibration feedback
- to turn vibration feedback on wireless charging:
    adb shell settings put global charging_vibration_enabled 1

Test: manual
Bug: 74505795
Change-Id: I177bc05e75bb9e66a88b45432eee778ab619e28f
2018-05-17 15:39:49 +00:00
Erik Kline
1984179409 Add explicit override for default Private DNS mode
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 79719289
Change-Id: I943c5476666e47d04690626e2133f501cb875b46
2018-05-17 17:41:12 +09:00
Dianne Hackborn
dab58f3b55 Merge "More app ops fg/bg tuning" into pi-dev am: cd835ba418
am: 863d2a46db

Change-Id: I8f5756cbecc59297d252f87de1829087b67c2575
2018-05-16 13:17:51 -07:00
Dianne Hackborn
863d2a46db Merge "More app ops fg/bg tuning" into pi-dev
am: cd835ba418

Change-Id: Id6a026dabee96a175aac5b40b80487c8ed1ab511
2018-05-16 13:06:47 -07:00
Dianne Hackborn
cd835ba418 Merge "More app ops fg/bg tuning" into pi-dev 2018-05-16 19:48:54 +00:00
Beverly
df9f36da19 (Behind flag) Wireless charging vibration feedback
- to turn vibration feedback on wireless charging:
    adb shell settings put global charging_vibration_enabled 1

Test: manual
Bug: 74505795
Change-Id: I177bc05e75bb9e66a88b45432eee778ab619e28f
2018-05-16 09:47:20 -04:00
Santos Cordon
a52be7cefa Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev am: 7830cd820b
am: 9cb0a9f1aa

Change-Id: If36f69de41e1caaaf6ec5adf47cca7b4935b222e
2018-05-15 17:51:18 -07:00
Santos Cordon
9cb0a9f1aa Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev
am: 7830cd820b

Change-Id: I0f2e831b4948cf854dbefe590879356c25131633
2018-05-15 17:39:19 -07:00
TreeHugger Robot
7830cd820b Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev 2018-05-15 23:53:02 +00:00
Damien Bargiacchi
cbd400d9b3 Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev am: 76fd7d5776
am: 3a3982a09c

Change-Id: I578a7e18ed407bb5d08e3960e68316fcd90025de
2018-05-15 14:58:20 -07:00
Jiabin Huang
2709d470a1 Merge "Add support for manually set surround formats." into pi-dev am: eddc0d712c
am: bccbeb1bbb

Change-Id: I5bdce8b1103c970fd515028e48336fc26b9f2fbd
2018-05-15 14:51:25 -07:00
Damien Bargiacchi
3a3982a09c Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev
am: 76fd7d5776

Change-Id: Ia3360c6431fd9e8273150e7fba52e3922bc2095d
2018-05-15 14:19:25 -07:00
Jiabin Huang
bccbeb1bbb Merge "Add support for manually set surround formats." into pi-dev
am: eddc0d712c

Change-Id: I96c58363303db1ac7fc6dfa43c3bd57c7f8ab734
2018-05-15 14:10:39 -07:00
Damien Bargiacchi
76fd7d5776 Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev 2018-05-15 20:58:31 +00:00
Jiabin Huang
eddc0d712c Merge "Add support for manually set surround formats." into pi-dev 2018-05-15 20:54:27 +00:00
Dianne Hackborn
e93ab41d2a More app ops fg/bg tuning
- Only report that something has changed when a uid changes between
  the restricted and unrestricted states.  (Adds new constant that
  defines this important division point.)

- Have different settle times for different key transitions: (a)
  out of the top state, (b) out of any other unrestricted state,
  (c) down to a lower background state.

- But, don't apply any settle time when transitioning from top to
  another unrestricted state...  there is no need to.

Bug: 78480444
Test: manual
Change-Id: Ife772858009a6da5c286e285a4059aea3ad3f6c7
2018-05-15 10:27:40 -07:00
jiabin
3994075a5b Add support for manually set surround formats.
To make surround sound setting more clear to users, we are changing
surround setting from ALWAYS to MANUAL. With MANUAL, users could enable
surround formats according to their need.

Bug: 67479735
Test: Try creating AudioTrack with enable/disable surround formats.
Change-Id: I79e610f6c43d7003daf13da3bee4e03ba9b6ea87
2018-05-15 10:10:47 -07:00
Beverly Tai
a39ecad21d Merge "Show settings suggestion" into pi-dev am: 1b69d7b406
am: 647907274f

Change-Id: I09a30f210a7ddd2a602d600e7b91c58a26592039
2018-05-11 16:19:33 -07:00