Home
last modified time | relevance | path

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

12345678

/frameworks/native/libs/binder/
DIMemory.cpp49 sp<IMemoryHeap> find_heap(const sp<IBinder>& binder);
50 void free_heap(const sp<IBinder>& binder);
51 sp<IMemoryHeap> get_heap(const sp<IBinder>& binder);
61 void free_heap(const wp<IBinder>& binder);
92 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) { in find_heap() argument
93 return gHeapCache->find_heap(binder); in find_heap()
95 static inline void free_heap(const sp<IBinder>& binder) { in free_heap() argument
96 gHeapCache->free_heap(binder); in free_heap()
98 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) { in get_heap() argument
99 return gHeapCache->get_heap(binder); in get_heap()
[all …]
DProcessState.cpp171 e.binder = NULL; in lookupHandleLocked()
191 IBinder* b = e->binder; in getStrongProxyForHandle()
221 e->binder = b; in getStrongProxyForHandle()
252 IBinder* b = e->binder; in getWeakProxyForHandle()
256 e->binder = b; in getWeakProxyForHandle()
267 void ProcessState::expungeHandle(int32_t handle, IBinder* binder) in expungeHandle() argument
276 if (e && e->binder == binder) e->binder = NULL; in expungeHandle()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.h69 virtual binder::Status submitRequest(
75 virtual binder::Status submitRequestList(
80 virtual binder::Status cancelRequest(int requestId,
84 virtual binder::Status beginConfigure();
86 virtual binder::Status endConfigure(bool isConstrainedHighSpeed = false);
89 virtual binder::Status deleteStream(int streamId);
91 virtual binder::Status createStream(
97 virtual binder::Status createInputStream(int width, int height, int format,
102 virtual binder::Status getInputSurface(
107 virtual binder::Status createDefaultRequest(int templateId,
[all …]
DCameraDeviceClient.cpp34 binder::Status::fromServiceSpecificError(errorCode, \
38 binder::Status::fromServiceSpecificError(errorCode, \
111 binder::Status CameraDeviceClient::submitRequest( in submitRequest()
120 binder::Status CameraDeviceClient::submitRequestList( in submitRequestList()
128 binder::Status res = binder::Status::ok(); in submitRequestList()
257 binder::Status CameraDeviceClient::cancelRequest( in cancelRequest()
265 binder::Status res; in cancelRequest()
298 binder::Status CameraDeviceClient::beginConfigure() { in beginConfigure()
301 return binder::Status::ok(); in beginConfigure()
304 binder::Status CameraDeviceClient::endConfigure(bool isConstrainedHighSpeed) { in endConfigure()
[all …]
/frameworks/av/media/libstagefright/foundation/
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/camera/tests/
DCameraBinderTests.cpp75 virtual binder::Status onStatusChanged(int32_t status, int32_t cameraId) { in onStatusChanged()
79 return binder::Status::ok(); in onStatusChanged()
82 virtual binder::Status onTorchStatusChanged(int32_t status, const String16& cameraId) { in onTorchStatusChanged()
86 return binder::Status::ok(); in onTorchStatusChanged()
167 virtual binder::Status onDeviceError(int errorCode, in onDeviceError()
176 return binder::Status::ok(); in onDeviceError()
179 virtual binder::Status onDeviceIdle() { in onDeviceIdle()
184 return binder::Status::ok(); in onDeviceIdle()
187 virtual binder::Status onCaptureStarted(const CaptureResultExtras& resultExtras, in onCaptureStarted()
195 return binder::Status::ok(); in onCaptureStarted()
[all …]
/frameworks/av/camera/camera2/
DCaptureRequest.cpp71 sp<IBinder> binder(parcel->readStrongBinder()); in readFromParcel() local
73 __FUNCTION__, binder.get()); in readFromParcel()
77 if (binder != NULL) { in readFromParcel()
79 interface_cast<IGraphicBufferProducer>(binder); in readFromParcel()
116 sp<IBinder> binder; in writeToParcel() local
118 binder = IInterface::asBinder(surface->getIGraphicBufferProducer()); in writeToParcel()
127 parcel->writeStrongBinder(binder); in writeToParcel()
/frameworks/av/services/camera/libcameraservice/
DCameraService.h105 virtual binder::Status getNumberOfCameras(int32_t type, int32_t* numCameras);
107 virtual binder::Status getCameraInfo(int cameraId,
109 virtual binder::Status getCameraCharacteristics(int cameraId,
111 virtual binder::Status getCameraVendorTagDescriptor(
115 virtual binder::Status connect(const sp<hardware::ICameraClient>& cameraClient,
121 virtual binder::Status connectLegacy(const sp<hardware::ICameraClient>& cameraClient,
127 virtual binder::Status connectDevice(
133 virtual binder::Status addListener(const sp<hardware::ICameraServiceListener>& listener);
134 virtual binder::Status removeListener(
137 virtual binder::Status getLegacyParameters(
[all …]
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp171 sp<IBinder> binder; in addServer() local
176 EXPECT_FALSE(binder != NULL); in addServer()
177 binder = reply.readStrongBinder(); in addServer()
178 EXPECT_TRUE(binder != NULL); in addServer()
183 return binder; in addServer()
499 sp<IBinder> binder = addServer(); in TEST_F() local
500 ASSERT_TRUE(binder != NULL); in TEST_F()
501 ret = binder->linkToDeath(testDeathRecipient); in TEST_F()
508 ret = binder->unlinkToDeath(testDeathRecipient); in TEST_F()
521 sp<IBinder> binder = addServer(); in TEST_F() local
[all …]
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java90 IBinder binder; field in TelephonyRegistry.Record
115 return "{callingPackage=" + callingPackage + " binder=" + binder in toString()
387 if (b == r.binder) { in addOnSubscriptionsChangedListener()
392 r.binder = b; in addOnSubscriptionsChangedListener()
413 remove(r.binder); in addOnSubscriptionsChangedListener()
446 mRemoveList.add(r.binder); in notifySubscriptionInfoChanged()
502 if (b == r.binder) { in listen()
507 r.binder = b; in listen()
540 remove(r.binder); in listen()
550 remove(r.binder); in listen()
[all …]
/frameworks/av/camera/
DCameraBase.cpp94 sp<IBinder> binder; in getCameraService() local
96 binder = sm->getService(String16(kCameraServiceName)); in getCameraService()
97 if (binder != 0) { in getCameraService()
106 binder->linkToDeath(gDeathNotifier); in getCameraService()
107 gCameraService = interface_cast<::android::hardware::ICameraService>(binder); in getCameraService()
123 binder::Status ret; in connect()
214 binder::Status res = cs->getNumberOfCameras( in getNumberOfCameras()
231 binder::Status res = cs->getCameraInfo(cameraId, cameraInfo); in getCameraInfo()
240 binder::Status res = cs->addListener(listener); in addServiceListener()
249 binder::Status res = cs->removeListener(listener); in removeServiceListener()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DTelephonyRegistryMock.java42 IBinder binder; field in TelephonyRegistryMock.Record
67 return "{callingPackage=" + callingPackage + " binder=" + binder in toString()
84 private void remove(IBinder binder) { in remove() argument
88 if (mRecords.get(i).binder == binder) { in remove()
119 if (b == r.binder) { in addOnSubscriptionsChangedListener()
124 r.binder = b; in addOnSubscriptionsChangedListener()
138 remove(r.binder); in addOnSubscriptionsChangedListener()
167 mRemoveList.add(r.binder); in notifySubscriptionInfoChanged()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DViewWithTagTest.java31 ViewWithTagBinding binder = initBinder(); in test() local
32 binder.setStr("i don't have tag"); in test()
33 binder.executePendingBindings(); in test()
34 ViewGroup root = (ViewGroup) binder.getRoot(); in test()
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp41 sp<IBinder> binder; in getMediaPlayerService() local
43 binder = sm->getService(String16("media.player")); in getMediaPlayerService()
44 if (binder != 0) { in getMediaPlayerService()
54 binder->linkToDeath(sDeathNotifier); in getMediaPlayerService()
55 sMediaPlayerService = interface_cast<IMediaPlayerService>(binder); in getMediaPlayerService()
Dmediametadataretriever.cpp43 sp<IBinder> binder; in getService() local
45 binder = sm->getService(String16("media.player")); in getService()
46 if (binder != 0) { in getService()
55 binder->linkToDeath(sDeathNotifier); in getService()
56 sService = interface_cast<IMediaPlayerService>(binder); in getService()
/frameworks/base/services/core/java/com/android/server/location/
DRemoteListenerHelper.java62 IBinder binder = listener.asBinder(); in addListener() local
65 if (mListenerMap.containsKey(binder)) { in addListener()
70 binder.linkToDeath(deathListener, 0 /* flags */); in addListener()
77 mListenerMap.put(binder, deathListener); in addListener()
105 IBinder binder = listener.asBinder(); in removeListener() local
108 linkedListener = mListenerMap.remove(binder); in removeListener()
114 binder.unlinkToDeath(linkedListener, 0 /* flags */); in removeListener()
DActivityRecognitionProxy.java106 IBinder binder = mServiceWatcher.getBinder(); in bindProvider() local
107 if (binder == null) { in bindProvider()
113 descriptor = binder.getInterfaceDescriptor(); in bindProvider()
121 IActivityRecognitionHardwareWatcher.Stub.asInterface(binder); in bindProvider()
139 IActivityRecognitionHardwareClient.Stub.asInterface(binder); in bindProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java114 final long ident = mContext.binder.clearCallingIdentity(); in initializeDpms()
125 mContext.binder.restoreCallingIdentity(ident); in initializeDpms()
326 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers()
330 mMockContext.binder.callingUid = DpmMockContext.CALLER_UID; in testSetActiveAdmin_multiUsers()
334 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers()
414 mContext.binder.callingUid = 1234567; in testRemoveActiveAdmin_SecurityException()
429 mContext.binder.callingUid = DpmMockContext.CALLER_UID; in testRemoveActiveAdmin_userNotRunningOrLocked()
479 mContext.binder.callingUid = 1234567; in testRemoveActiveAdmin_fromDifferentUserWithINTERACT_ACROSS_USERS_FULL()
577 mContext.binder.callingUid = DpmMockContext.CALLER_SYSTEM_USER_UID; in setDeviceOwner()
599 mContext.binder.callingUid = DpmMockContext.CALLER_UID; in setDeviceOwner()
[all …]
/frameworks/native/cmds/atrace/
Datrace.rc26 chown root shell /sys/kernel/debug/tracing/events/binder/binder_transaction/enable
27 chown root shell /sys/kernel/debug/tracing/events/binder/binder_transaction_received/enable
28 chown root shell /sys/kernel/debug/tracing/events/binder/binder_lock/enable
29 chown root shell /sys/kernel/debug/tracing/events/binder/binder_locked/enable
30 chown root shell /sys/kernel/debug/tracing/events/binder/binder_unlock/enable
52 chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_transaction/enable
53 chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_transaction_received/enable
54 chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_lock/enable
55 chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_locked/enable
56 chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_unlock/enable
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java83 IBinder binder, int callingUid, @NetworkStatsAccess.Level int accessLevel) { in register() argument
85 RequestInfo requestInfo = buildRequestInfo(request, messenger, binder, callingUid, in register()
214 Messenger messenger, IBinder binder, int callingUid, in buildRequestInfo() argument
217 return new UserUsageRequestInfo(this, request, messenger, binder, callingUid, in buildRequestInfo()
222 return new NetworkUsageRequestInfo(this, request, messenger, binder, callingUid, in buildRequestInfo()
242 Messenger messenger, IBinder binder, int callingUid, in RequestInfo() argument
247 mBinder = binder; in RequestInfo()
337 Messenger messenger, IBinder binder, int callingUid, in NetworkUsageRequestInfo() argument
339 super(statsObserver, request, messenger, binder, callingUid, accessLevel); in NetworkUsageRequestInfo()
379 Messenger messenger, IBinder binder, int callingUid, in UserUsageRequestInfo() argument
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java877 protected static void setBindingInverseListener(ViewDataBinding binder, in setBindingInverseListener() argument
881 binder.removeOnPropertyChangedCallback( in setBindingInverseListener()
885 binder.addOnPropertyChangedCallback(listener); in setBindingInverseListener()
1081 public WeakListener(ViewDataBinding binder, int localFieldId, in WeakListener() argument
1083 super(binder); in WeakListener()
1111 ViewDataBinding binder = get(); in getBinder() local
1112 if (binder == null) { in getBinder()
1115 return binder; in getBinder()
1123 public WeakPropertyListener(ViewDataBinding binder, int localFieldId) { in WeakPropertyListener() argument
1124 mListener = new WeakListener<Observable>(binder, localFieldId, this); in WeakPropertyListener()
[all …]
/frameworks/base/services/core/
DAndroid.mk7 LOCAL_AIDL_INCLUDES := system/netd/server/binder
13 ../../../../system/netd/server/binder/android/net/INetd.aidl \
14 ../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.aidl \
17 system/netd/server/binder
/frameworks/support/v4/java/android/support/v4/app/
DBundleCompat.java53 public static void putBinder(Bundle bundle, String key, IBinder binder) { in putBinder() argument
55 BundleCompatJellybeanMR2.putBinder(bundle, key, binder); in putBinder()
57 BundleCompatDonut.putBinder(bundle, key, binder); in putBinder()
/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()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp78 sp<IBinder> binder; in getCameraService() local
80 binder = sm->getService(String16(kCameraServiceName)); in getCameraService()
81 if (binder != nullptr) { in getCameraService()
90 binder->linkToDeath(mDeathNotifier); in getCameraService()
91 mCameraService = interface_cast<hardware::ICameraService>(binder); in getCameraService()
121 binder::Status ret = mCameraService->getCameraVendorTagDescriptor(/*out*/desc.get()); in getCameraService()
249 binder::Status CameraManagerGlobal::CameraServiceListener::onStatusChanged( in onStatusChanged()
257 return binder::Status::ok(); in onStatusChanged()
314binder::Status serviceRet = cs->getNumberOfCameras(hardware::ICameraService::CAMERA_TYPE_ALL, in getOrCreateCameraIdListLocked()
427 binder::Status serviceRet = cs->getCameraCharacteristics(cameraId, &rawMetadata); in getCameraCharacteristics()
[all …]

12345678