Commit Graph

37633 Commits

Author SHA1 Message Date
TreeHugger Robot
ea3d314a10 Merge "Scroll to top when connecting to network." into oc-dr1-dev 2017-06-28 23:32:13 +00:00
jackqdyulei
8213f102dc Change the type of "hours" from long to double
So we won't have the rounding issue here.

Bug: 63112264
Test: RunSettingsRoboTests
Change-Id: I85b3525781074294964a956dbe76f3b55f65704d
2017-06-28 16:20:34 -07:00
jackqdyulei
ac29684b14 Add metric action log for anomaly action
Change AnomalyAction to abstract class and log the action there.

Bug: 37681923
Test: RunSettingsRoboTests
Change-Id: Ied7a269d4a3f8fcb978165af6e17a9c9952fea49
2017-06-28 15:35:54 -07:00
Maurice Lam
9990f39722 Read theme for lock screen flows
Move the applyThemeResource calls up from the setup wizard specific
subclasses up to the settings classes so that it will get GLIF v2
theme on devices that request it.

Test: Manual
Bug: 62906814
Change-Id: I6ff4ff8d9ed3e6090b35b4ae7197e5d01f5a61f8
2017-06-28 15:06:09 -07:00
Daniel Nishi
7cc286bac7 Merge "Put the donut on a diet." into oc-dr1-dev
am: 2cbe278ad4

Change-Id: I156d0acacd4933247634d7915defa9fbe73a0ba0
2017-06-28 20:59:52 +00:00
Daniel Nishi
e440fdb769 Merge "Use the proper style for the SpacePreference." into oc-dr1-dev
am: ff8312b36b

Change-Id: I44d02a388a2d8c9dd8a797f78fce67a856bc22e5
2017-06-28 20:59:31 +00:00
Daniel Nishi
2cbe278ad4 Merge "Put the donut on a diet." into oc-dr1-dev 2017-06-28 20:54:57 +00:00
Daniel Nishi
ff8312b36b Merge "Use the proper style for the SpacePreference." into oc-dr1-dev 2017-06-28 20:54:29 +00:00
Matthew Fritze
d4075ea983 Merge "Add synchronous indexing api to SearchFeatureProvider" into oc-dr1-dev
am: e2e54e17c7

Change-Id: Ib8b6696cc232ef492a75180c4ac18ee7685be047
2017-06-28 20:50:22 +00:00
TreeHugger Robot
e2e54e17c7 Merge "Add synchronous indexing api to SearchFeatureProvider" into oc-dr1-dev 2017-06-28 20:44:13 +00:00
Doris Ling
e76550a66e Add account sync summary.
- Check for the number of sync adapter that is enabled for the account and
update the summary text for the account sync preference accordingly.
- Add divider above the Remove Account button.

Merged-In: Ic333f62cce9aed0a72771324976ebe3d8e586287
Change-Id: I003d6dd0a070bf123f178b8d9ba7b6657466b905
Fix: 62862167
Test: make RunSettingsRoboTests
2017-06-28 13:37:17 -07:00
Matthew Fritze
46483a1a29 Merge "Add list-select as an inline result" into oc-dr1-dev
am: e455c8f377

Change-Id: I2b1e27042120dcb8121565ff58c21de0077837f3
2017-06-28 20:33:36 +00:00
TreeHugger Robot
e455c8f377 Merge "Add list-select as an inline result" into oc-dr1-dev 2017-06-28 20:27:00 +00:00
jackqdyulei
881b581e0a Merge "Hide the IDLE in "app list"" into oc-dr1-dev
am: 9a30ceab83

Change-Id: I3e1b14434ae00357f0193bb917469319a212b155
2017-06-28 19:45:17 +00:00
jackqdyulei
9d4a2806a8 Merge "Update the UI for battery header" into oc-dr1-dev
am: 923f50fce6

Change-Id: Iee54c0fa4ff744ecadefe8fa75e069920569cb9e
2017-06-28 19:44:55 +00:00
TreeHugger Robot
9a30ceab83 Merge "Hide the IDLE in "app list"" into oc-dr1-dev 2017-06-28 19:38:20 +00:00
TreeHugger Robot
923f50fce6 Merge "Update the UI for battery header" into oc-dr1-dev 2017-06-28 19:37:40 +00:00
jackqdyulei
85e25e34fd Fix the getForegroundActivityTotalTimeMs
The parameter in timer should be microseconds, not milliseconds

Bug: 63073847
Test: RunSettingsRoboTests
Change-Id: I5e451aee9eb30815fbefe12c0bfdc85dff884b8e
2017-06-28 12:33:20 -07:00
Doris Ling
b99af0e4a2 Change to use new suggestion/condition UI.
Change to always use the new UI that combines the suggestion and conditions,
and remove all codes relating to the old UI.

Fix: 37645754
Fix: 62621808
Test: make RunSettingsRoboTests

Merged-In: I3421a9e5182f6606843392d6fae8b9f07c5f2e46
Change-Id: I5ef169a563166520dad0ac44f6780da814e2f1f7
2017-06-28 12:22:34 -07:00
Matthew Fritze
98a9e42c93 Add synchronous indexing api to SearchFeatureProvider
- Opens the database indexing to be synchronous for the
external settings api.
- Adds logging to track synchronous and async indexing
times.

Bug: 62826872
Test: make RunSettingsRoboTests
Change-Id: I28b69f3952946c0ae5dd7ea7da66f7a5fd485637
2017-06-28 11:31:27 -07:00
Daniel Nishi
e55bffaf59 Put the donut on a diet.
Shrinks the donut from 6dp to 4dp to closer match the mocks.

Change-Id: Iaf455beb4f54e7673ff6adc6068e0410fac379b5
Fixes: 62548749
Test: Manual
2017-06-28 18:29:40 +00:00
Matthew Fritze
694088075e Add list-select as an inline result
Move the majority of the Setting set & get logic into
InlinePayload, but add formatting of input to each
concrete payload class.

Bug: 62022517
Test: make RunSettingsRoboTests
Change-Id: I08932871554beb4a04625f05f8555a5b3a887fe2
2017-06-28 11:21:55 -07:00
Lei Yu
91dbfc6ee9 Merge "Add location check action for bt anomaly" into oc-dr1-dev
am: a6b24388fc

Change-Id: I2f1e1b65a5d7583ff76d77d3923df5ad7e1e652e
2017-06-28 18:05:34 +00:00
jackqdyulei
cbdaa2b56a Merge "Hide the summary for app in PowerUsageAdvanced" into oc-dr1-dev
am: d6df3b3d00

Change-Id: I3ca5d821c33860f35d7fd37c0ddb92516095d099
2017-06-28 17:57:48 +00:00
Lei Yu
a6b24388fc Merge "Add location check action for bt anomaly" into oc-dr1-dev 2017-06-28 17:54:59 +00:00
Lei Yu
d3f035af0a Merge "Fix the getForegroundActivityTotalTimeMs" into oc-dr1-dev
am: 451b7edfd7

Change-Id: I609e926c481e991d4039e42d0872ebcfd218679b
2017-06-28 17:54:20 +00:00
TreeHugger Robot
d6df3b3d00 Merge "Hide the summary for app in PowerUsageAdvanced" into oc-dr1-dev 2017-06-28 17:53:30 +00:00
Lei Yu
451b7edfd7 Merge "Fix the getForegroundActivityTotalTimeMs" into oc-dr1-dev 2017-06-28 17:49:36 +00:00
Fan Zhang
1d16eb3622 Merge "Update string: Gesture setting title" into oc-dr1-dev
am: b365594242

Change-Id: I86d464edb6c4cf00e8e5062ef42b2717947f747a
2017-06-28 17:44:16 +00:00
TreeHugger Robot
b365594242 Merge "Update string: Gesture setting title" into oc-dr1-dev 2017-06-28 17:39:08 +00:00
jackqdyulei
a8957e15cc Update the UI for battery header
1. Make battery icon align to the end and make text layout
take all the other space.
2. Update the spec based on red line.

Bug: 63037934
Test: Screenshot
Change-Id: I1adbf5ce3e54712cbdc276db2357c7a24b48fe65
2017-06-28 10:29:01 -07:00
jackqdyulei
fc55a3cef1 Merge "Add quickUpdate method to BatteryHeaderPrefCtrl" into oc-dr1-dev
am: 7ea8ecdae1

Change-Id: Ie6b814cf75ab555a94f2eb204499d10ae7a4cb0e
2017-06-28 17:16:34 +00:00
TreeHugger Robot
7ea8ecdae1 Merge "Add quickUpdate method to BatteryHeaderPrefCtrl" into oc-dr1-dev 2017-06-28 17:08:46 +00:00
Fan Zhang
8f6e3e836d Update string: Gesture setting title
Change-Id: Ib73e300cb4b809dcc1da594ac6f84d9d020aeac9
Fix: 36685646
Test: visual
2017-06-28 15:40:04 +00:00
Doris Ling
da9d206916 Merge "Fix crash when initializing Settings suggestions." into oc-dr1-dev
am: c074c1c8fe

Change-Id: Ibe3d07e72916fd45c1959e4dc194040b5bed3d17
2017-06-28 01:46:48 +00:00
TreeHugger Robot
c074c1c8fe Merge "Fix crash when initializing Settings suggestions." into oc-dr1-dev 2017-06-28 01:41:34 +00:00
Maurice Lam
562e539516 Hide skip button when setting backup lock screen
Test: Manual
Bug: 62896253
Change-Id: If16de0b4276b55101f35543bbbf107a36ad7a8e9
2017-06-27 17:38:06 -07:00
Fan Zhang
b4e6874088 Merge "Trim search query when initializing installed app searcher." into oc-dr1-dev
am: a2c3828ede

Change-Id: I169e01d0fbcbe5fa85710daec366e6025e890098
2017-06-28 00:31:42 +00:00
jackqdyulei
10fa63e62c Hide the IDLE in "app list"
Also don't smear it.

Bug: 62423075
Test: RunSettingsRoboTests
Change-Id: I74072f9dde0dcf7b9a4abb05b86fe2102b618d6a
2017-06-27 17:31:09 -07:00
Kevin Chyn
cdcceec0fb Assist gesture settings should reflect assistant eligibility/preferences
am: 1b44a87987

Change-Id: Ifebce52e57590839770e2ea46eadb9e99abe5673
2017-06-28 00:29:36 +00:00
TreeHugger Robot
a2c3828ede Merge "Trim search query when initializing installed app searcher." into oc-dr1-dev 2017-06-28 00:29:00 +00:00
jackqdyulei
118e2baabe Fix the getForegroundActivityTotalTimeMs
It should return milliseconds, not microseconds time

Bug: 63073847
Test: RunSettingsRoboTests
Change-Id: Ib7ddb947646062fc50a40d300829389e0ac401ee
2017-06-27 16:49:14 -07:00
jackqdyulei
c14daa2370 Add location check action for bt anomaly
This cl adds action to turn off location permission for both
ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION by using API
in RuntimePermissionPresenter

Bug: 36921532
Test: runtest -x LocationCheckActionTest

Change-Id: Ibe1e2908bd745a137d92a70a8432e9f866c1be61
2017-06-27 16:21:50 -07:00
Kevin Chyn
1b44a87987 Assist gesture settings should reflect assistant eligibility/preferences
Fixes: 37707753
Fixes: 62843146

Test: manual testing of settings && make -j RunSettingsRoboTests
Change-Id: I5e606686a03960e5cfe1df2f77c48d6ece9c363a
2017-06-27 15:08:33 -07:00
Daniel Nishi
d8dce76a1a Use the proper style for the SpacePreference.
The old style caused unsightly dividers to show up.

Change-Id: Ic59fdc9b2f120e8a637930f3246be5dab547af5b
Fixes: 62548473
Test: Manual
2017-06-27 14:28:21 -07:00
Doris Ling
8233ab5fe5 Fix crash when initializing Settings suggestions.
The dashboard spacer has been removed, but the remaining indexing is not
modified correspondingly, which results in mismatched dashboard types.
Set the dashboard header position back to 0.

Change-Id: I732c4ada556d5d4325e357b8325f66ded5cbe952
Fix: 63052534
Test: make RunSettingsRoboTests
2017-06-27 14:26:03 -07:00
jackqdyulei
13e3ab28ab Hide the summary for app in PowerUsageAdvanced
Bug: 62032053
Test: RunSettingsRoboTests
Change-Id: I83fdd20ef040d102b5d5210a10a810c119f5cf44
2017-06-27 13:49:17 -07:00
jackqdyulei
19648756cb Add quickUpdate method to BatteryHeaderPrefCtrl
This cl adds a method called quickUpdateHeaderPreference, which will
update the following items immediately without waiting for the
BatteryInfo:
1. Battery level
2. Battery charging status(whether to show lighting bolt)
3. Clear the charging summary

Note: this cl doesn't optimize the BatteryInfo loading time.

This cl also rename "TimeText" to "BatteryPercentText" because in
new UI that textview is used to display battery percentage.

Bug: 63029231
Test: RunSettingsRoboTests
Change-Id: I8cc886b35e937d73b46e47e303ff0994ccdcb61c
2017-06-27 13:35:41 -07:00
Bill Yi
47ff496407 Import translations. DO NOT MERGE am: 8e132ce53c -s ours
am: 38b7d50a49  -s ours

Change-Id: I9f2d7d683482701ef2a26cf2d03be8bdba8fa079
2017-06-27 20:21:25 +00:00
Bill Yi
3c2a60e813 Import translations. DO NOT MERGE am: 8e132ce53c -s ours
am: 7c952faa77  -s ours

Change-Id: Ib5bf7b801f9c5df19fd8c7ae070f4fe760356a3f
2017-06-27 20:15:40 +00:00