Commit Graph

40221 Commits

Author SHA1 Message Date
TreeHugger Robot
545221ee72 Merge "Add OWNERS for folder location" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
06fd05eb93 Merge "Add OWNERS for folder password" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
a562bdef8b Merge "Add OWNERS for folder inputmethod" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
c652ff1a81 Merge "Add OWNERS for package enterprise" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
5f7a3dee84 Merge "Add OWNERS for folder fingerprint" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
e4aa914754 Merge "Add OWNERS for package backup" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
b51dd8a119 Merge "Add OWNER for accessibility package." 2017-09-12 23:48:55 +00:00
TreeHugger Robot
957f6fdbed Merge "Add OWNERS file for settings" 2017-09-12 23:48:55 +00:00
TreeHugger Robot
12a6fc3a16 Merge "Define Utils.formatRelativeTime() and use it" 2017-09-12 23:21:37 +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
jackqdyulei
1c5d663ed7 Init the pref summary in onCreate()
The visibility of bottom summary in BatteryHistoryPrefence will
be changed dynamically(charging status + flags). Before this cl,
we only update it in a callback, which makes other preference
may have unnecessary moves.

This cl add init method in onCreate(), which removes the uncessary
preference position moves.

Bug: 65529494
Test: RoboTest still pass
Change-Id: I09d2e26fc3caaeb272422997c16957770cdc1d3f
(cherry picked from commit 65dea0a7b2)
2017-09-12 22:49:29 +00: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
Lei Yu
7592b05e61 Merge "Init the pref summary in onCreate()" 2017-09-12 22:18:16 +00: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
jackqdyulei
be137eb7c5 Add OWNERS file for settings
Bug: 65294119
Test: manual
Change-Id: I054a6df08046cda1c2f202390ed24839a6b10349
2017-09-12 13:10:08 -07: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
Jeffrey Huang
4a020c468f Merge "Do not dim icons when Preference is Disabled" 2017-09-12 18:47:52 +00:00
jackqdyulei
ed3fab65e8 Add OWNERS for folder wifi
Bug: 65294119
Test: Manual
Change-Id: I49159950521a013422b1087ea2c3e6cd5151457c
2017-09-12 10:37:42 -07: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
Malcolm Chen
26938b36ee In ApnEditor, restore preference values after re-creating.
After destroying and re-creating, the preference values in ApnEditor
are not restored. This results in incorrect behavior if it enters
two window mode where it's destroyed and re-created. The fix is to
have them restored and shown correctly.

Bug: 65338066
Test: Manual
Change-Id: I5ea16ce01c72061ab116f9c15bfc5cc39bb7a095
2017-09-12 01:01:09 +00:00
jeffreyhuang
5152bf87b0 Do not dim icons when Preference is Disabled
Change DimmableIconPreference into RestrictedPreference so
that the app icon background no longer turns darker

Fixes: 65207948
Test: Manual using settings app, Run SettingsRoboTests
Change-Id: I1c458439006c9d07642b9ef35455e845cb5545e6
2017-09-11 17:05:33 -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
jackqdyulei
65dea0a7b2 Init the pref summary in onCreate()
The visibility of bottom summary in BatteryHistoryPrefence will
be changed dynamically(charging status + flags). Before this cl,
we only update it in a callback, which makes other preference
may have unnecessary moves.

This cl add init method in onCreate(), which removes the uncessary
preference position moves.

Bug: 65529494
Test: RoboTest still pass
Change-Id: I09d2e26fc3caaeb272422997c16957770cdc1d3f
2017-09-11 15:56:07 -07:00
TreeHugger Robot
a26b07292d Merge "Adding switch for Forced App Standby" 2017-09-11 22:48:35 +00:00
debesay guadad
64d3df8baf Merge "Add ims registration status" am: 9b7479f8a9 -s ours am: d3c72406b6 -s ours am: 91b143383c -s ours
am: 6d5fbfdc72  -s ours

Change-Id: Idbbdeed21c608cae5463b3babbb9b9054c74180d
2017-09-11 21:35:50 +00:00
jackqdyulei
35066bbcd7 Add OWNERS for folder tts
Bug: 65294119
Test: Manual
Change-Id: Ie9492f497824cd2b2727dde9d3a48452c72f1084
2017-09-11 14:08:09 -07:00
debesay guadad
6d5fbfdc72 Merge "Add ims registration status" am: 9b7479f8a9 -s ours am: d3c72406b6 -s ours
am: 91b143383c  -s ours

Change-Id: Iacba38adf23ae48fa92ca852620fc9232629fa73
2017-09-11 21:06:31 +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
jackqdyulei
054064d40d Add OWNERS for folder bluetooth
Bug: 65294119
Test: Build
Change-Id: I927052a73f639d0894600611cd5c79293f43ff5e
2017-09-11 20:41:47 +00:00
debesay guadad
91b143383c Merge "Add ims registration status" am: 9b7479f8a9 -s ours
am: d3c72406b6  -s ours

Change-Id: I15bdf67a2be0187682a936d3fe8a0ae42d8329b5
2017-09-11 20:27:24 +00:00
jackqdyulei
12701a4c5b Add OWNERS for folder fingerprint
Bug: 65294119
Test: Manual
Change-Id: I1486782f476acaf1e2e4b66df57869409239986f
2017-09-11 13:22:12 -07:00
Brad Ebinger
368d4f4c27 Merge "Merge "Add ims registration status" into stage-aosp-master am: af845720f6 am: 99768cc46c -s ours" into oc-mr1-dev-plus-aosp
am: b7773add7d  -s ours

Change-Id: If245269478b0f7ae17334bd7e702a5477ac1cb15
2017-09-11 20:18:52 +00:00
Maurice Lam
a2f0fe91fd Merge "Fix sizing of pattern view" into oc-mr1-dev am: adef5b23e0
am: 4f61cfb967

Change-Id: I84059c89eda774c833c710166a1778bd36c6ff98
2017-09-11 20:17:18 +00: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
Android Build Merger (Role)
b7773add7d Merge "Merge "Add ims registration status" into stage-aosp-master am: af845720f6 am: 99768cc46c -s ours" into oc-mr1-dev-plus-aosp 2017-09-11 20:10:25 +00:00
Maurice Lam
4f61cfb967 Merge "Fix sizing of pattern view" into oc-mr1-dev
am: adef5b23e0

Change-Id: I63928a5e53bf15b30d50f28fa9c4518503d005d7
2017-09-11 20:09:55 +00:00
debesay guadad
d3c72406b6 Merge "Add ims registration status"
am: 9b7479f8a9  -s ours

Change-Id: I65a6d75b2f2127929794c320fe7596372dd4c6ac
2017-09-11 20:09:47 +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
Maurice Lam
adef5b23e0 Merge "Fix sizing of pattern view" into oc-mr1-dev 2017-09-11 20:07:48 +00:00
Maurice Lam
7efcc35d85 Fix sizing of pattern view
Align the size of pattern view in ChooseLockPattern,
ConfirmLockPattern, and keyguard as much as possible.
In rare cases they may still be inconsistent because
the screens have different content outside of the
pattern view (e.g. header text, navigation buttons etc)

Test: Manual
Bug: 64339681
Change-Id: Ie07ae211340967a3cdf9c6c28f9818f207dbd2c9
2017-09-11 20:07:17 +00:00
Brad Ebinger
e4589c3dfb Merge "Add ims registration status" into stage-aosp-master am: af845720f6
am: 99768cc46c  -s ours

Change-Id: Idcab879ef2b9f1891dbae4309e7a971f48660b97
2017-09-11 20:06:21 +00:00
jackqdyulei
a50a5e529b Add OWNERS for folder fuelgauge
Bug: 65294119
Test: Manual
Change-Id: Ia1eb8155f2d4359d56b0babd474083295ba38a0b
2017-09-11 12:54:31 -07:00
Brad Ebinger
99768cc46c Merge "Add ims registration status" into stage-aosp-master
am: af845720f6

Change-Id: I5daf6e9a55e10d20fc03be6a54801ad6d6533bf8
2017-09-11 19:54:02 +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
Treehugger Robot
9b7479f8a9 Merge "Add ims registration status" 2017-09-11 19:44:31 +00:00