Make some existing slices public.

Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I5934e89bc1b268fdd44acd630621fa46987728ff
This commit is contained in:
Yi-Ling Chuang
2019-11-27 18:33:34 +08:00
parent 617458b07c
commit 430c16c012
10 changed files with 75 additions and 7 deletions

View File

@@ -120,4 +120,9 @@ public class SmartBatteryPreferenceControllerTest {
new SmartBatteryPreferenceController(null);
assertThat(controller.isSliceable()).isTrue();
}
@Test
public void isPublicSlice_returnsTrue() {
assertThat(mController.isPublicSlice()).isTrue();
}
}