Searched refs:NearbyDevice (Results 1 – 12 of 12) sorted by relevance
43 public final class NearbyDevice implements Parcelable { class121 public NearbyDevice(@NonNull String mediaRoute2Id, @RangeZone int rangeZone) { in NearbyDevice() method in NearbyDevice126 private NearbyDevice(@NonNull Parcel in) { in NearbyDevice() method in NearbyDevice132 public static final Creator<NearbyDevice> CREATOR = new Creator<NearbyDevice>() {134 public NearbyDevice createFromParcel(@NonNull Parcel in) {135 return new NearbyDevice(in);139 public NearbyDevice[] newArray(int size) {140 return new NearbyDevice[size];
19 import android.media.NearbyDevice;42 void onDevicesUpdated(in List<NearbyDevice> nearbyDevices); in onDevicesUpdated()
19 parcelable NearbyDevice;
20 import android.media.NearbyDevice;
7 import android.media.NearbyDevice47 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in registerNearbyDevicesCallback_noProviderRegistered_noCrash()57 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in registerNearbyDevicesCallback_providerRegistered_providerReceivesCallback()73 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in registerNearbyDevicesCallback_multipleProviders_allProvidersReceiveCallback()86 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in unregisterNearbyDevicesCallback_noProviderRegistered_noCrash()96 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in unregisterNearbyDevicesCallback_providerRegistered_providerReceivesCallback()112 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in unregisterNearbyDevicesCallback_multipleProviders_allProvidersReceiveCallback()127 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in newProviderRegisteredAfterCallbacksRegistered_providerGetsPreviouslyRegisteredCallbacks()146 override fun onDevicesUpdated(nearbyDevices: List<NearbyDevice>) {} in providerUnregistered_doesNotReceiveNewCallback()
47 void registerNearbyDevicesCallback(@NonNull Consumer<List<NearbyDevice>> callback); in registerNearbyDevicesCallback()54 void unregisterNearbyDevicesCallback(@NonNull Consumer<List<NearbyDevice>> callback); in unregisterNearbyDevicesCallback()
58 import android.media.NearbyDevice;120 @NearbyDevice.RangeZone121 private int mRangeZone = NearbyDevice.RANGE_UNKNOWN;187 public @NearbyDevice.RangeZone int getRangeZone() { in getRangeZone()191 public void setRangeZone(@NearbyDevice.RangeZone int rangeZone) { in setRangeZone()485 if (NearbyDevice.compareRangeZones(getRangeZone(), another.getRangeZone()) != 0) { in compareTo()486 return NearbyDevice.compareRangeZones(getRangeZone(), another.getRangeZone()); in compareTo()
50 import android.media.NearbyDevice;132 private NearbyDevice mNearbyDevice1;134 private NearbyDevice mNearbyDevice2;173 private List<NearbyDevice> mNearbyDevices = new ArrayList<>();229 when(mNearbyDevice1.getRangeZone()).thenReturn(NearbyDevice.RANGE_FAR); in setUp()231 when(mNearbyDevice2.getRangeZone()).thenReturn(NearbyDevice.RANGE_CLOSE); in setUp()421 verify(mMediaDevice1).setRangeZone(NearbyDevice.RANGE_FAR); in onDeviceListUpdate_withNearbyDevices_updatesRangeInformation()422 verify(mMediaDevice2).setRangeZone(NearbyDevice.RANGE_CLOSE); in onDeviceListUpdate_withNearbyDevices_updatesRangeInformation()
35 import android.media.NearbyDevice;201 mBluetoothMediaDevice1.setRangeZone(NearbyDevice.RANGE_FAR); in compareTo_differentRange_sortWithRange()202 mBluetoothMediaDevice2.setRangeZone(NearbyDevice.RANGE_CLOSE); in compareTo_differentRange_sortWithRange()
40 import android.media.NearbyDevice;1622 private final Map<INearbyMediaDevicesUpdateCallback, Consumer<List<NearbyDevice>>>1632 Consumer<List<NearbyDevice>> callbackAsConsumer = nearbyDevices -> { in registerNearbyDevicesCallback()
49 import android.media.NearbyDevice;1229 public void onDevicesUpdated(List<NearbyDevice> nearbyDevices) throws RemoteException { in onDevicesUpdated()1231 for (NearbyDevice nearbyDevice : nearbyDevices) { in onDevicesUpdated()
7331 public final class NearbyDevice implements android.os.Parcelable {7332 ctor public NearbyDevice(@NonNull String, int);7337 …field @NonNull public static final android.os.Parcelable.Creator<android.media.NearbyDevice> CREAT…7346 …yDevicesCallback(@NonNull java.util.function.Consumer<java.util.List<android.media.NearbyDevice>>);7347 …yDevicesCallback(@NonNull java.util.function.Consumer<java.util.List<android.media.NearbyDevice>>);