Commit Graph

42876 Commits

Author SHA1 Message Date
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
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
Doris Ling
9035043069 Add divider in Location settings
- add divider above App-level permissions to separate from recent
location requests.

Change-Id: Idf4df29d3b6105df6e2099bba28a7ee00d1cb9f2
Fixes: 73773240
Test: visual
2018-02-22 11:20:30 -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
Bill Yi
3a3ed06636 Import translations. DO NOT MERGE
Change-Id: Ic5fd889975e46a0a327174898b38572ac90b471f
Auto-generated-cl: translation import
2018-02-21 18:36:16 -08: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
Doris Ling
c3fa1a3a90 Add divider in About phone screen.
- add divider above legal information and below regulatory labels.

Change-Id: I8e18ae85cd5f59757bcee2f3e9243b5c76940759
Fixes: 73739564
Test: visual
2018-02-21 17:20:40 -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
Fan Zhang
65da3306f6 Merge changes If1b263df,I95afbcf0
* changes:
  Move instantiation-through-reflection method to controller
  Minor cleanup in DashboardFragment: remove unused code
2018-02-21 20:53:49 +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
jackqdyulei
10b7c0c39d Add code to handle anomaly config update
Store a local version number in Settings. If new version comes,
upload config to StatsManager.

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: I03f5ee6f6e013746397d39b8d2b52ce587825b11
2018-02-21 12:34:28 -08:00
jackqdyulei
e1604d3657 Add AnomalyConfigReceiver
This receiver receives the following intent:
1. android.app.action.STATSD_STARTED
2. android.intent.action.BOOT_COMPLETED

Also it does:
1. Check whether to upload/update config(future cl)
2. Send PendingIntent to StatsManager

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: Iff7240663ecc1e080581683743b3027093945566
2018-02-21 12:34:08 -08:00