Commit Graph

42786 Commits

Author SHA1 Message Date
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
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
Vladislav Kuzkokov
38bfe2e43d Merge "Add policy disclosure for printing." 2018-02-22 14:54:36 +00:00
TreeHugger Robot
032e7c0def Merge "Add BatterySaver as SettingSlice" 2018-02-21 23:37:35 +00: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
jackqdyulei
821adcea1e Add AnomalyDetectionReceiver
This BroadcastReceiver is triggered when anomaly happens. Inside it
we need to extract anomaly info and store it in the database.

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: Ib36af377fa2dff8026e7f0fcbec9575366e39cf9
2018-02-21 12:33:35 -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
Fan Zhang
fc520ee38a Move instantiation-through-reflection method to controller
Bug: 73668763
Test: rerun robotest
Change-Id: If1b263dfd6a8c40f563ce53ce3f368aef5ca5a9f
2018-02-21 11:28:41 -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
Fan Zhang
119ea0f0d1 Merge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8d am: e1c58570d6
am: 935ce87d32

Change-Id: I4ad47e788c1ab591dc82a031ef22dadc65bf8582
2018-02-21 18:04:26 +00:00
Fan Zhang
935ce87d32 Merge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8d
am: e1c58570d6

Change-Id: Ice03d80eedf64fb08a12471b22bfdff53b4f934b
2018-02-21 17:55:50 +00:00
Fan Zhang
b297abc1fe Minor cleanup in DashboardFragment: remove unused code
Bug: 73668763
Test: n/a
Change-Id: I95afbcf03987123e4ed8b76efbed299a7beb4448
2018-02-21 09:48:50 -08:00
Fan Zhang
e1c58570d6 Merge "Wifi: Restore hidden flag for hidden networks on update network"
am: 0138575b8d

Change-Id: Ifda4b13017d4fc74f6fabfa5f91b3bda9177fb47
2018-02-21 17:47:12 +00:00
Fan Zhang
0138575b8d Merge "Wifi: Restore hidden flag for hidden networks on update network" 2018-02-21 17:36:06 +00: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
TreeHugger Robot
8cd17cba39 Merge "Push app icon 4 dp to the right." 2018-02-21 07:09:32 +00:00
TreeHugger Robot
28188cdd21 Merge "Move xmlParserUtils to core" 2018-02-21 03:34:37 +00:00
TreeHugger Robot
931f305121 Merge "Update suggestion/condition UI" 2018-02-21 03:13:46 +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
Fan Zhang
b36c071003 Push app icon 4 dp to the right.
- This makes the icon for AppPreference center aligned.

Change-Id: I2624f376d7637fe49b8bc629e87cb55c3b6271cd
Fixes: 72710732
Test: visual
2018-02-20 17:39:05 -08:00
TreeHugger Robot
46b8ef9b7a Merge "Put Security-related controllers into a PreferenceCategoryController." 2018-02-21 01:08:31 +00: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
Doris Ling
5b3332547a Update suggestion/condition UI
- reduce top padding for suggestion container
- match condition card corner radius with suggestion card.
- change condition card background color to white
- update suggestion title font from medium to regular.

Change-Id: I0267b37822facf4bd389e2b21c47a1fcf0d00264
Fixes: 70573674
Test: visual
2018-02-20 15:30:47 -08:00
Doris Ling
f9ab8ea7bd Add Open button to launch instant app.
- move logic from InstantAppButtonsController into
InstantAppButtonsPreferenceController, as it is not really necessary to
have separate control to be in different class.
- add logic to check if the instant app provides a default launch uri.
If so, show a Open button to launch the uri, and move the Install
button into option menu. If not, Install button remains as is.
- also update the instant app button layout to match the regular 2
buttons layout.

Change-Id: Ibcae780ad697ca93a48604b03c8f4600dd3c0472
Fixes: 69562807
Test: make RunSettingsRoboTests
2018-02-20 21:43:46 +00:00
Fan Zhang
72456a9ea6 Fix search highlight
- Fragments should not have advanced button when coming from search.

Change-Id: I10a192216b7ff702e73b791acbcc1eb1d71cb407
Fixes: 73348428
Test: robotests
2018-02-20 13:19:26 -08:00
TreeHugger Robot
c26ea56fe4 Merge "Get rid of direct usage of Utils.onBuildStartFragmentIntent" 2018-02-20 21:03:04 +00:00
Fan Zhang
e5b8a5b24f Merge changes I34732bdb,Ieafd3be6
* changes:
  Remove some unused code
  Remove unused slice metadata
2018-02-20 20:02:29 +00:00
TreeHugger Robot
87e71c96ea Merge "Update FakeUid for new methods" 2018-02-20 18:52:24 +00:00
Fan Zhang
deec75fa9d Remove some unused code
Bug: n/a
Test: rebuild
Change-Id: I34732bdbf59d8380bef50f9a5da8b974375ea345
2018-02-20 10:18:54 -08:00
Bill Yi
a9a6c820fb Import translations. DO NOT MERGE am: 3b4a3e0a0f -s ours
am: 1bc57cbf3c  -s ours

Change-Id: I153443f06806810009bf5bc735104471df8ab98b
2018-02-20 18:16:41 +00:00
Bill Yi
1bc57cbf3c Import translations. DO NOT MERGE
am: 3b4a3e0a0f  -s ours

Change-Id: I68a6f27af09691e2a27712ecab8c876f5eb26283
2018-02-20 18:09:10 +00:00
TreeHugger Robot
6116740c29 Merge "Import translations. DO NOT MERGE" 2018-02-20 18:05:49 +00:00
TreeHugger Robot
99b22304c0 Merge "Migrate more places to subsetting launcher" 2018-02-20 17:57:53 +00:00
Fan Zhang
bcf50e3407 Remove unused slice metadata
Bug: n/a
Test: n/a
Change-Id: Ieafd3be6418e9b9217e0c56094d7ee4a8fcff851
2018-02-20 09:57:42 -08:00