797 Commits

Author SHA1 Message Date
Paul Duffin
ccb0445027 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

(cherry picked from 6387604f9e672ece85e07c4bcbd7be396867f06f)

Bug: 30188076
Test: make checkbuild
Merged-In: I13e88297731253420e4e5f5291d503f13a39a156
Change-Id: I58446eb8c45d8ac2bcdbc9fa40d1321e811bdd4b
2017-01-19 09:43:05 +00:00
Stephen Chen
d738140b8d Merge "Add Settings.Global.WIFI_WAKEUP_ENABLED flag."
am: d758ce1586

Change-Id: I1bf1effbb635d57980728555587e8056f630edb9
2016-12-03 04:16:06 +00:00
Stephen Chen
8ca96c1f3c Add Settings.Global.WIFI_WAKEUP_ENABLED flag.
Set the flag default to false. This addition is for the
Android Wi-Fi Snooze project:
https://docs.google.com/document/d/1zewDZ6Ne-qH7zKFDtcSx55f9jPauZwT5VvOs1uVNXf8/edit#

Bug: 32920000
Bug: 32913119
Test: runtest --path
frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java

Change-Id: I597d5dd643e8044315cc6d7553ae5740485a0552
2016-11-30 18:31:44 -08:00
Bill Yi
ca112cfaeb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia328721b05af6cfe32f4494e89f6ee1645cb1deb
2016-11-20 15:49:28 -08:00
Nick Kralevich
34547a8dc2 Delete "Show CPU usage" am: fc4a5c2d85
am: f0c0188a8a

Change-Id: If33e6687d3ec83904ab6ddbeb008c7b9c8130e7a
2016-10-11 18:15:23 +00:00
Nick Kralevich
f0c0188a8a Delete "Show CPU usage"
am: fc4a5c2d85

Change-Id: I4da784d136601fb3458b8697a0a27a232cd89111
2016-10-11 18:09:10 +00:00
Nick Kralevich
fc4a5c2d85 Delete "Show CPU usage"
This functionality hasn't worked since Lollipop.

Bug: 21388590
Change-Id: Ie4388d88f6e06f3e2d2e84e9c4515b3ebc6a0ea5
2016-10-11 09:01:38 -07:00
Andre Eisenbach
10a9dc7e04 Enable Bluetooth by default am: 8c18431be8
am: 4c18d82084

Change-Id: I9f8e70c2bebd61b16f4d751f8dab5240fda9933b
2016-09-10 01:40:32 +00:00
Andre Eisenbach
4c18d82084 Enable Bluetooth by default
am: 8c18431be8

Change-Id: Iebcaf699361494d92c59935f96c6e859fba96003
2016-09-10 01:33:13 +00:00
Andre Eisenbach
8c18431be8 Enable Bluetooth by default
Bug: 29446913
Change-Id: I6d42810cb3f99617b886f6c643f8c66c42c1d017
2016-09-09 16:20:27 -07:00
Mitchell Wills
722de5f9d0 DO NOT MERGE Manually merge commit 'f28778064383821ccf48c9570191f34a24aa513f' into nyc-mr1-dev-plus-aosp
Change-Id: I7cb1f97a5b931c2057a811d7947f47ad7320ef1c
2016-08-29 17:46:44 -07:00
The Android Automerger
f287780643 Manually merge commit 'b0b6afc' into nyc-dev-plus-aosp 2016-08-30 00:26:21 +00:00
Roshan Pius
28be4fc091 SettingsBackupAgent: Remove redundant size parameter
Remove the redundant size parameter in wifi backup/restore.

BUG: 28967335
Change-Id: I8ae9b2bf3bc8eb2dd1fd6dd87fe7b1dcf0712382
(cherry picked from commit 5db739c67fb6c897da91ccdda5700ff660eea15d)
2016-08-26 13:22:50 -07:00
Roshan Pius
1bf869887d Use WifiManager for wifi backup/restore
Use the newly exposed WifiManager API's for backing up/restoring wifi
related data. Remove all other wifi related logic from
SettingsBackupAgent.

There are 3 API's exposed by WifiManager for backup/restore:
1. retrieveBackupData - Data to be backed up in new format.
2. restoreBackupData - Restore from the new backup data format.
3. restoreOldBackupData - Restore from the old backup data format.

BUG: 29075035
BUG: 28967335
Change-Id: I2dc379bc36af0a0824ed51fbe9aaebfd0a0114b0
(cherry picked from commit 7a2491fa3b42dd22c829eea3690239545f16f124)
2016-08-26 13:22:48 -07:00
Svetoslav Ganov
11bd5718a1 Store the event of settings db downgrade am: 264c7a90c7
am: f813a5a1c4

Change-Id: I21a6ebdde23a0df93872105d91a54d64a2e6adf4
2016-08-25 02:31:48 +00:00
Svetoslav Ganov
f813a5a1c4 Store the event of settings db downgrade
am: 264c7a90c7

Change-Id: I5b9d5a9bd3c2df337776921a34960ceef8fda1ce
2016-08-25 02:25:47 +00:00
Svetoslav Ganov
264c7a90c7 Store the event of settings db downgrade
bug:30561721

Change-Id: I8f2252bbf99603976c7efc32c54aa88b314ba815
2016-08-24 17:31:21 -07:00
Anthony Hugh
c1de1b6dde Add panic detection to back button
am: 96e9cc5700

Change-Id: I60553d88e1e1c42c11dae92d35c4ad761d188fda
2016-08-05 00:55:38 +00:00
Anthony Hugh
bfacf7ce2e Merge "Add panic detection to back button" into cw-f-dev 2016-08-05 00:47:08 +00:00
Svetoslav Ganov
6ad9366b74 Add historical logging to settings provider am: a340bfd7a1
am: ba92753043

Change-Id: Ic365c69b2bb76dff17dd6c8b932f017c27c53d4f
2016-08-04 01:43:18 +00:00
Svetoslav Ganov
a340bfd7a1 Add historical logging to settings provider
This change adds historical operations to the dump state
of the settings provider. The historica operations are
currently appended only on user-debug and eng builds.

These change is needed to help diagnose the referred
bug and improve the settings provider's maintenance.

bug:30561721

Change-Id: I58a1ba0d598c4d28adcb5e654ebb78cf947e94db
2016-08-03 15:48:44 -07:00
Anthony Hugh
96e9cc5700 Add panic detection to back button
Adds "panic" detection to the back button.  Implemented solution
uses 4x button presses in a short duration to detect for "panic".
The value used to determine the duration between key up and key down
that still count as a multi-button press is configurable via the
Settings Provider.

BUG: 28027764

Change-Id: Ibf1370ff3cb539a9a54002a8704922744a3ca5d7
2016-08-03 15:24:58 -07:00
Benjamin Franz
428b3bdca8 Block user from setting safe boot setting via adb am: 0ff13fce6f
am: c86e8c3442

Change-Id: Ie9e1f4d447dd61ef7f5ef191d1309377fbbf4559
2016-07-22 08:54:21 +00:00
Benjamin Franz
c86e8c3442 Block user from setting safe boot setting via adb
am: 0ff13fce6f

Change-Id: Ic8da0b5ffbc285f4371f68c189054a0005b90751
2016-07-22 08:47:40 +00:00
Benjamin Franz
36eb7a1370 Block user from setting safe boot setting via adb
am: 0ff13fce6f

Change-Id: I50db586478eb52d0a2f43e9150cc663c96e5779b
2016-07-22 08:47:32 +00:00
Dan Sandler
c6bc4f4b60 Decrease default longpress timeout to 400ms.
am: 71f85e9194

Change-Id: I0daedfc5d6d2c0b98feda11f1930eaf3fdca7e76
2016-07-22 04:45:28 +00:00
Daniel Sandler
c3bdde9790 Merge "Decrease default longpress timeout to 400ms." into nyc-mr1-dev 2016-07-22 04:41:30 +00:00
Dan Sandler
71f85e9194 Decrease default longpress timeout to 400ms.
If the device being upgraded happens to have a timeout of
500ms it will be reset to 400. If the value is something
else it will be left alone upon upgrade.

Bug: 30159825
Change-Id: Ifec70e458ce0199b61d36f7504aea02b4a974990
2016-07-21 19:23:12 -04:00
Bill Yi
8eff1c381b Import translations. DO NOT MERGE
Change-Id: I7261aecb1f28f1b46c1555c52a0010bcc6c52408
Auto-generated-cl: translation import
2016-07-20 19:44:42 -07:00
Benjamin Franz
0ff13fce6f Block user from setting safe boot setting via adb
Bug: 29900345
Change-Id: Id3b4472b59ded2c7c29762ddf008ee8486009dbb
2016-07-15 10:43:15 +01:00
Victor Chang
07e11c3ae9 Merge \"Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set\" into nyc-dev
am: 488042fe3b

Change-Id: Ia41b8b2acbe3897423ac27881f3419efcfeeb002
2016-07-14 22:10:06 +00:00
Justin Klaassen
5f3bf63121 Merge \"Refactor display color transforms\" into nyc-mr1-dev
am: 94673f0b7c

Change-Id: I7fdf83db6cbf26cdc5b8a9971fa48b7f8458474d
2016-07-14 19:33:35 +00:00
Justin Klaassen
22eb19939d Refactor display color transforms
- Removed Secure.ACCESSIBILITY_DISPLAY_COLOR_MATRIX, it's not desirable
  to persist the actual color transformation matrix.
- Refactored all SurfaceFlinger transforms to DisplayTransformManager,
  which allows color transforms to be set independently from the a11y
  manager service.

Bug: 30042357
Change-Id: Iefa477dedb66aac90e1218e327802a3fab6899ed
2016-07-14 11:28:07 -07:00
Victor Chang
e293b0cd00 Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set
Fix: 29899712

Change-Id: I38cc9d0e584c3f2674c9ff1d91f77a11479d8943
(cherry picked from commit 9c7b706cf4332b4aeea39c166abca04b56685280)
2016-07-14 10:47:35 +00:00
Julia Reynolds
e1f91a7475 Merge \"Whitelist default apps for DND access.\" into nyc-mr1-dev
am: 5bd9ea82d2

Change-Id: I95d832e2858668cd5b0f6a7686ccda0cd420b726
2016-07-13 18:47:12 +00:00
Victor Chang
87ec0ef5e2 Merge \"Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set\" into nyc-mr1-dev
am: e05b35db0d

Change-Id: I0b47bc6184ee3b4b9ac4783decf4c8cd30b70fbd
2016-07-13 18:40:49 +00:00
Julia Reynolds
5bd9ea82d2 Merge "Whitelist default apps for DND access." into nyc-mr1-dev 2016-07-13 18:40:21 +00:00
Victor Chang
e05b35db0d Merge "Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set" into nyc-mr1-dev 2016-07-13 18:36:37 +00:00
Julia Reynolds
1f721e113b Whitelist default apps for DND access.
Bug: 29606962
Change-Id: I0a94004cf08a51ab17813f99aabddbceb95ac8f0
2016-07-13 12:45:05 -04:00
Victor Chang
9c7b706cf4 Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set
Fix: 29899712

Change-Id: I38cc9d0e584c3f2674c9ff1d91f77a11479d8943
2016-07-13 16:01:35 +01:00
Mahaver Chopra
e64f60a455 Merge \"Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.\" into nyc-mr1-dev
am: 695a1c50a2

Change-Id: I8976511deb994983abbb17b2830b98878c92631b
2016-07-13 12:33:59 +00:00
Mahaver Chopra
3d9805d502 Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.
Currently we used global setting to restrict user from enabling oem
unlock. As global settings can be chagned using adb, using user
restrictions instead.

Bug: 29893399
Change-Id: Ic83112a4838b8279bf50408a29ae205e0b8639ee
2016-07-12 19:29:14 +01:00
Bill Yi
9a2f574fce Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 29390361
Change-Id: Iac4bc0fff7337c0971222e59b1f01e4a7ff3a1c5
2016-06-30 19:59:37 -07:00
Svetoslav Ganov
8011f5ed1c Merge \"Fix a race in local settings caches\" into nyc-dev
am: f4ddb7ce30

Change-Id: If28342d6deab7d0b7e89029229bad060ce7c8a8d
2016-06-18 02:22:52 +00:00
Svetoslav Ganov
235411a3bc Merge \\"Fix a race in local settings caches\\" into nyc-dev am: f4ddb7ce30
am: ee4c0a3c7e

Change-Id: If795ce9ea8fe36c9919170d0ded12bf488fb8a49
2016-06-18 00:42:16 +00:00
Svetoslav Ganov
ee4c0a3c7e Merge \"Fix a race in local settings caches\" into nyc-dev
am: f4ddb7ce30

Change-Id: Ia973ef68382ac359908b83be3dbca485c91d5cd6
2016-06-18 00:38:28 +00:00
Svetoslav Ganov
8c35dcc7ae Fix a race in local settings caches
We send a handle to the generation tracker along with the first accessed
setting but don't send the generation id of when the setting was
actually looked up. So by the time the client gets the setting with the
generation tracker from which to get and cache the last generation the
setting may have changed. We need to pass the generation id along with
the value and the generation tracker.

bug:29458487

Change-Id: I0ac4955ba5b10b547f8fe653a7c28e048a4691eb
2016-06-17 15:30:45 -07:00
Bill Yi
4535c0f80c Import translations. DO NOT MERGE
Change-Id: Id381d85225a2de4b0e0c1f2d3fba40143ed738a2
Auto-generated-cl: translation import
2016-06-03 09:43:50 -07:00
Bill Yi
686d0d7cf6 Import translations. DO NOT MERGE
Change-Id: Ie630e761cacbec55840a3de9439aa36835a34b38
Auto-generated-cl: translation import
2016-06-03 09:33:00 -07:00
Baligh Uddin
cd669b648a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 28857042
Change-Id: I3e66f964402487321dd1923656d488b514bc68ba
2016-05-21 12:46:09 -07:00