[Provider Model] Add Internet preference to replace Wi-Fi preference

- Change title from "Wi-Fi" to "Internet"
- Remove Wi-Fi switch
- Screenshot:
  https://screenshot.googleplex.com/9tmXYQXKSsuGwEY
  https://screenshot.googleplex.com/5uMCeruXsX3gP9j

Bug: 172295984
Test: manual test
  atest -c InternetPreferenceControllerTest
  make RunSettingsRoboTests ROBOTEST_FILTER=NetworkDashboardFragmentTest
Change-Id: Ie4a3c9aff45fbe7b28594afc9c603e6df57300bf
This commit is contained in:
Weng Su
2020-11-15 19:40:55 +00:00
parent 425dbba58e
commit f0b9dc570b
7 changed files with 233 additions and 12 deletions

View File

@@ -35,6 +35,7 @@ import com.android.settingslib.core.lifecycle.events.OnStop;
/**
* PreferenceController to update the wifi state.
*/
// TODO(b/167474581): Should clean up this controller when Provider Model finished.
public class WifiPrimarySwitchPreferenceController extends AbstractPreferenceController
implements PreferenceControllerMixin, SummaryUpdater.OnSummaryChangeListener,
LifecycleObserver, OnResume, OnPause, OnStart, OnStop {