最終更新:2017-04-04 (火) 17:55:26 (2724d)
CameraService
Top / CameraService
実装
- AOSP/frameworks/av/services/camera/libcameraservice/CameraService.cpp
- ICameraService cameraService = CameraManagerGlobal?.get().getCameraService();
C++のとJavaのがある
C++
メモ
- android.hardware.camera2.CameraManagerでラップされている(AIDLを用いてICameraService経由で呼ばれる)
定義
- class CameraService : public BinderService<CameraService>, BnCameraService?, public IBinder::DeathRecipient?, public camera_module_callbacks_t?
関数
- CameraService::getCameraInfo
- CameraService::connectDevice?
- CameraService::connectHelper
- CameraService::getCameraCharacteristics
- CameraService::addListener?
- CameraService::supportsCameraApi?
- CameraService::checkCameraCapabilities?
- CameraService::getCameraState?
- CameraService::makeClient
- CameraService::updateStatus?
mediaserver
- ~Android 6.0
- 起動の指定
- AOSP/system/core/rootdir/init.rc
- Android/init.rc
service media /system/bin/mediaserver
- CameraService::instantiate();
cameraserver
- Android 7.0~
- 起動の指定
- AOSP/frameworks/av/camera/cameraserver/cameraserver.rc
service cameraserver /system/bin/cameraserver
- AOSP/frameworks/av/camera/cameraserver/cameraserver.rc
- CameraService::instantiate();
- AOSP/frameworks/av/services/camera/libcameraservice/CameraService.h?
- AOSP/frameworks/av/services/camera/libcameraservice/CameraService.cpp
メモ
Java
- Android 6.0~
- SystemServer.startOtherServicesでcom.android.server.camera.CameraServiceを起動
- AOSP/frameworks/base/services/core/java/com/android/server/camera/CameraService.java
- https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-camera