Searched defs:binder (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/media/libstagefright/
H A DOMXClient.cpp21 #include <binder/IServiceManager.h>
33 sp<IBinder> binder = sm->getService(String16("media.player")); local
34 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
/frameworks/base/include/binder/
H A DProcessState.h20 #include <binder/IBinder.h>
63 void expungeHandle(int32_t handle, IBinder* binder);
83 IBinder* binder; member in struct:android::ProcessState::handle_entry
/frameworks/base/media/libmedia/
H A DIMediaDeathNotifier.cpp21 #include <binder/IServiceManager.h>
22 #include <binder/IPCThreadState.h>
27 // client singleton for binder interface to services
33 // establish binder interface to MediaPlayerService
41 sp<IBinder> binder; local
43 binder = sm->getService(String16("media.player"));
44 if (binder != 0) {
54 binder->linkToDeath(sDeathNotifier);
55 sMediaPlayerService = interface_cast<IMediaPlayerService>(binder);
H A Dmediametadataretriever.cpp21 #include <binder/IServiceManager.h>
22 #include <binder/IPCThreadState.h>
30 // client singleton for binder interface to service
40 sp<IBinder> binder; local
42 binder = sm->getService(String16("media.player"));
43 if (binder != 0) {
52 binder->linkToDeath(sDeathNotifier);
53 sService = interface_cast<IMediaPlayerService>(binder);
H A DAudioSystem.cpp21 #include <binder/IServiceManager.h>
32 // client singleton for AudioFlinger binder interface
48 // establish binder interface to AudioFlinger service
54 sp<IBinder> binder; local
56 binder = sm->getService(String16("media.audio_flinger"));
57 if (binder != 0)
69 binder->linkToDeath(gAudioFlingerClient);
70 gAudioFlinger = interface_cast<IAudioFlinger>(binder);
478 // client singleton for AudioPolicyService binder interface
483 // establish binder interfac
489 sp<IBinder> binder; local
[all...]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DDataVerify.java96 private final IDataVerifyStub binder = new IDataVerifyStub(); field in class:DataVerify
114 return binder;
/frameworks/base/services/java/com/android/server/am/
H A DIntentBindRecord.java38 IBinder binder; field in class:IntentBindRecord
39 /** Set when we have initiated a request for this binder. */
41 /** Set when we have received the requested binder. */
59 pw.print(prefix); pw.print("binder="); pw.println(binder);
H A DTransferPipe.java98 static void goDump(IBinder binder, FileDescriptor out, argument
100 goDump(binder, out, args, DEFAULT_TIMEOUT);
103 static void goDump(IBinder binder, FileDescriptor out, argument
105 if (binder instanceof Binder) {
108 binder.dump(out, args);
116 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args);
/frameworks/base/core/java/android/app/backup/
H A DRestoreSession.java71 * @param observer If non-null, this binder points to an object that will receive
100 * @param observer If non-null, this binder points to an object that will receive
135 * @param observer If non-null, this binder points to an object that will receive
174 RestoreSession(Context context, IRestoreSession binder) { argument
176 mBinder = binder;
180 * We wrap incoming binder calls with a private class implementation that
/frameworks/base/libs/binder/
H A DIServiceManager.cpp19 #include <binder/IServiceManager.h>
23 #include <binder/IPCThreadState.h>
24 #include <binder/Parcel.h>
28 #include <private/binder/Static.h>
104 sp<IBinder> binder = defaultServiceManager()->checkService(_permission); local
105 if (binder == NULL) {
114 pc = interface_cast<IPermissionController>(binder);
H A DProcessState.cpp21 #include <binder/ProcessState.h>
24 #include <binder/BpBinder.h>
25 #include <binder/IPCThreadState.h>
28 #include <binder/IServiceManager.h>
32 #include <private/binder/binder_module.h>
33 #include <private/binder/Static.h>
174 e.binder = NULL;
194 IBinder* b = e->binder;
197 e->binder = b;
228 IBinder* b = e->binder;
243 expungeHandle(int32_t handle, IBinder* binder) argument
[all...]
H A DIMemory.cpp28 #include <binder/IMemory.h>
32 #include <binder/Parcel.h>
48 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) { argument
92 return gHeapCache->find_heap(binder);
94 static inline void free_heap(const sp<IBinder>& binder) { argument
95 gHeapCache->free_heap(binder);
97 get_heap(const sp<IBinder>& binder) argument
137 fastPointer(const sp<IBinder>& binder, ssize_t offset) const argument
244 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder(); local
258 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder(); local
394 binderDied(const wp<IBinder>& binder) argument
400 find_heap(const sp<IBinder>& binder) argument
425 free_heap(const sp<IBinder>& binder) argument
429 free_heap(const wp<IBinder>& binder) argument
454 get_heap(const sp<IBinder>& binder) argument
[all...]
H A DIPCThreadState.cpp19 #include <binder/IPCThreadState.h>
21 #include <binder/Binder.h>
22 #include <binder/BpBinder.h>
29 #include <private/binder/binder_module.h>
30 #include <private/binder/Static.h>
612 void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder) argument
617 self()->mProcess->expungeHandle(handle, binder);
H A DParcel.cpp20 #include <binder/Parcel.h>
22 #include <binder/IPCThreadState.h>
23 #include <binder/Binder.h>
24 #include <binder/BpBinder.h>
26 #include <binder/ProcessState.h>
35 #include <private/binder/binder_module.h>
77 if (obj.binder) {
83 if (obj.binder)
84 static_cast<RefBase::weakref_type*>(obj.binder)->incWeak(who);
114 if (obj.binder) {
145 finish_flatten_binder( const sp<IBinder>& binder, const flat_binder_object& flat, Parcel* out) argument
151 flatten_binder(const sp<ProcessState>& proc, const sp<IBinder>& binder, Parcel* out) argument
182 flatten_binder(const sp<ProcessState>& proc, const wp<IBinder>& binder, Parcel* out) argument
[all...]
/frameworks/base/cmds/stagefright/
H A Dstream.cpp21 #include <binder/ProcessState.h>
33 #include <binder/IServiceManager.h>
334 sp<IBinder> binder = sm->getService(String16("media.player")); local
335 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
H A Dstagefright.cpp29 #include <binder/IServiceManager.h>
30 #include <binder/ProcessState.h>
766 sp<IBinder> binder = sm->getService(String16("media.player")); local
768 interface_cast<IMediaPlayerService>(binder);
824 sp<IBinder> binder = sm->getService(String16("media.player")); local
826 interface_cast<IMediaPlayerService>(binder);
876 sp<IBinder> binder = sm->getService(String16("media.player")); local
877 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
/frameworks/base/libs/camera/
H A DCamera.cpp22 #include <binder/IPCThreadState.h>
23 #include <binder/IServiceManager.h>
24 #include <binder/IMemory.h>
34 // client singleton for camera service binder interface
39 // establish binder interface to camera service
45 sp<IBinder> binder; local
47 binder = sm->getService(String16("media.camera"));
48 if (binder != 0)
56 binder->linkToDeath(mDeathNotifier);
57 mCameraService = interface_cast<ICameraService>(binder);
[all...]
/frameworks/base/services/java/com/android/server/
H A DTelephonyRegistry.java61 IBinder binder; field in class:TelephonyRegistry.Record
153 if (b == r.binder) {
158 r.binder = b;
170 remove(r.binder);
179 remove(r.binder);
186 remove(r.binder);
193 remove(r.binder);
200 remove(r.binder);
207 remove(r.binder);
215 remove(r.binder);
246 remove(IBinder binder) argument
[all...]
/frameworks/base/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp23 #include <binder/IServiceManager.h>
51 sp<IBinder> binder; local
53 binder = sm->getService(String16("drm.drmManager"));
54 if (binder != 0) {
66 binder->linkToDeath(sDeathNotifier);
67 sDrmManagerService = interface_cast<IDrmManagerService>(binder);
/frameworks/base/media/libstagefright/omx/tests/
H A DOMXHarness.cpp25 #include <binder/ProcessState.h>
26 #include <binder/IServiceManager.h>
27 #include <binder/MemoryDealer.h>
64 sp<IBinder> binder = sm->getService(String16("media.player")); local
65 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
/frameworks/base/core/java/android/app/
H A DLoadedApk.java907 IBinder binder; field in class:LoadedApk.ServiceDispatcher.ConnectionInfo
960 ci.binder.unlinkToDeath(ci.deathMonitor, 0);
1005 if (old == null || old.binder != service) {
1010 old.binder.unlinkToDeath(old.deathMonitor, 0);
1031 if (old != null && old.binder == service) {
1040 info.binder = service;
1058 old.binder.unlinkToDeath(old.deathMonitor, 0);
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp21 #include <binder/IPCThreadState.h>
22 #include <binder/ProcessState.h>
23 #include <binder/IServiceManager.h>
789 sp<IBinder> binder = ibinderForJavaObject(env, binderObject); local
/frameworks/base/media/jni/
H A Dandroid_media_MediaPlayer.cpp40 #include <binder/Parcel.h>
43 #include <binder/IPCThreadState.h>
44 #include <binder/IServiceManager.h>
530 // binder interface.
713 sp<IBinder> binder = defaultServiceManager()->getService(String16("media.player")); local
714 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
/frameworks/base/services/camera/libcameraservice/
H A DCameraService.cpp25 #include <binder/IPCThreadState.h>
26 #include <binder/IServiceManager.h>
27 #include <binder/MemoryBase.h>
28 #include <binder/MemoryHeapBase.h>
515 status_t CameraService::Client::setPreviewWindow(const sp<IBinder>& binder, argument
522 if (binder == mSurface) {
549 mSurface = binder;
564 sp<IBinder> binder(surface != 0 ? surface->asBinder() : 0);
566 return setPreviewWindow(binder, window);
575 sp<IBinder> binder; local
[all...]
/frameworks/base/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp32 #include <binder/IPCThreadState.h>
33 #include <binder/IServiceManager.h>
34 #include <binder/ProcessState.h>
387 sp<IBinder> binder = sm->getService(String16("CameraServiceTest.Holder")); local
388 ASSERT(binder != 0);
389 sp<IHolder> holder = interface_cast<IHolder>(binder);
415 sp<IBinder> binder = sm->getService(String16("media.camera")); local
416 ASSERT(binder != 0);
417 sp<ICameraService> cs = interface_cast<ICameraService>(binder);

Completed in 231 milliseconds

12