Home
last modified time | relevance | path

Searched refs:binder (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/frameworks/native/libs/binder/ndk/
Dibinder.cpp43 static void attach(const sp<IBinder>& binder) { in attach() argument
44 binder->attachObject(kId, kValue, nullptr /*cookie*/, clean); in attach()
46 static bool has(const sp<IBinder>& binder) { in has() argument
47 return binder != nullptr && binder->findObject(kId) == kValue; in has()
57 wp<ABpBinder> binder; member
165 ABpBinder::ABpBinder(const ::android::sp<::android::IBinder>& binder) in ABpBinder() argument
166 : AIBinder(nullptr /*clazz*/), BpRefBase(binder) { in ABpBinder()
167 CHECK(binder != nullptr); in ABpBinder()
182 value->binder = nullptr; in onLastStrongRef()
189 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder() argument
[all …]
Dibinder_jni.cpp27 AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder) { in AIBinder_fromJavaBinder() argument
28 if (binder == nullptr) { in AIBinder_fromJavaBinder()
32 sp<IBinder> ibinder = ibinderForJavaObject(env, binder); in AIBinder_fromJavaBinder()
39 jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder) { in AIBinder_toJavaBinder() argument
40 if (binder == nullptr) { in AIBinder_toJavaBinder()
44 return javaObjectForIBinder(env, binder->getBinder()); in AIBinder_toJavaBinder()
Dservice_manager.cpp31 binder_status_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() argument
32 if (binder == nullptr || instance == nullptr) { in AServiceManager_addService()
37 status_t status = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService()
46 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService() local
48 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_checkService()
58 sp<IBinder> binder = sm->getService(String16(instance)); in AServiceManager_getService() local
60 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_getService()
Dparcel_internal.h30 explicit AParcel(const AIBinder* binder) in AParcel()
31 : AParcel(binder, new ::android::Parcel, true /*owns*/) {} in AParcel()
32 AParcel(const AIBinder* binder, ::android::Parcel* parcel, bool owns) in AParcel()
33 : mBinder(binder), mParcel(parcel), mOwns(owns) {} in AParcel()
41 static const AParcel readOnly(const AIBinder* binder, const ::android::Parcel* parcel) { in readOnly()
42 return AParcel(binder, const_cast<::android::Parcel*>(parcel), false); in readOnly()
/frameworks/native/libs/binder/ndk/test/
Dmain_client.cpp39 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST() local
40 ASSERT_EQ(nullptr, binder); in TEST()
44 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST() local
45 EXPECT_NE(nullptr, binder); in TEST()
46 EXPECT_EQ(STATUS_OK, AIBinder_ping(binder)); in TEST()
48 AIBinder_decStrong(binder); in TEST()
67 AIBinder* binder; in TEST() local
68 sp<IFoo> foo = IFoo::getService(IFoo::kInstanceNameToDieFor, &binder); in TEST()
70 ASSERT_NE(nullptr, binder); in TEST()
84 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, static_cast<void*>(&onDeath))); in TEST()
[all …]
Diface.cpp45 binder_status_t IFoo_Class_onTransact(AIBinder* binder, transaction_code_t code, const AParcel* in, in IFoo_Class_onTransact() argument
49 sp<IFoo> foo = static_cast<IFoo_Class_Data*>(AIBinder_getUserData(binder))->foo; in IFoo_Class_onTransact()
77 explicit BpFoo(AIBinder* binder) : mBinder(binder) {} in BpFoo() argument
122 AIBinder* binder = nullptr; in addService() local
126 binder = AIBinder_Weak_promote(mWeakBinder); in addService()
128 if (binder == nullptr) { in addService()
130 binder = AIBinder_new(IFoo::kClass, static_cast<void*>(new IFoo_Class_Data{this})); in addService()
134 mWeakBinder = AIBinder_Weak_new(binder); in addService()
137 binder_status_t status = AServiceManager_addService(binder, instance); in addService()
139 AIBinder_decStrong(binder); in addService()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp28 binder::Status VirtualTouchpadService::attach() { in attach()
31 return binder::Status::fromStatusT(PERMISSION_DENIED); in attach()
39 return binder::Status::fromStatusT(ALREADY_EXISTS); in attach()
49 return binder::Status::ok(); in attach()
53 return binder::Status::fromStatusT(error); in attach()
55 return binder::Status::ok(); in attach()
58 binder::Status VirtualTouchpadService::detach() { in detach()
60 return binder::Status::fromStatusT(PERMISSION_DENIED); in detach()
64 return binder::Status::fromStatusT(error); in detach()
66 return binder::Status::ok(); in detach()
[all …]
/frameworks/native/cmds/installd/
DInstalldNativeService.h43 binder::Status createUserData(const std::unique_ptr<std::string>& uuid, int32_t userId,
45 binder::Status destroyUserData(const std::unique_ptr<std::string>& uuid, int32_t userId,
48 binder::Status createAppData(const std::unique_ptr<std::string>& uuid,
51 binder::Status restoreconAppData(const std::unique_ptr<std::string>& uuid,
54 binder::Status migrateAppData(const std::unique_ptr<std::string>& uuid,
56 binder::Status clearAppData(const std::unique_ptr<std::string>& uuid,
58 binder::Status destroyAppData(const std::unique_ptr<std::string>& uuid,
61 binder::Status fixupAppData(const std::unique_ptr<std::string>& uuid, int32_t flags);
63 binder::Status snapshotAppData(const std::unique_ptr<std::string>& volumeUuid,
66 binder::Status restoreAppDataSnapshot(const std::unique_ptr<std::string>& volumeUuid,
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h159 typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transaction_code_t code,
193 typedef binder_status_t (*AIBinder_onDump)(AIBinder* binder, int fd, const char** args,
238 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29);
251 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29);
262 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29);
276 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs)
296 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
315 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
348 void AIBinder_incStrong(AIBinder* binder) __INTRODUCED_IN(29);
355 void AIBinder_decStrong(AIBinder* binder) __INTRODUCED_IN(29);
[all …]
Dbinder_interface_utils.h120 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder);
133 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder);
137 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args,
173 explicit BpCInterface(const SpAIBinder& binder) : mBinder(binder) {} in BpCInterface() argument
194 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface() argument
195 return ICInterfaceData::getInterface(binder); in asInterface()
212 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in getInterface() argument
213 if (binder == nullptr) return nullptr; in getInterface()
215 void* userData = AIBinder_getUserData(binder); in getInterface()
231 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in onDump() argument
[all …]
/frameworks/av/media/libaudioclient/
DPlayerBase.cpp35 sp<IBinder> binder = defaultServiceManager()->checkService(String16("audio")); in PlayerBase() local
36 if (binder == 0) { in PlayerBase()
39 mAudioManager = interface_cast<IAudioManager>(binder); in PlayerBase()
122 binder::Status PlayerBase::start() { in start()
125 return binder::Status::ok(); in start()
128 binder::Status PlayerBase::pause() { in pause()
131 return binder::Status::ok(); in pause()
135 binder::Status PlayerBase::stop() { in stop()
138 return binder::Status::ok(); in stop()
141 binder::Status PlayerBase::setVolume(float vol) { in setVolume()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.h75 virtual binder::Status submitRequest(
81 virtual binder::Status submitRequestList(
86 virtual binder::Status cancelRequest(int requestId,
90 virtual binder::Status beginConfigure() override;
92 virtual binder::Status endConfigure(int operatingMode,
96 virtual binder::Status isSessionConfigurationSupported(
102 virtual binder::Status deleteStream(int streamId) override;
104 virtual binder::Status createStream(
110 virtual binder::Status createInputStream(int width, int height, int format,
115 virtual binder::Status getInputSurface(
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderCallsStatsTest.java61 Binder binder = new Binder(); in testDetailedOff() local
62 CallSession callSession = bcs.callStarted(binder, 1, WORKSOURCE_UID); in testDetailedOff()
74 assertEquals(binder.getClass(), callStatsList.get(0).binderClass); in testDetailedOff()
78 callSession = bcs.callStarted(binder, 1, WORKSOURCE_UID); in testDetailedOff()
86 callSession = bcs.callStarted(binder, 2, WORKSOURCE_UID); in testDetailedOff()
102 Binder binder = new Binder(); in testDetailedOn() local
103 CallSession callSession = bcs.callStarted(binder, 1, WORKSOURCE_UID); in testDetailedOn()
118 assertEquals(binder.getClass(), callStatsList.get(0).binderClass); in testDetailedOn()
121 callSession = bcs.callStarted(binder, 1, WORKSOURCE_UID); in testDetailedOn()
131 callSession = bcs.callStarted(binder, 2, WORKSOURCE_UID); in testDetailedOn()
[all …]
/frameworks/native/libs/binder/
DIMemory.cpp50 sp<IMemoryHeap> find_heap(const sp<IBinder>& binder);
51 void free_heap(const sp<IBinder>& binder);
52 sp<IMemoryHeap> get_heap(const sp<IBinder>& binder);
63 void free_heap(const wp<IBinder>& binder);
96 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) { in find_heap() argument
97 return gHeapCache->find_heap(binder); in find_heap()
99 static inline void free_heap(const sp<IBinder>& binder) { in free_heap() argument
100 gHeapCache->free_heap(binder); in free_heap()
102 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) { in get_heap() argument
103 return gHeapCache->get_heap(binder); in get_heap()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DAWakeLock.cpp39 sp<IBinder> binder = IInterface::asBinder(mPowerManager); in ~AWakeLock() local
40 binder->unlinkToDeath(mDeathRecipient); in ~AWakeLock()
50 sp<IBinder> binder = in acquire() local
52 if (binder == NULL) { in acquire()
55 mPowerManager = interface_cast<IPowerManager>(binder); in acquire()
56 binder->linkToDeath(mDeathRecipient); in acquire()
60 sp<IBinder> binder = new BBinder(); in acquire() local
64 binder, String16("AWakeLock"), String16("media")); in acquire()
67 mWakeLockToken = binder; in acquire()
/frameworks/av/services/camera/libcameraservice/hidl/
DAidlCameraDeviceCallbacks.cpp62 binder::Status H2BCameraDeviceCallbacks::onDeviceError( in onDeviceError()
71 return binder::Status::ok(); in onDeviceError()
74 binder::Status H2BCameraDeviceCallbacks::onDeviceIdle() { in onDeviceIdle()
80 return binder::Status::ok(); in onDeviceIdle()
83 binder::Status H2BCameraDeviceCallbacks::onCaptureStarted( in onCaptureStarted()
92 return binder::Status::ok(); in onCaptureStarted()
162 binder::Status H2BCameraDeviceCallbacks::onResultReceived( in onResultReceived()
173 return binder::Status::ok(); in onResultReceived()
176 binder::Status H2BCameraDeviceCallbacks::onPrepared(int32_t streamId) { in onPrepared()
180 return binder::Status::ok(); in onPrepared()
[all …]
/frameworks/av/media/libmedia/omx/1.0/
DWOmxBufferSource.cpp34 ::android::binder::Status LWOmxBufferSource::onOmxExecuting() { in onOmxExecuting()
38 ::android::binder::Status LWOmxBufferSource::onOmxIdle() { in onOmxIdle()
42 ::android::binder::Status LWOmxBufferSource::onOmxLoaded() { in onOmxLoaded()
46 ::android::binder::Status LWOmxBufferSource::onInputBufferAdded( in onInputBufferAdded()
52 ::android::binder::Status LWOmxBufferSource::onInputBufferEmptied( in onInputBufferEmptied()
57 return ::android::binder::Status::fromExceptionCode( in onInputBufferEmptied()
58 ::android::binder::Status::EX_BAD_PARCELABLE, in onInputBufferEmptied()
61 ::android::binder::Status status = toBinderStatus( in onInputBufferEmptied()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxBufferSource.cpp34 ::android::binder::Status LWOmxBufferSource::onOmxExecuting() { in onOmxExecuting()
38 ::android::binder::Status LWOmxBufferSource::onOmxIdle() { in onOmxIdle()
42 ::android::binder::Status LWOmxBufferSource::onOmxLoaded() { in onOmxLoaded()
46 ::android::binder::Status LWOmxBufferSource::onInputBufferAdded( in onInputBufferAdded()
52 ::android::binder::Status LWOmxBufferSource::onInputBufferEmptied( in onInputBufferEmptied()
57 return ::android::binder::Status::fromExceptionCode( in onInputBufferEmptied()
58 ::android::binder::Status::EX_BAD_PARCELABLE, in onInputBufferEmptied()
61 ::android::binder::Status status = toBinderStatus( in onInputBufferEmptied()
/frameworks/av/media/libaudioclient/include/media/
DPlayerBase.h36 virtual binder::Status start() override;
37 virtual binder::Status pause() override;
38 virtual binder::Status stop() override;
39 virtual binder::Status setVolume(float vol) override;
40 virtual binder::Status setPan(float pan) override;
41 virtual binder::Status setStartDelayMs(int32_t delayMs) override;
42 virtual binder::Status applyVolumeShaper(
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java184 mServiceContext.binder.callingUid = DpmMockContext.CALLER_UID; in setUp()
208 mAdmin1Context.binder.callingUid = DpmMockContext.CALLER_UID; in setUp()
228 final long ident = mContext.binder.clearCallingIdentity(); in initializeDpms()
237 mContext.binder.restoreCallingIdentity(ident); in initializeDpms()
270 final long ident = mServiceContext.binder.clearCallingIdentity(); in setAsProfileOwner()
272 mServiceContext.binder.callingUid = in setAsProfileOwner()
283 mServiceContext.binder.restoreCallingIdentity(ident); in setAsProfileOwner()
483 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers()
487 mMockContext.binder.callingUid = DpmMockContext.CALLER_UID; in testSetActiveAdmin_multiUsers()
491 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers()
[all …]
/frameworks/native/services/nativeperms/
Dnativeperms.cpp37 ::android::binder::Status checkPermission( in checkPermission()
44 return binder::Status::ok(); in checkPermission()
47 ::android::binder::Status getPackagesForUid( in getPackagesForUid()
54 return binder::Status::ok(); in getPackagesForUid()
57 ::android::binder::Status isRuntimePermission( in isRuntimePermission()
62 return binder::Status::ok(); in isRuntimePermission()
/frameworks/native/services/vr/hardware_composer/
Dvr_composer.cpp33 binder::Status VrComposer::registerObserver( in registerObserver()
39 return binder::Status::fromStatusT(PERMISSION_DENIED); in registerObserver()
43 return binder::Status::fromStatusT(ALREADY_EXISTS); in registerObserver()
54 return binder::Status::ok(); in registerObserver()
57 binder::Status VrComposer::clearObserver() { in clearObserver()
60 return binder::Status::ok(); in clearObserver()
71 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence); in OnNewFrame()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java110 IBinder binder; field in TelephonyRegistry.Record
150 return "{callingPackage=" + callingPackage + " binder=" + binder in toString()
317 private final IBinder binder; field in TelephonyRegistry.TelephonyRegistryDeathRecipient
319 TelephonyRegistryDeathRecipient(IBinder binder) { in TelephonyRegistryDeathRecipient() argument
320 this.binder = binder; in TelephonyRegistryDeathRecipient()
325 if (DBG) log("binderDied " + binder); in binderDied()
326 remove(binder); in binderDied()
495 remove(r.binder); in addOnSubscriptionsChangedListener()
548 remove(r.binder); in addOnOpportunisticSubscriptionsChangedListener()
574 mRemoveList.add(r.binder); in notifySubscriptionInfoChanged()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMulticastLockManagerTest.java71 IBinder binder = mock(IBinder.class); in oneLock() local
72 mManager.acquireLock(binder, WL_1_TAG); in oneLock()
90 IBinder binder = mock(IBinder.class); in oneLock_wrongName() local
91 mManager.acquireLock(binder, WL_1_TAG); in oneLock_wrongName()
109 IBinder binder = mock(IBinder.class); in multipleLocksInOrder() local
114 mManager.acquireLock(binder, WL_1_TAG); in multipleLocksInOrder()
119 mManager.acquireLock(binder, WL_2_TAG); in multipleLocksInOrder()
143 IBinder binder = mock(IBinder.class); in multipleLocksOutOfOrder() local
148 mManager.acquireLock(binder, WL_1_TAG); in multipleLocksOutOfOrder()
153 mManager.acquireLock(binder, WL_2_TAG); in multipleLocksOutOfOrder()
/frameworks/av/media/utils/
DSchedulingPolicyService.cpp40 sp<IBinder> binder = defaultServiceManager()->checkService(_scheduling_policy); in requestPriority() local
41 if (binder == 0) { in requestPriority()
45 sps = interface_cast<ISchedulingPolicyService>(binder); in requestPriority()
69 sp<IBinder> binder = defaultServiceManager()->checkService(_scheduling_policy); in requestCpusetBoost() local
70 if (binder == 0) { in requestCpusetBoost()
73 sps = interface_cast<ISchedulingPolicyService>(binder); in requestCpusetBoost()

12345678910>>...15