Introduce BluetoothInbandRingingPreferenceCtrl

- Create new BluetoothInbandRingingPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I2551803b50323c93ce8f1595d5bbab92b7a18ed4
This commit is contained in:
jeffreyhuang
2017-09-26 13:35:44 -07:00
parent f77a3fbdc3
commit 25ce51f4af
4 changed files with 241 additions and 2 deletions

View File

@@ -114,7 +114,8 @@ public class DevelopmentSettingsDashboardFragmentTest {
@Test
@Config(shadows = {
ShadowPictureColorModePreferenceController.class,
ShadowAdbPreferenceController.class
ShadowAdbPreferenceController.class,
ShadowBluetoothInbandRingingPreferenceController.class
})
public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() {
final Context appContext = RuntimeEnvironment.application;
@@ -238,4 +239,13 @@ public class DevelopmentSettingsDashboardFragmentTest {
return true;
}
}
@Implements(BluetoothInbandRingingPreferenceController.class)
public static class ShadowBluetoothInbandRingingPreferenceController {
@Implementation
public boolean isAvailable() {
return true;
}
}
}