Home
last modified time | relevance | path

Searched refs:CastDevice (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java59 import com.android.systemui.statusbar.policy.CastController.CastDevice;
175 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_wifiEnabledAndCasting()
176 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()
177 List<CastDevice> devices = new ArrayList<>(); in testStateActive_wifiEnabledAndCasting()
235 CastController.CastDevice device = new CastController.CastDevice(); in stateActive_wifiConnectedAndCasting_newPipeline()
236 device.state = CastDevice.STATE_CONNECTED; in stateActive_wifiConnectedAndCasting_newPipeline()
237 List<CastDevice> devices = new ArrayList<>(); in stateActive_wifiConnectedAndCasting_newPipeline()
251 CastController.CastDevice device = new CastController.CastDevice(); in stateActive_ethernetConnectedAndCasting_newPipeline()
252 device.state = CastDevice.STATE_CONNECTED; in stateActive_ethernetConnectedAndCasting_newPipeline()
253 List<CastDevice> devices = new ArrayList<>(); in stateActive_ethernetConnectedAndCasting_newPipeline()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DCastAutoAddableTest.kt76 CastController.CastDevice().apply { in <lambda>()
77 state = CastController.CastDevice.STATE_DISCONNECTED in <lambda>()
94 CastController.CastDevice().apply { in <lambda>()
95 state = CastController.CastDevice.STATE_DISCONNECTED in <lambda>()
98 CastController.CastDevice().apply { state = CastController.CastDevice.STATE_CONNECTING } in <lambda>()
115 CastController.CastDevice().apply { in <lambda>()
116 state = CastController.CastDevice.STATE_DISCONNECTED in <lambda>()
119 CastController.CastDevice().apply { state = CastController.CastDevice.STATE_CONNECTED } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastController.java27 List<CastDevice> getCastDevices(); in getCastDevices()
28 void startCasting(CastDevice device); in startCasting()
29 void stopCasting(CastDevice device); in stopCasting()
40 public static final class CastDevice { class
DCastControllerImpl.java155 public List<CastDevice> getCastDevices() { in getCastDevices()
156 final ArrayList<CastDevice> devices = new ArrayList<>(); in getCastDevices()
159 final CastDevice device = new CastDevice(); in getCastDevices()
168 device.state = CastDevice.STATE_CONNECTING; in getCastDevices()
170 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()
172 device.state = CastDevice.STATE_DISCONNECTED; in getCastDevices()
182 final CastDevice device = new CastDevice(); in getCastDevices()
186 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()
196 public void startCasting(CastDevice device) { in startCasting()
204 public void stopCasting(CastDevice device) { in stopCasting()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java63 import com.android.systemui.statusbar.policy.CastController.CastDevice;
174 List<CastDevice> activeDevices = getActiveDevices(); in handleClick()
195 List<CastDevice> activeDevices = getActiveDevices(); in willPopDialog()
199 private List<CastDevice> getActiveDevices() { in getActiveDevices()
200 ArrayList<CastDevice> activeDevices = new ArrayList<>(); in getActiveDevices()
201 for (CastDevice device : mController.getCastDevices()) { in getActiveDevices()
202 if (device.state == CastDevice.STATE_CONNECTED in getActiveDevices()
203 || device.state == CastDevice.STATE_CONNECTING) { in getActiveDevices()
274 final List<CastDevice> devices = mController.getCastDevices(); in handleUpdateState()
278 for (CastDevice device : devices) { in handleUpdateState()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeCastController.java41 public List<CastDevice> getCastDevices() { in getCastDevices()
46 public void startCasting(CastDevice device) { in startCasting()
51 public void stopCasting(CastDevice device) { in stopCasting()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCastControllerImplTest.java151 CastController.CastDevice castDevice = new CastController.CastDevice(); in hasConnectedCastDevice_connected()
152 castDevice.state = CastController.CastDevice.STATE_CONNECTED; in hasConnectedCastDevice_connected()
159 CastController.CastDevice castDevice = new CastController.CastDevice(); in hasConnectedCastDevice_notConnected()
160 castDevice.state = CastController.CastDevice.STATE_CONNECTING; in hasConnectedCastDevice_notConnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DCastAutoAddable.kt46 it.state == CastController.CastDevice.STATE_CONNECTED || in getCallback()
47 it.state == CastController.CastDevice.STATE_CONNECTING in getCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java42 import com.android.systemui.statusbar.policy.CastController.CastDevice;
432 for (CastDevice device : mCastController.getCastDevices()) {
433 if (device.state == CastDevice.STATE_CONNECTED
434 || device.state == CastDevice.STATE_CONNECTING) {
DPhoneStatusBarPolicy.java65 import com.android.systemui.statusbar.policy.CastController.CastDevice;
523 for (CastDevice device : mCast.getCastDevices()) { in updateCast()
524 if (device.state == CastDevice.STATE_CONNECTING in updateCast()
525 || device.state == CastDevice.STATE_CONNECTED) { in updateCast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java64 import com.android.systemui.statusbar.policy.CastController.CastDevice;
424 private static List<CastDevice> buildFakeCastDevice(boolean isCasting) { in buildFakeCastDevice()
425 CastDevice cd = new CastDevice(); in buildFakeCastDevice()
426 cd.state = isCasting ? CastDevice.STATE_CONNECTED : CastDevice.STATE_DISCONNECTED; in buildFakeCastDevice()