/frameworks/av/camera/ |
H A D | CameraBase.cpp | 27 #include <binder/IPCThreadState.h> 28 #include <binder/IServiceManager.h> 29 #include <binder/IMemory.h> 106 // establish binder interface to camera service 119 sp<IBinder> binder; local 121 binder = sm->getService(String16(kCameraServiceName)); 122 if (binder != 0) { 131 binder->linkToDeath(gDeathNotifier); 132 gCameraService = interface_cast<::android::hardware::ICameraService>(binder); 148 binder [all...] |
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraManager.cpp | 84 sp<IBinder> binder; local 86 binder = sm->getService(String16(kCameraServiceName)); 87 if (binder != nullptr) { 96 binder->linkToDeath(mDeathNotifier); 97 mCameraService = interface_cast<hardware::ICameraService>(binder); 131 binder::Status ret = mCameraService->getCameraVendorTagDescriptor(/*out*/desc.get()); 143 binder::Status res = 235 binder::Status serviceRet = cs->supportsCameraApi(String16(deviceStatus.first), 297 binder::Status CameraManagerGlobal::CameraServiceListener::onStatusChanged( 305 return binder [all...] |
/frameworks/av/camera/tests/ |
H A D | CameraBinderTests.cpp | 20 #include <binder/IInterface.h> 21 #include <binder/IServiceManager.h> 22 #include <binder/Parcel.h> 23 #include <binder/ProcessState.h> 75 virtual binder::Status onStatusChanged(int32_t status, const String16& cameraId) { 79 return binder::Status::ok(); 82 virtual binder::Status onTorchStatusChanged(int32_t status, const String16& cameraId) { 86 return binder::Status::ok(); 168 virtual binder::Status onDeviceError(int errorCode, 177 return binder 299 sp<IBinder> binder = sm->getService(String16("media.camera")); local 424 sp<IBinder> binder = sm->getService(String16("media.camera")); local [all...] |
H A D | CameraZSLTests.cpp | 22 #include <binder/ProcessState.h> 80 ::android::binder::Status rc; 83 sp<IBinder> binder = sm->getService(String16("media.camera")); local 84 mCameraService = interface_cast<ICameraService>(binder); 165 ::android::binder::Status rc;
|
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 32 #include <binder/IServiceManager.h> 33 #include <binder/ProcessState.h> 856 sp<IBinder> binder = sm->getService(String16("media.player")); local 858 interface_cast<IMediaPlayerService>(binder);
|
H A D | stream.cpp | 21 #include <binder/ProcessState.h> 38 #include <binder/IServiceManager.h> 350 sp<IBinder> binder = sm->getService(String16("media.player")); local 351 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClientImpl.cpp | 23 #include <binder/IServiceManager.h> 62 sp<IBinder> binder; local 64 binder = sm->getService(String16("drm.drmManager")); 65 if (binder != 0) { 77 binder->linkToDeath(sDeathNotifier); 78 sDrmManagerService = interface_cast<IDrmManagerService>(binder);
|
/frameworks/av/include/common_time/ |
H A D | ICommonClock.h | 23 #include <binder/IInterface.h> 24 #include <binder/IServiceManager.h> 93 sp<IBinder> binder = defaultServiceManager()->checkService( local 95 sp<ICommonClock> clk = interface_cast<ICommonClock>(binder);
|
H A D | ICommonTimeConfig.h | 23 #include <binder/IInterface.h> 24 #include <binder/IServiceManager.h> 58 sp<IBinder> binder = defaultServiceManager()->checkService( local 60 sp<ICommonTimeConfig> clk = interface_cast<ICommonTimeConfig>(binder);
|
/frameworks/av/media/audioserver/ |
H A D | main_audioserver.cpp | 25 #include <binder/IPCThreadState.h> 26 #include <binder/ProcessState.h> 27 #include <binder/IServiceManager.h> 60 // binder on death notification instead. 112 sp<IBinder> binder = sm->getService(String16("media.log")); local 113 if (binder != 0) { 115 binder->dump(-1, args);
|
/frameworks/av/media/libaaudio/src/binding/ |
H A D | AAudioBinderClient.cpp | 22 #include <binder/IInterface.h> 23 #include <binder/IServiceManager.h> 24 #include <binder/ProcessState.h> 84 sp<IBinder> binder; local 89 binder = sm->getService(String16(AAUDIO_SERVICE_NAME)); // This will wait a while. 90 if (binder.get() != nullptr) { 95 if (binder.get() != nullptr) { 97 status_t status = binder->linkToDeath(mAAudioClient); 103 mAAudioService = interface_cast<IAAudioService>(binder);
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioSystem.cpp | 21 #include <binder/IServiceManager.h> 22 #include <binder/ProcessState.h> 23 #include <binder/IPCThreadState.h> 36 // client singleton for AudioFlinger binder interface 45 // 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); 752 sp<IBinder> binder; local [all...] |
H A D | PlayerBase.cpp | 17 #include <binder/IServiceManager.h> 35 sp<IBinder> binder = defaultServiceManager()->checkService(String16("audio")); local 36 if (binder == 0) { 39 mAudioManager = interface_cast<IAudioManager>(binder); 122 binder::Status PlayerBase::start() { 125 return binder::Status::ok(); 128 binder::Status PlayerBase::pause() { 131 return binder::Status::ok(); 135 binder::Status PlayerBase::stop() { 138 return binder [all...] |
/frameworks/av/media/libmedia/ |
H A D | IDataSource.cpp | 24 #include <binder/IMemory.h> 25 #include <binder/Parcel.h> 49 sp<IBinder> binder = reply.readStrongBinder(); local 50 return interface_cast<IMemory>(binder);
|
H A D | IMediaDeathNotifier.cpp | 21 #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 D | IMediaHTTPConnection.cpp | 23 #include <binder/IMemory.h> 24 #include <binder/Parcel.h> 76 sp<IBinder> binder = reply.readStrongBinder(); local 77 mMemory = interface_cast<IMemory>(binder);
|
H A D | IMediaSource.cpp | 25 #include <binder/Parcel.h> 159 sp<IBinder> binder = reply.readStrongBinder(); local 160 mem = interface_cast<IMemory>(binder); 353 // memory. When data is too large, binder can't handle it.
|
H A D | mediametadataretriever.cpp | 23 #include <binder/IServiceManager.h> 24 #include <binder/IPCThreadState.h> 33 // client singleton for binder interface to service 43 sp<IBinder> binder; local 45 binder = sm->getService(String16("media.player")); 46 if (binder != 0) { 55 binder->linkToDeath(sDeathNotifier); 56 sService = interface_cast<IMediaPlayerService>(binder);
|
/frameworks/av/media/libmediametrics/ |
H A D | MediaAnalyticsItem.cpp | 25 #include <binder/Parcel.h> 32 #include <binder/IServiceManager.h> 629 // Parcel / serialize things for binder calls 945 sp<IBinder> binder = sm->getService(String16(servicename)); local 946 if (binder != NULL) { 947 sAnalyticsService = interface_cast<IMediaAnalyticsService>(binder); 952 binder->linkToDeath(sNotifier);
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | JWakeLock.cpp | 23 #include <binder/IPCThreadState.h> 24 #include <binder/IServiceManager.h> 31 //TODO: use JAVA PowerManager, instead of binder 40 sp<IBinder> binder = IInterface::asBinder(mPowerManager); local 41 binder->unlinkToDeath(mDeathRecipient); 51 sp<IBinder> binder = local 53 if (binder == NULL) { 56 mPowerManager = interface_cast<IPowerManager>(binder); 57 binder->linkToDeath(mDeathRecipient); 61 sp<IBinder> binder local [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | ActivityManager.cpp | 17 #include <binder/IActivityManager.h> 18 #include <binder/IBinder.h> 19 #include <binder/IServiceManager.h> 32 sp<IBinder> binder = sm->getService(String16("activity")); local 33 sp<IActivityManager> am = interface_cast<IActivityManager>(binder);
|
H A D | MediaPlayerService.cpp | 37 #include <binder/IPCThreadState.h> 38 #include <binder/IServiceManager.h> 39 #include <binder/MemoryHeapBase.h> 40 #include <binder/MemoryBase.h> 736 sp<IBinder> binder = sm->getService(String16("media.extractor")); local 737 if (binder == NULL) { 742 new ServiceDeathNotifier(binder, p, MEDIAEXTRACTOR_PROCESS_DEATH); 743 binder->linkToDeath(extractorDeathListener); 923 sp<IBinder> binder(IInterface::asBinder(bufferProducer)); 924 if (mConnectedWindowBinder == binder) { [all...] |
H A D | MediaRecorderClient.cpp | 28 #include <binder/IPCThreadState.h> 29 #include <binder/IServiceManager.h> 30 #include <binder/MemoryHeapBase.h> 31 #include <binder/MemoryBase.h> 461 sp<IBinder> binder = (sCameraVerified || !sCameraChecked) local 464 if (binder != NULL) { 466 mCameraDeathListener = new ServiceDeathNotifier(binder, listener, 468 binder->linkToDeath(mCameraDeathListener);
|
H A D | StagefrightRecorder.cpp | 29 #include <binder/IPCThreadState.h> 30 #include <binder/IServiceManager.h> 102 sp<IBinder> binder = local 104 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | AWakeLock.cpp | 23 #include <binder/IPCThreadState.h> 24 #include <binder/IServiceManager.h> 39 sp<IBinder> binder = IInterface::asBinder(mPowerManager); local 40 binder->unlinkToDeath(mDeathRecipient); 50 sp<IBinder> binder = local 52 if (binder == NULL) { 55 mPowerManager = interface_cast<IPowerManager>(binder); 56 binder->linkToDeath(mDeathRecipient); 60 sp<IBinder> binder = new BBinder(); local 64 binder, String1 [all...] |