Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/services/core/java/com/android/server/security/rkp/
DRemoteProvisioningRegistration.java58 mGetKeyOperations.remove(mCallback.asBinder()); in onResult()
59 Log.i(TAG, "Successfully fetched key for client " + mCallback.asBinder().hashCode()); in onResult()
69 mGetKeyOperations.remove(mCallback.asBinder()); in onError()
71 Log.i(TAG, "Operation cancelled for client " + mCallback.asBinder().hashCode()); in onError()
74 Log.e(TAG, "RKP error fetching key for client " + mCallback.asBinder().hashCode() in onError()
82 "Unknown error fetching key for client " + mCallback.asBinder().hashCode() in onError()
114 if (mGetKeyOperations.putIfAbsent(callback.asBinder(), cancellationSignal) != null) { in getKey()
116 "Client can only request one call at a time " + callback.asBinder().hashCode()); in getKey()
119 + callback.asBinder().hashCode()); in getKey()
123 Log.i(TAG, "Fetching key " + keyId + " for client " + callback.asBinder().hashCode()); in getKey()
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DMbmsDownloadServiceBase.java161 callback.asBinder().linkToDeath(new DeathRecipient() { in initialize()
304 mDownloadStatusListenerBinderMap.remove(listener.asBinder()); in addStatusListener()
305 mDownloadCallbackDeathRecipients.remove(listener.asBinder()); in addStatusListener()
308 mDownloadCallbackDeathRecipients.put(listener.asBinder(), deathRecipient); in addStatusListener()
309 listener.asBinder().linkToDeath(deathRecipient, 0); in addStatusListener()
310 mDownloadStatusListenerBinderMap.put(listener.asBinder(), exposedCallback); in addStatusListener()
352 mDownloadCallbackDeathRecipients.remove(listener.asBinder()); in removeStatusListener()
357 listener.asBinder().unlinkToDeath(deathRecipient, 0); in removeStatusListener()
360 mDownloadStatusListenerBinderMap.remove(listener.asBinder()); in removeStatusListener()
417 mDownloadProgressListenerBinderMap.remove(listener.asBinder()); in addProgressListener()
[all …]
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningRegistrationTest.java107 doReturn(new Binder()).when(callback).asBinder(); in getKeySuccess()
110 verify(callback, atLeastOnce()).asBinder(); in getKeySuccess()
122 doReturn(new Binder()).when(callback).asBinder(); in getKeyHandlesArbitraryException()
125 verify(callback, atLeastOnce()).asBinder(); in getKeyHandlesArbitraryException()
150 doReturn(new Binder()).when(callback).asBinder(); in getKeyMapsRkpErrorsCorrectly()
153 verify(callback, atLeastOnce()).asBinder(); in getKeyMapsRkpErrorsCorrectly()
162 doReturn(theBinder).when(callback).asBinder(); in getKeyCancelDuringProxyOperation()
168 doReturn(theBinder).when(differentCallback).asBinder(); in getKeyCancelDuringProxyOperation()
170 verify(differentCallback, atLeastOnce()).asBinder(); in getKeyCancelDuringProxyOperation()
179 verify(callback, atLeastOnce()).asBinder(); in getKeyCancelDuringProxyOperation()
[all …]
/frameworks/base/core/java/android/window/
DWindowContainerToken.java46 public IBinder asBinder() { in asBinder() method in WindowContainerToken
47 return mRealToken.asBinder(); in asBinder()
52 dest.writeStrongBinder(mRealToken.asBinder()); in writeToParcel()
76 return mRealToken.asBinder().hashCode(); in hashCode()
89 return mRealToken.asBinder() == ((WindowContainerToken) obj).asBinder(); in equals()
DTaskFragmentOrganizerToken.java43 public IBinder asBinder() { in asBinder() method in TaskFragmentOrganizerToken
44 return mRealToken.asBinder(); in asBinder()
82 return mRealToken.asBinder().hashCode(); in hashCode()
95 return mRealToken.asBinder() == ((TaskFragmentOrganizerToken) obj).asBinder(); in equals()
DWindowContainerTransaction.java109 Change chg = getOrCreateChange(container.asBinder()); in setBounds()
124 Change chg = getOrCreateChange(container.asBinder()); in setAppBounds()
140 Change chg = getOrCreateChange(container.asBinder()); in setScreenSizeDp()
154 Change chg = getOrCreateChange(container.asBinder()); in setDensityDpi()
167 Change chg = getOrCreateChange(container.asBinder()); in scheduleFinishEnterPip()
188 Change chg = getOrCreateChange(container.asBinder()); in setBoundsChangeTransaction()
215 Change chg = getOrCreateChange(task.asBinder()); in setBoundsChangeTransaction()
235 Change chg = getOrCreateChange(container.asBinder()); in setActivityWindowingMode()
246 Change chg = getOrCreateChange(container.asBinder()); in setWindowingMode()
259 Change chg = getOrCreateChange(container.asBinder()); in setFocusable()
[all …]
/frameworks/native/services/surfaceflinger/
DWindowInfosListenerInvoker.cpp46 sp<IBinder> asBinder = IInterface::asBinder(listener); in addWindowInfosListener() local
47 asBinder->linkToDeath(sp<DeathRecipient>::fromExisting(this)); in addWindowInfosListener()
48 mWindowInfosListeners.try_emplace(asBinder, in addWindowInfosListener()
57 sp<IBinder> asBinder = IInterface::asBinder(listener); in removeWindowInfosListener() local
58 asBinder->unlinkToDeath(sp<DeathRecipient>::fromExisting(this)); in removeWindowInfosListener()
59 eraseListenerAndAckMessages(asBinder); in removeWindowInfosListener()
190 sp<IBinder> asBinder = IInterface::asBinder(reportedListener); in ackWindowInfosReceived() local
191 if (asBinder->isBinderAlive()) { in ackWindowInfosReceived()
DTunnelModeEnabledReporter.cpp61 sp<IBinder> asBinder = IInterface::asBinder(listener); in addListener() local
62 asBinder->linkToDeath(sp<DeathRecipient>::fromExisting(this)); in addListener()
66 mListeners.emplace(wp<IBinder>(asBinder), listener); in addListener()
75 mListeners.erase(wp<IBinder>(IInterface::asBinder(listener))); in removeListener()
DHdrLayerInfoReporter.cpp62 sp<IBinder> asBinder = IInterface::asBinder(listener); in addListener() local
63 asBinder->linkToDeath(sp<DeathRecipient>::fromExisting(this)); in addListener()
65 mListeners.emplace(wp<IBinder>(asBinder), TrackedListener{listener, HdrLayerInfo{}}); in addListener()
70 mListeners.erase(wp<IBinder>(IInterface::asBinder(listener))); in removeListener()
DFpsReporter.cpp103 sp<IBinder> asBinder = IInterface::asBinder(listener); in addListener() local
104 asBinder->linkToDeath(sp<DeathRecipient>::fromExisting(this)); in addListener()
106 mListeners.emplace(wp<IBinder>(asBinder), TrackedListener{listener, taskId}); in addListener()
111 mListeners.erase(wp<IBinder>(IInterface::asBinder(listener))); in removeListener()
/frameworks/base/core/java/android/os/
DMessenger.java69 return mTarget.asBinder(); in getBinder()
81 return mTarget.asBinder().equals(((Messenger)otherObj) in equals()
82 .mTarget.asBinder()); in equals()
89 return mTarget.asBinder().hashCode(); in hashCode()
97 out.writeStrongBinder(mTarget.asBinder()); in writeToParcel()
122 out.writeStrongBinder(messenger != null ? messenger.mTarget.asBinder() in writeMessengerOrNullToParcel()
/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/base/media/java/android/media/soundtrigger/
DSoundTriggerInstrumentation.java195 mModelSessionMap.remove(mInjectModelEvent.asBinder()); in triggerUnloadModel()
354 mRecognitionSessionMap.remove(mInjectRecognitionEvent.asBinder()); in triggerRecognitionEvent()
373 mRecognitionSessionMap.remove(mInjectRecognitionEvent.asBinder()); in triggerAbortRecognition()
463 if (globalSession.asBinder() != mInjectGlobalEvent.asBinder()) return; in onSoundModelLoaded()
465 mModelSessionMap.put(modelInjection.asBinder(), modelSession); in onSoundModelLoaded()
473 ModelSession clientModelSession = mModelSessionMap.remove(modelSession.asBinder()); in onSoundModelUnloaded()
483 ModelSession clientModelSession = mModelSessionMap.get(modelSession.asBinder()); in onRecognitionStarted()
487 mRecognitionSessionMap.put(recognitionInjection.asBinder(), recogSession); in onRecognitionStarted()
497 mRecognitionSessionMap.remove(recognitionSession.asBinder()); in onRecognitionStopped()
507 ModelSession clientModelSession = mModelSessionMap.get(modelSession.asBinder()); in onParamSet()
[all …]
/frameworks/av/media/libaudioclient/aidl/fuzzer/
Daudioflinger_aidl_fuzzer.cpp57 CHECK_EQ(NO_ERROR, AServiceManager_addService(configService.get()->asBinder().get(), in LLVMFuzzerInitialize()
62 AServiceManager_addService(factoryService.get()->asBinder().get(), in LLVMFuzzerInitialize()
66 CHECK_EQ(NO_ERROR, AServiceManager_addService(moduleService.get()->asBinder().get(), in LLVMFuzzerInitialize()
91 IInterface::asBinder(gAudioFlingerServerAdapter), in LLVMFuzzerTestOneInput()
102 fuzzService(media::IAudioFlingerService::asBinder(gAudioFlingerServerAdapter), std::move(fdp)); in LLVMFuzzerTestOneInput()
/frameworks/av/services/audiopolicy/fuzzer/aidl/
Daudiopolicy_aidl_fuzzer.cpp59 CHECK_EQ(NO_ERROR, AServiceManager_addService(configService.get()->asBinder().get(), in LLVMFuzzerInitialize()
64 AServiceManager_addService(factoryService.get()->asBinder().get(), in LLVMFuzzerInitialize()
68 CHECK_EQ(NO_ERROR, AServiceManager_addService(moduleService.get()->asBinder().get(), in LLVMFuzzerInitialize()
93 IInterface::asBinder(audioFlingerServerAdapter), in LLVMFuzzerTestOneInput()
104 fuzzService(media::IAudioPolicyService::asBinder(gAudioPolicyService), std::move(fdp)); in LLVMFuzzerTestOneInput()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataServiceManager.java250 Message msg = mMessageMap.remove(asBinder()); in onSetupDataCallComplete()
262 Message msg = mMessageMap.remove(asBinder()); in onDeactivateDataCallComplete()
269 Message msg = mMessageMap.remove(asBinder()); in onSetInitialAttachApnComplete()
276 Message msg = mMessageMap.remove(asBinder()); in onSetDataProfileComplete()
287 Message msg = mMessageMap.remove(asBinder()); in onRequestDataCallListComplete()
325 Message msg = mMessageMap.remove(asBinder()); in onHandoverStarted()
332 Message msg = mMessageMap.remove(asBinder()); in onHandoverCancelled()
417 if (mIDataService != null && mIDataService.asBinder().isBinderAlive()) { in unbindDataService()
649 mMessageMap.put(callback.asBinder(), onCompleteMessage); in setupDataCall()
657 mMessageMap.remove(callback.asBinder()); in setupDataCall()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DOneShotRemoteHandler.java74 if (mRemote.asBinder() != null) { in startAnimation()
75 mRemote.asBinder().linkToDeath(remoteDied, 0 /* flags */); in startAnimation()
88 if (mRemote.asBinder() != null) { in startAnimation()
89 mRemote.asBinder().unlinkToDeath(remoteDied, 0 /* flags */); in startAnimation()
151 if (mRemote.asBinder() != null) { in takeOverAnimation()
152 mRemote.asBinder().linkToDeath(remoteDied, 0 /* flags */); in takeOverAnimation()
169 if (mRemote.asBinder() != null) { in takeOverAnimation()
170 mRemote.asBinder().unlinkToDeath(remoteDied, 0 /* flags */); in takeOverAnimation()
223 if (mRemote.asBinder() != null) { in createFinishedCallback()
224 mRemote.asBinder().unlinkToDeath(remoteDied, 0 /* flags */); in createFinishedCallback()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DClientController.java64 removeClientAsBinder(clientInvoker.asBinder()); in addClient()
79 clientInvoker.asBinder().linkToDeath(deathRecipient, 0 /* flags */); in addClient()
95 mClients.put(clientInvoker.asBinder(), cs); in addClient()
102 return removeClientAsBinder(client.asBinder()); in removeClient()
139 final ClientState cs = mClients.get(client.asBinder()); in verifyClientAndPackageMatch()
141 throw new IllegalArgumentException("unknown client " + client.asBinder()); in verifyClientAndPackageMatch()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaOrganizerController.java70 IBinder organizerBinder = featureOrganizer.asBinder(); in binderDied()
71 if (!organizerBinder.equals(mOrganizer.asBinder()) && in binderDied()
90 organizer.asBinder().linkToDeath(mDeathRecipient, 0); in DisplayAreaOrganizerState()
97 IBinder organizerBinder = mOrganizer.asBinder(); in destroy()
99 if (da.mOrganizer != null && da.mOrganizer.asBinder().equals(organizerBinder)) { in destroy()
136 organizer.asBinder(), uid); in registerOrganizer()
175 organizer.asBinder(), uid); in unregisterOrganizer()
177 final boolean matches = entry.getValue().mOrganizer.asBinder() in unregisterOrganizer()
178 .equals(organizer.asBinder()); in unregisterOrganizer()
259 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in deleteTaskDisplayArea()
[all …]
DShellRoot.java60 client.asBinder().linkToDeath(mDeathRecipient, 0); in ShellRoot()
78 mToken = new WindowToken.Builder(dc.mWmService, client.asBinder(), mWindowType) in ShellRoot()
97 mClient.asBinder().unlinkToDeath(mDeathRecipient, 0); in clear()
141 return mAccessibilityWindow.asBinder(); in getAccessibilityWindowToken()
148 mAccessibilityWindow.asBinder().unlinkToDeath(mAccessibilityWindowDeath, 0); in setAccessibilityWindow()
159 mAccessibilityWindow.asBinder().linkToDeath(mAccessibilityWindowDeath, 0); in setAccessibilityWindow()
DRotationWatcherController.java50 final IBinder watcherBinder = watcher.asBinder(); in registerDisplayRotationWatcher()
52 if (watcherBinder == mDisplayRotationWatchers.get(i).mWatcher.asBinder()) { in registerDisplayRotationWatcher()
61 final IBinder listenerBinder = listener.asBinder(); in registerProposedRotationListener()
64 if (contextToken == watcher.mToken || listenerBinder == watcher.mWatcher.asBinder()) { in registerProposedRotationListener()
87 final IBinder watcherBinder = watcher.asBinder(); in unregister()
90 if (watcherBinder != rotationWatcher.mWatcher.asBinder()) { in unregister()
215 mWatcher.asBinder().unlinkToDeath(this, 0); in unlinkToDeath()
/frameworks/base/services/core/java/com/android/server/audio/
DDefaultAudioPolicyFacade.java51 mServiceHolder.registerOnStartTask(i -> Binder.allowBlocking(i.asBinder())); in DefaultAudioPolicyFacade()
60 mServiceHolder.attemptClear(ap.asBinder()); in isHotwordStreamSupported()
71 Binder.allowBlocking(res.asBinder()); in getPermissionController()
74 mServiceHolder.attemptClear(ap.asBinder()); in getPermissionController()
/frameworks/av/media/libmedia/
DIMediaPlayerService.cpp71 data.writeStrongBinder(IInterface::asBinder(client)); in create()
107 data.writeStrongBinder(IInterface::asBinder(client)); in listenForRemoteDisplay()
140 reply->writeStrongBinder(IInterface::asBinder(player)); in onTransact()
151 reply->writeStrongBinder(IInterface::asBinder(recorder)); in onTransact()
157 reply->writeStrongBinder(IInterface::asBinder(retriever)); in onTransact()
182 reply->writeStrongBinder(IInterface::asBinder(display)); in onTransact()
188 reply->writeStrongBinder(IInterface::asBinder(mcl)); in onTransact()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DLocalColorRepository.java53 IBinder binder = consumer.asBinder(); in addAreas()
58 consumer.asBinder().linkToDeath(() -> in addAreas()
59 mLocalColorAreas.remove(consumer.asBinder()), 0); in addAreas()
88 IBinder binder = consumer.asBinder(); in removeAreas()
149 IBinder binder = cb.asBinder(); in forEachCallback()
164 return mLocalColorAreas.get(callback.asBinder()) != null; in isCallbackAvailable()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorControllerHolder.java45 mVibratorController.asBinder().unlinkToDeath(this, 0); in setVibratorController()
49 mVibratorController.asBinder().linkToDeath(this, 0); in setVibratorController()
58 if (mVibratorController != null && deadBinder == mVibratorController.asBinder()) { in binderDied()

12345678910>>...31