Searched refs:CastDevice (Results 1 – 8 of 8) sorted by relevance
42 import com.android.systemui.statusbar.policy.CastController.CastDevice;141 CastController.CastDevice device = new CastController.CastDevice(); in testStateActive_wifiEnabledAndCasting()142 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()143 List<CastDevice> devices = new ArrayList<>(); in testStateActive_wifiEnabledAndCasting()159 CastController.CastDevice device = new CastController.CastDevice(); in testHandleClick_castDevicePresent()160 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent()162 List<CastDevice> devices = new ArrayList<>(); in testHandleClick_castDevicePresent()175 CastController.CastDevice device = new CastController.CastDevice(); in testHandleClick_projectionOnly()176 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_projectionOnly()178 List<CastDevice> devices = new ArrayList<>(); in testHandleClick_projectionOnly()[all …]
47 import com.android.systemui.statusbar.policy.CastController.CastDevice;132 List<CastDevice> activeDevices = getActiveDevices(); in handleClick()146 private List<CastDevice> getActiveDevices() { in getActiveDevices()147 ArrayList<CastDevice> activeDevices = new ArrayList<>(); in getActiveDevices()148 for (CastDevice device : mController.getCastDevices()) { in getActiveDevices()149 if (device.state == CastDevice.STATE_CONNECTED in getActiveDevices()150 || device.state == CastDevice.STATE_CONNECTING) { in getActiveDevices()186 final List<CastDevice> devices = mController.getCastDevices(); in handleUpdateState()190 for (CastDevice device : devices) { in handleUpdateState()191 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
154 public List<CastDevice> getCastDevices() { in getCastDevices()155 final ArrayList<CastDevice> devices = new ArrayList<>(); in getCastDevices()158 final CastDevice device = new CastDevice(); in getCastDevices()167 device.state = CastDevice.STATE_CONNECTING; in getCastDevices()169 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()171 device.state = CastDevice.STATE_DISCONNECTED; in getCastDevices()181 final CastDevice device = new CastDevice(); in getCastDevices()185 device.state = CastDevice.STATE_CONNECTED; in getCastDevices()195 public void startCasting(CastDevice device) { in startCasting()203 public void stopCasting(CastDevice device) { in stopCasting()
37 import com.android.systemui.statusbar.policy.CastController.CastDevice;121 private static List<CastDevice> buildFakeCastDevice(boolean isCasting) { in buildFakeCastDevice()122 CastDevice cd = new CastDevice(); in buildFakeCastDevice()123 cd.state = isCasting ? CastDevice.STATE_CONNECTED : CastDevice.STATE_DISCONNECTED; in buildFakeCastDevice()
41 public List<CastDevice> getCastDevices() { in getCastDevices()46 public void startCasting(CastDevice device) { in startCasting()51 public void stopCasting(CastDevice device) { in stopCasting()
29 import com.android.systemui.statusbar.policy.CastController.CastDevice;202 for (CastDevice device : mCastController.getCastDevices()) {203 if (device.state == CastDevice.STATE_CONNECTED204 || device.state == CastDevice.STATE_CONNECTING) {
50 import com.android.systemui.statusbar.policy.CastController.CastDevice;422 for (CastDevice device : mCast.getCastDevices()) { in updateCast()423 if (device.state == CastDevice.STATE_CONNECTING in updateCast()424 || device.state == CastDevice.STATE_CONNECTED) { in updateCast()