/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBuilderUtils.java | 75 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() argument 76 Log.d(TAG, "Creating slice for: " + sliceData.getPreferenceController()); in buildSlice() 77 final BasePreferenceController controller = getPreferenceController(context, sliceData); in buildSlice() 82 sliceData.getKey(), in buildSlice() 91 return buildUnavailableSlice(context, sliceData); in buildSlice() 95 return buildCopyableSlice(context, sliceData, controller); in buildSlice() 98 switch (sliceData.getSliceType()) { in buildSlice() 100 return buildIntentSlice(context, sliceData, controller); in buildSlice() 102 return buildToggleSlice(context, sliceData, controller); in buildSlice() 104 return buildSliderSlice(context, sliceData, controller); in buildSlice() [all …]
|
D | SliceDataConverter.java | 102 List<SliceData> sliceData = new ArrayList<>(); in getSliceData() local 120 sliceData.addAll(providerSliceData); in getSliceData() 124 sliceData.addAll(a11ySliceData); in getSliceData() 125 return sliceData; in getSliceData() 130 final List<SliceData> sliceData = new ArrayList<>(); in getSliceDataFromProvider() local 136 return sliceData; in getSliceDataFromProvider() 149 sliceData.addAll(xmlSliceData); in getSliceDataFromProvider() 152 return sliceData; in getSliceDataFromProvider() 261 final List<SliceData> sliceData = new ArrayList<>(); in getAccessibilitySliceData() local 307 sliceData.add(sliceDataBuilder.build()); in getAccessibilitySliceData() [all …]
|
D | SliceDeepLinkSpringBoard.java | 62 final SliceData sliceData = in onCreate() local 64 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
|
D | SettingsSliceProvider.java | 399 final SliceData sliceData; in loadSlice() local 401 sliceData = mSlicesDatabaseAccessor.getSliceDataFromUri(uri); in loadSlice() 408 getContext(), sliceData); in loadSlice() 423 mSliceWeakDataCache.put(uri, sliceData); in loadSlice()
|
D | SliceBroadcastReceiver.java | 211 final SliceData sliceData = accessor.getSliceDataFromKey(key); in getPreferenceController() local 212 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/unit/src/com/android/settings/testutils/ |
D | SliceTester.java | 65 public static void testSettingsIntentSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsIntentSlice() argument 80 SliceBuilderUtils.getContentPendingIntent(context, sliceData)); in testSettingsIntentSlice() 82 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsIntentSlice() 84 assertKeywords(metadata, sliceData); in testSettingsIntentSlice() 97 public static void testSettingsToggleSlice(Context context, Slice slice, SliceData sliceData) { in testSettingsToggleSlice() argument 117 SettingsSliceProvider.ACTION_TOGGLE_CHANGED, sliceData)); in testSettingsToggleSlice() 122 SliceBuilderUtils.getContentPendingIntent(context, sliceData)); in testSettingsToggleSlice() 124 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsToggleSlice() 126 assertKeywords(metadata, sliceData); in testSettingsToggleSlice() 137 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 | 109 final List<SliceData> sliceData = getMockIndexableData(false); in testInsertSliceData_nonPublicSlice_mockDataInserted() local 110 doReturn(sliceData).when(mManager).getSliceData(); in testInsertSliceData_nonPublicSlice_mockDataInserted() 116 assertThat(cursor.getCount()).isEqualTo(sliceData.size()); in testInsertSliceData_nonPublicSlice_mockDataInserted() 119 for (int i = 0; i < sliceData.size(); i++) { in testInsertSliceData_nonPublicSlice_mockDataInserted() 154 final List<SliceData> sliceData = getMockIndexableData(true); in insertSliceData_publicSlice_mockDataInserted() local 155 doReturn(sliceData).when(mManager).getSliceData(); in insertSliceData_publicSlice_mockDataInserted() 161 assertThat(cursor.getCount()).isEqualTo(sliceData.size()); in insertSliceData_publicSlice_mockDataInserted() 164 for (int i = 0; i < sliceData.size(); i++) { in insertSliceData_publicSlice_mockDataInserted() 213 final List<SliceData> sliceData = new ArrayList<>(); in getMockIndexableData() local 231 sliceData.add(builder.build()); in getMockIndexableData() [all …]
|
D | SliceBuilderUtilsTest.java | 90 final SliceData sliceData = getMockData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT); in buildIntentSlice_returnsMatchingSlice() local 91 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice() 93 SliceTester.testSettingsIntentSlice(mContext, slice, sliceData); in buildIntentSlice_returnsMatchingSlice() 350 final SliceData sliceData = getMockData(); in testContentIntent_includesUniqueData() local 351 final Uri expectedUri = new Uri.Builder().appendPath(sliceData.getKey()).build(); in testContentIntent_includesUniqueData() 353 final Intent intent = SliceBuilderUtils.getContentIntent(mContext, sliceData); in testContentIntent_includesUniqueData() 363 final SliceData sliceData = getMockData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT, in buildIntentSlice_noIconPassed_returnsSliceWithIcon() local 366 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 | 313 SliceData sliceData, PendingIntent expectedPrimaryAction, String title) { in testWifiCallingSettingsUnavailableSlice() argument 331 SliceData sliceData) { in testWifiCallingSettingsToggleSlice() argument 356 private void testWifiCallingPreferenceSlice(Slice slice, SliceData sliceData, in testWifiCallingPreferenceSlice() argument
|