Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/native/libs/binder/ndk/
Dibinder.cpp48 static void attach(const sp<IBinder>& binder) { in attach() argument
49 binder->attachObject(kId, kValue, nullptr /*cookie*/, clean); in attach()
51 static bool has(const sp<IBinder>& binder) { in has() argument
52 return binder != nullptr && binder->findObject(kId) == kValue; in has()
62 wp<ABpBinder> binder; member
215 ABpBinder::ABpBinder(const ::android::sp<::android::IBinder>& binder) in ABpBinder() argument
216 : AIBinder(nullptr /*clazz*/), BpRefBase(binder) { in ABpBinder()
217 CHECK(binder != nullptr); in ABpBinder()
232 value->binder = nullptr; in onLastStrongRef()
239 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()
Dstability.cpp35 extern "C" void AIBinder_markVendorStability(AIBinder* binder) { in AIBinder_markVendorStability() argument
36 Stability::markVndk(binder->getBinder().get()); in AIBinder_markVendorStability()
39 void AIBinder_markSystemStability(AIBinder* binder) { in AIBinder_markSystemStability() argument
40 Stability::markCompilationUnit(binder->getBinder().get()); in AIBinder_markSystemStability()
43 void AIBinder_markVintfStability(AIBinder* binder) { in AIBinder_markVintfStability() argument
44 Stability::markVintf(binder->getBinder().get()); in AIBinder_markVintfStability()
/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/libs/binder/
DStability.cpp24 void Stability::markCompilationUnit(IBinder* binder) { in markCompilationUnit() argument
25 status_t result = set(binder, getLocalStability(), true /*log*/); in markCompilationUnit()
29 void Stability::markVintf(IBinder* binder) { in markVintf() argument
30 status_t result = set(binder, Level::VINTF, true /*log*/); in markVintf()
34 void Stability::debugLogStability(const std::string& tag, const sp<IBinder>& binder) { in debugLogStability() argument
35 ALOGE("%s: stability is %s", tag.c_str(), stabilityString(get(binder.get())).c_str()); in debugLogStability()
38 void Stability::markVndk(IBinder* binder) { in markVndk() argument
39 status_t result = set(binder, Level::VENDOR, true /*log*/); in markVndk()
43 bool Stability::requiresVintfDeclaration(const sp<IBinder>& binder) { in requiresVintfDeclaration() argument
44 return check(get(binder.get()), Level::VINTF); in requiresVintfDeclaration()
[all …]
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/native/cmds/installd/
DInstalldNativeService.h43 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId,
45 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId,
47 binder::Status createAppDataBatched(
53 binder::Status createAppData(const std::optional<std::string>& uuid,
56 binder::Status restoreconAppData(const std::optional<std::string>& uuid,
59 binder::Status migrateAppData(const std::optional<std::string>& uuid,
61 binder::Status clearAppData(const std::optional<std::string>& uuid,
63 binder::Status destroyAppData(const std::optional<std::string>& uuid,
66 binder::Status fixupAppData(const std::optional<std::string>& uuid, int32_t flags);
68 binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid,
[all …]
/frameworks/native/libs/binder/ndk/tests/
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 …]
Dlibbinder_ndk_unit_test.cpp82 auto binder = service->asBinder(); in generatedService() local
84 AIBinder_setRequestingSid(binder.get(), true); in generatedService()
86 binder_status_t status = AServiceManager_addService(binder.get(), kBinderNdkUnitTestService); in generatedService()
153 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST() local
154 ASSERT_EQ(nullptr, binder); in TEST()
158 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST() local
159 EXPECT_NE(nullptr, binder); in TEST()
160 EXPECT_EQ(STATUS_OK, AIBinder_ping(binder)); in TEST()
162 AIBinder_decStrong(binder); in TEST()
181 AIBinder* binder; in TEST() local
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h166 typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transaction_code_t code,
202 typedef binder_status_t (*AIBinder_onDump)(AIBinder* binder, int fd, const char** args,
253 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29);
268 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29);
281 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29);
297 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs)
319 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
340 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
379 void AIBinder_incStrong(AIBinder* binder) __INTRODUCED_IN(29);
388 void AIBinder_decStrong(AIBinder* binder) __INTRODUCED_IN(29);
[all …]
/frameworks/native/libs/binder/tests/
DbinderStabilityTest.cpp34 using android::binder::Status;
49 static status_t doUserTransaction(const sp<IBinder>& binder) { in doUserTransaction() argument
52 return binder->transact(USER_TRANSACTION, data, &reply, 0/*flags*/); in doUserTransaction()
103 Status sendAndCallBinder(const sp<IBinder>& binder) override { in sendAndCallBinder() argument
104 Stability::debugLogStability("sendAndCallBinder got binder", binder); in sendAndCallBinder()
105 return Status::fromExceptionCode(BadStableBinder::doUserTransaction(binder)); in sendAndCallBinder()
161 sp<BadStableBinder> binder = BadStableBinder::undef(); in TEST() local
162 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
163 EXPECT_TRUE(binder->gotUserTransaction); in TEST()
166 sp<BadStableBinder> binder = BadStableBinder::system(); in TEST() local
[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/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/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/native/libs/binder/ndk/include_cpp/android/
Dbinder_interface_utils.h139 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder);
152 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder);
156 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args,
160 static inline binder_status_t handleShellCommand(AIBinder* binder, int in, int out, int err,
197 explicit BpCInterface(const SpAIBinder& binder) : mBinder(binder) {} in BpCInterface() argument
225 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface() argument
226 return ICInterfaceData::getInterface(binder); in asInterface()
248 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in getInterface() argument
249 if (binder == nullptr) return nullptr; in getInterface()
251 void* userData = AIBinder_getUserData(binder); in getInterface()
[all …]
/frameworks/native/libs/binder/ndk/include_platform/android/
Dbinder_stability.h42 void AIBinder_markVendorStability(AIBinder* binder);
44 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability() argument
45 AIBinder_markVendorStability(binder); in AIBinder_markCompilationUnitStability()
57 __attribute__((weak)) void AIBinder_markSystemStability(AIBinder* binder);
59 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability() argument
62 AIBinder_markSystemStability(binder); in AIBinder_markCompilationUnitStability()
70 void AIBinder_markVintfStability(AIBinder* binder);
/frameworks/native/cmds/servicemanager/
DServiceManager.h36 binder::Status getService(const std::string& name, sp<IBinder>* outBinder) override;
37 binder::Status checkService(const std::string& name, sp<IBinder>* outBinder) override;
38 binder::Status addService(const std::string& name, const sp<IBinder>& binder,
40 binder::Status listServices(int32_t dumpPriority, std::vector<std::string>* outList) override;
41 binder::Status registerForNotifications(const std::string& name,
43 binder::Status unregisterForNotifications(const std::string& name,
46 binder::Status isDeclared(const std::string& name, bool* outReturn) override;
47 binder::Status registerClientCallback(const std::string& name, const sp<IBinder>& service,
49binder::Status tryUnregisterService(const std::string& name, const sp<IBinder>& binder) override;
58 sp<IBinder> binder; // not null member
/frameworks/native/libs/binder/include/binder/
DStability.h38 static void markCompilationUnit(IBinder* binder);
45 static void markVintf(IBinder* binder);
48 static void debugLogStability(const std::string& tag, const sp<IBinder>& binder);
58 static void markVndk(IBinder* binder);
62 static bool requiresVintfDeclaration(const sp<IBinder>& binder);
74 static void tryMarkCompilationUnit(IBinder* binder);
89 static status_t set(IBinder* binder, int32_t stability, bool log);
91 static Level get(IBinder* binder);
/frameworks/native/include/binder/
DStability.h38 static void markCompilationUnit(IBinder* binder);
45 static void markVintf(IBinder* binder);
48 static void debugLogStability(const std::string& tag, const sp<IBinder>& binder);
58 static void markVndk(IBinder* binder);
62 static bool requiresVintfDeclaration(const sp<IBinder>& binder);
74 static void tryMarkCompilationUnit(IBinder* binder);
89 static status_t set(IBinder* binder, int32_t stability, bool log);
91 static Level get(IBinder* binder);
/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/
DAidlCameraServiceListener.h48 virtual ::android::binder::Status onStatusChanged(int32_t status,
51 virtual ::android::binder::Status onTorchStatusChanged(
53 virtual binder::Status onCameraAccessPrioritiesChanged() { in onCameraAccessPrioritiesChanged()
55 return binder::Status::ok(); in onCameraAccessPrioritiesChanged()
57 virtual binder::Status onCameraOpened(const ::android::String16& /*cameraId*/, in onCameraOpened()
60 return binder::Status::ok(); in onCameraOpened()
62 virtual binder::Status onCameraClosed(const ::android::String16& /*cameraId*/) { in onCameraClosed()
64 return binder::Status::ok(); in onCameraClosed()
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/base/core/tests/coretests/src/android/os/
DBinderTest.java58 Binder binder = new Binder(); in testGetExtension() local
59 assertNull(binder.getExtension()); in testGetExtension()
62 binder.setExtension(extension); in testGetExtension()
63 assertNotNull(binder.getExtension()); in testGetExtension()
64 assertSame(binder.getExtension(), extension); in testGetExtension()
66 binder.setExtension(null); in testGetExtension()
67 assertNull(binder.getExtension()); in testGetExtension()
/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()

12345678910>>...16