Home
last modified time | relevance | path

Searched refs:CustomSliceRegistry (Results 1 – 25 of 56) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DSettingsContextualCardProvider.java23 import com.android.settings.slices.CustomSliceRegistry;
37 .setSliceUri(CustomSliceRegistry.BLUETOOTH_DEVICES_SLICE_URI.toString()) in getContextualCards()
38 .setCardName(CustomSliceRegistry.BLUETOOTH_DEVICES_SLICE_URI.toString()) in getContextualCards()
43 .setSliceUri(CustomSliceRegistry.LOW_STORAGE_SLICE_URI.toString()) in getContextualCards()
44 .setCardName(CustomSliceRegistry.LOW_STORAGE_SLICE_URI.toString()) in getContextualCards()
48 CustomSliceRegistry.CONTEXTUAL_ADAPTIVE_SLEEP_URI.toString(); in getContextualCards()
57 .setSliceUri(CustomSliceRegistry.FACE_ENROLL_SLICE_URI.toString()) in getContextualCards()
58 .setCardName(CustomSliceRegistry.FACE_ENROLL_SLICE_URI.toString()) in getContextualCards()
63 .setSliceUri(CustomSliceRegistry.DARK_THEME_SLICE_URI.toString()) in getContextualCards()
64 .setCardName(CustomSliceRegistry.DARK_THEME_SLICE_URI.toString()) in getContextualCards()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DVolumePanelTest.java27 import com.android.settings.slices.CustomSliceRegistry;
62 CustomSliceRegistry.REMOTE_MEDIA_SLICE_URI, in getSlices_checkUri()
63 CustomSliceRegistry.VOLUME_CALL_URI, in getSlices_checkUri()
64 CustomSliceRegistry.VOLUME_MEDIA_URI, in getSlices_checkUri()
65 CustomSliceRegistry.MEDIA_OUTPUT_INDICATOR_SLICE_URI, in getSlices_checkUri()
66 CustomSliceRegistry.VOLUME_SEPARATE_RING_URI, in getSlices_checkUri()
67 CustomSliceRegistry.VOLUME_NOTIFICATION_URI, in getSlices_checkUri()
68 CustomSliceRegistry.VOLUME_ALARM_URI); in getSlices_checkUri()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSpecialCaseSliceManagerTest.java46 CustomSliceRegistry.sUriToSlice.clear(); in setUp()
47 CustomSliceRegistry.sUriToSlice.put(FakeSliceable.URI, FakeSliceable.class); in setUp()
53 mContext, CustomSliceRegistry.getSliceClassByUri(FakeSliceable.URI)); in getSliceableFromUri_returnsCorrectObject()
67 mContext, CustomSliceRegistry.getSliceClassByUri(parameterUri)); in getSliceableFromUriWithParameter_returnsCorrectObject()
74 final boolean isValidUri = CustomSliceRegistry.isValidUri(FakeSliceable.URI); in isValidUri_validUri_returnsTrue()
81 final boolean isValidUri = CustomSliceRegistry.isValidUri(null); in isValidUri_invalidUri_returnsFalse()
89 CustomSliceRegistry.isValidAction(FakeSliceable.URI.toString()); in isValidAction_validActions_returnsTrue()
96 final boolean isValidAction = CustomSliceRegistry.isValidAction("action"); in isValidAction_invalidAction_returnsFalse()
/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java124 CustomSliceRegistry.BLUETOOTH_URI,
125 CustomSliceRegistry.FLASHLIGHT_SLICE_URI,
126 CustomSliceRegistry.LOCATION_SLICE_URI,
127 CustomSliceRegistry.MOBILE_DATA_SLICE_URI,
128 CustomSliceRegistry.WIFI_CALLING_URI,
129 CustomSliceRegistry.WIFI_SLICE_URI,
130 CustomSliceRegistry.ZEN_MODE_SLICE_URI
174 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onSlicePinned()
186 if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onSlicePinned()
189 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onSlicePinned()
[all …]
DSliceDeepLinkSpringBoard.java49 if (CustomSliceRegistry.isValidUri(sliceUri)) { in onCreate()
52 CustomSliceRegistry.getSliceClassByUri(sliceUri)); in onCreate()
54 } else if (CustomSliceRegistry.ZEN_MODE_SLICE_URI.equals(sliceUri)) { in onCreate()
56 } else if (CustomSliceRegistry.BLUETOOTH_URI.equals(sliceUri)) { in onCreate()
DSlicesFeatureProviderImpl.java78 final Uri newUri = CustomSliceRegistry.removeParameterFromUri(uri); in getSliceableFromUri()
79 final Class clazz = CustomSliceRegistry.getSliceClassByUri(newUri); in getSliceableFromUri()
/packages/apps/Settings/src/com/android/settings/panel/
DVolumePanel.java22 import static com.android.settings.slices.CustomSliceRegistry.MEDIA_OUTPUT_INDICATOR_SLICE_URI;
23 import static com.android.settings.slices.CustomSliceRegistry.REMOTE_MEDIA_SLICE_URI;
24 import static com.android.settings.slices.CustomSliceRegistry.VOLUME_ALARM_URI;
25 import static com.android.settings.slices.CustomSliceRegistry.VOLUME_CALL_URI;
26 import static com.android.settings.slices.CustomSliceRegistry.VOLUME_MEDIA_URI;
27 import static com.android.settings.slices.CustomSliceRegistry.VOLUME_NOTIFICATION_URI;
28 import static com.android.settings.slices.CustomSliceRegistry.VOLUME_SEPARATE_RING_URI;
DWifiPanel.java27 import com.android.settings.slices.CustomSliceRegistry;
59 uris.add(CustomSliceRegistry.WIFI_SLICE_URI); in getSlices()
DNfcPanel.java27 import com.android.settings.slices.CustomSliceRegistry;
54 uris.add(CustomSliceRegistry.NFC_SLICE_URI); in getSlices()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DFaceSetupSlice.java41 import com.android.settings.slices.CustomSliceRegistry;
82 return new ListBuilder(mContext, CustomSliceRegistry.FACE_ENROLL_SLICE_URI, in getSlice()
110 return new ListBuilder(mContext, CustomSliceRegistry.FACE_ENROLL_SLICE_URI, in getSlice()
115 CustomSliceRegistry.FACE_ENROLL_SLICE_URI, ListBuilder.INFINITY) in getSlice()
124 return CustomSliceRegistry.FACE_ENROLL_SLICE_URI; in getUri()
DLowStorageSlice.java37 import com.android.settings.slices.CustomSliceRegistry;
69 CustomSliceRegistry.LOW_STORAGE_SLICE_URI, ListBuilder.INFINITY).setAccentColor( in getSlice()
96 return CustomSliceRegistry.LOW_STORAGE_SLICE_URI; in getUri()
115 .setData(CustomSliceRegistry.LOW_STORAGE_SLICE_URI); in getIntent()
DDarkThemeSlice.java46 import com.android.settings.slices.CustomSliceRegistry;
98 return new ListBuilder(mContext, CustomSliceRegistry.DARK_THEME_SLICE_URI, in getSlice()
114 return new ListBuilder(mContext, CustomSliceRegistry.DARK_THEME_SLICE_URI, in getSlice()
129 return CustomSliceRegistry.DARK_THEME_SLICE_URI; in getUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java52 import com.android.settings.slices.CustomSliceRegistry;
126 CustomSliceRegistry.WIFI_CALLING_URI); in createWifiCallingSlice_notReadyToWifiCalling_wfcNotSupported()
147 CustomSliceRegistry.WIFI_CALLING_URI); in test_CreateWifiCallingSlice_needsActivation()
164 CustomSliceRegistry.WIFI_CALLING_URI); in test_CreateWifiCallingSlice_success()
180 final Slice slice = mProvider.onBindSlice(CustomSliceRegistry.WIFI_CALLING_URI); in test_SettingSliceProvider_getsRightSliceWifiCalling()
221 CustomSliceRegistry.WIFI_CALLING_PREFERENCE_URI); in test_CreateWifiCallingPreferenceSlice_prefNotEditable()
235 CustomSliceRegistry.WIFI_CALLING_PREFERENCE_URI); in test_CreateWifiCallingPreferenceSlice_wfcOff()
254 CustomSliceRegistry.WIFI_CALLING_PREFERENCE_URI); in test_CreateWifiCallingPreferenceSlice_success()
274 CustomSliceRegistry.WIFI_CALLING_PREFERENCE_URI); in test_SettingsSliceProvider_getWfcPreferenceSlice()
/packages/apps/Settings/src/com/android/settings/flashlight/
DFlashlightSlice.java44 import com.android.settings.slices.CustomSliceRegistry;
76 return new ListBuilder(mContext, CustomSliceRegistry.FLASHLIGHT_SLICE_URI, in getSlice()
90 return CustomSliceRegistry.FLASHLIGHT_SLICE_URI; in getUri()
111 mContext.getContentResolver().notifyChange(CustomSliceRegistry.FLASHLIGHT_SLICE_URI, null); in onNotifyChange()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/homepage/contextualcards/
DContextualCardLoaderTest.java28 import com.android.settings.slices.CustomSliceRegistry;
72 mEligibleCardChecker.bindSlice(CustomSliceRegistry.FLASHLIGHT_SLICE_URI); in bindSlice_flashlightUri_shouldReturnFlashlightSlice()
74 assertThat(loadedSlice.getUri()).isEqualTo(CustomSliceRegistry.FLASHLIGHT_SLICE_URI); in bindSlice_flashlightUri_shouldReturnFlashlightSlice()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelperTest.java50 import com.android.settings.slices.CustomSliceRegistry;
122 CustomSliceRegistry.ENHANCED_4G_SLICE_URI); in createEnhanced4gLteSlice_invalidSubId_nullSlice()
132 CustomSliceRegistry.ENHANCED_4G_SLICE_URI); in createEnhanced4gLteSlice_enhanced4gLteNotSupported_nullSlice()
145 CustomSliceRegistry.ENHANCED_4G_SLICE_URI); in createEnhanced4gLteSlice_success()
159 final Slice slice = mProvider.onBindSlice(CustomSliceRegistry.ENHANCED_4G_SLICE_URI); in sttingSliceProvider_enhanced4gLteHelper_getsRightSlice()
/packages/apps/Settings/src/com/android/settings/display/
DAlwaysOnDisplaySlice.java39 import com.android.settings.slices.CustomSliceRegistry;
76 return new ListBuilder(mContext, CustomSliceRegistry.ALWAYS_ON_SLICE_URI, in getSlice()
98 return CustomSliceRegistry.ALWAYS_ON_SLICE_URI; in getUri()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSlice.java40 import com.android.settings.slices.CustomSliceRegistry;
65 return new ListBuilder(mContext, CustomSliceRegistry.LOCATION_SLICE_URI, in getSlice()
77 return CustomSliceRegistry.LOCATION_SLICE_URI; in getUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardLoaderTest.java38 import com.android.settings.slices.CustomSliceRegistry;
159 .setSliceUri(CustomSliceRegistry.LOW_STORAGE_SLICE_URI) in getContextualCardList()
170 .setSliceUri(CustomSliceRegistry.DARK_THEME_SLICE_URI) in getContextualCardList()
182 .setSliceUri(CustomSliceRegistry.BLUETOOTH_DEVICES_SLICE_URI) in getContextualCardList()
DContextualCardManagerTest.java57 import com.android.settings.slices.CustomSliceRegistry;
237 cards.add(buildContextualCard(CustomSliceRegistry.FACE_ENROLL_SLICE_URI, in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
239 cards.add(buildContextualCard(CustomSliceRegistry.BLUETOOTH_DEVICES_SLICE_URI, in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
241 cards.add(buildContextualCard(CustomSliceRegistry.LOW_STORAGE_SLICE_URI, in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
247 .isEqualTo(CustomSliceRegistry.BLUETOOTH_DEVICES_SLICE_URI); in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
249 .isEqualTo(CustomSliceRegistry.FACE_ENROLL_SLICE_URI); in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
614 cards.add(buildContextualCard(CustomSliceRegistry.FACE_ENROLL_SLICE_URI.toString())); in getCardsWithViewType_hasOneStickySlice_shouldHaveOneStickyCard()
615 cards.add(buildContextualCard(CustomSliceRegistry.LOW_STORAGE_SLICE_URI.toString())); in getCardsWithViewType_hasOneStickySlice_shouldHaveOneStickyCard()
674 .setSliceUri(CustomSliceRegistry.LOW_STORAGE_SLICE_URI) in getContextualCardList()
687 .setSliceUri(CustomSliceRegistry.DARK_THEME_SLICE_URI) in getContextualCardList()
[all …]
DSettingsContextualCardProviderTest.java31 import com.android.settings.slices.CustomSliceRegistry;
78 CustomSliceRegistry.DARK_THEME_SLICE_URI.toString())) { in getContextualCards_darkThemeSlice_shouldGetImportantCategory()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java129 CustomSliceRegistry.WIFI_SLICE_URI,
130 CustomSliceRegistry.BLUETOOTH_URI,
131 CustomSliceRegistry.LOCATION_SLICE_URI
135 CustomSliceRegistry.ZEN_MODE_SLICE_URI,
136 CustomSliceRegistry.FLASHLIGHT_SLICE_URI,
137 CustomSliceRegistry.MOBILE_DATA_SLICE_URI,
138 CustomSliceRegistry.WIFI_CALLING_URI
597 CustomSliceRegistry.FLASHLIGHT_SLICE_URI, "com.android.whaaaat"); in onCreatePermissionRequest_returnsSettingIntent()
613 CustomSliceRegistry.FLASHLIGHT_SLICE_URI); in bindSlice_flashlightSlice_returnsFlashlightSlice()
615 assertThat(flashlightSlice.getUri()).isEqualTo(CustomSliceRegistry.FLASHLIGHT_SLICE_URI); in bindSlice_flashlightSlice_returnsFlashlightSlice()
/packages/apps/Settings/tests/unit/src/com/android/settings/panel/
DNfcPanelTest.java26 import com.android.settings.slices.CustomSliceRegistry;
50 CustomSliceRegistry.NFC_SLICE_URI); in getSlices_containsNecessarySlices()
DWifiPanelTest.java26 import com.android.settings.slices.CustomSliceRegistry;
50 CustomSliceRegistry.WIFI_SLICE_URI); in getSlices_containsNecessarySlices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAlwaysOnDisplaySliceTest.java40 import com.android.settings.slices.CustomSliceRegistry;
75 assertThat(uri).isEqualTo(CustomSliceRegistry.ALWAYS_ON_SLICE_URI); in getUri_shouldReturnCorrectSliceUri()

123