Home
last modified time | relevance | path

Searched refs:QCRow (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/view/
DQCRowViewTest.java48 import com.android.car.qc.QCRow;
76 QCRow row = new QCRow.Builder().build(); in setRow_notNull_visible()
84 QCRow row = new QCRow.Builder().setTitle(title).build(); in setRow_setsTitle()
94 QCRow row = new QCRow.Builder().setSubtitle(subtitle).build(); in setRow_setsSubtitle()
104 QCRow row = new QCRow.Builder().setIcon(icon).build(); in setRow_setsIcon()
114 QCRow row = new QCRow.Builder() in setRow_createsStartItems()
130 QCRow row = new QCRow.Builder() in setRow_createsEndItems()
145 QCRow row = new QCRow.Builder().build(); in setRow_noSlider_sliderViewNotVisible()
154 QCRow row = new QCRow.Builder() in setRow_hasSlider_sliderViewVisible()
165 QCRow row = new QCRow.Builder().setPrimaryAction(action).build(); in onRowClick_firesAction()
[all …]
DQCListViewTest.java30 import com.android.car.qc.QCRow;
56 QCRow row = new QCRow.Builder().build(); in onChanged_invalidType_throwsIllegalArgumentException()
64 .addRow(new QCRow.Builder().build()) in onChanged_createsRows()
65 .addRow(new QCRow.Builder().build()) in onChanged_createsRows()
76 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
77 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
82 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
91 .addRow(new QCRow.Builder().build()) in setActionListener_setsOnChildView()
92 .addRow(new QCRow.Builder().build()) in setActionListener_setsOnChildView()
DQCViewTest.java32 import com.android.car.qc.QCRow;
59 QCRow row = new QCRow.Builder().build(); in onChanged_invalidType_throwsIllegalArgumentException()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/
DQCRowTest.java36 public class QCRowTest extends QCItemTestCase<QCRow> {
40 QCRow row = createRow(/* action= */ null, /* disabledAction= */ null, /* icon= */ null); in onCreate_hasCorrectType()
46 QCRow row = createRow(/* action= */ null, /* disabledAction= */ null, mDefaultIcon); in onBundle_nullActions_noCrash()
53 QCRow row = createRow(mDefaultAction, mDefaultDisabledAction, /* icon= */ null); in onBundle_nullIcon_noCrash()
60 QCRow row = createRow(mDefaultAction, mDefaultDisabledAction, mDefaultIcon); in createFromParcel_accurateData()
61 QCRow newRow = writeAndLoadFromBundle(row); in createFromParcel_accurateData()
73 QCRow row = createRow(/* action= */ null, /* disabledAction= */ null, /* icon= */ null, in createFromParcel_accurateData_startItem()
75 QCRow newRow = writeAndLoadFromBundle(row); in createFromParcel_accurateData_startItem()
83 QCRow row = createRow(/* action= */ null, /* disabledAction= */ null, /* icon= */ null, in createFromParcel_accurateData_endItem()
85 QCRow newRow = writeAndLoadFromBundle(row); in createFromParcel_accurateData_endItem()
[all …]
DQCListTest.java42 QCRow row = new QCRow.Builder() in createFromParcel_accurateData()
55 private QCList createList(List<QCRow> rows) { in createList()
57 for (QCRow row : rows) { in createList()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/
DQCList.java32 private final List<QCRow> mRows;
34 public QCList(@NonNull List<QCRow> rows) { in QCList()
42 List<QCRow> rows = new ArrayList<>(); in QCList()
44 rows.add(QCRow.CREATOR.createFromParcel(in)); in QCList()
53 for (QCRow row : mRows) { in writeToParcel()
69 public List<QCRow> getRows() { in getRows()
89 private final List<QCRow> mRows = new ArrayList<>();
94 public Builder addRow(@NonNull QCRow row) { in addRow()
DQCRow.java39 public class QCRow extends QCItem { class
52 public QCRow(@Nullable String title, @Nullable String subtitle, in QCRow() method in QCRow
73 public QCRow(@NonNull Parcel in) { in QCRow() method in QCRow
210 public static Creator<QCRow> CREATOR = new Creator<QCRow>() {
212 public QCRow createFromParcel(Parcel source) {
213 return new QCRow(source);
217 public QCRow[] newArray(int size) {
218 return new QCRow[size];
348 public QCRow build() { in build()
349 return new QCRow(mTitle, mSubtitle, mActionText, mCategory, mIsEnabled, in build()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/qc/
DCarUiPortraitProfileSwitcher.java28 import com.android.car.qc.QCRow;
49 protected QCRow createUserProfileRow(UserInfo userInfo) { in createUserProfileRow()
57 protected QCRow createGuestProfileRow() { in createGuestProfileRow()
65 private QCRow createUserProfileRowForCurrentProfile(UserInfo userInfo) { in createUserProfileRowForCurrentProfile()
76 private QCRow createGuestProfileRowForCurrentProfile() { in createGuestProfileRowForCurrentProfile()
93 private QCRow createUserProfileRowForCurrentProfile(String title, Drawable iconDrawable, in createUserProfileRowForCurrentProfile()
97 QCRow row = new QCRow.Builder() in createUserProfileRowForCurrentProfile()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DMobileDataRowTest.java37 import com.android.car.qc.QCRow;
74 QCRow row = getRow(); in getQCItem_mobileDataDisabled_switchUnchecked()
83 QCRow row = getRow(); in getQCItem_mobileDataEnabled_switchChecked()
92 QCRow row = getRow(); in getQCItem_noNetworkName_nullSubtitle()
101 QCRow row = getRow(); in getQCItem_hasNetworkName_setsSubtitle()
110 QCRow row = getRow(); in getQCItem_dataDisabled_setsSubtitle()
121 QCRow row = getRow(); in getQCItem_hasBaseUmRestriction_switchDisabled()
133 QCRow row = getRow(); in getQCItem_hasUmRestriction_switchClickableWhileDisabled()
154 QCRow row = getRow(); in getQCItem_createsRow_zoneWrite()
163 QCRow row = getRow(); in getQCItem_createsRow_zoneRead()
[all …]
DAdaptiveBrightnessSwitchTest.java33 import com.android.car.qc.QCRow;
79 QCRow row = getQCRow(); in getQCItem_createsRow_zoneWrite()
87 QCRow row = getQCRow(); in getQCItem_createsRow_zoneRead()
102 QCRow row = getQCRow(); in getQCItem_titleSet()
108 QCRow row = getQCRow(); in getQCItem_hasActionSwitch()
117 QCRow row = getQCRow(); in getQCItem_adaptiveBrightnessOn_switchChecked()
125 QCRow row = getQCRow(); in getQCItem_adaptiveBrightnessOff_switchUnchecked()
134 QCRow row = getQCRow(); in getQCItem_hasBaseUmRestriction_switchDisabled()
144 QCRow row = getQCRow(); in getQCItem_hasUmRestriction_switchClickableWhileDisabled()
168 private QCRow getQCRow() { in getQCRow()
DHotspotRowTest.java40 import com.android.car.qc.QCRow;
82 QCRow row = getHotspotRow(); in getQCItem_setsTitleAndIcon()
91 QCRow row = getHotspotRow(); in getQCItem_hotspotDisabled_returnsRow()
101 QCRow row = getHotspotRow(); in getQCItem_hotspotEnabled_noDevices_returnsRow()
112 QCRow row = getHotspotRow(); in getQCItem_hotspotEnabled_hasDevices_returnsRow()
122 QCRow row = getHotspotRow(); in getQCItem_hasBaseUmRestriction_switchDisabled()
131 QCRow row = getHotspotRow(); in getQCItem_hasUmRestriction_switchClickableWhileDisabled()
150 QCRow row = getHotspotRow(); in getQCItem_createsRow_zoneWrite()
158 QCRow row = getHotspotRow(); in getQCItem_createsRow_zoneRead()
171 protected QCRow getHotspotRow() { in getHotspotRow()
DVolumeSliderTestCase.java33 import com.android.car.qc.QCRow;
76 protected void verifyTitleSet(QCRow row, int titleResId) { in verifyTitleSet()
80 protected void verifyIconSet(QCRow row, int iconResId) { in verifyIconSet()
84 protected void verifyIconNotSet(QCRow row) { in verifyIconNotSet()
88 protected void verifySliderCreated(QCRow row) { in verifySliderCreated()
105 protected void verifyBaseUmRestriction(QCRow row) { in verifyBaseUmRestriction()
112 protected void verifyUmRestriction(QCRow row) { in verifyUmRestriction()
DWifiRowTest.java38 import com.android.car.qc.QCRow;
66 QCRow row = getWifiRow(); in getQCItem_setsTitle()
74 QCRow row = getWifiRow(); in getQCItem_wifiDisabled_returnsRow()
89 QCRow row = getWifiRow(); in getQCItem_wifiNotConnected_returnsRow()
107 QCRow row = getWifiRow(); in getQCItem_wifiConnected_returnsRow()
126 QCRow row = getWifiRow(); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsRow()
145 QCRow row = getWifiRow(); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow()
164 QCRow row = getWifiRow(); in getQCItem_osuWifiConnected_hasFriendlyName_returnsRow()
183 QCRow row = getWifiRow(); in getQCItem_osuWifiConnected_noFriendlyName_returnsRow()
195 QCRow row = getWifiRow(); in getQCItem_hasBaseUmRestriction_switchDisabled()
[all …]
DBrightnessSliderTestCase.java34 import com.android.car.qc.QCRow;
58 QCRow row = getBrightnessRow(); in getQCItem_titleSet()
64 QCRow row = getBrightnessRow(); in getQCItem_createsSlider()
75 QCRow row = getBrightnessRow(); in getQCItem_hasBaseUmRestriction_sliderDisabled()
84 QCRow row = getBrightnessRow(); in getQCItem_hasUmRestriction_sliderClickableWhileDisabled()
106 protected QCRow getBrightnessRow() { in getBrightnessRow()
DPairedBluetoothDevicesTest.java49 import com.android.car.qc.QCRow;
132 QCRow row = list.getRows().get(0); in getQCItem_bluetoothDisabled_returnsBluetoothDisabledMessage()
142 QCRow row = list.getRows().get(0); in getQCItem_noDevices_returnsPairMessage()
196 QCRow row = list.getRows().get(0); in getQCItem_setsTitle()
206 QCRow row = list.getRows().get(0); in getQCItem_bluetoothDisabled_togglesUpdated()
222 QCRow row = list.getRows().get(0); in getQCItem_bluetoothEnabled_togglesUpdated()
242 QCRow row = list.getRows().get(0); in getQCItem_isBusy_togglesDisabled()
258 QCRow row = list.getRows().get(0); in getQCItem_hasBaseUmRestriction_togglesDisabled()
276 QCRow row = list.getRows().get(0); in getQCItem_hasUmRestriction_togglesClickableWhileDisabled()
360 QCRow row = list.getRows().get(0); in getQCItem_createsItem_noDevices_zoneWrite()
[all …]
DCallVolumeSliderTest.java28 import com.android.car.qc.QCRow;
64 QCRow row = getCallVolumeSlider(); in getQCItem_createsSlider_zoneWrite()
73 QCRow row = getCallVolumeSlider(); in getQCItem_createsSlider_zoneRead()
104 protected QCRow getCallVolumeSlider() { in getCallVolumeSlider()
DNavigationVolumeSliderTest.java28 import com.android.car.qc.QCRow;
86 QCRow row = list.getRows().get(0); in getQCItem_createsVolumeSlider_zoneWrite()
99 QCRow row = list.getRows().get(0); in getQCItem_createsVolumeSlider_zoneRead()
112 protected QCRow getNavigationVolumeSlider() { in getNavigationVolumeSlider()
DBluetoothSwitchTest.java36 import com.android.car.qc.QCRow;
88 QCRow row = list.getRows().get(0); in getQCItem_createsRow_zoneWrite()
100 QCRow row = list.getRows().get(0); in getQCItem_createsRow_zoneRead()
116 QCRow row = list.getRows().get(0); in getQCItem_titleSet()
123 QCRow row = list.getRows().get(0); in getQCItem_hasActionSwitch()
DBrightnessSliderTest.java25 import com.android.car.qc.QCRow;
44 QCRow row = list.getRows().get(0); in getQCItem_createsSlider_zoneWrite()
56 QCRow row = list.getRows().get(0); in getQCItem_createsSlider_zoneRead()
DHotspotRowWithActionTest.java23 import com.android.car.qc.QCRow;
37 QCRow row = getHotspotRow(); in getQCItem_setPrimaryAction_returnsRow()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java61 import com.android.car.qc.QCRow;
160 List<QCRow> rows = getProfileRows(); in logoutAllowed_managedDevice_switchAllowed()
181 List<QCRow> rows = getProfileRows(); in logoutAllowed_managedDevice_switchDisallowed()
198 List<QCRow> rows = getProfileRows(); in switchNotAllowed_returnsOnlyCurrentUser()
209 List<QCRow> rows = getProfileRows(); in switchAllowed_usersSwitchable_returnsAllRows()
226 List<QCRow> rows = getProfileRows(); in switchAllowed_orderUsersByCreationTime()
244 List<QCRow> rows = getProfileRows(); in switchAllowed_userNotSwitchable_returnsValidRows()
261 List<QCRow> rows = getProfileRows(); in switchAllowed_userGuest_returnsValidRows()
278 List<QCRow> rows = getProfileRows(); in switchAllowed_userNotFull_returnsValidRows()
296 List<QCRow> rows = getProfileRows(); in switchAllowed_addUserDisallowed_returnsValidRows()
[all …]
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/qc/
DDisplaySwitcher.java26 import com.android.car.qc.QCRow;
56 QCRow.Builder builder = new QCRow.Builder() in getQCItem()
68 QCRow controlElement = new QCRow.Builder() in getQCItem()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java61 import com.android.car.qc.QCRow;
193 private QCRow createOrganizationOwnedDeviceRow() { in createOrganizationOwnedDeviceRow()
196 QCRow row = new QCRow.Builder() in createOrganizationOwnedDeviceRow()
216 protected QCRow createUserProfileRow(UserInfo userInfo) { in createUserProfileRow()
228 protected QCRow createGuestProfileRow() { in createGuestProfileRow()
244 private QCRow createAddProfileRow() { in createAddProfileRow()
261 private QCRow createLogOutRow() { in createLogOutRow()
262 QCRow row = new QCRow.Builder() in createLogOutRow()
270 private QCRow createProfileRow(String title, Drawable iconDrawable, in createProfileRow()
273 QCRow row = new QCRow.Builder() in createProfileRow()
DDriveModeQcPanel.java25 import com.android.car.qc.QCRow;
51 QCRow row = new QCRow.Builder() in getQCItem()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBrightnessSliderWithIcon.java25 import com.android.car.qc.QCRow;
42 protected QCRow.Builder getBrightnessRowBuilder() { in getBrightnessRowBuilder()
43 QCRow.Builder builder = super.getBrightnessRowBuilder(); in getBrightnessRowBuilder()

12