Home | History | Annotate | Download | only in libcameraservice

Lines Matching refs:CameraService

17 #define LOG_TAG "CameraService"
45 #include "CameraService.h"
82 sp<CameraService> cs = const_cast<CameraService*>(
83 static_cast<const CameraService*>(callbacks));
93 // This is ugly and only safe if we never re-create the CameraService, but
95 static CameraService *gCameraService;
97 CameraService::CameraService()
100 ALOGI("CameraService started (pid=%d)", getpid());
110 void CameraService::onFirstRef()
112 LOG1("CameraService::onFirstRef");
148 CameraService::~CameraService() {
159 void CameraService::onDeviceStatusChanged(int cameraId,
223 int32_t CameraService::getNumberOfCameras() {
227 status_t CameraService::getCameraInfo(int cameraId,
246 status_t CameraService::generateShimMetadata(int cameraId, /*out*/CameraMetadata* cameraInfo) {
331 status_t CameraService::getCameraCharacteristics(int cameraId,
378 status_t CameraService::getCameraVendorTagDescriptor(/*out*/sp<VendorTagDescriptor>& desc) {
388 int CameraService::getDeviceVersion(int cameraId, int* facing) {
408 status_t CameraService::filterOpenErrorCode(status_t err) {
421 status_t CameraService::filterGetInfoErrorCode(status_t err) {
432 bool CameraService::setUpVendorTags() {
470 status_t CameraService::initializeShimMetadata(int cameraId) {
520 status_t CameraService::getLegacyParametersLazy(int cameraId,
566 status_t CameraService::validateConnect(int cameraId,
577 ALOGE("CameraService::connect X (pid %d) rejected (don't trust clientUid)",
589 ALOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).",
618 bool CameraService::canConnectUnsafe(int cameraId,
629 LOG1("CameraService::connect X (pid %d) (the same client)",
635 ALOGW("CameraService::connect X (pid %d) rejected"
653 ALOGW("CameraService::connect X (pid %d, \"%s\") rejected"
662 status_t CameraService::connectHelperLocked(
727 LOG1("CameraService::connect X (id %d, this pid is %d)", cameraId,
733 status_t CameraService::connect(
744 LOG1("CameraService::connect E (pid %d \"%s\", id %d)", callingPid,
784 status_t CameraService::connectLegacy(
808 LOG1("CameraService::connect legacy E (pid %d \"%s\", id %d)", callingPid,
849 status_t CameraService::connectFinishUnsafe(const sp<BasicClient>& client,
862 status_t CameraService::connectPro(
878 LOG1("CameraService::connectPro E (pid %d \"%s\", id %d)", callingPid,
929 LOG1("CameraService::connectPro X (id %d, this pid is %d)", cameraId,
938 status_t CameraService::connectDevice(
950 LOG1("CameraService::connectDevice E (pid %d \"%s\", id %d)", callingPid,
1000 LOG1("CameraService::connectDevice X (id %d, this pid is %d)", cameraId,
1013 status_t CameraService
1046 status_t CameraService::removeListener(
1071 status_t CameraService::getLegacyParameters(
1098 status_t CameraService::supportsCameraApi(int cameraId, int apiVersion) {
1143 void CameraService::removeClientByRemote(const wp<IBinder>& remoteBinder) {
1145 LOG1("CameraService::removeClientByRemote E (pid %d)", callingPid);
1176 LOG1("CameraService::removeClientByRemote X (pid %d)", callingPid);
1179 sp<CameraService::ProClient> CameraService::findProClientUnsafe(
1210 sp<CameraService::BasicClient> CameraService::findClientUnsafe(
1241 CameraService::BasicClient* CameraService::getClientByIdUnsafe(int cameraId) {
1246 Mutex* CameraService::getClientLockById(int cameraId) {
1251 sp<CameraService::BasicClient> CameraService::getClientByRemote(
1266 status_t CameraService::onTransact(
1292 // The reason we need this busy bit is a new CameraService::connect() request
1298 void CameraService::setCameraBusy(int cameraId) {
1304 void CameraService::setCameraFree(int cameraId) {
1314 MediaPlayer* CameraService::newMediaPlayer(const char *file) {
1320 ALOGE("Failed to load CameraService sounds: %s", file);
1326 void CameraService::loadSound() {
1328 LOG1("CameraService::loadSound ref=%d", mSoundRef);
1335 void CameraService::releaseSound() {
1337 LOG1("CameraService::releaseSound ref=%d", mSoundRef);
1348 void CameraService::playSound(sound_kind kind) {
1360 CameraService::Client::Client(const sp<CameraService>& cameraService,
1366 CameraService::BasicClient(cameraService, cameraClient->asBinder(),
1377 cameraService->setCameraBusy(cameraId);
1378 cameraService->loadSound();
1384 CameraService::Client::~Client() {
1393 CameraService::BasicClient::BasicClient(const sp<CameraService>& cameraService,
1401 mCameraService = cameraService;
1412 CameraService::BasicClient::~BasicClient() {
1417 void CameraService::BasicClient::disconnect() {
1426 status_t CameraService::BasicClient::startCameraOps() {
1456 status_t CameraService::BasicClient::finishCameraOps() {
1485 void CameraService::BasicClient::opChanged(int32_t op, const String16& packageName) {
1517 Mutex* CameraService::Client::getClientLockFromCookie(void* user) {
1523 CameraService::Client* CameraService::Client::getClientFromCookie(void* user) {
1539 void CameraService::Client::notifyError(ICameraDeviceCallbacks::CameraErrorCode errorCode,
1545 void CameraService::Client::disconnect() {
1551 CameraService::Client::OpsCallback::OpsCallback(wp<BasicClient> client):
1555 void CameraService::Client::OpsCallback::opChanged(int32_t op,
1567 CameraService::ProClient::ProClient(const sp<CameraService>& cameraService,
1575 : CameraService::BasicClient(cameraService, remoteCallback->asBinder(),
1582 CameraService::ProClient::~ProClient() {
1585 void CameraService::ProClient::notifyError(ICameraDeviceCallbacks::CameraErrorCode errorCode,
1608 status_t CameraService::dump(int fd, const Vector<String16>& args) {
1612 "can't dump CameraService from pid=%d, uid=%d\n",
1618 // failed to lock - CameraService is probably deadlocked
1620 result.append("CameraService may be deadlocked\n");
1724 /*virtual*/void CameraService::binderDied(
1748 void CameraService::updateStatus(ICameraServiceListener::Status status,
1817 ICameraServiceListener::Status CameraService::getStatus(int cameraId) const {