Home
last modified time | relevance | path

Searched refs:sliceData (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceBuilderUtils.java77 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() argument
78 Log.d(TAG, "Creating slice for: " + sliceData.getPreferenceController()); in buildSlice()
79 final BasePreferenceController controller = getPreferenceController(context, sliceData); in buildSlice()
84 sliceData.getKey(), in buildSlice()
93 return buildUnavailableSlice(context, sliceData); in buildSlice()
97 return buildCopyableSlice(context, sliceData, controller); in buildSlice()
100 switch (sliceData.getSliceType()) { in buildSlice()
102 return buildIntentSlice(context, sliceData, controller); in buildSlice()
104 return buildToggleSlice(context, sliceData, controller); in buildSlice()
106 return buildSliderSlice(context, sliceData, controller); in buildSlice()
[all …]
DSliceDataConverter.java96 List<SliceData> sliceData = new ArrayList<>(); in getSliceData() local
115 sliceData.addAll(providerSliceData); in getSliceData()
119 sliceData.addAll(a11ySliceData); in getSliceData()
120 return sliceData; in getSliceData()
125 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider() local
131 return sliceData; in getSliceDataFromProvider()
144 sliceData.addAll(xmlSliceData); in getSliceDataFromProvider()
147 return sliceData; in getSliceDataFromProvider()
242 final List<SliceData> sliceData = new ArrayList<>(); in getAccessibilitySliceData() local
282 sliceData.add(sliceDataBuilder.build()); in getAccessibilitySliceData()
[all …]
DSettingsSliceProvider.java375 final SliceData sliceData; in loadSlice() local
377 sliceData = mSlicesDatabaseAccessor.getSliceDataFromUri(uri); in loadSlice()
384 getContext(), sliceData); in loadSlice()
393 mSliceWeakDataCache.put(uri, sliceData); in loadSlice()
DSliceDeepLinkSpringBoard.java60 final SliceData sliceData = in onCreate() local
62 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
DSliceBroadcastReceiver.java216 final SliceData sliceData = accessor.getSliceDataFromKey(key); in getPreferenceController() local
217 return SliceBuilderUtils.getPreferenceController(context, sliceData); in getPreferenceController()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java77 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() argument
80 Log.d(TAG, "Creating slice for: " + sliceData.getPreferenceController()); in buildSlice()
81 final BasePreferenceController controller = getPreferenceController(context, sliceData); in buildSlice()
86 sliceData.getKey(), in buildSlice()
95 return buildUnavailableSlice(context, sliceData); in buildSlice()
99 return buildCopyableSlice(context, sliceData, controller); in buildSlice()
102 switch (sliceData.getSliceType()) { in buildSlice()
104 return buildIntentSlice(context, sliceData, controller); in buildSlice()
106 return buildToggleSlice(context, sliceData, controller); in buildSlice()
108 return buildSliderSlice(context, sliceData, controller); in buildSlice()
[all …]
DSliceDataConverter.java100 List<SliceData> sliceData = new ArrayList<>(); in getSliceData() local
119 sliceData.addAll(providerSliceData); in getSliceData()
123 sliceData.addAll(a11ySliceData); in getSliceData()
124 return sliceData; in getSliceData()
129 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider() local
135 return sliceData; in getSliceDataFromProvider()
148 sliceData.addAll(xmlSliceData); in getSliceDataFromProvider()
151 return sliceData; in getSliceDataFromProvider()
260 final List<SliceData> sliceData = new ArrayList<>(); in getAccessibilitySliceData() local
300 sliceData.add(sliceDataBuilder.build()); in getAccessibilitySliceData()
[all …]
DSettingsSliceProvider.java391 final SliceData sliceData; in loadSlice() local
393 sliceData = mSlicesDatabaseAccessor.getSliceDataFromUri(uri); in loadSlice()
400 getContext(), sliceData); in loadSlice()
409 mSliceWeakDataCache.put(uri, sliceData); in loadSlice()
DSliceDeepLinkSpringBoard.java62 final SliceData sliceData = in onCreate() local
64 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
DSliceBroadcastReceiver.java217 final SliceData sliceData = accessor.getSliceDataFromKey(key); in getPreferenceController() local
218 return SliceBuilderUtils.getPreferenceController(context, sliceData); in getPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java66 public static void testSettingsIntentSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsIntentSlice() argument
81 SliceBuilderUtils.getContentPendingIntent(context, sliceData)); in testSettingsIntentSlice()
83 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsIntentSlice()
85 assertKeywords(metadata, sliceData); in testSettingsIntentSlice()
98 public static void testSettingsToggleSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsToggleSlice() argument
118 SettingsSliceProvider.ACTION_TOGGLE_CHANGED, sliceData)); in testSettingsToggleSlice()
123 SliceBuilderUtils.getContentPendingIntent(context, sliceData)); in testSettingsToggleSlice()
125 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsToggleSlice()
127 assertKeywords(metadata, sliceData); in testSettingsToggleSlice()
138 public static void testSettingsSliderSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsSliderSlice() argument
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesIndexerTest.java110 final List<SliceData> sliceData = getDummyIndexableData(); in testInsertSliceData_mockDataInserted() local
111 doReturn(sliceData).when(mManager).getSliceData(); in testInsertSliceData_mockDataInserted()
117 assertThat(cursor.getCount()).isEqualTo(sliceData.size()); in testInsertSliceData_mockDataInserted()
120 for (int i = 0; i < sliceData.size(); i++) { in testInsertSliceData_mockDataInserted()
170 final List<SliceData> sliceData = new ArrayList<>(); in getDummyIndexableData() local
185 sliceData.add(builder.build()); in getDummyIndexableData()
188 return sliceData; in getDummyIndexableData()
DSliceBuilderUtilsTest.java91 final SliceData sliceData = getDummyData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT); in buildIntentSlice_returnsMatchingSlice() local
92 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice()
94 SliceTester.testSettingsIntentSlice(mContext, slice, sliceData); in buildIntentSlice_returnsMatchingSlice()
403 final SliceData sliceData = getDummyData(); in testContentIntent_includesUniqueData() local
404 final Uri expectedUri = new Uri.Builder().appendPath(sliceData.getKey()).build(); in testContentIntent_includesUniqueData()
406 final Intent intent = SliceBuilderUtils.getContentIntent(mContext, sliceData); in testContentIntent_includesUniqueData()
416 final SliceData sliceData = getDummyData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT, in buildIntentSlice_noIconPassed_returnsSliceWithIcon() local
419 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_noIconPassed_returnsSliceWithIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java311 SliceData sliceData, PendingIntent expectedPrimaryAction, String title) { in testWifiCallingSettingsUnavailableSlice() argument
329 SliceData sliceData) { in testWifiCallingSettingsToggleSlice() argument
354 private void testWifiCallingPreferenceSlice(Slice slice, SliceData sliceData, in testWifiCallingPreferenceSlice() argument