/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SliceBuilderUtils.java | 77 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 …]
|
D | SliceDataConverter.java | 96 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 …]
|
D | SettingsSliceProvider.java | 375 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()
|
D | SliceDeepLinkSpringBoard.java | 60 final SliceData sliceData = in onCreate() local 62 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
|
D | SliceBroadcastReceiver.java | 216 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/ |
D | SliceBuilderUtils.java | 77 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 …]
|
D | SliceDataConverter.java | 100 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 …]
|
D | SettingsSliceProvider.java | 391 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()
|
D | SliceDeepLinkSpringBoard.java | 62 final SliceData sliceData = in onCreate() local 64 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
|
D | SliceBroadcastReceiver.java | 217 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/ |
D | SliceTester.java | 66 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/ |
D | SlicesIndexerTest.java | 110 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()
|
D | SliceBuilderUtilsTest.java | 91 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/ |
D | WifiCallingSliceHelperTest.java | 311 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
|