Home
last modified time | relevance | path

Searched refs:NearbyDevice (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/java/android/media/
DNearbyDevice.java43 public final class NearbyDevice implements Parcelable { class
121 public NearbyDevice(@NonNull String mediaRoute2Id, @RangeZone int rangeZone) { in NearbyDevice() method in NearbyDevice
126 private NearbyDevice(@NonNull Parcel in) { in NearbyDevice() method in NearbyDevice
132 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];
DINearbyMediaDevicesUpdateCallback.aidl19 import android.media.NearbyDevice;
42 void onDevicesUpdated(in List<NearbyDevice> nearbyDevices); in onDevicesUpdated()
DNearbyDevice.aidl19 parcelable NearbyDevice;
DINearbyMediaDevicesProvider.aidl20 import android.media.NearbyDevice;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/nearby/
DNearbyMediaDevicesManagerTest.kt7 import android.media.NearbyDevice
47 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()
/frameworks/base/core/java/android/media/
DNearbyMediaDevicesProvider.java47 void registerNearbyDevicesCallback(@NonNull Consumer<List<NearbyDevice>> callback); in registerNearbyDevicesCallback()
54 void unregisterNearbyDevicesCallback(@NonNull Consumer<List<NearbyDevice>> callback); in unregisterNearbyDevicesCallback()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDevice.java58 import android.media.NearbyDevice;
120 @NearbyDevice.RangeZone
121 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java50 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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DMediaDeviceTest.java35 import android.media.NearbyDevice;
201 mBluetoothMediaDevice1.setRangeZone(NearbyDevice.RANGE_FAR); in compareTo_differentRange_sortWithRange()
202 mBluetoothMediaDevice2.setRangeZone(NearbyDevice.RANGE_CLOSE); in compareTo_differentRange_sortWithRange()
/frameworks/base/core/java/android/app/
DStatusBarManager.java40 import android.media.NearbyDevice;
1622 private final Map<INearbyMediaDevicesUpdateCallback, Consumer<List<NearbyDevice>>>
1632 Consumer<List<NearbyDevice>> callbackAsConsumer = nearbyDevices -> { in registerNearbyDevicesCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java49 import android.media.NearbyDevice;
1229 public void onDevicesUpdated(List<NearbyDevice> nearbyDevices) throws RemoteException { in onDevicesUpdated()
1231 for (NearbyDevice nearbyDevice : nearbyDevices) { in onDevicesUpdated()
/frameworks/base/core/api/
Dsystem-current.txt7331 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>>);