Home
last modified time | relevance | path

Searched refs:mCallbacks (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSecureConversationViewController.java62 private final SecureConversationViewControllerCallbacks mCallbacks; field in SecureConversationViewController
78 mCallbacks = callbacks; in SecureConversationViewController()
103 mCallbacks.getFragment(), mCallbacks.getHandler()); in onCreateView()
107 mWebView.setWebViewClient(mCallbacks.getWebViewClient()); in onCreateView()
112 mCallbacks.getFragment().getActivity(), in onCreateView()
120 ConversationViewUtils.setTextZoom(mCallbacks.getFragment().getResources(), settings); in onCreateView()
132 mCallbacks.setupConversationHeaderView(mConversationHeaderView); in onActivityCreated()
134 final Fragment fragment = mCallbacks.getFragment(); in onActivityCreated()
138 mCallbacks.getConversationAccountController(), mCallbacks.getAddressCache()); in onActivityCreated()
139 mMessageHeaderView.setContactInfoSource(mCallbacks.getContactInfoSource()); in onActivityCreated()
[all …]
DConversationPositionTracker.java47 private final Callbacks mCallbacks; field in ConversationPositionTracker
53 mCallbacks = callbacks; in ConversationPositionTracker()
58 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); in conversationAtPosition()
69 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); in getCount()
140 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); in isDataLoaded()
168 final ConversationCursor cursor = mCallbacks.getConversationListCursor(); in calculatePosition()
DConversationListFragment.java112 private ConversationListCallbacks mCallbacks; field in ConversationListFragment
216 return mCallbacks != null && mCallbacks.setupEmptyIconView(mFolder, isEmpty); in setupEmptyIcon()
337 mCallbacks = mActivity.getListHandler(); in onActivityCreated()
724 mCallbacks.onConversationFocused(conv); in onKey()
862 mCallbacks.onConversationSelected(conv, false /* inLoaderCallbacks */); in viewConversation()
951 return mCallbacks != null ? mCallbacks.getConversationListCursor() : null; in getConversationListCursor()
1117 if (mCallbacks == null || mListAdapter == null) { in onCursorUpdated()
1122 final ConversationCursor newCursor = mCallbacks.getConversationListCursor(); in onCursorUpdated()
1152 final Conversation conv = mCallbacks.getCurrentConversation(); in onCursorUpdated()
1153 final boolean currentConvIsPeeking = mCallbacks.isCurrentConversationJustPeeking(); in onCursorUpdated()
/packages/services/Car/bluetooth/bt-map-service/src/com/google/android/auto/mapservice/
DBluetoothMapService.java130 private IBluetoothMapServiceCallbacks mCallbacks; field in BluetoothMapService
376 IBluetoothMapServiceCallbacks callbackRef = service.mCallbacks; in disconnect()
377 if (service.mCallbacks.asBinder() != callback.asBinder()) { in disconnect()
378 Log.e(TAG, "Original: " + service.mCallbacks.asBinder() + in disconnect()
402 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in enableNotifications()
426 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in pushMessage()
449 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in getMessage()
481 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in getMessagesListing()
571 mCallbacks.onEnableNotifications(); in onEnableNotifications()
580 mCallbacks.onPushMessage(handle); in onPushMessage()
[all …]
/packages/services/Telephony/src/com/android/phone/
DNetworkQueryService.java96 final RemoteCallbackList<INetworkQueryServiceCallback> mCallbacks = field in NetworkQueryService
114 synchronized (mCallbacks) {
115 mCallbacks.register(cb);
164 synchronized (mCallbacks) {
166 mCallbacks.unregister(cb);
203 synchronized (mCallbacks) { in broadcastQueryResults()
218 for (int i = (mCallbacks.beginBroadcast() - 1); i >= 0; i--) { in broadcastQueryResults()
219 INetworkQueryServiceCallback cb = mCallbacks.getBroadcastItem(i); in broadcastQueryResults()
228 mCallbacks.finishBroadcast(); in broadcastQueryResults()
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/compat/
DEmbeddedCarMenuCallbacksCompat.java34 private final CarMenuCallbacks mCallbacks; field in EmbeddedCarMenuCallbacksCompat
47 mCallbacks = callbacks; in EmbeddedCarMenuCallbacksCompat()
52 android.support.car.app.menu.RootMenu rootMenu = mCallbacks.onGetRoot(hint); in getRootMenu()
77 mCallbacks.onCarMenuOpened(); in onCarMenuOpened()
88 mCallbacks.onItemClicked(id); in onItemClicked()
94 return mCallbacks.onItemLongClicked(id); in onItemLongClicked()
157 mCallbacks.onLoadChildren(parentId, result); in loadResultsForAllClients()
173 mCallbacks.onLoadChildren(parentId, result); in loadResultsForClient()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java74 if (!mCallbacks.isEmpty()) { in bind()
76 mCallbacks.add(callback); in bind()
80 mCallbacks.add(callback); in bind()
175 private final Set<BindCallback> mCallbacks = new ArraySet<>(); field in ServiceBinder
304 for (BindCallback callback : mCallbacks) { in handleSuccessfulConnection()
307 mCallbacks.clear(); in handleSuccessfulConnection()
315 for (BindCallback callback : mCallbacks) { in handleFailedConnection()
318 mCallbacks.clear(); in handleFailedConnection()
/packages/services/Car/bluetooth/bt-map-client-lib/src/com/google/android/auto/mapservice/
DBluetoothMapManager.java77 private final ConnectionCallbacks mCallbacks; field in BluetoothMapManager
108 mCallbacks = callbacks; in BluetoothMapManager()
435 mCallbacks.onError(ERROR_CONNECT_SUSPENDED); in onServiceDisconnected()
565 mCallbacks.onConnected(); in onServiceConnected()
576 mCallbacks.onError(ERROR_CONNECT_FAILED); in onServiceConnectionFailed()
592 mCallbacks.onEnableNotifications(); in onEnableNotifications()
611 mCallbacks.onPushMessage(handle); in onPushMessage()
626 mCallbacks.onGetMessage(msg); in onGetMessage()
641 mCallbacks.onGetMessagesListing(msgsListing); in onGetMessagesListing()
650 mCallbacks.onEvent(eventReport); in onEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/text/
DChangeLabelsSpan.java15 private final ConversationViewHeaderCallbacks mCallbacks; field in ChangeLabelsSpan
18 mCallbacks = callbacks; in ChangeLabelsSpan()
23 if (mCallbacks != null) { in onClick()
24 mCallbacks.onFoldersClicked(); in onClick()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatV16.java49 private List<OnAppsChangedCallbackCompat> mCallbacks field in LauncherAppsCompatV16
101 if (callback != null && !mCallbacks.contains(callback)) { in addOnAppsChangedCallback()
102 mCallbacks.add(callback); in addOnAppsChangedCallback()
103 if (mCallbacks.size() == 1) { in addOnAppsChangedCallback()
110 mCallbacks.remove(callback); in removeOnAppsChangedCallback()
111 if (mCallbacks.size() == 0) { in removeOnAppsChangedCallback()
150 return new ArrayList<OnAppsChangedCallbackCompat>(mCallbacks); in getCallbacks()
DLauncherAppsCompatVL.java41 private Map<OnAppsChangedCallbackCompat, WrappedCallback> mCallbacks field in LauncherAppsCompatVL
84 synchronized (mCallbacks) { in addOnAppsChangedCallback()
85 mCallbacks.put(callback, wrappedCallback); in addOnAppsChangedCallback()
93 synchronized (mCallbacks) { in removeOnAppsChangedCallback()
94 wrappedCallback = mCallbacks.remove(callback); in removeOnAppsChangedCallback()
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java66 for (TvInputCallback callback : mCallbacks) {
81 for (TvInputCallback callback : mCallbacks) {
93 for (TvInputCallback callback : mCallbacks) {
103 for (TvInputCallback callback : mCallbacks) {
111 private final HashSet<TvInputCallback> mCallbacks = new HashSet<>(); field in TvInputManagerHelper
291 mCallbacks.add(callback); in addCallback()
295 mCallbacks.remove(callback); in removeCallback()
DImageLoader.java241 existingTask.mCallbacks.add(callback); in doLoadBitmap()
245 loadBitmapTask.mCallbacks.add(callback); in doLoadBitmap()
267 private final Set<ImageLoaderCallback> mCallbacks = new ArraySet<>(); field in ImageLoader.LoadBitmapTask
343 for (ImageLoader.ImageLoaderCallback callback : mCallbacks) { in onPostExecute()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationViewHeader.java72 private ConversationViewHeaderCallbacks mCallbacks; field in ConversationViewHeader
104 mCallbacks = callbacks; in setCallbacks()
114 mSubjectAndFolderView.setFolders(mCallbacks, mAccountController.getAccount(), conv); in setFolders()
157 mCallbacks.onConversationViewHeaderHeightChange(h); in onConversationUpdated()
177 frag.show(mCallbacks.getActivity().getFragmentManager(), CopySubjectDialog.TAG); in onLongClick()
DMessageHeaderView.java98 private MessageHeaderViewCallbacks mCallbacks; field in MessageHeaderView
304 mCallbacks = callbacks; in setCallbacks()
412 } else if (mCallbacks.isSecure()) { in render()
506 if (mCallbacks != null) { in updateSpacerHeight()
507 mCallbacks.setMessageSpacerHeight(mMessageHeaderItem, h); in updateSpacerHeight()
919 text + "\n\n" + mCallbacks.getMessageTransforms(mMessage)); in onClick()
923 text + "\n\n" + mCallbacks.getMessageTransforms(mMessage)); in onClick()
950 && mCallbacks.supportsMessageTransforms(); in onClick()
1022 if (mCallbacks != null) { in toggleExpanded()
1023 mCallbacks.setMessageExpanded(mMessageHeaderItem, h); in toggleExpanded()
[all …]
DConversationFooterView.java37 private ConversationFooterCallbacks mCallbacks; field in ConversationFooterView
118 mCallbacks.onConversationFooterHeightChange(h); in rebind()
138 mCallbacks = callbacks; in setConversationFooterCallbacks()
DWebViewContextMenu.java64 private Callbacks mCallbacks; field in WebViewContextMenu
113 mCallbacks = cb; in setCallbacks()
399 (mCallbacks != null) ? mCallbacks.getMessageForClickedUrl(url) : null; in setupImageMenu()
DMessageFooterView.java73 private MessageFooterCallbacks mCallbacks; field in MessageFooterView
114 mCallbacks = callbacks; in initialize()
190 if (!attachment.isInlineAttachment() || mCallbacks.isSecure()) { in renderAttachments()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java60 private ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in PaymentBackend
119 mCallbacks.add(callback); in registerCallback()
123 mCallbacks.remove(callback); in unregisterCallback()
135 for (Callback callback : mCallbacks) { in makeCallbacks()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java114 private WeakReference<Callbacks> mCallbacks; field in LauncherModel
791 mCallbacks = new WeakReference<Callbacks>(callbacks); in initialize()
871 if (mCallbacks != null) { in onReceive()
872 Callbacks callbacks = mCallbacks.get(); in onReceive()
907 if (mCallbacks != null) { in startLoaderFromBackground()
908 Callbacks callbacks = mCallbacks.get(); in startLoaderFromBackground()
946 if (mCallbacks != null && mCallbacks.get() != null) { in startLoader()
1202 if (mCallbacks == null) { in tryGetCallbacks()
1206 final Callbacks callbacks = mCallbacks.get(); in tryGetCallbacks()
1224 if (mCallbacks == null || mCallbacks.get().isAllAppsButtonRank(item.screen)) { in checkItemPlacement()
[all …]
/packages/apps/Settings/src/com/android/settings/utils/
DServiceListing.java49 private final List<Callback> mCallbacks = new ArrayList<Callback>(); field in ServiceListing
60 mCallbacks.add(callback); in addCallback()
64 mCallbacks.remove(callback); in removeCallback()
160 for (Callback callback : mCallbacks) { in reload()
/packages/apps/Terminal/src/com/android/terminal/
DTerminal.java76 private final TerminalCallbacks mCallbacks = new TerminalCallbacks() { field in Terminal
116 mNativePtr = nativeInit(mCallbacks); in Terminal()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp145 jobject mCallbacks; member in android::Terminal
270 mCallbacks(callbacks), mRows(25), mCols(80), mKilled(false), in Terminal()
273 mCallbacks = env->NewGlobalRef(callbacks); in Terminal()
299 env->DeleteGlobalRef(mCallbacks); in ~Terminal()
546 return mCallbacks; in getCallbacks()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java135 @Thunk WeakReference<Callbacks> mCallbacks; field in LauncherModel
1203 mCallbacks = new WeakReference<Callbacks>(callbacks); in initialize()
1341 return (mCallbacks != null && mCallbacks.get() == callbacks); in isCurrentCallbacks()
1359 if (mCallbacks != null && mCallbacks.get() != null) { in startLoader()
1599 if (mCallbacks == null) { in tryGetCallbacks()
1603 final Callbacks callbacks = mCallbacks.get(); in tryGetCallbacks()
1627 if (mCallbacks == null || in checkItemPlacement()
1628 mCallbacks.get().isAllAppsButtonRank((int) item.screenId)) { in checkItemPlacement()
2581 final Callbacks oldCallbacks = mCallbacks.get(); in bindWorkspace()
2759 final Callbacks oldCallbacks = mCallbacks.get();
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java198 private RemoteCallbackList<IBluetoothCallback> mCallbacks; field in AdapterService
514 mCallbacks = new RemoteCallbackList<IBluetoothCallback>(); in onCreate()
629 if (mCallbacks !=null) { in updateAdapterState()
630 int n=mCallbacks.beginBroadcast(); in updateAdapterState()
634 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState,newState); in updateAdapterState()
639 mCallbacks.finishBroadcast(); in updateAdapterState()
713 if (mCallbacks !=null) { in cleanup()
714 mCallbacks.kill(); in cleanup()
2126 mCallbacks.register(cb); in registerCallback()
2130 mCallbacks.unregister(cb); in unregisterCallback()

12