Searched refs:CastDevice (Results 1 – 8 of 8) sorted by relevance
46 import com.android.systemui.statusbar.policy.CastController.CastDevice;180 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_wifiEnabledAndCasting()181 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()182 List<CastDevice> devices = new ArrayList<>(); in testStateActive_wifiEnabledAndCasting()217 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_hotspotEnabledAndConnectedAndCasting()218 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_hotspotEnabledAndConnectedAndCasting()219 List<CastDevice> devices = new ArrayList<>(); in testStateActive_hotspotEnabledAndConnectedAndCasting()238 CastController.CastDevice device = new CastController.CastDevice(); in testHandleClick_castDevicePresent()239 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent()241 List<CastDevice> devices = new ArrayList<>(); in testHandleClick_castDevicePresent()[all …]
56 import com.android.systemui.statusbar.policy.CastController.CastDevice;152 List<CastDevice> activeDevices = getActiveDevices(); in handleClick()166 private List<CastDevice> getActiveDevices() { in getActiveDevices()167 ArrayList<CastDevice> activeDevices = new ArrayList<>(); in getActiveDevices()168 for (CastDevice device : mController.getCastDevices()) { in getActiveDevices()169 if (device.state == CastDevice.STATE_CONNECTED in getActiveDevices()170 || device.state == CastDevice.STATE_CONNECTING) { in getActiveDevices()207 final List<CastDevice> devices = mController.getCastDevices(); in handleUpdateState()211 for (CastDevice device : devices) { in handleUpdateState()212 if (device.state == CastDevice.STATE_CONNECTED) { in handleUpdateState()[all …]
27 List<CastDevice> getCastDevices(); in getCastDevices()28 void startCasting(CastDevice device); in startCasting()29 void stopCasting(CastDevice device); in stopCasting()35 public static final class CastDevice { class
157 public List<CastDevice> getCastDevices() { in getCastDevices()158 final ArrayList<CastDevice> devices = new ArrayList<>(); in getCastDevices()161 final CastDevice device = new CastDevice(); in getCastDevices()170 device.state = CastDevice.STATE_CONNECTING; in getCastDevices()172 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()174 device.state = CastDevice.STATE_DISCONNECTED; in getCastDevices()184 final CastDevice device = new CastDevice(); in getCastDevices()188 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()198 public void startCasting(CastDevice device) { in startCasting()206 public void stopCasting(CastDevice device) { in stopCasting()
41 public List<CastDevice> getCastDevices() { in getCastDevices()46 public void startCasting(CastDevice device) { in startCasting()51 public void stopCasting(CastDevice device) { in stopCasting()
56 import com.android.systemui.statusbar.policy.CastController.CastDevice;378 private static List<CastDevice> buildFakeCastDevice(boolean isCasting) { in buildFakeCastDevice()379 CastDevice cd = new CastDevice(); in buildFakeCastDevice()380 cd.state = isCasting ? CastDevice.STATE_CONNECTED : CastDevice.STATE_DISCONNECTED; in buildFakeCastDevice()
37 import com.android.systemui.statusbar.policy.CastController.CastDevice;369 for (CastDevice device : mCastController.getCastDevices()) {370 if (device.state == CastDevice.STATE_CONNECTED371 || device.state == CastDevice.STATE_CONNECTING) {
60 import com.android.systemui.statusbar.policy.CastController.CastDevice;491 for (CastDevice device : mCast.getCastDevices()) { in updateCast()492 if (device.state == CastDevice.STATE_CONNECTING in updateCast()493 || device.state == CastDevice.STATE_CONNECTED) { in updateCast()