/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceDataTest.java | 39 private final int SLICE_TYPE = SliceData.SliceType.SWITCH; 44 SliceData.Builder builder = new SliceData.Builder() in testBuilder_buildsMatchingObject() 58 SliceData data = builder.build(); in testBuilder_buildsMatchingObject() 74 @Test(expected = SliceData.InvalidSliceDataException.class) 76 new SliceData.Builder() in testBuilder_noKey_throwsIllegalStateException() 87 @Test(expected = SliceData.InvalidSliceDataException.class) 89 new SliceData.Builder() in testBuilder_noTitle_throwsIllegalStateException() 100 @Test(expected = SliceData.InvalidSliceDataException.class) 102 new SliceData.Builder() in testBuilder_noFragment_throwsIllegalStateException() 113 @Test(expected = SliceData.InvalidSliceDataException.class) [all …]
|
D | SliceBuilderUtilsTest.java | 90 final SliceData sliceData = getDummyData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT); in buildIntentSlice_returnsMatchingSlice() 98 final SliceData dummyData = getDummyData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH); in buildToggleSlice_returnsMatchingSlice() 112 final SliceData data = getDummyData(SLIDER_CONTROLLER, SliceData.SliceType.SLIDER); in buildSliderSlice_returnsMatchingSlice() 126 final SliceData dummyData = getDummyData(COPYABLE_CONTROLLER, -1); in buildCopyableSlice_returnsMatchingSlice() 157 final SliceData data = getDummyData(); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary() 170 final SliceData data = getDummyData(); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull() 183 final SliceData data = getDummyData("", ""); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary() 196 final SliceData data = getDummyData("", TITLE); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary() 209 final SliceData data = getDummyData(null, null); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString() 219 final SliceData data = getDummyData(summaryPlaceholder, summaryPlaceholder); in getDynamicSummary_screenTitleAndControllerPlaceholder_returnsSliceEmptyString() [all …]
|
D | SlicesIndexerTest.java | 55 private final int SLICE_TYPE = SliceData.SliceType.SLIDER; 100 doReturn(new ArrayList<SliceData>()).when(mManager).getSliceData(); in testInsertSliceData_indexedStateSet() 109 final List<SliceData> sliceData = getDummyIndexableData(false); in testInsertSliceData_nonPublicSlice_mockDataInserted() 154 final List<SliceData> sliceData = getDummyIndexableData(true); in insertSliceData_publicSlice_mockDataInserted() 212 private List<SliceData> getDummyIndexableData(boolean isPublicSlice) { in getDummyIndexableData() 213 final List<SliceData> sliceData = new ArrayList<>(); in getDummyIndexableData() 214 final SliceData.Builder builder = new SliceData.Builder() in getDummyIndexableData()
|
D | SliceDataConverterTest.java | 101 List<SliceData> sliceDataList = mSliceDataConverter.getSliceData(); in testFakeProvider_convertsFakeData() 104 SliceData fakeSlice0 = sliceDataList.get(0); in testFakeProvider_convertsFakeData() 105 SliceData fakeSlice1 = sliceDataList.get(1); in testFakeProvider_convertsFakeData() 117 private void assertFakeSlice(SliceData fakeSlice) { in assertFakeSlice() 128 assertThat(fakeSlice.getSliceType()).isEqualTo(SliceData.SliceType.SLIDER); in assertFakeSlice() 134 private void assertFakeA11ySlice(SliceData fakeSlice) { in assertFakeA11ySlice()
|
D | SettingsSliceProviderTest.java | 187 SliceData data = mProvider.mSliceWeakDataCache.get(INTENT_SLICE_URI); in testLoadSlice_returnsSliceFromAccessor() 218 SliceData data = getDummyData(); in testLoadSlice_cachedEntryRemovedOnBuild() 223 SliceData cachedData = mProvider.mSliceWeakDataCache.get(data.getUri()); in testLoadSlice_cachedEntryRemovedOnBuild() 232 SliceData data = getDummyData(); in onBindSlice_mainThread_shouldNotOverrideStrictMode() 246 SliceData data = getDummyData(); in onBindSlice_backgroundThread_shouldOverrideStrictMode() 274 final SliceData data = getDummyData(); in onBindSlice_nightModeChanged_shouldReloadTheme() 287 SliceData data = getDummyData(); in onBindSlice_nightModeNotChanged_shouldNotReloadTheme() 699 private static SliceData getDummyData() { in getDummyData() 700 return new SliceData.Builder() in getDummyData()
|
D | SlicesDatabaseAccessorTest.java | 94 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_validKey_validSliceReturned() 114 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_allowDynamicSummary_validSliceReturned() 146 SliceData data = mAccessor.getSliceDataFromUri(uri); in testGetSliceFromUri_validUri_validSliceReturned() 281 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_defaultUnavailableSlice_validSliceReturned() 301 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_customizeSubtitleOfUnavailableSlice_validSliceReturned()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceDataConverter.java | 101 public List<SliceData> getSliceData() { in getSliceData() 102 List<SliceData> sliceData = new ArrayList<>(); in getSliceData() 118 final List<SliceData> providerSliceData = getSliceDataFromProvider(provider, in getSliceData() 123 final List<SliceData> a11ySliceData = getAccessibilitySliceData(); in getSliceData() 128 private List<SliceData> getSliceDataFromProvider(SearchIndexProvider provider, in getSliceDataFromProvider() 130 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider() 148 List<SliceData> xmlSliceData = getSliceDataFromXML(xmlResId, fragmentName); in getSliceDataFromProvider() 155 private List<SliceData> getSliceDataFromXML(int xmlResId, String fragmentName) { in getSliceDataFromXML() 158 final List<SliceData> xmlSliceData = new ArrayList<>(); in getSliceDataFromXML() 217 final SliceData xmlSlice = new SliceData.Builder() in getSliceDataFromXML() [all …]
|
D | SliceBuilderUtils.java | 75 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() 99 case SliceData.SliceType.INTENT: in buildSlice() 101 case SliceData.SliceType.SWITCH: in buildSlice() 103 case SliceData.SliceType.SLIDER: in buildSlice() 148 SliceData sliceData) { in getPreferenceController() 156 public static PendingIntent getActionIntent(Context context, String action, SliceData data) { in getActionIntent() 168 public static PendingIntent getContentPendingIntent(Context context, SliceData sliceData) { in getContentPendingIntent() 177 BasePreferenceController controller, SliceData sliceData) { in getSubtitleText() 221 public static Intent getContentIntent(Context context, SliceData sliceData) { in getContentIntent() 233 private static Slice buildToggleSlice(Context context, SliceData sliceData, in buildToggleSlice() [all …]
|
D | SliceData.java | 30 public class SliceData { class 126 private SliceData(Builder builder) { in SliceData() method in SliceData 148 if (!(obj instanceof SliceData)) { in equals() 151 SliceData newObject = (SliceData) obj; in equals() 241 public SliceData build() { in build() 258 return new SliceData(this); in build()
|
D | SlicesDatabaseAccessor.java | 69 public SliceData getSliceDataFromUri(Uri uri) { in getSliceDataFromUri() 84 public SliceData getSliceDataFromKey(String key) { in getSliceDataFromKey() 150 private static SliceData buildSliceData(Cursor cursor, Uri uri, boolean isIntentOnly) { in buildSliceData() 168 sliceType = SliceData.SliceType.INTENT; in buildSliceData() 171 return new SliceData.Builder() in buildSliceData()
|
D | SlicesIndexer.java | 75 List<SliceData> indexData = getSliceData(); in indexSliceData() 90 List<SliceData> getSliceData() { in getSliceData() 98 void insertSliceData(SQLiteDatabase database, List<SliceData> indexData) { in insertSliceData() 101 for (SliceData dataRow : indexData) { in insertSliceData()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SliceDataConverter.java | 95 public List<SliceData> getSliceData() { in getSliceData() 96 List<SliceData> sliceData = new ArrayList<>(); in getSliceData() 112 final List<SliceData> providerSliceData = getSliceDataFromProvider(provider, in getSliceData() 117 final List<SliceData> a11ySliceData = getAccessibilitySliceData(); in getSliceData() 122 private List<SliceData> getSliceDataFromProvider(SearchIndexProvider provider, in getSliceDataFromProvider() 124 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider() 142 List<SliceData> xmlSliceData = getSliceDataFromXML(xmlResId, fragmentName); in getSliceDataFromProvider() 149 private List<SliceData> getSliceDataFromXML(int xmlResId, String fragmentName) { in getSliceDataFromXML() 152 final List<SliceData> xmlSliceData = new ArrayList<>(); in getSliceDataFromXML() 205 final SliceData xmlSlice = new SliceData.Builder() in getSliceDataFromXML() [all …]
|
D | SliceBuilderUtils.java | 77 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() 101 case SliceData.SliceType.INTENT: in buildSlice() 103 case SliceData.SliceType.SWITCH: in buildSlice() 105 case SliceData.SliceType.SLIDER: in buildSlice() 116 @SliceData.SliceType 161 SliceData sliceData) { in getPreferenceController() 169 public static PendingIntent getActionIntent(Context context, String action, SliceData data) { in getActionIntent() 182 public static PendingIntent getContentPendingIntent(Context context, SliceData sliceData) { in getContentPendingIntent() 191 BasePreferenceController controller, SliceData sliceData) { in getSubtitleText() 255 public static Intent getContentIntent(Context context, SliceData sliceData) { in getContentIntent() [all …]
|
D | SliceData.java | 30 public class SliceData { class 126 private SliceData(Builder builder) { in SliceData() method in SliceData 148 if (!(obj instanceof SliceData)) { in equals() 151 SliceData newObject = (SliceData) obj; in equals() 241 public SliceData build() { in build() 258 return new SliceData(this); in build()
|
D | SlicesDatabaseAccessor.java | 72 public SliceData getSliceDataFromUri(Uri uri) { in getSliceDataFromUri() 87 public SliceData getSliceDataFromKey(String key) { in getSliceDataFromKey() 154 private SliceData buildSliceData(Cursor cursor, Uri uri, boolean isIntentOnly) { in buildSliceData() 174 sliceType = SliceData.SliceType.INTENT; in buildSliceData() 177 return new SliceData.Builder() in buildSliceData()
|
D | SlicesIndexer.java | 75 List<SliceData> indexData = getSliceData(); in indexSliceData() 90 List<SliceData> getSliceData() { in getSliceData() 98 void insertSliceData(SQLiteDatabase database, List<SliceData> indexData) { in insertSliceData() 101 for (SliceData dataRow : indexData) { in insertSliceData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 43 import com.android.settings.slices.SliceData; 66 public static void testSettingsIntentSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsIntentSlice() 98 public static void testSettingsToggleSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsToggleSlice() 138 public static void testSettingsSliderSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsSliderSlice() 180 SliceData sliceData) { in testSettingsCopyableSlice() 216 SliceData sliceData) { in testSettingsUnavailableSlice() 316 private static void assertKeywords(SliceMetadata metadata, SliceData data) { in assertKeywords()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/ |
D | TogglePreferenceController.java | 21 import com.android.car.developeroptions.slices.SliceData; 68 @SliceData.SliceType 70 return SliceData.SliceType.SWITCH; in getSliceType()
|
D | BasePreferenceController.java | 24 import com.android.car.developeroptions.slices.SliceData; 225 @SliceData.SliceType 227 return SliceData.SliceType.INTENT; in getSliceType()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | TogglePreferenceController.java | 22 import com.android.settings.slices.SliceData; 78 @SliceData.SliceType 80 return SliceData.SliceType.SWITCH; in getSliceType()
|
D | BasePreferenceController.java | 38 import com.android.settings.slices.SliceData; 292 @SliceData.SliceType 294 return SliceData.SliceType.INTENT; in getSliceType()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | ContactSearchPreferenceController.java | 25 import com.android.settings.slices.SliceData; 86 @SliceData.SliceType 88 return SliceData.SliceType.SWITCH; in getSliceType()
|
D | WorkModePreferenceController.java | 31 import com.android.settings.slices.SliceData; 143 @SliceData.SliceType 145 return SliceData.SliceType.SWITCH; in getSliceType()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | ContactSearchPreferenceController.java | 25 import com.android.car.developeroptions.slices.SliceData; 86 @SliceData.SliceType 88 return SliceData.SliceType.SWITCH; in getSliceType()
|
D | WorkModePreferenceController.java | 31 import com.android.car.developeroptions.slices.SliceData; 143 @SliceData.SliceType 145 return SliceData.SliceType.SWITCH; in getSliceType()
|