Commit Graph

3184 Commits

Author SHA1 Message Date
TreeHugger Robot
fe18f8e876 Merge "Integrate with SettingsIntelligence" 2017-09-14 21:52:16 +00:00
Soroosh Mariooryad
5ba0f51bcd Log smart settings suggestion enabled/disabled state for A/B experiments
Test: RunSettingsRoboTests
Bug: 64121058

Change-Id: Iadfa575b9a21caecb515b9975d388ee0d0480c11
2017-09-14 10:43:56 -07:00
Jeffrey Huang
e50d119d90 Merge "Introduce StayAwakePreferenceController" 2017-09-14 16:49:30 +00:00
Antony Sargent
514391ca82 Merge "Prevent brief flash of "Error" in hotspot status text" into oc-mr1-dev am: bc6dc5c20c
am: 151d5600b1

Change-Id: I60106dd55184e0ad48a216a71ab066849636ddb2
2017-09-14 03:39:01 +00:00
jackqdyulei
f7eae26ab4 Merge "Turn on wakeupAlarm anomaly detector" into oc-mr1-dev am: 7853f24405
am: 6f98ad5778

Change-Id: Iecc33e2d1e84a67891f6b8d6709bd48dd787dc1d
2017-09-14 03:38:24 +00:00
Antony Sargent
151d5600b1 Merge "Prevent brief flash of "Error" in hotspot status text" into oc-mr1-dev
am: bc6dc5c20c

Change-Id: I64d32e5ac1724ff4c79f1ea4516fa83492a39377
2017-09-14 03:31:27 +00:00
jackqdyulei
6f98ad5778 Merge "Turn on wakeupAlarm anomaly detector" into oc-mr1-dev
am: 7853f24405

Change-Id: Ibf4e6c97267fa341913506d258802dc4c6d8d137
2017-09-14 03:30:48 +00:00
Fan Zhang
d040ecd499 Integrate with SettingsIntelligence
Bug: 64691432
Test: robotests
Change-Id: Idd20fd66f0289e0d0178bac02b1059c5554673f4
2017-09-13 17:48:37 -07:00
TreeHugger Robot
475df3c678 Merge "Change the permission labels to lowercase." 2017-09-14 00:23:05 +00:00
Antony Sargent
bc6dc5c20c Merge "Prevent brief flash of "Error" in hotspot status text" into oc-mr1-dev 2017-09-14 00:04:42 +00:00
TreeHugger Robot
7853f24405 Merge "Turn on wakeupAlarm anomaly detector" into oc-mr1-dev 2017-09-13 23:08:25 +00:00
Doris Ling
a9693524bf Change the permission labels to lowercase.
In the summary for Apps permissions, change the list of permissions
lable to lowercase instead.

Change-Id: I5b3133c33de7110dbec6ab179c6f1308c4ed481e
Fixes: 65049565
Test: make RunSettingsRoboTests
2017-09-13 15:23:06 -07:00
jeffreyhuang
f4e1295f6f Introduce StayAwakePreferenceController
- Create new StayAwakePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
ROBOTEST_FILTER=StayAwakePreferenceControllerTest

Change-Id: I7642656fb2e323878face52f0a3c57fec1d85ac4
2017-09-13 14:56:36 -07:00
TreeHugger Robot
e4cab00ffa Merge "Move search indexing into a separate class" 2017-09-13 19:43:38 +00:00
TreeHugger Robot
b0b1b9364c Merge "Import translations. DO NOT MERGE" 2017-09-13 18:18:19 +00:00
Bill Yi
d732b0a4e6 Import translations. DO NOT MERGE
Change-Id: Iead27f9c66c6bce2c1f3b27c29cf2c703da6dac6
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-13 09:33:48 -07:00
Emilian Peev
44c7447466 Merge "Settings: Add laser sensor preference" into oc-mr1-dev am: 22eb007eea
am: 11179290a2

Change-Id: I0575553117ca62c027a82aa69ecc0c1865f6c762
2017-09-13 09:52:30 +00:00
Matthew Fritze
7448204f36 Merge "Index the System status page" into oc-mr1-dev am: 6203bde8d3
am: 8896df965b

Change-Id: I70141cb7f89794f734a33b2f90e470e1554c3320
2017-09-13 09:47:02 +00:00
Rebecca Silberstein
be31cd3a79 Merge "Revert back to isDualBandSupported() for Wifi tethering." into oc-mr1-dev am: b975e352a2
am: 91f5a63262

Change-Id: I7288e2082cb68299d6ada715711316d848657015
2017-09-13 09:45:52 +00:00
Emilian Peev
11179290a2 Merge "Settings: Add laser sensor preference" into oc-mr1-dev
am: 22eb007eea

Change-Id: I34ab89bd2a175aa77a78a9a46aea75f148bab284
2017-09-13 08:40:10 +00:00
Matthew Fritze
8896df965b Merge "Index the System status page" into oc-mr1-dev
am: 6203bde8d3

Change-Id: If4350a9cb90e995aa5095c77570055e464103879
2017-09-13 08:38:40 +00:00
Rebecca Silberstein
91f5a63262 Merge "Revert back to isDualBandSupported() for Wifi tethering." into oc-mr1-dev
am: b975e352a2

Change-Id: I883ab8568ae0393e86de770af08cf7779f18b595
2017-09-13 08:38:14 +00:00
TreeHugger Robot
22eb007eea Merge "Settings: Add laser sensor preference" into oc-mr1-dev 2017-09-13 07:19:35 +00:00
TreeHugger Robot
6203bde8d3 Merge "Index the System status page" into oc-mr1-dev 2017-09-13 00:06:27 +00:00
TreeHugger Robot
b975e352a2 Merge "Revert back to isDualBandSupported() for Wifi tethering." into oc-mr1-dev 2017-09-12 23:20:03 +00:00
jackqdyulei
1a49a8ab39 Turn on wakeupAlarm anomaly detector
In ag/2642771, wakeup alarms is changed to based on screen-off
timebase. After that, all the wakeup alarms will be background
ones.

So it is safe to turn on the wakeupAlarm anomaly detector.

Bug: 65597330
Test: RunSettingsRoboTests
Change-Id: I653d4bbfa671c52890dc6c6b13870c666ba9b944
2017-09-12 15:59:52 -07:00
Matthew Fritze
80d3ea2a73 Move search indexing into a separate class
Step 2 in refactoring DatabaseIndexingManager.

This step moves the insertion of data into the database
into a new class. This removes the remaining bulk of the
code outside of DIM, but it does not fix the actual issue
with the indexing code.

The indexing code still chains functions together to
insert data into the database at the end of the functions.

It is exceedingly hard to read, and hard to track down bugs.

I would like the converter to eventually return a list of
IndexData objects, which lets us dissociate the database
from the data collection. I.e. we can store the database
in the Search app, and just pass IndexData objects via
IPC.Fixing this requires more of a refactor, and will be
done in a subsquent CL.

Bug: 33577327
Test: make RunSettingsRoboTests
Test: Took a database dump before and after change,
      and they were the same. Cool.
Change-Id: Ia9bb815657b76f6cb9163014e746ec5eb6db8c5e
2017-09-12 15:40:54 -07:00
Matthew Fritze
4b0677a2a4 Index the System status page
- Page is found in System > About Phone > Status
The page was simply never indexed.

- Remove the unavailable summary text.

- Suppress IP address because it appears in wifi
settings as well.

Test: make RunSettingsRoboTests
Change-Id: I0c5eb5222fc356dd3686fb84ca47da8e2d3274f5
Fixes: 65443327
2017-09-12 14:18:09 -07:00
Roozbeh Pournader
4de9df2943 Define Utils.formatRelativeTime() and use it
Previously, relative times were formatted using formatElapsedTime()
(appending translations of "ago" to them), sometimes resulting in
grammatically hard-to-understand or unnatural localizations. Now we
use ICU's RelativeDateTimeFormatter, which uses grammatically correct
and natural localizations from CLDR data.

Bug: 64507689
Bug: 64605781
Bug: 64556849
Bug: 64550172
Test: make -j RunSettingsRoboTests
Change-Id: Ia2d098b190ab99e7748ef6f03b919f5c6174ba7d
2017-09-12 20:48:00 +00:00
TreeHugger Robot
ad3a7f4066 Merge "Add switch bar to enable/disable dev settings in new page." 2017-09-12 19:50:15 +00:00
Rebecca Silberstein
d52c17c765 Revert back to isDualBandSupported() for Wifi tethering.
This is needed to maintain OEM compatibility

Bug: 33160120
Test: robotests
Change-Id: Ic302969d33f32da72aee47d29615a250d3d924e2
2017-09-12 12:46:26 -07:00
TreeHugger Robot
e71fa15fe2 Merge "Add modify button to WifiNetworkDetailsFragment." 2017-09-12 19:35:29 +00:00
Fan Zhang
d77881f88d Add switch bar to enable/disable dev settings in new page.
Bug: 65522852
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=Development
Change-Id: I0958950dc6aaee24d8d5e0be58d7564d108bc72e
2017-09-12 10:25:43 -07:00
Antony Sargent
a2559ab128 Prevent brief flash of "Error" in hotspot status text
When toggling the master preference to turn on wifi hotspot, it briefly
changes the status text to "Error" because we have a catch-all in a
function monitoring wifi state changes for unexpected status codes, and
we weren't expecting to see the status of WIFI_AP_STATE_ENABLING before
the status of WIFI_AP_STATE_ENABLED.

Bug: 64811203
Test: make RunSettingsRoboTests
Change-Id: Ifba7abadbfba9ce93cc524b17232c65570f0f428
2017-09-11 16:50:10 -07:00
TreeHugger Robot
a26b07292d Merge "Adding switch for Forced App Standby" 2017-09-11 22:48:35 +00:00
Suprabh Shukla
4c64777b2a Adding switch for Forced App Standby
Reusing the 'Background activity' switch found in App Info. The switch
now needs to be shown for all apps and will toggle another app op
RUN_ANY_IN_BACKGROUND which controls whether jobs or alarms are run for
background apps.
Also fixed handling of multiple packages with shared uid. The controller
was picking the first package for uid but the order of packages can
change on a reboot which would cause wrong app ops settings across
packages of the same uid.

Test: make -j32 RunSettingsRoboTests

Bug: 65176793
Change-Id: I2a9b96bc02730776172c3ae317cb7f7f890bec30
2017-09-11 14:05:26 -07:00
Antony Sargent
0f93979e98 Merge "Fix focus behavior of ValidatedEditTextPreference" into oc-mr1-dev am: b8ff97fbd5
am: 707552888d

Change-Id: I2399b0336772742ef3afb34df393d96bb5a37a08
2017-09-11 20:16:44 +00:00
Antony Sargent
707552888d Merge "Fix focus behavior of ValidatedEditTextPreference" into oc-mr1-dev
am: b8ff97fbd5

Change-Id: I559aa49ff0ef4aa82a6a1fb989d05c81ac7575fe
2017-09-11 20:09:25 +00:00
TreeHugger Robot
b8ff97fbd5 Merge "Fix focus behavior of ValidatedEditTextPreference" into oc-mr1-dev 2017-09-11 19:52:47 +00:00
TreeHugger Robot
c939be6551 Merge "Fork a new developer options page." 2017-09-11 19:47:26 +00:00
jackqdyulei
7854b554c8 Merge "Make system item has a consistent name." into oc-mr1-dev am: 9a3cb9b835
am: 52a2d32a37

Change-Id: I420581233b77c88772058730e8535c8d72b2cad5
2017-09-11 19:13:00 +00:00
jackqdyulei
52a2d32a37 Merge "Make system item has a consistent name." into oc-mr1-dev
am: 9a3cb9b835

Change-Id: I928f4266130d488476aadd6dd61a3ce22c579aa2
2017-09-11 17:53:43 +00:00
Maurice Lam
c11a2f0745 Merge "Don't default to PIN on non FBE devices" 2017-09-11 17:41:47 +00:00
TreeHugger Robot
9a3cb9b835 Merge "Make system item has a consistent name." into oc-mr1-dev 2017-09-11 17:33:09 +00:00
Antony Sargent
9be8c3fbfe Fix focus behavior of ValidatedEditTextPreference
The bug report was that the cursor is set to the beginning of the
EditText for wifi hotspot password field, instead of at the end (or
having the entire field selected). This fix makes it so that all
ValidatedEditTextPreference's will put the cursor at the end of the
EditText.

Bug: 65413206
Test: make RunSettingsRoboTests
Change-Id: I23f3bb1b3f1b49b2f193c0ae2e103eae5c1a1019
2017-09-11 10:12:05 -07:00
Erik Kline
c8e912e5c4 Merge "Include IPv6 DNS servers in wifi details" into oc-mr1-dev am: 1b62d99433
am: 775807f422

Change-Id: I55fbd611fee9f17215412a76b480cdee96f62b32
2017-09-11 05:04:28 +00:00
Erik Kline
775807f422 Merge "Include IPv6 DNS servers in wifi details" into oc-mr1-dev
am: 1b62d99433

Change-Id: If15181d557e9abce75111a6e1fff4e12586d7dbc
2017-09-11 05:00:34 +00:00
TreeHugger Robot
1b62d99433 Merge "Include IPv6 DNS servers in wifi details" into oc-mr1-dev 2017-09-11 04:56:28 +00:00
Erik Kline
9adc588749 Include IPv6 DNS servers in wifi details
Test: as follows
    - built
    - flashed
    - booted
    - export ROBOTEST_FILTER=WifiDetailPreferenceControllerTest \
          make -j RunSettingsRoboTests
      RunSettingsRoboTests:
      RunSettingsRoboTests: Time: 19.821
      RunSettingsRoboTests:
      RunSettingsRoboTests: OK (37 tests)
      RunSettingsRoboTests:
    - make -j RunSettingsRoboTests
      RunSettingsRoboTests: ...........................
      RunSettingsRoboTests: Time: 424.847
      RunSettingsRoboTests:
      RunSettingsRoboTests: OK (2250 tests)
      RunSettingsRoboTests:

Bug: 65037256
Bug: 65467586

Change-Id: Icd3d09aa35c04101c41e2521b48e64f28f69ae29
2017-09-11 11:24:45 +09:00
Fan Zhang
4c26da9e13 Fork a new developer options page.
- Create a new activity/fragment and add it to manifest
- Mark old activity/fragment deprecated
- Enable/disable the new activity based on FeatureFlag
- Initial skeleton code for new fragment

Bug: 65522852
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=DevelopmentSettingsDashboardFragmentTest
Change-Id: Ib1395693f8b6f61d4726573a9ea841ea53cf207b
2017-09-10 15:02:51 -07:00