Home
last modified time | relevance | path

Searched refs:mMediaBrowser (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
DMediaBrowserCompatTest.java123 private MediaBrowserCompat mMediaBrowser; field in MediaBrowserCompatTest
151 mMediaBrowser = new MediaBrowserCompat(getInstrumentation().getTargetContext(), in setUp()
159 if (mMediaBrowser != null && mMediaBrowser.isConnected()) { in tearDown()
160 mMediaBrowser.disconnect(); in tearDown()
182 assertFalse(mMediaBrowser.isConnected()); in testMediaBrowser()
185 assertTrue(mMediaBrowser.isConnected()); in testMediaBrowser()
187 assertEquals(TEST_BROWSER_SERVICE, mMediaBrowser.getServiceComponent()); in testMediaBrowser()
188 assertEquals(MEDIA_ID_ROOT, mMediaBrowser.getRoot()); in testMediaBrowser()
189 assertEquals(EXTRAS_VALUE, mMediaBrowser.getExtras().getString(EXTRAS_KEY)); in testMediaBrowser()
191 mMediaBrowser.disconnect(); in testMediaBrowser()
[all …]
DMediaControllerCompatCallbackTest.java120 private MediaBrowserCompat mMediaBrowser; field in MediaControllerCompatCallbackTest
136 mMediaBrowser = new MediaBrowserCompat(getInstrumentation().getTargetContext(), in setUp()
142 mMediaBrowser.connect(); in setUp()
144 if (!mMediaBrowser.isConnected()) { in setUp()
148 mSessionToken = mMediaBrowser.getSessionToken(); in setUp()
155 if (mMediaBrowser != null && mMediaBrowser.isConnected()) { in tearDown()
156 mMediaBrowser.disconnect(); in tearDown()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
DMediaBrowserCompatTest.java130 private MediaBrowserCompat mMediaBrowser; field in MediaBrowserCompatTest
158 mMediaBrowser = new MediaBrowserCompat(getInstrumentation().getTargetContext(), in setUp()
166 if (mMediaBrowser != null && mMediaBrowser.isConnected()) { in tearDown()
167 mMediaBrowser.disconnect(); in tearDown()
189 assertFalse(mMediaBrowser.isConnected()); in testMediaBrowser()
192 assertTrue(mMediaBrowser.isConnected()); in testMediaBrowser()
194 assertEquals(TEST_BROWSER_SERVICE, mMediaBrowser.getServiceComponent()); in testMediaBrowser()
195 assertEquals(MEDIA_ID_ROOT, mMediaBrowser.getRoot()); in testMediaBrowser()
196 assertEquals(EXTRAS_VALUE, mMediaBrowser.getExtras().getString(EXTRAS_KEY)); in testMediaBrowser()
198 mMediaBrowser.disconnect(); in testMediaBrowser()
[all …]
DMediaControllerCompatCallbackTest.java121 private MediaBrowserCompat mMediaBrowser; field in MediaControllerCompatCallbackTest
137 mMediaBrowser = new MediaBrowserCompat(getInstrumentation().getTargetContext(), in setUp()
143 mMediaBrowser.connect(); in setUp()
145 if (!mMediaBrowser.isConnected()) { in setUp()
149 mSessionToken = mMediaBrowser.getSessionToken(); in setUp()
156 if (mMediaBrowser != null && mMediaBrowser.isConnected()) { in tearDown()
157 mMediaBrowser.disconnect(); in tearDown()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DQueueFragment.java52 private MediaBrowserCompat mMediaBrowser; field in QueueFragment
63 Log.d(TAG, "onConnected: session token " + mMediaBrowser.getSessionToken());
65 if (mMediaBrowser.getSessionToken() == null) {
71 mMediaBrowser.getSessionToken());
171 mMediaBrowser = new MediaBrowserCompat(getActivity(), in onCreateView()
181 if (mMediaBrowser != null) { in onResume()
182 mMediaBrowser.connect(); in onResume()
192 if (mMediaBrowser != null) { in onPause()
193 mMediaBrowser.disconnect(); in onPause()
DBrowseFragment.java73 private MediaBrowserCompat mMediaBrowser; field in BrowseFragment
137 Log.d(TAG, "onConnected: session token " + mMediaBrowser.getSessionToken());
139 if (mMediaBrowser.getSessionToken() == null) {
145 mMediaBrowser.getSessionToken());
152 mMediaId = mMediaBrowser.getRoot();
208 mMediaBrowser = new MediaBrowserCompat(getActivity(), in onCreateView()
234 mMediaBrowser.connect(); in onStart()
240 mMediaBrowser.disconnect(); in onStop()
253 mMediaBrowser.subscribe(mMediaId, options, mSubscriptionCallback); in loadPage()
/frameworks/support/media/src/main/java/androidx/media/session/
DMediaButtonReceiver.java141 private MediaBrowserCompat mMediaBrowser; field in MediaButtonReceiver.MediaButtonConnectionCallback
150 mMediaBrowser = mediaBrowser; in setMediaBrowser()
157 mMediaBrowser.getSessionToken()); in onConnected()
177 mMediaBrowser.disconnect(); in finish()
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java1079 private WeakReference<MediaBrowser> mMediaBrowser; field in MediaBrowser.ServiceCallbacks
1082 mMediaBrowser = new WeakReference<MediaBrowser>(mediaBrowser); in ServiceCallbacks()
1092 MediaBrowser mediaBrowser = mMediaBrowser.get(); in onConnect()
1103 MediaBrowser mediaBrowser = mMediaBrowser.get(); in onConnectFailed()
1117 MediaBrowser mediaBrowser = mMediaBrowser.get(); in onLoadChildrenWithOptions()