Commit Graph

42899 Commits

Author SHA1 Message Date
Yoshinori Hirano
d3bb6c6459 Add SettingsMultiSelectListPreference style DO NOT MERGE
There is no OK and CANCEL button when changing APN Bearer.
To fix this issue, OK and CANCEL button should be added to
SettingsMultiSelectListPreference style.

Fixes: 66928311
Test: manual - Add a new APN and tap Bearer

Change-Id: I2b5719a7c1fdb721b15308e0eef7db3e6398e097
2018-02-24 16:00:05 +00:00
TreeHugger Robot
572efd22dd Merge "More renaming in DashboardFragment" 2018-02-24 02:58:32 +00:00
TreeHugger Robot
cfa486f784 Merge "Update location and accessibility summary." 2018-02-24 02:29:25 +00:00
TreeHugger Robot
5a46ea547b Merge "Rename Indexable::getAllPreferenceControllers." 2018-02-24 02:05:25 +00:00
TreeHugger Robot
a0de28d0de Merge "Update the Bluetooth Active Device state in the Device Manager" 2018-02-24 01:07:45 +00:00
Fan Zhang
f7843adabd More renaming in DashboardFragment
getPreferenceControllers() -> createPreferenceControllers() for the same
reason as in ag/3647936

Bug: 73668763
Test: robotests
Change-Id: I97670a91a2a38d1c844d1b9d37f4222c5e6f45a0
2018-02-23 16:56:30 -08:00
TreeHugger Robot
81977ea25f Merge "Add divider in About phone screen." 2018-02-24 00:53:34 +00:00
Fan Zhang
aed8994f6f Rename Indexable::getAllPreferenceControllers.
To getPreferenceControllers. "all" is redundant. Then internally, the
old getPreferenceControllers() is renamed to
createPreferenceControllers() to emphasize the controllers are created
from code (versus the ones created from xml).

Bug: 73668763
Test: robotest
Change-Id: Ifec46aefdc2a418031c8e152028b30bdcd396fc7
2018-02-23 16:37:28 -08:00
Hansong Zhang
d439b3cb42 Merge "Add developer menu entry to enable Bluetooth AVDTP delay reports" am: ad84c9552d -s ours am: d2040309ca
am: c9f1e73dc7  -s ours

Change-Id: I53faa69e09a06948e6ff47ee1d8a0848ccbca592
2018-02-24 00:32:41 +00:00
Hansong Zhang
c9f1e73dc7 Merge "Add developer menu entry to enable Bluetooth AVDTP delay reports" am: ad84c9552d -s ours
am: d2040309ca

Change-Id: I93238df1e9d889817f0d025203ac437c12cfa2d8
2018-02-24 00:26:09 +00:00
Hansong Zhang
d2040309ca Merge "Add developer menu entry to enable Bluetooth AVDTP delay reports"
am: ad84c9552d  -s ours

Change-Id: Icb23ebb9baaf02ac0f9469e9d4601c67d22ba5ad
2018-02-24 00:19:01 +00:00
TreeHugger Robot
8e6d5ad27e Merge "Instantiate pref controllers from xml if it's defined." 2018-02-24 00:13:45 +00:00
Doris Ling
8b610fc5c5 Update location and accessibility summary.
- change ON/OFF to On/Off.

Change-Id: I5c9536aaa231befe55d002be33e47a4e43779863
Fixes: 73774291
Test: visual
2018-02-23 15:49:53 -08:00
TreeHugger Robot
158096d25d Merge "Settings: Move DefaultAppInfo CandidateInfo to SettingsLib" 2018-02-23 23:31:47 +00:00
Treehugger Robot
ad84c9552d Merge "Add developer menu entry to enable Bluetooth AVDTP delay reports" 2018-02-23 23:07:26 +00:00
TreeHugger Robot
43a2ac6c7c Merge changes from topic "ww_5_auto_restrict"
* changes:
  Add special check for excessive bg anomaly
  Add auto restriction for excessive background
2018-02-23 22:56:48 +00:00
Fan Zhang
917f101899 Instantiate pref controllers from xml if it's defined.
- If a <preference> tag also defines a controller, we will try to
  instantiate it before displaying the UI. The same logic is shared by
  BaseSearchIndexProvider so it also drives search suppression.

- If user also defines a list of controllers programatically, the
  programatically created ones takes precedence.

Bug: 73668763
Test: WIP
Change-Id: I7aecec270bcd3af261e012ef1f6995d2a523cfa1
2018-02-23 14:08:51 -08:00
Dake Gu
fef14cac00 Settings: Move DefaultAppInfo CandidateInfo to SettingsLib
Bug: 3600711
Test: Moved DefaultAppInfoTest to SettingsLib
      m RunSettingsRoboTests
Change-Id: If9e2288009277f1940b9769790b78bb0a58b626a
2018-02-23 13:23:16 -08:00
TreeHugger Robot
7d8e770bcb Merge "Actually test for truth." 2018-02-23 20:53:16 +00:00
TreeHugger Robot
f783267a57 Merge "Fix reset button being disabled." 2018-02-23 20:51:28 +00:00
Pavlin Radoslavov
c7715a5519 Update the Bluetooth Active Device state in the Device Manager
The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Bug: 72316092
Test: Manual - two headsets and switching the active device
Change-Id: If379bb0853dcd78385430cf14192e9adfae4ecd0
2018-02-23 12:32:23 -08:00
Maurice Lam
b93f6c171c Merge "Improve pattern layout for tiiiny screens" 2018-02-23 19:00:43 +00:00
Vishnu Nair
a206e58079 Merge "Simplify Window/Surface trace by using one QS Tile" 2018-02-23 18:25:04 +00:00
TreeHugger Robot
d8073139f7 Merge "Add search keyword on fingerprint settings." 2018-02-23 18:20:28 +00:00
jackqdyulei
457fb842eb Add special check for excessive bg anomaly
To check whether this app has battery usage more than x%

Bug: 72385333
Test: RunSettingsRoboTests
Change-Id: I87e6b01c866a053658f84ce3486120ae82963fd9
2018-02-23 10:12:05 -08:00
jackqdyulei
3ee28c810d Add auto restriction for excessive background
If it is excessive bg anomaly and auto restriction is on, then
restrict the anomaly in receiver and store it in database.

Also in this cl we move the anomaly logic to a JobService, so all
works are done in a background thread and won't interfere the main
thread.

Bug: 72385333
Test: RunSettingsRoboTests &&
Will add auto restriction test once robo framework is updated(b/73172999)
Change-Id: Id0ec5fb449ce26bf19a292bcbe63838d621cfd8e
2018-02-23 10:11:34 -08:00
Narayan Kamath
42614c6787 Merge "AnomalyTester: Remove dependency on bouncycastle." 2018-02-23 17:36:59 +00:00
Fan Zhang
c311a6f0f6 Add search keyword on fingerprint settings.
Change-Id: Id4e581a4cc6473908fd85876c506b7b1cda10dd6
Fixes: 73739267
Test: reindex search
2018-02-23 09:20:53 -08:00
TreeHugger Robot
019ed399fb Merge "Settings: Change an assert in test" 2018-02-23 12:54:22 +00:00
hansson
a42bfa83df Merge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible." am: f5b75dd74d am: aa0812f42b
am: 685b923a1b

Change-Id: I39a6aad6f8bf21741de4feb838694ab43dc5d074
2018-02-23 07:35:31 +00:00
hansson
685b923a1b Merge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible." am: f5b75dd74d
am: aa0812f42b

Change-Id: I6ef97b4506cf656194090bcf9b0df543190f1e79
2018-02-23 07:30:14 +00:00
hansson
aa0812f42b Merge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible."
am: f5b75dd74d

Change-Id: Ie9aa31d9a2d89a330b682c8602320ad58cbc8ae1
2018-02-23 07:24:45 +00:00
hansson
f5b75dd74d Merge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible." 2018-02-23 07:15:36 +00:00
TreeHugger Robot
41baba147c Merge "Fix NPE in InstantAppButtonsPreferenceController" 2018-02-23 06:53:32 +00:00
TreeHugger Robot
d9c312d521 Merge "Update to match now slice APIs" 2018-02-23 06:51:31 +00:00
TreeHugger Robot
c55276c919 Merge "Revert "[Settings] Add focus for SSIDtext to show IME"" 2018-02-23 06:43:23 +00:00
TreeHugger Robot
81b8d49eab Merge "Add divider in Location settings" 2018-02-23 06:35:13 +00:00
TreeHugger Robot
db88fb8de5 Merge "Settings: Annotate JUnit4 test with @Test" 2018-02-23 06:19:08 +00:00
Andreas Gampe
a8e5e217d5 Settings: Change an assert in test
Avoid isEqualsTo for a self-equality test.

Bug: 73797873
Test: m javac-check RUN_ERROR_PRONE=true
Test: m RunSettingsRoboTests
Change-Id: I6f0398b4518d6c967c8cfea38b5c075304b5f368
2018-02-22 22:00:10 -08:00
TreeHugger Robot
ae1b04d566 Merge "Import translations. DO NOT MERGE" 2018-02-23 05:39:03 +00:00
Andreas Gampe
f259c55eed Settings: Annotate JUnit4 test with @Test
Mollify Errorprone.

Bug: 72076216
Bug: 73796195
Test: m javac-check RUN_ERROR_PRONE=true
Test: m RunSettingsRoboTests
Test: atest WifiSettingsUiTest
Change-Id: I9bc950f0ecf8d6de89b9401ea4cf1c50fd3acbcd
2018-02-22 20:33:37 -08:00
TreeHugger Robot
9cb0c7f3e2 Merge "Setting to control UI mode" 2018-02-23 04:24:54 +00:00
Yuchen Chang
a253de1906 Revert "[Settings] Add focus for SSIDtext to show IME"
This reverts commit c6233057ca.

Reason for revert: cause side effect for other cursor focus missing

Change-Id: I9c788a2726bdd6bc7c663e9115bbc24538f871de

Bug: 73702700
Bug: 72882629
2018-02-23 04:01:07 +00:00
Tracy Zhou
2b730e420d Merge "Correct picture-in-picture setting behavior for managed profile." 2018-02-23 03:13:00 +00:00
Hansong Zhang
4dcc8cfaff Add developer menu entry to enable Bluetooth AVDTP delay reports
Bug: 32755225
Test: Manual test with a device that supports delay reporting
Change-Id: Ib84eb6a67c15634818efd98f6e454b323e16a8ff
Merged-In: I8f121dd7f94bce3a07deb9cb23c698829cbecd96
2018-02-23 02:12:30 +00:00
Doris Ling
1f49715466 Fix reset button being disabled.
- When doing factory reset, we will launch the account credential
confirmation. If this fails, the settings page is re-initialized.
This steps might trigger multiple layout changes for the scrollview
before it is finalized. However, we are removing the global layout
listener once we receive the first update, which could result in the
reset button being disabled incorrectly, as the scroll state is
calculated based on wrong view heights. Remove the call that remove
the layout listener, so that we can still receive further updates.

- also remove the scroll listener once we enable the reset button
from scroll, as no more action is really needed on suceeding scroll.

Change-Id: I6ec1f592991629c15e5ad2bcb29fdd679d598f70
Fixes: 73298075
Test: make RunSettingsRoboTests
2018-02-22 16:33:07 -08:00
Tracy Zhou
8ce416977c Correct picture-in-picture setting behavior for managed profile.
- Show picture-in-picture setting in the app info page for managed
profile.
- Navigate to work app setting instead of non-work app setting on
tapping setting icon from picture-in-picture window. This requires
correctly processing passed-in UserHandle to fetch the right package
info.

Bug: 71592457
Test: make RunSettingsRoboTests
Change-Id: Id3dd04e88a57ae3d8c319c17615992637128589b
2018-02-22 16:00:28 -08:00
Hansong Zhang
f4a168d0fe Add developer menu entry to enable Bluetooth AVDTP delay reports
Bug: 32755225
Test: Manual test with a device that supports delay reporting;
Robolectric tests
Change-Id: I8f121dd7f94bce3a07deb9cb23c698829cbecd96
2018-02-22 21:54:44 +00:00
Jason Monk
2d96005aba Update to match now slice APIs
Test: make
Change-Id: Ie74e1b179f80e1d0faf259bd22b3ae4e953a0726
2018-02-22 16:33:51 -05:00
Lei Yu
87a17d01a6 Merge "Add action to open the anomaly detail page" 2018-02-22 20:55:46 +00:00