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.java131 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_noAp_shouldReturnLoadingRow() local
136 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_noAp_shouldReturnLoadingRow()
169 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_noReachableAp_shouldReturnLoadingRow() local
171 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_noReachableAp_shouldReturnLoadingRow()
172 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP2_NAME); in getWifiSlice_noReachableAp_shouldReturnLoadingRow()
174 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_noReachableAp_shouldReturnLoadingRow()
183 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneActiveAp_shouldReturnLoadingRow() local
185 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_oneActiveAp_shouldReturnLoadingRow()
187 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_oneActiveAp_shouldReturnLoadingRow()
198 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneActiveApAndOneUnreachableAp_shouldReturnLoadingRow() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java241 public static void assertAnySliceItemContainsTitle(List<SliceItem> sliceItems, String title) { in assertAnySliceItemContainsTitle() argument
242 assertThat(hasText(sliceItems, title, HINT_TITLE)).isTrue(); in assertAnySliceItemContainsTitle()
251 public static void assertAnySliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertAnySliceItemContainsSubtitle() argument
254 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isTrue(); in assertAnySliceItemContainsSubtitle()
263 public static void assertNoSliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertNoSliceItemContainsSubtitle() argument
266 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isFalse(); in assertNoSliceItemContainsSubtitle()
269 private static boolean hasText(List<SliceItem> sliceItems, String text, String hints) { in hasText() argument
271 for (SliceItem item : sliceItems) { in hasText()
294 public static void assertAnySliceItemContainsIcon(List<SliceItem> sliceItems, IconCompat icon) { in assertAnySliceItemContainsIcon() argument
296 for (SliceItem item : sliceItems) { in assertAnySliceItemContainsIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelperTest.java192 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsUnavailableSlice() local
193 assertTitle(sliceItems, mContext.getString(R.string.enhanced_4g_lte_mode_title)); in testEnhanced4gLteSettingsUnavailableSlice()
217 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsToggleSlice() local
218 assertTitle(sliceItems, mContext.getString(R.string.enhanced_4g_lte_mode_title)); in testEnhanced4gLteSettingsToggleSlice()
234 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument
236 for (SliceItem item : sliceItems) { in assertTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDeviceInfoSliceTest.java84 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent() local
85 SliceTester.assertAnySliceItemContainsTitle(sliceItems, phoneNumber); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
95 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasNoSubscriptionInfo_shouldShowUnknown() local
96 SliceTester.assertAnySliceItemContainsTitle(sliceItems, in getSlice_hasNoSubscriptionInfo_shouldShowUnknown()
DDataUsageSliceTest.java108 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasNoSim_shouldShowNoSimCard() local
109 SliceTester.assertAnySliceItemContainsTitle(sliceItems, in getSlice_hasNoSim_shouldShowNoSimCard()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java324 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsUnavailableSlice() local
325 assertTitle(sliceItems, title); in testWifiCallingSettingsUnavailableSlice()
350 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsToggleSlice() local
351 assertTitle(sliceItems, mContext.getString(R.string.wifi_calling_settings_title)); in testWifiCallingSettingsToggleSlice()
407 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument
409 for (SliceItem item : sliceItems) { in assertTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSliceTest.java121 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle() local
122 SliceTester.assertAnySliceItemContainsTitle(sliceItems, BLUETOOTH_MOCK_TITLE); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle()