Commit Graph

4188 Commits

Author SHA1 Message Date
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
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
Beverly Tai
647907274f Merge "Show settings suggestion" into pi-dev
am: 1b69d7b406

Change-Id: I844f26a32f1c72ed605946d690154fa1f3141a0a
2018-05-11 14:09:30 -07:00
Beverly
301e92a4dd Show settings suggestion
Bug: 78445134
Test: Settings tests
Change-Id: Ib66ebb3af3328ac1ffa9949282afaf800e1f1019
2018-05-11 09:45:04 -04:00
Christopher Tate
331cf5af98 Merge "Document system activity intents that may not be implemented" into pi-dev am: f9dbd76be3
am: b11cfdbb68

Change-Id: Ibbf7e19e942dd63774fd43f10e66d5c87e2aa8aa
2018-05-10 20:15:41 -07:00
Christopher Tate
b11cfdbb68 Merge "Document system activity intents that may not be implemented" into pi-dev
am: f9dbd76be3

Change-Id: I280d65623e070fbc2983f0e646f48d520842b2c9
2018-05-10 20:05:42 -07:00
Christopher Tate
72da1e6f78 Document system activity intents that may not be implemented
All of these activity-start intents might be unimplemented on some
Android products.  Document this to make sure that developers are
aware of the need to safeguard against this.

Bug: 68300743
Bug: 62201251
Bug: 69587018
Fixes: 77282739
Test: atest CtsContentTestCases:.AvailableIntentsTest
Change-Id: Ia2346d03ccb7f2bdad2b84ba9efff72413fdc3c2
2018-05-10 17:55:26 -07:00
Dianne Hackborn
19e99b432b Merge "Further flesh out app ops foreground state." into pi-dev am: 7105e2ca9a
am: 74dc457242

Change-Id: I54ec9070d60b234f22c6940f78ab001ffdd15b28
2018-05-09 23:11:48 -07:00
Dianne Hackborn
74dc457242 Merge "Further flesh out app ops foreground state." into pi-dev
am: 7105e2ca9a

Change-Id: I3a8056b6685ad7687ff5d54748c242eb9c906343
2018-05-09 22:59:34 -07:00
Damien Bargiacchi
68bbaade77 Switch the setting for Off Body Radios Off to User Absent Radios Off
Bug: 79491395
Change-Id: I82f8742398da503bdddc420399de444e3314998e
2018-05-09 21:11:44 -07:00
Dianne Hackborn
65a4f251c7 Further flesh out app ops foreground state.
Fix some bugs, add the ability to monitor state changes, improve
dumpsys output to help debugging, add a new check API that allows
the caller to get the real state.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I3d41be9968c1d95a1456f4052da958ea64aa068d
2018-05-09 18:02:35 -07:00
Victor Hsieh
1c23dc0ad3 Merge "Allow only selected priv apps to run OOB" into pi-dev am: 792d36c170
am: 5c195ee292

Change-Id: I9aff6c33256745d6c8666365b402e7bd278257cb
2018-05-09 13:15:12 -07:00
Victor Hsieh
5c195ee292 Merge "Allow only selected priv apps to run OOB" into pi-dev
am: 792d36c170

Change-Id: Iad80a321e1b76f19935a23290594a36fd057840c
2018-05-09 12:37:38 -07:00
Victor Hsieh
792d36c170 Merge "Allow only selected priv apps to run OOB" into pi-dev 2018-05-09 19:21:22 +00:00
Victor Hsieh
785d618b1a Allow only selected priv apps to run OOB
- Add pm.dexopt.priv-apps-oob-list to allow selecting specific packages
  to run OOB, in a comma-separated string of package names. When set to
  "ALL" (default), all priv apps will run in OOB.
- Add a global config priv_app_oob_list to persist the state for
  experiment.
- Also make background dexopt to respect the config.

Test: 0. Reset previous OOB settings.
      1. settings put global priv_app_oob_list \
         com.google.android.gms,com.android.vending
      2. cmd package compile -m speed -f com.google.android.gms (then
         com.android.vending, com.google.android.googlequicksearchbox)
      3. dumpsys package dexopt
         # .vending and .gms are "verify", .googlequicksearchbox is
         # "speed".
Test: settings put global priv_app_oob_list 'ALL'  # see the same result
Test: settings delete global priv_app_oob_list  # see the same result
Test: atest SettingsBackupTest
Bug: 30972906
Bug: 63920015
Change-Id: Iba47b4763a026cdc94939db0a743822278917269
2018-05-09 07:45:51 -07:00
Liam Byrne
3a808cda91 Merge "Remove hidden Settings.getGTalkAndroidId method" 2018-05-08 22:53:08 +00:00
Rohan Shah
c30bf94134 Merge "Add knobs for tweaking blocking helper thresholds" into pi-dev am: 7af8fe3e29
am: 566a00935e

Change-Id: I39b306a0d56b4b9a27db4af098b0b30f75e535c7
2018-05-08 14:32:03 -07:00
Rohan Shah
566a00935e Merge "Add knobs for tweaking blocking helper thresholds" into pi-dev
am: 7af8fe3e29

Change-Id: I5a5307d2345bb4ab5d3e91f3b58eaf8fc875f1ef
2018-05-08 14:17:35 -07:00
Rohan Shah
7af8fe3e29 Merge "Add knobs for tweaking blocking helper thresholds" into pi-dev 2018-05-08 21:00:07 +00:00
Rohan Shah
0350dab5b6 Add knobs for tweaking blocking helper thresholds
Added both blocking helper parameters to Global Settings to allow for
tweaking stats/values. Added listeners for value updates (so that
channels are updated properly with new thresholds).

Bug: 77143005
Test: manually, test cases
Change-Id: Ia5cfb29ca40500a694261bd5e9e60fa1f34e742a
2018-05-08 09:34:38 -07:00
Annie Meng
a9b443de16 Merge "Remove unused critical accessibility settings from backup/restore" 2018-05-08 12:45:57 +00:00
chenedward
c47329bb51 Backup and restore default alarm sound setting.
As currently we don't backup/restore the selected alarm sound
(alarm_alert), but both notification sound and ringtone did,
we add the feature to completed backup/restore sound setting.

Bug: 78330382
Test: atest FrameworksCoreTests:SettingsBackupTest
Change-Id: I83321b5cdab4b7b13c46fa4f32785750e3824fc1
2018-05-08 02:11:01 +00:00
Liam Byrne
ac9324a604 Remove hidden Settings.getGTalkAndroidId method
This is obsolete given GTalk has been turned down, and is hidden and
never used anywhere as far as I can tell so isn't a public API change.

BUG=79364231

Test: Removing hidden method not used anywhere

Change-Id: I76ca5649f390ef42700e42ccf9863b121020bebf
2018-05-07 17:25:59 -07:00
android-build-team Robot
4abb099e14 Merge "Convert RTT background throttle to a settable value (1/2)." into pi-dev am: 564942d065
am: 2629cb09ea

Change-Id: Ic8858402a12e08ca1774d06a8b0d435ca40826e5
2018-05-04 16:59:54 -07:00
android-build-team Robot
2629cb09ea Merge "Convert RTT background throttle to a settable value (1/2)." into pi-dev
am: 564942d065

Change-Id: I4fa6433b1e0fa320568c0b8c5ed5f2ce5c93314b
2018-05-04 16:53:04 -07:00
android-build-team Robot
564942d065 Merge "Convert RTT background throttle to a settable value (1/2)." into pi-dev 2018-05-04 23:40:22 +00:00
Annie Meng
37adc270fd Remove unused critical accessibility settings from backup/restore
ACCESSIBILITY_SPEAK_PASSWORD was deprecated in O and is forced true with
a default.

UI_NIGHT_MODE was removed from being backed up since M.

This is to clean up the critical accessibility settings check.

Bug: 78227065
Test: 1) atest SettingsBackupTest
2) atest SettingsValidatorsTest
3) manual: d2d does not restore ACCESSIBILITY_SPEAK_PASSWORD or
UI_NIGHT_MODE

Change-Id: I50478fc8a476817301cce7187165a79b249ee31a
2018-05-03 20:00:27 +01:00
Michael Wachenschwanz
52922df1d8 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev am: b3972f9d23
am: 2870552de6

Change-Id: I8ff2a30cbcef326f03f4308b064abfe890202b32
2018-05-01 17:45:13 -07:00
Michael Wachenschwanz
2870552de6 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev
am: b3972f9d23

Change-Id: Iacdddabdd58c0da6b53d997b08ddf70bef583392
2018-05-01 17:35:00 -07:00
Michael Wachenschwanz
b3972f9d23 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev 2018-05-02 00:23:23 +00:00
android-build-team Robot
bc231faae7 Merge "Add personalization state paused constant" into pi-dev am: 1fc69c5eda
am: ee2b9ee200

Change-Id: I8dd9fbf9d2e7e30f17e2c937ba1e3064f7ae091b
2018-05-01 12:17:23 -07:00
android-build-team Robot
ee2b9ee200 Merge "Add personalization state paused constant" into pi-dev
am: 1fc69c5eda

Change-Id: I9a79ca52682c4cc13a3611560552b2470dc8ebe5
2018-05-01 12:10:02 -07:00
Wei Wang
b6e04d5383 Convert RTT background throttle to a settable value (1/2).
Bug: 69323456
Test: Manual test. Unit tests with runtest.sh.
Change-Id: I7dd3efc0ef3f0a12303f927da134abbd2383deb6
2018-04-30 19:49:02 -07:00
Ajay Nadathur
43bda82c10 Add personalization state paused constant
- Add a new constant USER_SETUP_PERSONALIZATION_PAUSED to inform
interested listeners when personalization is paused.

bug: 78898802
Test: Manually tested and verified
Change-Id: I4481c38e31a8b47dfc98d8733b446885899d4a67
2018-04-30 21:42:44 +00:00
android-build-team Robot
8d7b81e67f Merge "Expose APIs used by CtsPermissionTestCases" 2018-04-27 18:56:48 +00:00
Chia-I Wu
4786eb61ac Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev am: 06c0c3a933
am: 58030441c0

Change-Id: Ic75d5cbb50303981b1b131bb21f1a4cacbc35312
2018-04-27 09:06:42 -07:00
Chia-I Wu
58030441c0 Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev
am: 06c0c3a933

Change-Id: I39b0120433fd1585ba2be7aa777bbb1686d1a254
2018-04-27 08:57:28 -07:00
Chia-I Wu
06c0c3a933 Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev 2018-04-27 15:47:41 +00:00
Sudheer Shanka
dfc8b3ff8e Merge "Schedule external stats sync on battery level change with a delay" into pi-dev am: a750da1960
am: 0c3d9cefcb

Change-Id: I2961daf8ab38bed8f5d4fed804447b0ae2d66fa9
2018-04-26 20:46:41 -07:00
Sudheer Shanka
0c3d9cefcb Merge "Schedule external stats sync on battery level change with a delay" into pi-dev
am: a750da1960

Change-Id: I5af09a2df4458611ad9f3c9812dc0f787bddbd4f
2018-04-26 20:33:52 -07:00
Sudheer Shanka
a750da1960 Merge "Schedule external stats sync on battery level change with a delay" into pi-dev 2018-04-27 03:20:38 +00:00
Michael Wachenschwanz
5ca5cb6c53 Add Stable Charging Threshold for AppStandby
Delay parole when charging to ensure the device has some time to charge
and avoid a spike is activity on plug in.

Change-Id: If85f097249aeed6b64f43a22f4d25ff0a070febb
Fixes: 78040839
Test: atest AppStandbyControllerTests
2018-04-26 15:44:58 -07:00
Sudheer Shanka
0719c6af44 Schedule external stats sync on battery level change with a delay
and fix locking in scheduleCpuStatsSyncDueToWakelockChange().

Bug: 74146897
Test: atest cts/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2891dfb8a0aedf429232f45e26deab93c738506e
2018-04-26 15:43:40 -07:00
Philip P. Moltmann
33115156f9 Expose APIs used by CtsPermissionTestCases
Test: atest CtsPermissionTestCases
Bug: 77604428
Change-Id: Ib5e9b678e98aab86dac90610ed071eb89f14fce9
2018-04-26 09:40:57 -07:00