Home
last modified time | relevance | path

Searched refs:mCallback (Results 1 – 17 of 17) sorted by relevance

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java67 private Callback mCallback; field in Playback
110 if (notifyListeners && mCallback != null) { in stop()
111 mCallback.onPlaybackStatusChanged(mState); in stop()
186 if (mCallback != null) { in play()
187 mCallback.onPlaybackStatusChanged(mState); in play()
192 if (mCallback != null) { in play()
193 mCallback.onError(ex.getMessage()); in play()
211 if (mCallback != null) { in pause()
212 mCallback.onPlaybackStatusChanged(mState); in pause()
228 if (mCallback != null) { in seekTo()
[all …]
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DRemotePlayer.java62 if (mCallback != null) {
65 mCallback.onCompletion();
68 mCallback.onError();
77 if (mCallback != null) {
78 mCallback.onPlaylistChanged();
144 if (mCallback != null) { in play()
145 mCallback.onPlaylistChanged(); in play()
186 if (update && mCallback != null) { in getStatus()
187 mCallback.onPlaylistReady(); in getStatus()
194 if (update && mCallback != null) { in getStatus()
[all …]
DSessionManager.java48 private Callback mCallback; field in SessionManager
291 if (mCallback != null) { in onPlaylistReady()
292 mCallback.onStatusChanged(); in onPlaylistReady()
341 if (mCallback != null) { in updatePlaybackState()
342 mCallback.onItemChanged(item); in updatePlaybackState()
364 if (mCallback != null) { in removeItem()
365 mCallback.onItemChanged(found); in removeItem()
399 mCallback = callback; in setCallback()
DPlayer.java29 protected Callback mCallback; field in Player
58 mCallback = callback; in setCallback()
DLocalPlayer.java162 if (update && mCallback != null) { in getStatus()
163 mCallback.onPlaylistReady(); in getStatus()
235 if (mCallback != null) { in onPrepared()
236 mCallback.onPlaylistChanged(); in onPrepared()
250 if (mCallback != null) { in onCompletion()
251 mCallback.onCompletion(); in onCompletion()
265 if (mCallback != null) { in onError()
266 mCallback.onError(); in onError()
283 if (mCallback != null) { in onSeekComplete()
284 mCallback.onPlaylistChanged(); in onSeekComplete()
DMainActivity.java605 private Callback mCallback; field in MainActivity.DiscoveryFragment
608 mCallback = null; in DiscoveryFragment()
612 mCallback = cb; in DiscoveryFragment()
616 mCallback = cb; in setCallback()
621 return mCallback; in onCreateCallback()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DCompatTabHoneycomb.java35 CompatTabListener mCallback; field in CompatTabHoneycomb
57 mCallback = callback; in setTabListener()
79 return mCallback; in getCallback()
86 mCallback.onTabReselected(this, ft); in onTabReselected()
94 mCallback.onTabSelected(this, ft); in onTabSelected()
102 mCallback.onTabUnselected(this, ft); in onTabUnselected()
DCompatTabEclair.java27 private CompatTabListener mCallback; field in CompatTabEclair
50 mCallback = callback; in setTabListener()
82 return mCallback; in getCallback()
DTabHelperEclair.java46 CompatTabListener mCallback; field in TabHelperEclair
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DNetworkFragment.java45 private DownloadCallback mCallback; field in NetworkFragment
83 mCallback = (DownloadCallback)context; in onAttach()
90 mCallback = null; in onDetach()
146 if (mCallback != null) { in onPreExecute()
147 NetworkInfo networkInfo = mCallback.getActiveNetworkInfo(); in onPreExecute()
152 mCallback.updateFromDownload(null); in onPreExecute()
188 mCallback.onProgressUpdate(values[0], values[1]); in onProgressUpdate()
197 if (result != null && mCallback != null) { in onPostExecute()
199 mCallback.updateFromDownload(result.mException.getMessage()); in onPostExecute()
201 mCallback.updateFromDownload(result.mResultValue); in onPostExecute()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DKubeRenderer.java36 mCallback = callback; in KubeRenderer()
40 if (mCallback != null) { in onDrawFrame()
41 mCallback.animate(); in onDrawFrame()
112 private AnimationCallback mCallback; field in KubeRenderer
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/
DHeadlinesFragment.java26 OnHeadlineSelectedListener mCallback; field in HeadlinesFragment
64 mCallback = (OnHeadlineSelectedListener) activity; in onAttach()
74 mCallback.onArticleSelected(position); in onListItemClick()
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DFingerprintUiHelper.java35 private final Callback mCallback; field in FingerprintUiHelper
48 mCallback = callback; in FingerprintUiHelper()
86 mCallback.onError(); in onAuthenticationError()
114 mCallback.onAuthenticated(); in onAuthenticationSucceeded()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintUiHelper.java43 private final Callback mCallback; field in FingerprintUiHelper
75 mCallback = callback; in FingerprintUiHelper()
109 mCallback.onError(); in onAuthenticationError()
137 mCallback.onAuthenticated(); in onAuthenticationSucceeded()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceUtil.java184 private final FetchConfigDataMapCallback mCallback; field in DigitalWatchFaceUtil.DataItemResultCallback
187 mCallback = callback; in DataItemResultCallback()
197 mCallback.onConfigDataMapFetched(config); in onResult()
199 mCallback.onConfigDataMapFetched(new DataMap()); in onResult()
/development/apps/Development/src/com/android/development/
DConnectivity.java301 private DevToolsNetworkCallback mCallback; field in Connectivity
306 private NetworkCallback mCallback; field in Connectivity.RequestableNetwork
341 if (mCallback == null) { in request()
342 mCallback = new NetworkCallback() { in request()
355 mCm.requestNetwork(mRequest, mCallback); in request()
361 if (mCallback != null) { in release()
364 mCm.unregisterNetworkCallback(mCallback); in release()
365 mCallback = null; in release()
491 mCallback = new DevToolsNetworkCallback(); in onCreate()
492 mCm.registerNetworkCallback(mEmptyRequest, mCallback); in onCreate()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DRemoteService.java321 mService.registerCallback(mCallback);
388 mService.unregisterCallback(mCallback);
443 private IRemoteServiceCallback mCallback = new IRemoteServiceCallback.Stub() { field in RemoteService.Binding