Home
last modified time | relevance | path

Searched refs:QCItem (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCView.java27 import com.android.car.qc.QCItem;
32 public class QCView extends FrameLayout implements Observer<QCItem> {
33 @QCItem.QCItemType
35 private Observer<QCItem> mChildObserver;
67 public void onChanged(QCItem qcItem) { in onChanged()
84 if (mType.equals(QCItem.QC_TYPE_TILE)) { in onChanged()
103 private boolean isValidQCItemType(QCItem qcItem) { in isValidQCItemType()
105 return type.equals(QCItem.QC_TYPE_TILE) || type.equals(QCItem.QC_TYPE_LIST); in isValidQCItemType()
118 void onQCAction(@NonNull QCItem item, @NonNull Object action); in onQCAction()
DQCListView.java27 import com.android.car.qc.QCItem;
33 public class QCListView extends LinearLayout implements Observer<QCItem> {
73 public void onChanged(QCItem qcItem) { in onChanged()
78 if (!qcItem.getType().equals(QCItem.QC_TYPE_LIST)) { in onChanged()
DQCTileView.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
34 import com.android.car.qc.QCItem;
43 public class QCTileView extends FrameLayout implements Observer<QCItem> {
89 public void onChanged(QCItem qcItem) { in onChanged()
94 if (!qcItem.getType().equals(QCItem.QC_TYPE_TILE)) { in onChanged()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/controller/
DBaseQCController.java25 import com.android.car.qc.QCItem;
35 protected final List<Observer<QCItem>> mObservers = new ArrayList<>();
38 protected QCItem mQCItem;
56 public void addObserver(Observer<QCItem> observer) { in addObserver()
65 public void removeObserver(Observer<QCItem> observer) { in removeObserver()
72 public void onQCItemUpdated(@Nullable QCItem item) { in onQCItemUpdated()
DRemoteQCController.java45 import com.android.car.qc.QCItem;
127 QCItem item = getQCItem(); in updateQCItem()
134 private QCItem getQCItem() { in getQCItem()
146 res.setClassLoader(QCItem.class.getClassLoader()); in getQCItem()
148 if (parcelable instanceof QCItem) { in getQCItem()
149 return (QCItem) parcelable; in getQCItem()
233 QCItem item = getQCItem();
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/common/
DDistantDisplayQcItem.java24 import com.android.car.qc.QCItem;
33 private final QCItem.ActionHandler mActionHandler;
36 @Nullable Drawable icon, @Nullable QCItem.ActionHandler actionHandler) { in DistantDisplayQcItem()
59 public QCItem.ActionHandler getActionHandler() { in getActionHandler()
70 private QCItem.ActionHandler mActionHandler;
99 public Builder setActionHandler(@Nullable QCItem.ActionHandler actionHandler) { in setActionHandler()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/controller/
DBaseQCControllerTestCase.java31 import com.android.car.qc.QCItem;
51 Observer<QCItem> observer = mock(Observer.class); in addObserver_updateListeningCalled()
59 Observer<QCItem> observer = mock(Observer.class); in removeObserver_updateListeningCalled()
67 Observer<QCItem> observer = mock(Observer.class); in onQCItemUpdated_observersNotified()
70 verify(observer).onChanged(any(QCItem.class)); in onQCItemUpdated_observersNotified()
75 Observer<QCItem> observer = mock(Observer.class); in onDestroy_cleanUpController()
DRemoteQCControllerTest.java47 import com.android.car.qc.QCItem;
70 Observer<QCItem> observer = mock(Observer.class); in onBind_updatesQCItem()
80 Observer<QCItem> observer = mock(Observer.class); in updateListening_listen_updatesQCItem()
90 Observer<QCItem> observer = mock(Observer.class); in updateListening_listen_providerSubscribed()
105 Observer<QCItem> observer = mock(Observer.class); in updateListening_doNotListen_providerUnsubscribed()
125 Observer<QCItem> observer = mock(Observer.class); in updateListening_listen_registerContentObserver()
139 Observer<QCItem> observer = mock(Observer.class); in updateListening_doNotListen_unregisterContentObserver()
149 Observer<QCItem> observer = mock(Observer.class); in onDestroy_callsProviderOnDestroy()
DLocalQCControllerTest.java27 import com.android.car.qc.QCItem;
57 Observer<QCItem> observer = mock(Observer.class); in onBind_updatesQCItem()
68 Observer<QCItem> observer = mock(Observer.class); in updateListening_updatesProviderListening()
78 Observer<QCItem> observer = mock(Observer.class); in updateListening_listen_updatesQCItem()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/
DQCItem.java36 public abstract class QCItem implements Parcelable { class
65 public QCItem(@NonNull @QCItemType String type) { in QCItem() method in QCItem
69 public QCItem(@NonNull @QCItemType String type, boolean isEnabled, in QCItem() method in QCItem
76 public QCItem(@NonNull Parcel in) { in QCItem() method in QCItem
148 void onAction(@NonNull QCItem item, @NonNull Context context, @NonNull Intent intent); in onAction()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DAdaptiveBrightnessSwitchTest.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
31 import com.android.car.qc.QCItem;
64 QCItem item = mSwitch.getQCItem(); in getQCItem_unsupported_returnsNull()
70 QCItem item = mSwitch.getQCItem(); in getQCItem_supported_returnsRow()
96 QCItem item = mSwitch.getQCItem(); in getQCItem_createsRow_zoneHidden()
111 assertThat(actionItem.getType()).isEqualTo(QCItem.QC_TYPE_ACTION_SWITCH); in getQCItem_hasActionSwitch()
169 QCItem item = mSwitch.getQCItem(); in getQCRow()
DBluetoothSwitchTest.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
34 import com.android.car.qc.QCItem;
75 QCItem item = mBluetoothSwitch.getQCItem(); in getQCItem_createsRow()
84 QCItem item = mBluetoothSwitch.getQCItem(); in getQCItem_createsRow_zoneWrite()
96 QCItem item = mBluetoothSwitch.getQCItem(); in getQCItem_createsRow_zoneRead()
109 QCItem item = mBluetoothSwitch.getQCItem(); in getQCItem_createsRow_zoneHidden()
126 assertThat(actionItem.getType()).isEqualTo(QCItem.QC_TYPE_ACTION_SWITCH); in getQCItem_hasActionSwitch()
DNavigationVolumeSliderTest.java26 import com.android.car.qc.QCItem;
81 QCItem item = mVolumeSlider.getQCItem(); in getQCItem_createsVolumeSlider_zoneWrite()
94 QCItem item = mVolumeSlider.getQCItem(); in getQCItem_createsVolumeSlider_zoneRead()
108 QCItem item = mVolumeSlider.getQCItem(); in getQCItem_createsVolumeSlider_zoneHidden()
113 QCItem item = mVolumeSlider.getQCItem(); in getNavigationVolumeSlider()
DBrightnessSliderTest.java23 import com.android.car.qc.QCItem;
42 QCItem item = brightnessSlider.getQCItem(); in getQCItem_createsSlider_zoneWrite()
54 QCItem item = brightnessSlider.getQCItem(); in getQCItem_createsSlider_zoneRead()
67 QCItem item = brightnessSlider.getQCItem(); in getQCItem_createsSlider_zoneHidden()
DMobileDataTileTest.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
33 import com.android.car.qc.QCItem;
65 QCItem item = mMobileDataTile.getQCItem(); in getQCItem_mobileDataUnsupported_returnsNull()
170 QCItem item = mMobileDataTile.getQCItem(); in getQCItem_createsTile_zoneHidden()
175 QCItem item = mMobileDataTile.getQCItem(); in getTile()
DHotspotTileTest.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
36 import com.android.car.qc.QCItem;
155 QCItem item = mHotspotTile.getQCItem(); in getQCItem_createsTile_zoneHidden()
160 QCItem item = mHotspotTile.getQCItem(); in getTile()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/
DStatusIconPanelViewControllerTest.java42 import com.android.car.qc.QCItem;
226 QCItem qcItem = mock(QCItem.class); in onQCAction_pendingIntentAction_panelDismissed()
239 QCItem qcItem = mock(QCItem.class); in onQCAction_actionHandler_panelDismissed()
240 QCItem.ActionHandler action = mock(QCItem.ActionHandler.class); in onQCAction_actionHandler_panelDismissed()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/provider/
DBaseQCProvider.java33 import com.android.car.qc.QCItem;
70 QCItem item = handleBind(uri); in call()
122 protected QCItem onBind(@NonNull Uri uri) { in onBind()
160 private QCItem handleBind(Uri uri) { in handleBind()
170 private QCItem onBindStrict(@NonNull Uri uri) { in onBindStrict()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/qc/
DCarUiPortraitProfileSwitcher.java27 import com.android.car.qc.QCItem;
66 QCItem.ActionHandler actionHandler = (item, context, intent) -> { in createUserProfileRowForCurrentProfile()
77 QCItem.ActionHandler actionHandler = (item, context, intent) -> { in createGuestProfileRowForCurrentProfile()
94 QCItem.ActionHandler actionHandler) { in createUserProfileRowForCurrentProfile()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBluetoothSwitch.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
20 import static com.android.car.qc.QCItem.QC_TYPE_ACTION_SWITCH;
32 import com.android.car.qc.QCItem;
50 QCItem getQCItem() { in getQCItem()
DAdaptiveBrightnessSwitch.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
20 import static com.android.car.qc.QCItem.QC_TYPE_ACTION_SWITCH;
35 import com.android.car.qc.QCItem;
52 QCItem getQCItem() { in getQCItem()
DWifiRow.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
20 import static com.android.car.qc.QCItem.QC_TYPE_ACTION_SWITCH;
34 import com.android.car.qc.QCItem;
56 QCItem getQCItem() { in getQCItem()
DHotspotRow.java19 import static com.android.car.qc.QCItem.QC_ACTION_TOGGLE_STATE;
20 import static com.android.car.qc.QCItem.QC_TYPE_ACTION_SWITCH;
37 import com.android.car.qc.QCItem;
64 QCItem getQCItem() { in getQCItem()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/calmmode/
DCalmModeQCProvider.java34 import com.android.car.qc.QCItem;
61 QCItem mQCItem;
87 public QCItem onBind(Uri uri) { in onBind()
108 QCItem getQCItem() { in getQCItem()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/provider/
DBaseLocalQCProviderTest.java29 import com.android.car.qc.QCItem;
49 QCItem item = mProvider.getQCItem(); in getQCItem_returnsItem()
84 public QCItem getQCItem() { in getQCItem()

123