/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBuilderUtils.java | 79 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() 89 return buildUnavailableSlice(context, sliceData); in buildSlice() 92 String userRestriction = sliceData.getUserRestriction(); in buildSlice() 98 return buildIntentSlice(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 | 101 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() 254 final List<SliceData> sliceData = new ArrayList<>(); in getAccessibilitySliceData() local 300 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 | 411 final SliceData sliceData; in loadSlice() local 413 sliceData = mSlicesDatabaseAccessor.getSliceDataFromUri(uri); in loadSlice() 420 getContext(), sliceData); in loadSlice() 435 mSliceWeakDataCache.put(uri, sliceData); in loadSlice()
|
D | SliceBroadcastReceiver.java | 184 final SliceData sliceData = accessor.getSliceDataFromKey(key); in getPreferenceController() local 185 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 | 113 final List<SliceData> sliceData = getMockIndexableData(false); in testInsertSliceData_nonPublicSlice_mockDataInserted() local 114 doReturn(sliceData).when(mManager).getSliceData(); in testInsertSliceData_nonPublicSlice_mockDataInserted() 120 assertThat(cursor.getCount()).isEqualTo(sliceData.size()); in testInsertSliceData_nonPublicSlice_mockDataInserted() 123 for (int i = 0; i < sliceData.size(); i++) { in testInsertSliceData_nonPublicSlice_mockDataInserted() 162 final List<SliceData> sliceData = getMockIndexableData(true); in insertSliceData_publicSlice_mockDataInserted() local 163 doReturn(sliceData).when(mManager).getSliceData(); in insertSliceData_publicSlice_mockDataInserted() 169 assertThat(cursor.getCount()).isEqualTo(sliceData.size()); in insertSliceData_publicSlice_mockDataInserted() 172 for (int i = 0; i < sliceData.size(); i++) { in insertSliceData_publicSlice_mockDataInserted() 224 final List<SliceData> sliceData = new ArrayList<>(); in getMockIndexableData() local 243 sliceData.add(builder.build()); in getMockIndexableData() [all …]
|
D | SliceBuilderUtilsTest.java | 89 final SliceData sliceData = getMockData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT); in buildIntentSlice_returnsMatchingSlice() local 90 final Slice slice = SliceBuilderUtils.buildSlice(mContext, sliceData); in buildIntentSlice_returnsMatchingSlice() 92 SliceTester.testSettingsIntentSlice(mContext, slice, sliceData); in buildIntentSlice_returnsMatchingSlice() 332 final SliceData sliceData = getMockData(); in testContentIntent_includesUniqueData() local 333 final Uri expectedUri = new Uri.Builder().appendPath(sliceData.getKey()).build(); in testContentIntent_includesUniqueData() 335 final Intent intent = SliceBuilderUtils.getContentIntent(mContext, sliceData); in testContentIntent_includesUniqueData() 345 final SliceData sliceData = getMockData(CONTEXT_CONTROLLER, SliceData.SliceType.INTENT, in buildIntentSlice_noIconPassed_returnsSliceWithIcon() local 348 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 | 309 SliceData sliceData, PendingIntent expectedPrimaryAction, String title) { in testWifiCallingSettingsUnavailableSlice() argument 327 SliceData sliceData) { in testWifiCallingSettingsToggleSlice() argument 352 private void testWifiCallingPreferenceSlice(Slice slice, SliceData sliceData, in testWifiCallingPreferenceSlice() argument
|