Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DCastTileTest.java184 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_wifiEnabledAndCasting()
228 CastController.CastDevice device = new CastController.CastDevice(); in stateActive_wifiConnectedAndCasting_newPipeline()
295 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_hotspotEnabledAndConnectedAndCasting()
318 CastController.CastDevice device = new CastController.CastDevice(); in testHandleClick_castDevicePresent()
336 CastController.CastDevice device = new CastController.CastDevice(); in testHandleClick_projectionOnly()
353 CastController.CastDevice device = new CastController.CastDevice(); in testUpdateState_projectionOnly()
369 CastController.CastDevice casting = new CastController.CastDevice(); in testUpdateState_castingAndProjection()
374 CastController.CastDevice projection = new CastController.CastDevice(); in testUpdateState_castingAndProjection()
399 CastController.CastDevice connected = new CastController.CastDevice(); in testUpdateState_connectedAndConnecting()
436 CastController.CastDevice device = new CastController.CastDevice(); in testExpandView_casting_projection()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DCastAutoAddableTest.kt74 CastController.CastDevice().apply {
75 state = CastController.CastDevice.STATE_DISCONNECTED
92 CastController.CastDevice().apply {
93 state = CastController.CastDevice.STATE_DISCONNECTED
96 CastController.CastDevice().apply { state = CastController.CastDevice.STATE_CONNECTING }
113 CastController.CastDevice().apply {
114 state = CastController.CastDevice.STATE_DISCONNECTED
117 CastController.CastDevice().apply { state = CastController.CastDevice.STATE_CONNECTED }
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A 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
H A DCastControllerImpl.java156 public List<CastDevice> getCastDevices() { in getCastDevices()
157 final ArrayList<CastDevice> devices = new ArrayList<>(); in getCastDevices()
160 final CastDevice device = new CastDevice(); in getCastDevices()
169 device.state = CastDevice.STATE_CONNECTING; in getCastDevices()
171 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()
173 device.state = CastDevice.STATE_DISCONNECTED; in getCastDevices()
183 final CastDevice device = new CastDevice(); in getCastDevices()
187 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()
197 public void startCasting(CastDevice device) { in startCasting()
205 public void stopCasting(CastDevice device) { in stopCasting()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java63 import com.android.systemui.statusbar.policy.CastController.CastDevice;
171 List<CastDevice> activeDevices = getActiveDevices(); in handleClick()
192 List<CastDevice> activeDevices = getActiveDevices(); in willPopDialog()
196 private List<CastDevice> getActiveDevices() { in getActiveDevices()
197 ArrayList<CastDevice> activeDevices = new ArrayList<>(); in getActiveDevices()
198 for (CastDevice device : mController.getCastDevices()) { in getActiveDevices()
199 if (device.state == CastDevice.STATE_CONNECTED in getActiveDevices()
200 || device.state == CastDevice.STATE_CONNECTING) { in getActiveDevices()
267 for (CastDevice device : devices) { in handleUpdateState()
268 if (device.state == CastDevice.STATE_CONNECTED) { in handleUpdateState()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DCastControllerImplTest.java132 CastController.CastDevice castDevice = new CastController.CastDevice(); in hasConnectedCastDevice_connected()
133 castDevice.state = CastController.CastDevice.STATE_CONNECTED; in hasConnectedCastDevice_connected()
140 CastController.CastDevice castDevice = new CastController.CastDevice(); in hasConnectedCastDevice_notConnected()
141 castDevice.state = CastController.CastDevice.STATE_CONNECTING; in hasConnectedCastDevice_notConnected()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
H A DFakeCastController.java41 public List<CastDevice> getCastDevices() { in getCastDevices()
46 public void startCasting(CastDevice device) { in startCasting()
51 public void stopCasting(CastDevice device) { in stopCasting()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DCastAutoAddable.kt46 it.state == CastController.CastDevice.STATE_CONNECTED ||
47 it.state == CastController.CastDevice.STATE_CONNECTING
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAutoTileManager.java41 import com.android.systemui.statusbar.policy.CastController.CastDevice;
430 for (CastDevice device : mCastController.getCastDevices()) {
431 if (device.state == CastDevice.STATE_CONNECTED
432 || device.state == CastDevice.STATE_CONNECTING) {
H A DPhoneStatusBarPolicy.java63 import com.android.systemui.statusbar.policy.CastController.CastDevice;
518 for (CastDevice device : mCast.getCastDevices()) { in updateCast()
519 if (device.state == CastDevice.STATE_CONNECTING in updateCast()
520 || device.state == CastDevice.STATE_CONNECTED) { in updateCast()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DAutoTileManagerTest.java63 import com.android.systemui.statusbar.policy.CastController.CastDevice;
421 private static List<CastDevice> buildFakeCastDevice(boolean isCasting) { in buildFakeCastDevice()
422 CastDevice cd = new CastDevice(); in buildFakeCastDevice()
423 cd.state = isCasting ? CastDevice.STATE_CONNECTED : CastDevice.STATE_DISCONNECTED; in buildFakeCastDevice()