Home
last modified time | relevance | path

Searched refs:asBinder (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DMbmsDownloadServiceBase.java163 callback.asBinder().linkToDeath(new DeathRecipient() { in initialize()
283 mDownloadStatusListenerBinderMap.remove(listener.asBinder()); in addStatusListener()
284 mDownloadCallbackDeathRecipients.remove(listener.asBinder()); in addStatusListener()
287 mDownloadCallbackDeathRecipients.put(listener.asBinder(), deathRecipient); in addStatusListener()
288 listener.asBinder().linkToDeath(deathRecipient, 0); in addStatusListener()
289 mDownloadStatusListenerBinderMap.put(listener.asBinder(), exposedCallback); in addStatusListener()
331 mDownloadCallbackDeathRecipients.remove(listener.asBinder()); in removeStatusListener()
336 listener.asBinder().unlinkToDeath(deathRecipient, 0); in removeStatusListener()
339 mDownloadStatusListenerBinderMap.remove(listener.asBinder()); in removeStatusListener()
396 mDownloadProgressListenerBinderMap.remove(listener.asBinder()); in addProgressListener()
[all …]
/frameworks/native/services/thermalservice/
DThermalService.cpp70 if (IInterface::asBinder(mListeners[i]) == in registerThermalEventListener()
71 IInterface::asBinder(listener)) { in registerThermalEventListener()
77 IInterface::asBinder(listener)->linkToDeath(this); in registerThermalEventListener()
94 if (IInterface::asBinder(mListeners[i]) == in unregisterThermalEventListener()
95 IInterface::asBinder(listener)) { in unregisterThermalEventListener()
96 IInterface::asBinder(mListeners[i])->unlinkToDeath(this); in unregisterThermalEventListener()
109 if (IInterface::asBinder(mListeners[i]) == who) { in binderDied()
/frameworks/base/core/java/android/os/
DMessenger.java67 return mTarget.asBinder(); in getBinder()
79 return mTarget.asBinder().equals(((Messenger)otherObj) in equals()
80 .mTarget.asBinder()); in equals()
87 return mTarget.asBinder().hashCode(); in hashCode()
95 out.writeStrongBinder(mTarget.asBinder()); in writeToParcel()
120 out.writeStrongBinder(messenger != null ? messenger.mTarget.asBinder() in writeMessengerOrNullToParcel()
DRemoteCallbackList.java74 mCallbacks.remove(mCallback.asBinder()); in binderDied()
121 IBinder binder = callback.asBinder(); in register()
152 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister()
154 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in unregister()
173 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in kill()
/frameworks/base/core/java/android/view/
DWindowId.java135 if (observer.mRegistrations.containsKey(mToken.asBinder())) { in registerFocusObserver()
139 observer.mRegistrations.put(mToken.asBinder(), this); in registerFocusObserver()
152 if (observer.mRegistrations.remove(mToken.asBinder()) == null) { in unregisterFocusObserver()
170 return mToken.asBinder().equals(((WindowId) otherObj).mToken.asBinder()); in equals()
177 return mToken.asBinder().hashCode(); in hashCode()
186 sb.append(mToken.asBinder()); in toString()
196 out.writeStrongBinder(mToken.asBinder()); in writeToParcel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataServiceManager.java165 mIDataService.asBinder().unlinkToDeath(mDeathRecipient, 0); in onServiceDisconnected()
180 Message msg = mMessageMap.remove(asBinder()); in onSetupDataCallComplete()
192 Message msg = mMessageMap.remove(asBinder()); in onDeactivateDataCallComplete()
199 Message msg = mMessageMap.remove(asBinder()); in onSetInitialAttachApnComplete()
206 Message msg = mMessageMap.remove(asBinder()); in onSetDataProfileComplete()
214 Message msg = mMessageMap.remove(asBinder()); in onGetDataCallListComplete()
375 mMessageMap.put(callback.asBinder(), onCompleteMessage); in setupDataCall()
383 mMessageMap.remove(callback.asBinder()); in setupDataCall()
413 mMessageMap.put(callback.asBinder(), onCompleteMessage); in deactivateDataCall()
420 mMessageMap.remove(callback.asBinder()); in deactivateDataCall()
[all …]
/frameworks/native/libs/binder/
DIInterface.cpp33 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder() function in android::IInterface
40 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) in asBinder() function in android::IInterface
57 *ret = android::IInterface::asBinder((android::IInterface*)self); in _ZN7android10IInterface8asBinderEv()
64 *ret = android::IInterface::asBinder((android::IInterface*)self); in _ZNK7android10IInterface8asBinderEv()
DActivityManager.cpp37 while (service == NULL || !IInterface::asBinder(service)->isBinderAlive()) { in getService()
95 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
103 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()
/frameworks/base/libs/common_time/
Dcommon_clock_service.cpp102 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) in registerListener()
109 return IInterface::asBinder(listener)->linkToDeath(this); in registerListener()
120 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) { in unregisterListener()
121 IInterface::asBinder(mListeners[i])->unlinkToDeath(this); in unregisterListener()
139 if (IInterface::asBinder(mListeners[i]) == who) { in binderDied()
/frameworks/av/media/libmedia/
DIMediaPlayerService.cpp67 data.writeStrongBinder(IInterface::asBinder(client)); in create()
102 data.writeStrongBinder(IInterface::asBinder(client)); in listenForRemoteDisplay()
130 reply->writeStrongBinder(IInterface::asBinder(player)); in onTransact()
137 reply->writeStrongBinder(IInterface::asBinder(recorder)); in onTransact()
143 reply->writeStrongBinder(IInterface::asBinder(retriever)); in onTransact()
168 reply->writeStrongBinder(IInterface::asBinder(display)); in onTransact()
174 reply->writeStrongBinder(IInterface::asBinder(mcl)); in onTransact()
DIMediaExtractorService.cpp46 data.writeStrongBinder(IInterface::asBinder(source)); in makeExtractor()
97 reply->writeStrongBinder(IInterface::asBinder(ex)); in onTransact()
108 reply->writeStrongBinder(IInterface::asBinder(source)); in onTransact()
/frameworks/base/core/java/android/speech/
DRecognitionService.java100 if (DBG) Log.d(TAG, "created new mCurrentCallback, listener = " + listener.asBinder()); in dispatchStartListening()
102 listener.asBinder().linkToDeath(new IBinder.DeathRecipient() { in dispatchStartListening()
129 } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { in dispatchStopListening()
143 } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { in dispatchCancel()
343 if (DBG) Log.d(TAG, "startListening called by:" + listener.asBinder()); in startListening()
354 if (DBG) Log.d(TAG, "stopListening called by:" + listener.asBinder()); in stopListening()
364 if (DBG) Log.d(TAG, "cancel called by:" + listener.asBinder()); in cancel()
/frameworks/base/core/java/android/content/
DIntentSender.java287 return mTarget.asBinder().equals(((IntentSender)otherObj) in equals()
288 .mTarget.asBinder()); in equals()
295 return mTarget.asBinder().hashCode(); in hashCode()
304 sb.append(mTarget != null ? mTarget.asBinder() : null); in toString()
314 out.writeStrongBinder(mTarget.asBinder()); in writeToParcel()
339 out.writeStrongBinder(sender != null ? sender.mTarget.asBinder() in writeIntentSenderOrNullToParcel()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanManager.java116 if (mBinderCache.containsKey(ifaceService.asBinder())) { in getInterfaceNoCreate()
117 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterfaceNoCreate()
131 if (mBinderCache.containsKey(ifaceService.asBinder())) { in getInterface()
132 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterface()
144 mBinderCache.put(ifaceService.asBinder(), new WeakReference(iface)); in getInterface()
151 .asBinder() in getInterface()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java116 mProjectionToken = projection.asBinder(); in startProjectionLocked()
150 final IBinder token = callback.asBinder(); in linkDeathRecipientLocked()
159 final IBinder token = callback.asBinder(); in unlinkDeathRecipientLocked()
250 projection.asBinder()); in isValidMediaProjection()
398 if (isValidMediaProjection(asBinder())) { in start()
405 mToken = callback.asBinder(); in start()
426 if (!isValidMediaProjection(asBinder())) { in stop()
501 mClientCallbacks.put(callback.asBinder(), callback); in add()
507 mWatcherCallbacks.put(callback.asBinder(), callback); in add()
513 mClientCallbacks.remove(callback.asBinder()); in remove()
[all …]
/frameworks/native/libs/vr/libvr_manager/
Dvr_manager.cpp100 data.writeStrongBinder(IInterface::asBinder(cb)); in registerListener()
107 data.writeStrongBinder(IInterface::asBinder(cb)); in unregisterListener()
115 data.writeStrongBinder(IInterface::asBinder(cb)); in registerPersistentVrStateListener()
123 data.writeStrongBinder(IInterface::asBinder(cb)); in unregisterPersistentVrStateListener()
/frameworks/av/soundtrigger/
DISoundTriggerClient.cpp47 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onRecognitionEvent()
57 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onSoundModelEvent()
66 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onServiceStateChange()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DUiAutomationManager.java109 mUiAutomationService.mServiceInterface.asBinder().linkToDeath(mUiAutomationService, 0); in registerUiTestAutomationServiceLocked()
123 || (serviceClient.asBinder() in unregisterUiTestAutomationServiceLocked()
124 != mUiAutomationService.mServiceInterface.asBinder())) { in unregisterUiTestAutomationServiceLocked()
179 mUiAutomationService.mServiceInterface.asBinder().unlinkToDeath(mUiAutomationService, 0); in destroyUiAutomationService()
212 mService = (serviceInterface == null) ? null : mServiceInterface.asBinder(); in connectServiceUnknownThread()
/frameworks/base/telecomm/java/android/telecom/
DConnectionServiceAdapter.java52 if (it.asBinder() == adapter.asBinder()) { in addAdapter()
59 adapter.asBinder().linkToDeath(this, 0); in addAdapter()
69 if (it.asBinder() == adapter.asBinder() && mAdapters.remove(it)) { in removeAdapter()
70 adapter.asBinder().unlinkToDeath(this, 0); in removeAdapter()
83 if (!adapter.asBinder().isBinderAlive()) { in binderDied()
85 adapter.asBinder().unlinkToDeath(this, 0); in binderDied()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareImpl.java602 IBinder callbackBinder = callback.asBinder();
609 if (mGeofences.valueAt(i).asBinder() == callbackBinder) {
622 reaper.mCallback.asBinder() == callbackBinder) {
773 IBinder b = callback.asBinder();
786 IBinder b = monitorCallback.asBinder();
873 result = 31 * result + (mCallback != null ? mCallback.asBinder().hashCode() : 0); in hashCode()
875 ? mMonitorCallback.asBinder().hashCode() : 0); in hashCode()
899 return right == null ? false : left.asBinder() == right.asBinder(); in binderEquals()
908 return mMonitorCallback.asBinder().unlinkToDeath(this, 0); in unlinkToDeath()
910 return mCallback.asBinder().unlinkToDeath(this, 0); in unlinkToDeath()
[all …]
/frameworks/base/services/core/java/com/android/server/
DCountryDetectorService.java57 mKey = listener.asBinder(); in Receiver()
128 removeListener(listener.asBinder()); in removeCountryListener()
135 listener.asBinder().linkToDeath(r, 0); in addListener()
136 mReceivers.put(listener.asBinder(), r); in addListener()
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java129 mConnections.remove(callbacks.asBinder()); in binderDied()
216 final IBinder b = callbacks.asBinder(); in connect()
265 final IBinder b = callbacks.asBinder(); in disconnect()
271 old.callbacks.asBinder().unlinkToDeath(old, 0); in disconnect()
288 final IBinder b = callbacks.asBinder(); in addSubscription()
314 final IBinder b = callbacks.asBinder(); in removeSubscription()
336 final IBinder b = callbacks.asBinder(); in getMediaItem()
545 mCurConnection.callbacks.asBinder()); in getCurrentBrowserInfo()
676 if (mConnections.get(connection.callbacks.asBinder()) != connection) { in performLoadChildren()
740 if (mConnections.get(connection.callbacks.asBinder()) != connection) { in performLoadItem()
/frameworks/native/libs/gui/
DSurfaceControl.cpp134 return parcel->writeStrongBinder(IInterface::asBinder(bp)); in writeSurfaceToParcel()
174 parcel->writeStrongBinder(ISurfaceComposerClient::asBinder(mClient->getClient())); in writeToParcel()
176 parcel->writeStrongBinder(IGraphicBufferProducer::asBinder(mGraphicBufferProducer)); in writeToParcel()
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/
DCustomTabsSessionToken.java57 public IBinder asBinder() { in asBinder() method in CustomTabsSessionToken.MockCallback
142 return mCallbackBinder.asBinder(); in getCallbackBinder()
154 return token.getCallbackBinder().equals(mCallbackBinder.asBinder()); in equals()
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java410 if (pcb.asBinder().equals(ff.asBinder())) { in addFocusFollower()
430 if (pcb.asBinder().equals(ff.asBinder())) { in removeFocusFollower()
484 + pcb2.asBinder(), e); in notifyExtPolicyCurrentFocusAsync()
502 + pcb.asBinder(), e); in notifyExtPolicyFocusGrant_syncAf()
517 + pcb.asBinder(), e); in notifyExtPolicyFocusLoss_syncAf()
560 + mFocusPolicy.asBinder(), e); in notifyExtFocusPolicyFocusRequest_syncAf()
596 + mFocusPolicy.asBinder(), e); in notifyExtFocusPolicyFocusAbandon_syncAf()

12345678910>>...15