Home
last modified time | relevance | path

Searched refs:sliceItems (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java126 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_noAp_shouldReturnLoadingRow() local
131 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_noAp_shouldReturnLoadingRow()
158 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow() local
160 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow()
162 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow()
173 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() local
175 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow()
176 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP2_NAME); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow()
178 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow()
187 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneDisconnectedAp_shouldReturnLoadingRow() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java244 public static void assertAnySliceItemContainsTitle(List<SliceItem> sliceItems, String title) { in assertAnySliceItemContainsTitle() argument
245 assertThat(hasText(sliceItems, title, HINT_TITLE)).isTrue(); in assertAnySliceItemContainsTitle()
254 public static void assertAnySliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertAnySliceItemContainsSubtitle() argument
257 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isTrue(); in assertAnySliceItemContainsSubtitle()
266 public static void assertNoSliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertNoSliceItemContainsSubtitle() argument
269 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isFalse(); in assertNoSliceItemContainsSubtitle()
272 private static boolean hasText(List<SliceItem> sliceItems, String text, String hints) { in hasText() argument
274 for (SliceItem item : sliceItems) { in hasText()
297 public static void assertAnySliceItemContainsIcon(List<SliceItem> sliceItems, IconCompat icon) { in assertAnySliceItemContainsIcon() argument
299 for (SliceItem item : sliceItems) { in assertAnySliceItemContainsIcon()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DSliceTester.java243 public static void assertAnySliceItemContainsTitle(List<SliceItem> sliceItems, String title) { in assertAnySliceItemContainsTitle() argument
244 assertThat(hasText(sliceItems, title, HINT_TITLE)).isTrue(); in assertAnySliceItemContainsTitle()
253 public static void assertAnySliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertAnySliceItemContainsSubtitle() argument
256 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isTrue(); in assertAnySliceItemContainsSubtitle()
265 public static void assertNoSliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertNoSliceItemContainsSubtitle() argument
268 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isFalse(); in assertNoSliceItemContainsSubtitle()
271 private static boolean hasText(List<SliceItem> sliceItems, String text, String hints) { in hasText() argument
273 for (SliceItem item : sliceItems) { in hasText()
296 public static void assertAnySliceItemContainsIcon(List<SliceItem> sliceItems, IconCompat icon) { in assertAnySliceItemContainsIcon() argument
298 for (SliceItem item : sliceItems) { in assertAnySliceItemContainsIcon()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelperTest.java205 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsUnavailableSlice() local
206 assertTitle(sliceItems, in testEnhanced4gLteSettingsUnavailableSlice()
231 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsToggleSlice() local
232 assertTitle(sliceItems, in testEnhanced4gLteSettingsToggleSlice()
251 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument
253 for (SliceItem item : sliceItems) { in assertTitle()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicePreferencesUtil.java335 private static List<Pair<CharSequence, CharSequence>> getInfoList(List<SliceItem> sliceItems) { in getInfoList() argument
337 for (SliceItem item : sliceItems) { in getInfoList()
371 static SliceItem getScreenTitleItem(List<SliceContent> sliceItems) { in getScreenTitleItem() argument
372 for (SliceContent contentItem : sliceItems) { in getScreenTitleItem()
382 static SliceItem getRedirectSlice(List<SliceContent> sliceItems) { in getRedirectSlice() argument
383 for (SliceContent contentItem : sliceItems) { in getRedirectSlice()
393 static SliceItem getFocusedPreferenceItem(List<SliceContent> sliceItems) { in getFocusedPreferenceItem() argument
394 for (SliceContent contentItem : sliceItems) { in getFocusedPreferenceItem()
404 static SliceItem getEmbeddedItem(List<SliceContent> sliceItems) { in getEmbeddedItem() argument
405 for (SliceContent contentItem : sliceItems) { in getEmbeddedItem()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSliceTest.java157 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() local
158 SliceTester.assertAnySliceItemContainsTitle(sliceItems, mContext.getString( in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice()
169 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_bluetoothOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() local
170 SliceTester.assertAnySliceItemContainsTitle(sliceItems, mContext.getString( in getSlice_bluetoothOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice()
181 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle() local
182 SliceTester.assertAnySliceItemContainsTitle(sliceItems, BLUETOOTH_MOCK_TITLE); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java326 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsUnavailableSlice() local
327 assertTitle(sliceItems, title); in testWifiCallingSettingsUnavailableSlice()
352 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsToggleSlice() local
353 assertTitle(sliceItems, mContext.getString(R.string.wifi_calling_settings_title)); in testWifiCallingSettingsToggleSlice()
411 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument
413 for (SliceItem item : sliceItems) { in assertTitle()