Loading media/java/android/media/MediaRouter2.java +17 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,14 @@ public final class MediaRouter2 { /** * Starts scanning remote routes. * <p> * Route discovery can happen even when the {@link #startScan()} is not called. * This is because the scanning could be started before by other apps. * Therefore, calling this method after calling {@link #stopScan()} does not necessarily mean * that the routes found before are removed and added again. * <p> * Use {@link RouteCallback} to get the route related events. * <p> * Note that calling start/stopScan is applied to all system routers in the same process. * * @see #stopScan() Loading @@ -208,6 +216,15 @@ public final class MediaRouter2 { /** * Stops scanning remote routes to reduce resource consumption. * <p> * Route discovery can be continued even after this method is called. * This is because the scanning is only turned off when all the apps stop scanning. * Therefore, calling this method does not necessarily mean the routes are removed. * Also, for the same reason it does not mean that {@link RouteCallback#onRoutesAdded(List)} * is not called afterwards. * <p> * Use {@link RouteCallback} to get the route related events. * <p> * Note that calling start/stopScan is applied to all system routers in the same process. * * @see #startScan() Loading media/java/android/media/MediaRouter2Manager.java +17 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,14 @@ public final class MediaRouter2Manager { /** * Starts scanning remote routes. * <p> * Route discovery can happen even when the {@link #startScan()} is not called. * This is because the scanning could be started before by other apps. * Therefore, calling this method after calling {@link #stopScan()} does not necessarily mean * that the routes found before are removed and added again. * <p> * Use {@link Callback} to get the route related events. * <p> * @see #stopScan() */ public void startScan() { Loading @@ -163,6 +171,15 @@ public final class MediaRouter2Manager { /** * Stops scanning remote routes to reduce resource consumption. * <p> * Route discovery can be continued even after this method is called. * This is because the scanning is only turned off when all the apps stop scanning. * Therefore, calling this method does not necessarily mean the routes are removed. * Also, for the same reason it does not mean that {@link Callback#onRoutesAdded(List)} * is not called afterwards. * <p> * Use {@link Callback} to get the route related events. * * @see #startScan() */ public void stopScan() { Loading Loading
media/java/android/media/MediaRouter2.java +17 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,14 @@ public final class MediaRouter2 { /** * Starts scanning remote routes. * <p> * Route discovery can happen even when the {@link #startScan()} is not called. * This is because the scanning could be started before by other apps. * Therefore, calling this method after calling {@link #stopScan()} does not necessarily mean * that the routes found before are removed and added again. * <p> * Use {@link RouteCallback} to get the route related events. * <p> * Note that calling start/stopScan is applied to all system routers in the same process. * * @see #stopScan() Loading @@ -208,6 +216,15 @@ public final class MediaRouter2 { /** * Stops scanning remote routes to reduce resource consumption. * <p> * Route discovery can be continued even after this method is called. * This is because the scanning is only turned off when all the apps stop scanning. * Therefore, calling this method does not necessarily mean the routes are removed. * Also, for the same reason it does not mean that {@link RouteCallback#onRoutesAdded(List)} * is not called afterwards. * <p> * Use {@link RouteCallback} to get the route related events. * <p> * Note that calling start/stopScan is applied to all system routers in the same process. * * @see #startScan() Loading
media/java/android/media/MediaRouter2Manager.java +17 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,14 @@ public final class MediaRouter2Manager { /** * Starts scanning remote routes. * <p> * Route discovery can happen even when the {@link #startScan()} is not called. * This is because the scanning could be started before by other apps. * Therefore, calling this method after calling {@link #stopScan()} does not necessarily mean * that the routes found before are removed and added again. * <p> * Use {@link Callback} to get the route related events. * <p> * @see #stopScan() */ public void startScan() { Loading @@ -163,6 +171,15 @@ public final class MediaRouter2Manager { /** * Stops scanning remote routes to reduce resource consumption. * <p> * Route discovery can be continued even after this method is called. * This is because the scanning is only turned off when all the apps stop scanning. * Therefore, calling this method does not necessarily mean the routes are removed. * Also, for the same reason it does not mean that {@link Callback#onRoutesAdded(List)} * is not called afterwards. * <p> * Use {@link Callback} to get the route related events. * * @see #startScan() */ public void stopScan() { Loading