Home
last modified time | relevance | path

Searched refs:SliceData (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceDataTest.java39 private final int SLICE_TYPE = SliceData.SliceType.SWITCH;
45 SliceData.Builder builder = new SliceData.Builder() in testBuilder_buildsMatchingObject()
59 SliceData data = builder.build(); in testBuilder_buildsMatchingObject()
75 @Test(expected = SliceData.InvalidSliceDataException.class)
77 new SliceData.Builder() in testBuilder_noKey_throwsIllegalStateException()
88 @Test(expected = SliceData.InvalidSliceDataException.class)
90 new SliceData.Builder() in testBuilder_noTitle_throwsIllegalStateException()
101 @Test(expected = SliceData.InvalidSliceDataException.class)
103 new SliceData.Builder() in testBuilder_noFragment_throwsIllegalStateException()
114 @Test(expected = SliceData.InvalidSliceDataException.class)
[all …]
DSliceBuilderUtilsTest.java91 final SliceData sliceData = getDummyData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT); in buildIntentSlice_returnsMatchingSlice()
99 final SliceData dummyData = getDummyData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH); in buildToggleSlice_returnsMatchingSlice()
113 final SliceData data = getDummyData(SLIDER_CONTROLLER, SliceData.SliceType.SLIDER); in buildSliderSlice_returnsMatchingSlice()
127 final SliceData dummyData = getDummyData(COPYABLE_CONTROLLER, -1); in buildCopyableSlice_returnsMatchingSlice()
210 final SliceData data = getDummyData(); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary()
223 final SliceData data = getDummyData(); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull()
236 final SliceData data = getDummyData("", ""); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary()
249 final SliceData data = getDummyData("", TITLE); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary()
262 final SliceData data = getDummyData(null, null); in getDynamicSummary_emptyScreenTitle_emptyControllerSummary_returnsEmptyString()
272 final SliceData data = getDummyData(summaryPlaceholder, summaryPlaceholder); in getDynamicSummary_screenTitleAndControllerPlaceholder_returnsSliceEmptyString()
[all …]
DSlicesIndexerTest.java56 private final int SLICE_TYPE = SliceData.SliceType.SLIDER;
101 doReturn(new ArrayList<SliceData>()).when(mManager).getSliceData(); in testInsertSliceData_indexedStateSet()
110 final List<SliceData> sliceData = getDummyIndexableData(); in testInsertSliceData_mockDataInserted()
169 private List<SliceData> getDummyIndexableData() { in getDummyIndexableData()
170 final List<SliceData> sliceData = new ArrayList<>(); in getDummyIndexableData()
171 final SliceData.Builder builder = new SliceData.Builder() in getDummyIndexableData()
DSliceDataConverterTest.java99 List<SliceData> sliceDataList = mSliceDataConverter.getSliceData(); in testFakeProvider_convertsFakeData()
102 SliceData fakeSlice0 = sliceDataList.get(0); in testFakeProvider_convertsFakeData()
103 SliceData fakeSlice1 = sliceDataList.get(1); in testFakeProvider_convertsFakeData()
115 private void assertFakeSlice(SliceData fakeSlice) { in assertFakeSlice()
125 assertThat(fakeSlice.getSliceType()).isEqualTo(SliceData.SliceType.SLIDER); in assertFakeSlice()
131 private void assertFakeA11ySlice(SliceData fakeSlice) { in assertFakeA11ySlice()
DSettingsSliceProviderTest.java171 SliceData data = mProvider.mSliceWeakDataCache.get(uri); in testLoadSlice_returnsSliceFromAccessor()
203 SliceData data = getDummyData(); in testLoadSlice_cachedEntryRemovedOnBuild()
208 SliceData cachedData = mProvider.mSliceWeakDataCache.get(data.getUri()); in testLoadSlice_cachedEntryRemovedOnBuild()
217 SliceData data = getDummyData(); in onBindSlice_mainThread_shouldNotOverrideStrictMode()
231 SliceData data = getDummyData(); in onBindSlice_backgroundThread_shouldOverrideStrictMode()
574 values.put(SlicesDatabaseHelper.IndexColumns.SLICE_TYPE, SliceData.SliceType.INTENT); in insertSpecialCase()
586 private static SliceData getDummyData() { in getDummyData()
587 return new SliceData.Builder() in getDummyData()
DSlicesDatabaseAccessorTest.java100 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_validKey_validSliceReturned()
120 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_allowDynamicSummary_validSliceReturned()
147 SliceData data = mAccessor.getSliceDataFromUri(uri); in testGetSliceFromUri_validUri_validSliceReturned()
233 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_defaultUnavailableSlice_validSliceReturned()
253 SliceData data = mAccessor.getSliceDataFromKey(key); in testGetSliceDataFromKey_customizeSubtitleOfUnavailableSlice_validSliceReturned()
287 values.put(SlicesDatabaseHelper.IndexColumns.SLICE_TYPE, SliceData.SliceType.INTENT); in insertSpecialCase()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceDataConverter.java95 public List<SliceData> getSliceData() { in getSliceData()
96 List<SliceData> sliceData = new ArrayList<>(); in getSliceData()
113 final List<SliceData> providerSliceData = getSliceDataFromProvider(provider, in getSliceData()
118 final List<SliceData> a11ySliceData = getAccessibilitySliceData(); in getSliceData()
123 private List<SliceData> getSliceDataFromProvider(SearchIndexProvider provider, in getSliceDataFromProvider()
125 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider()
143 List<SliceData> xmlSliceData = getSliceDataFromXML(xmlResId, fragmentName); in getSliceDataFromProvider()
150 private List<SliceData> getSliceDataFromXML(int xmlResId, String fragmentName) { in getSliceDataFromXML()
153 final List<SliceData> xmlSliceData = new ArrayList<>(); in getSliceDataFromXML()
206 final SliceData xmlSlice = new SliceData.Builder() in getSliceDataFromXML()
[all …]
DSliceBuilderUtils.java77 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 …]
DSliceData.java30 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()
DSlicesDatabaseAccessor.java72 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()
DSlicesIndexer.java75 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/src/com/android/settings/slices/
DSliceDataConverter.java99 public List<SliceData> getSliceData() { in getSliceData()
100 List<SliceData> sliceData = new ArrayList<>(); in getSliceData()
117 final List<SliceData> providerSliceData = getSliceDataFromProvider(provider, in getSliceData()
122 final List<SliceData> a11ySliceData = getAccessibilitySliceData(); in getSliceData()
127 private List<SliceData> getSliceDataFromProvider(SearchIndexProvider provider, in getSliceDataFromProvider()
129 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider()
147 List<SliceData> xmlSliceData = getSliceDataFromXML(xmlResId, fragmentName); in getSliceDataFromProvider()
154 private List<SliceData> getSliceDataFromXML(int xmlResId, String fragmentName) { in getSliceDataFromXML()
157 final List<SliceData> xmlSliceData = new ArrayList<>(); in getSliceDataFromXML()
211 final SliceData xmlSlice = new SliceData.Builder() in getSliceDataFromXML()
[all …]
DSliceBuilderUtils.java77 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()
244 public static Intent getContentIntent(Context context, SliceData sliceData) { in getContentIntent()
[all …]
DSliceData.java30 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()
DSlicesDatabaseAccessor.java72 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()
DSlicesIndexer.java75 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/
DSliceTester.java43 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()
177 SliceData sliceData) { in testSettingsCopyableSlice()
213 SliceData sliceData) { in testSettingsUnavailableSlice()
313 private static void assertKeywords(SliceMetadata metadata, SliceData data) { in assertKeywords()
/packages/apps/Settings/src/com/android/settings/core/
DTogglePreferenceController.java21 import com.android.settings.slices.SliceData;
68 @SliceData.SliceType
70 return SliceData.SliceType.SWITCH; in getSliceType()
DBasePreferenceController.java25 import com.android.settings.slices.SliceData;
225 @SliceData.SliceType
227 return SliceData.SliceType.INTENT; in getSliceType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/
DTogglePreferenceController.java21 import com.android.car.developeroptions.slices.SliceData;
68 @SliceData.SliceType
70 return SliceData.SliceType.SWITCH; in getSliceType()
DBasePreferenceController.java25 import com.android.car.developeroptions.slices.SliceData;
225 @SliceData.SliceType
227 return SliceData.SliceType.INTENT; in getSliceType()
/packages/apps/Settings/src/com/android/settings/accounts/
DContactSearchPreferenceController.java25 import com.android.settings.slices.SliceData;
86 @SliceData.SliceType
88 return SliceData.SliceType.SWITCH; in getSliceType()
DWorkModePreferenceController.java31 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/
DContactSearchPreferenceController.java25 import com.android.car.developeroptions.slices.SliceData;
86 @SliceData.SliceType
88 return SliceData.SliceType.SWITCH; in getSliceType()
DWorkModePreferenceController.java31 import com.android.car.developeroptions.slices.SliceData;
143 @SliceData.SliceType
145 return SliceData.SliceType.SWITCH; in getSliceType()

12