Home
last modified time | relevance | path

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

123

/frameworks/native/libs/binder/
DIMemory.cpp48 sp<IMemoryHeap> find_heap(const sp<IBinder>& binder);
49 void free_heap(const sp<IBinder>& binder);
50 sp<IMemoryHeap> get_heap(const sp<IBinder>& binder);
60 void free_heap(const wp<IBinder>& binder);
91 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) { in find_heap() argument
92 return gHeapCache->find_heap(binder); in find_heap()
94 static inline void free_heap(const sp<IBinder>& binder) { in free_heap() argument
95 gHeapCache->free_heap(binder); in free_heap()
97 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) { in get_heap() argument
98 return gHeapCache->get_heap(binder); in get_heap()
[all …]
DProcessState.cpp175 e.binder = NULL; in lookupHandleLocked()
195 IBinder* b = e->binder; in getStrongProxyForHandle()
198 e->binder = b; in getStrongProxyForHandle()
229 IBinder* b = e->binder; in getWeakProxyForHandle()
233 e->binder = b; in getWeakProxyForHandle()
244 void ProcessState::expungeHandle(int32_t handle, IBinder* binder) in expungeHandle() argument
253 if (e && e->binder == binder) e->binder = NULL; in expungeHandle()
DParcel.cpp77 if (obj.binder) { in acquire_object()
83 if (obj.binder) in acquire_object()
84 static_cast<RefBase::weakref_type*>(obj.binder)->incWeak(who); in acquire_object()
114 if (obj.binder) { in release_object()
120 if (obj.binder) in release_object()
121 static_cast<RefBase::weakref_type*>(obj.binder)->decWeak(who); in release_object()
146 const sp<IBinder>& binder, const flat_binder_object& flat, Parcel* out) in finish_flatten_binder() argument
152 const sp<IBinder>& binder, Parcel* out) in flatten_binder() argument
157 if (binder != NULL) { in flatten_binder()
158 IBinder *local = binder->localBinder(); in flatten_binder()
[all …]
DIServiceManager.cpp104 sp<IBinder> binder = defaultServiceManager()->checkService(_permission); in checkPermission() local
105 if (binder == NULL) { in checkPermission()
114 pc = interface_cast<IPermissionController>(binder); in checkPermission()
/frameworks/base/services/java/com/android/server/
DTelephonyRegistry.java69 IBinder binder; field in TelephonyRegistry.Record
211 if (b == r.binder) { in listen()
216 r.binder = b; in listen()
230 remove(r.binder); in listen()
239 remove(r.binder); in listen()
246 remove(r.binder); in listen()
253 remove(r.binder); in listen()
261 remove(r.binder); in listen()
268 remove(r.binder); in listen()
276 remove(r.binder); in listen()
[all …]
DWifiService.java1272 WifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in WifiLock() argument
1273 super(lockMode, tag, binder, ws); in WifiLock()
1320 private WifiLock removeLock(IBinder binder) { in removeLock() argument
1321 int index = findLockByBinder(binder); in removeLock()
1331 private int findLockByBinder(IBinder binder) { in findLockByBinder() argument
1334 if (mList.get(i).mBinder == binder) in findLockByBinder()
1355 public boolean acquireWifiLock(IBinder binder, int lockMode, String tag, WorkSource ws) { in acquireWifiLock() argument
1373 WifiLock wifiLock = new WifiLock(lockMode, tag, binder, ws); in acquireWifiLock()
1511 DeathRecipient(int mode, String tag, IBinder binder, WorkSource ws) { in DeathRecipient() argument
1515 mBinder = binder; in DeathRecipient()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupManager.java146 IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(), in requestRestore() local
148 if (binder != null) { in requestRestore()
149 session = new RestoreSession(mContext, binder); in requestRestore()
174 IRestoreSession binder = sService.beginRestoreSession(null, null); in beginRestoreSession() local
175 if (binder != null) { in beginRestoreSession()
176 session = new RestoreSession(mContext, binder); in beginRestoreSession()
/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.cpp40 sp<IBinder> binder; in getService() local
42 binder = sm->getService(String16("media.player")); in getService()
43 if (binder != 0) { in getService()
52 binder->linkToDeath(sDeathNotifier); in getService()
53 sService = interface_cast<IMediaPlayerService>(binder); in getService()
DAudioSystem.cpp54 sp<IBinder> binder; in get_audio_flinger() local
56 binder = sm->getService(String16("media.audio_flinger")); in get_audio_flinger()
57 if (binder != 0) in get_audio_flinger()
69 binder->linkToDeath(gAudioFlingerClient); in get_audio_flinger()
70 gAudioFlinger = interface_cast<IAudioFlinger>(binder); in get_audio_flinger()
519 sp<IBinder> binder; in get_audio_policy_service() local
521 binder = sm->getService(String16("media.audio_policy")); in get_audio_policy_service()
522 if (binder != 0) in get_audio_policy_service()
530 binder->linkToDeath(gAudioPolicyServiceClient); in get_audio_policy_service()
531 gAudioPolicyService = interface_cast<IAudioPolicyService>(binder); in get_audio_policy_service()
/frameworks/av/services/audioflinger/
DSchedulingPolicyService.cpp39 sp<IBinder> binder = defaultServiceManager()->checkService(_scheduling_policy); in requestPriority() local
40 if (binder != 0) { in requestPriority()
41 sps = interface_cast<ISchedulingPolicyService>(binder); in requestPriority()
/frameworks/base/services/java/com/android/server/am/
DTransferPipe.java98 static void goDump(IBinder binder, FileDescriptor out, in goDump() argument
100 goDump(binder, out, args, DEFAULT_TIMEOUT); in goDump()
103 static void goDump(IBinder binder, FileDescriptor out, in goDump() argument
105 if (binder instanceof Binder) { in goDump()
108 binder.dump(out, args); in goDump()
116 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); in goDump()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java112 IBinder binder = callback.asBinder(); in register() local
115 binder.linkToDeath(cb, 0); in register()
116 mCallbacks.put(binder, cb); in register()
DServiceManagerNative.java124 IBinder binder = reply.readStrongBinder(); in getService() local
127 return binder; in getService()
136 IBinder binder = reply.readStrongBinder(); in checkService() local
139 return binder; in checkService()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DServiceManagerPermissionTests.java39 Binder binder = new Binder(); in testAddService() local
40 ServiceManager.addService("activity", binder); in testAddService()
/frameworks/base/core/java/android/widget/
DSimpleCursorAdapter.java136 final ViewBinder binder = mViewBinder; in bindView() local
145 if (binder != null) { in bindView()
146 bound = binder.setViewValue(v, cursor, from[i]); in bindView()
DSimpleCursorTreeAdapter.java213 final ViewBinder binder = mViewBinder; in bindView() local
219 if (binder != null) { in bindView()
220 bound = binder.setViewValue(v, cursor, from[i]); in bindView()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DDataVerify.java96 private final IDataVerifyStub binder = new IDataVerifyStub(); field in DataVerify
114 return binder; in onBind()
/frameworks/support/v4/java/android/support/v4/widget/
DSimpleCursorAdapter.java121 final ViewBinder binder = mViewBinder; in bindView() local
130 if (binder != null) { in bindView()
131 bound = binder.setViewValue(v, cursor, from[i]); in bindView()
/frameworks/av/camera/
DCamera.cpp46 sp<IBinder> binder; in getCameraService() local
48 binder = sm->getService(String16("media.camera")); in getCameraService()
49 if (binder != 0) in getCameraService()
57 binder->linkToDeath(mDeathNotifier); in getCameraService()
58 mCameraService = interface_cast<ICameraService>(binder); in getCameraService()
/frameworks/av/include/common_time/
DICommonTimeConfig.h58 sp<IBinder> binder = defaultServiceManager()->checkService( in getInstance() local
60 sp<ICommonTimeConfig> clk = interface_cast<ICommonTimeConfig>(binder); in getInstance()
DICommonClock.h93 sp<IBinder> binder = defaultServiceManager()->checkService( in getInstance() local
95 sp<ICommonClock> clk = interface_cast<ICommonClock>(binder); in getInstance()
/frameworks/native/include/binder/
DProcessState.h63 void expungeHandle(int32_t handle, IBinder* binder);
85 IBinder* binder; member
/frameworks/av/drm/libdrmframework/
DDrmManagerClientImpl.cpp51 sp<IBinder> binder; in getDrmManagerService() local
53 binder = sm->getService(String16("drm.drmManager")); in getDrmManagerService()
54 if (binder != 0) { in getDrmManagerService()
66 binder->linkToDeath(sDeathNotifier); in getDrmManagerService()
67 sDrmManagerService = interface_cast<IDrmManagerService>(binder); in getDrmManagerService()
/frameworks/av/services/camera/libcameraservice/
DCameraClient.cpp260 status_t CameraClient::setPreviewWindow(const sp<IBinder>& binder, in setPreviewWindow() argument
267 if (binder == mSurface) { in setPreviewWindow()
294 mSurface = binder; in setPreviewWindow()
309 sp<IBinder> binder(surface != 0 ? surface->asBinder() : 0); in setPreviewDisplay() local
311 return setPreviewWindow(binder, window); in setPreviewDisplay()
320 sp<IBinder> binder; in setPreviewTexture() local
323 binder = surfaceTexture->asBinder(); in setPreviewTexture()
326 return setPreviewWindow(binder, window); in setPreviewTexture()

123