Commit Graph

4785 Commits

Author SHA1 Message Date
Narayan Kamath
42614c6787 Merge "AnomalyTester: Remove dependency on bouncycastle." 2018-02-23 17:36:59 +00: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
TreeHugger Robot
41baba147c Merge "Fix NPE in InstantAppButtonsPreferenceController" 2018-02-23 06:53:32 +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
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
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
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
Lei Yu
87a17d01a6 Merge "Add action to open the anomaly detail page" 2018-02-22 20:55:46 +00:00
Lei Yu
0bb26fef09 Merge "Fix the update error in EarlyWarningTip" 2018-02-22 20:27:53 +00:00
Lei Yu
6e42055dc7 Merge changes from topics "ww_4_delete_data", "ww_3_checkconfig", "ww_2_uploadIntent", "ww_1_receiver"
* changes:
  Add JobService to delete obsolete anomaly data
  Add code to handle anomaly config update
  Add AnomalyConfigReceiver
  Add AnomalyDetectionReceiver
2018-02-22 20:27:00 +00:00
Zhizhi Liu
c4e8369ab0 Move IconCache to SettingsLib(II).
Remove IconCache from Settings.

Test: Setting tests passed.
Change-Id: If4d256c5baec2fae8a1cba3cc3a62d4612a2d417
2018-02-22 12:26:26 -08:00
Vishnu Nair
8443e8f74b Merge "Add QS dev tiles to active tiles area when enabling it from dev options" 2018-02-22 19:13:18 +00:00
Doris Ling
8f7edfa108 Fix NPE in InstantAppButtonsPreferenceController
- check for valid install options menu before trying to disable it.

Change-Id: Ibe644a506094e66b0f657092a25557f5096d4942
Fixes: 73767192
Test: make RunSettingsRoboTests
2018-02-22 10:39:13 -08:00
Anton Hansson
861554a2d9 packages/apps/Settings: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Ic906adbd670c4dbfe2cdf0b71cdbeaf9ac08a27e
2018-02-22 16:12:29 +00:00
Vishnu Nair
74100b3ac7 Simplify Window/Surface trace by using one QS Tile
- Trigger both traces using a new Winscope Trace Tile

Bug: 73496681
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WinscopeTraceTest
Test: flash and manually click on new tile
Change-Id: I3e05f625a983c382e58cc797d293a695223c630a
2018-02-22 07:14:36 -08:00
Vladislav Kuzkokov
38bfe2e43d Merge "Add policy disclosure for printing." 2018-02-22 14:54:36 +00:00
jackqdyulei
1b472be833 Add action to open the anomaly detail page
This action is used to go to the anomaly detail page.
This cl also refactored the RestrictedAppDetails to take AppInfo
as the input, not AppOpsManager.PackageOps.

Bug: 72385333
Test: RunSettingsRoboTests

Change-Id: I5b4481091635e1250629ea21c2b650db929c18ed
2018-02-21 17:58:36 -08:00
Jerry Zhang
1249b16551 Actually test for truth.
Test: passes
Bug: 73513677
Change-Id: I2bd19d627c5cadec9524b5f0ddcb370837ad2c76
2018-02-21 23:48:26 +00:00
TreeHugger Robot
032e7c0def Merge "Add BatterySaver as SettingSlice" 2018-02-21 23:37:35 +00:00
Lucas Dupin
3dd45c0ef6 Setting to control UI mode
Fixes: 69783413
Test: tests/robotests/src/com/android/settings/development/DarkUIModePreferenceControllerTest.java
Change-Id: I600036bfb8893f8b1bd93de81c10808bf24998ad
2018-02-21 13:41:20 -08:00
Jerry Zhang
609ece7763 Merge "Add UsbDefaultFragment and tests" 2018-02-21 21:13:03 +00:00
Vishnu Nair
fb71550128 Add QS dev tiles to active tiles area when enabling it from dev options
Bug: 73496681
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DevelopmentTilePreferenceControllerTest
Test: flash device and manually test by enabling dev options

Change-Id: Ib7f53128c79de9550d4f68274312e731c01ebd4f
2018-02-21 12:57:56 -08:00
TreeHugger Robot
deb1e57053 Merge "Add Open button to launch instant app." 2018-02-21 20:57:36 +00:00
jackqdyulei
338ae2fd71 Add JobService to delete obsolete anomaly data
Bug: 72385333
Test: RunSettingsRoboTests
Change-Id: I73e16b9785fe0e832acc9e4256c8f9fd1333721e
2018-02-21 12:43:51 -08:00
TreeHugger Robot
302cf35914 Merge "Update launch component for work mode condition." 2018-02-21 20:19:59 +00:00
TreeHugger Robot
a0d8315762 Merge "Remove use of forceUpdate." 2018-02-21 20:16:00 +00:00
TreeHugger Robot
b6cae12255 Merge "Change def value for LOW_POWER_MODE_TRIGGER_LEVEL" 2018-02-21 19:55:16 +00:00
jackqdyulei
5f28beac51 Report High usage even in a short period
In detector, we should also catch the following case:
1. Battery draining more than 25% even though usage time is less than
2 hours.

This cl stores the first time battery level, even though usage time
may be short.

Bug: 73012441
Test: RunSettingsRoboTests
Change-Id: I7106f7203718bfe2afe9cce297ea01b8fcf0be2d
2018-02-21 11:34:46 -08:00
Matthew Fritze
e8854ec33d Add BatterySaver as SettingSlice
Convert BatterySaverController to TogglePrefController.
This was the first MasterSwitchController, so we needed
to add the preference case to updateState.

Test: Robotests
Change-Id: I32f3dee0b183807c66c19513b8b064af8f369c2a
Fixes: 67996992
2018-02-21 11:27:09 -08:00
Jerry Zhang
502471726a Add UsbDefaultFragment and tests
Replace old USB screen in developer options with
UsbDefaultFragment.

Test: pass
Bug: 62876645
Change-Id: I8428a2814b7e1abd7d0fa9fa9980dbc02cfa0034
2018-02-21 19:16:23 +00:00
Ben Lin
c07124feeb Merge changes from topic "move-a11y-changes"
* changes:
  Revert "Add ability to show/hide Color Correction and Color Inversion."
  Revert "Add ability to show/hide accessibility_shortcut_preference."
2018-02-21 18:18:57 +00:00
jackqdyulei
da7ac699fb Change def value for LOW_POWER_MODE_TRIGGER_LEVEL
Fixes: 73668682
Test: RunSettingsRoboTests
Change-Id: I2122523c958f12bbdd658ae53d63b00769db3520
2018-02-21 10:08:07 -08:00
Vladislav Kuzkokov
5b1faf1bfc Add policy disclosure for printing.
Bug: 64140119
Test: make -j40 RunSettingsRoboTests
Change-Id: Ib453c492f1dc9e6f9bd4019104dfd3eafcd0a8b4
2018-02-21 17:19:50 +01:00
Narayan Kamath
b5fa88039f AnomalyTester: Remove dependency on bouncycastle.
Not used by this package.

Note: This change is a no-op because this package links directly
against the boot classpath (which contains bouncycastle).

Test: make
Bug: 73635411
Change-Id: I9edf0c0445a63235f58a6cbfabeb90be14974474
2018-02-21 10:27:24 +00:00
TreeHugger Robot
28188cdd21 Merge "Move xmlParserUtils to core" 2018-02-21 03:34:37 +00:00
Fan Zhang
e8afdb819f Merge "Convert VibrationSettings to DashboardFragment." 2018-02-21 02:18:56 +00:00
Doris Ling
34200fb19e Update launch component for work mode condition.
- start accounts dashboard instead of users settings.

Change-Id: I1365e6c32ac3de23c24b75e33262957e4a4224a9
Fixes: 73651609
Test: make RunSettingsRoboTests
2018-02-20 17:43:46 -08:00
Fan Zhang
1ac5a01253 Move xmlParserUtils to core
This class is currently used by both search and slice, in the future
will be used by DashboardFragment to build controller list. So the scope
of this class is beyond search now.

Test: rerun robotests
Change-Id: If43ebca065aac31ad24f95a94bfe5be784109605
2018-02-20 17:43:28 -08:00
jackqdyulei
8fee141f28 Fix the update error in EarlyWarningTip
Fixes: 73331241
Test: RunSettingsRoboTests
Change-Id: I8b270d813c8c398d5ddd12f84d3e43426044b597
2018-02-20 16:53:26 -08:00
Fan Zhang
6ccc81818d Convert VibrationSettings to DashboardFragment.
- DashboardFragment integrates Slices and settings search better than
  SettingsPreferenceFragment, and is more testable.

Test: robotests
Change-Id: I5f73836f94712c03521eac6b3f67964524381078
2018-02-20 16:20:59 -08:00
Fan Zhang
3befdd2c54 Merge "Fix search highlight" 2018-02-20 23:38:46 +00:00