Home
last modified time | relevance | path

Searched refs:ConnectionCallback (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DBrowserPlayerWrapperTest.java46 @Captor ArgumentCaptor<MediaBrowser.ConnectionCallback> mBrowserConnCb;
52 @Mock BrowsedPlayerWrapper.ConnectionCallback mConnCb;
77 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testWrap()
90 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testConnect_Successful()
104 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testConnect_Suspended()
121 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testConnect_Failed()
138 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testEmptyRoot()
153 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testDisconnect()
164 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testGetRootId()
176 MediaBrowser.ConnectionCallback browserConnCb = mBrowserConnCb.getValue(); in testPlayItem()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaBrowser.java47 ConnectionCallback callback, Bundle rootHints) { in MediaBrowser()
55 public abstract static class ConnectionCallback extends class in MediaBrowser
56 android.media.browse.MediaBrowser.ConnectionCallback {}
161 ConnectionCallback callback, Bundle rootHints) { in testInit()
DMediaBrowserFactory.java40 MediaBrowser.ConnectionCallback callback, Bundle rootHints) { in make()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedPlayerWrapper.java50 interface ConnectionCallback { interface in BrowsedPlayerWrapper
75 private ConnectionCallback mCallback;
137 boolean connect(ConnectionCallback cb) { in connect()
160 boolean setCallbackAndConnect(ConnectionCallback callback) { in setCallbackAndConnect()
174 final ConnectionCallback callback; in executeCallback()
268 class MediaConnectionCallback extends MediaBrowser.ConnectionCallback {
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java27 import com.android.car.connecteddevice.ConnectedDeviceManager.ConnectionCallback;
50 private final ConcurrentHashMap<IBinder, ConnectionCallback> mConnectionCallbacks =
83 ConnectionCallback connectionCallback = new ConnectionCallback() { in registerActiveUserConnectionCallback()
119 ConnectionCallback connectionCallback = mConnectionCallbacks.get(binder); in unregisterConnectionCallback()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaBrowserConnectorTest.java71 private MediaBrowserCompat.ConnectionCallback mConnectionCallback;
91 @NonNull MediaBrowserCompat.ConnectionCallback callback) { in setUp()
144 MediaBrowserCompat.ConnectionCallback cb1 = mConnectionCallback; in testConnectionCallback_onConnectedIgnoredWhenLate()
147 MediaBrowserCompat.ConnectionCallback cb2 = mConnectionCallback; in testConnectionCallback_onConnectedIgnoredWhenLate()
DMediaSourceViewModelTest.java101 MediaBrowserCompat.ConnectionCallback callback) { in initializeViewModel()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java38 import com.android.car.connecteddevice.ConnectedDeviceManager.ConnectionCallback;
222 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
239 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in connectionCallback_onDeviceConnectedNotInvokedDeviceConnectedForDifferentUser()
255 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in connectionCallback_onDeviceConnectedNotInvokedForDifferentBleManager()
267 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in connectionCallback_onDeviceDisconnectedInvokedForActiveUserDevice()
284 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in connectionCallback_onDeviceDisconnectedNotInvokedDeviceForDifferentUser()
295 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in unregisterConnectionCallback_removesCallbackAndNotInvoked()
521 ConnectionCallback connectionCallback = createConnectionCallback(semaphore); in onAssociationCompleted_disconnectsOriginalDeviceAndReconnectsAsActiveUser()
719 private ConnectionCallback createConnectionCallback(@NonNull final Semaphore semaphore) { in createConnectionCallback()
720 return spy(new ConnectionCallback() { in createConnectionCallback()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DLocalFeature.java19 import static com.android.car.connecteddevice.ConnectedDeviceManager.ConnectionCallback;
177 private final ConnectionCallback mConnectionCallback = new ConnectionCallback() {
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/
DConnectedDeviceManager.java89 private final ThreadSafeCallbacks<ConnectionCallback> mActiveUserConnectionCallbacks =
92 private final ThreadSafeCallbacks<ConnectionCallback> mAllUserConnectionCallbacks =
266 public void registerActiveUserConnectionCallback(@NonNull ConnectionCallback callback, in registerActiveUserConnectionCallback()
276 public void unregisterConnectionCallback(ConnectionCallback callback) { in unregisterConnectionCallback()
758 @NonNull Consumer<ConnectionCallback> notification) { in invokeConnectionCallbacks()
888 public interface ConnectionCallback {
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/phone/
DTmaLauncherActivity.java48 private final MediaBrowserCompat.ConnectionCallback mConnectionCallbacks =
49 new MediaBrowserCompat.ConnectionCallback() {
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaBrowserConnector.java70 private class BrowserConnectionCallback extends MediaBrowserCompat.ConnectionCallback {
148 @NonNull MediaBrowserCompat.ConnectionCallback callback) { in createMediaBrowser()
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinderTest.java96 any(ConnectionCallback.class), any(Executor.class)); in registerActiveUserConnectionCallback_mirrorsConnectedDeviceManager()
105 any(ConnectionCallback.class)); in unregisterConnectionCallback_mirrorsConnectedDeviceManager()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/internal/association/
DAssociationBinder.java67 private ConnectedDeviceManager.ConnectionCallback mConnectionCallback;
189 mConnectionCallback = new ConnectedDeviceManager.ConnectionCallback() { in setConnectionCallback()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/howitzer/
DConnectionHowitzer.java26 import com.android.car.connecteddevice.ConnectedDeviceManager.ConnectionCallback;