Lines Matching refs:CameraService

136 const String8 CameraService::kOfflineDevice("offline-");
138 Mutex CameraService::sProxyMutex;
139 sp<hardware::ICameraServiceProxy> CameraService::sCameraServiceProxy;
141 CameraService::CameraService() : in CameraService() function in android::CameraService
151 void CameraService::onFirstRef() in onFirstRef()
182 CameraService::pingCameraServiceProxy(); in onFirstRef()
186 status_t CameraService::enumerateProviders() { in enumerateProviders()
232 sp<ICameraServiceProxy> CameraService::getCameraServiceProxy() { in getCameraServiceProxy()
249 void CameraService::pingCameraServiceProxy() { in pingCameraServiceProxy()
255 void CameraService::broadcastTorchModeStatus(const String8& cameraId, TorchModeStatus status) { in broadcastTorchModeStatus()
263 CameraService::~CameraService() { in ~CameraService()
269 void CameraService::onNewProviderRegistered() { in onNewProviderRegistered()
273 void CameraService::filterAPI1SystemCameraLocked( in filterAPI1SystemCameraLocked()
293 status_t CameraService::getSystemCameraKind(const String8& cameraId, SystemCameraKind *kind) const { in getSystemCameraKind()
303 void CameraService::updateCameraNumAndIds() { in updateCameraNumAndIds()
315 void CameraService::addStates(const String8 id) { in addStates()
351 void CameraService::removeStates(const String8 id) { in removeStates()
364 void CameraService::onDeviceStatusChanged(const String8& id, in onDeviceStatusChanged()
430 void CameraService::onDeviceStatusChanged(const String8& id, in onDeviceStatusChanged()
491 void CameraService::disconnectClient(const String8& id, sp<BasicClient> clientToDisconnect) { in disconnectClient()
503 void CameraService::onTorchStatusChanged(const String8& cameraId, in onTorchStatusChanged()
509 void CameraService::onTorchStatusChangedLocked(const String8& cameraId, in onTorchStatusChangedLocked()
568 Status CameraService::getNumberOfCameras(int32_t type, int32_t* numCameras) { in getNumberOfCameras()
598 Status CameraService::getCameraInfo(int cameraId, in getCameraInfo()
636 std::string CameraService::cameraIdIntToStrLocked(int cameraIdInt) { in cameraIdIntToStrLocked()
653 String8 CameraService::cameraIdIntToStr(int cameraIdInt) { in cameraIdIntToStr()
658 Status CameraService::getCameraCharacteristics(const String16& cameraId, in getCameraCharacteristics()
726 String8 CameraService::getFormattedCurrentTime() { in getFormattedCurrentTime()
733 Status CameraService::getCameraVendorTagDescriptor( in getCameraVendorTagDescriptor()
748 Status CameraService::getCameraVendorTagCache( in getCameraVendorTagCache()
764 int CameraService::getDeviceVersion(const String8& cameraId, int* facing) { in getDeviceVersion()
786 Status CameraService::filterGetInfoErrorCode(status_t err) { in filterGetInfoErrorCode()
803 Status CameraService::makeClient(const sp<CameraService>& cameraService, in makeClient()
877 String8 CameraService::toString(std::set<userid_t> intSet) { in toString()
891 int32_t CameraService::mapToInterface(TorchModeStatus status) { in mapToInterface()
909 CameraService::StatusInternal CameraService::mapToInternal(CameraDeviceStatus status) { in mapToInternal()
927 int32_t CameraService::mapToInterface(StatusInternal status) { in mapToInterface()
951 Status CameraService::initializeShimMetadata(int cameraId) { in initializeShimMetadata()
969 Status CameraService::getLegacyParametersLazy(int cameraId, in getLegacyParametersLazy()
1062 Status CameraService::validateConnectLocked(const String8& cameraId, in validateConnectLocked()
1110 Status CameraService::validateClientPermissionsLocked(const String8& cameraId, in validateClientPermissionsLocked()
1210 status_t CameraService::checkIfDeviceIsUsable(const String8& cameraId) const { in checkIfDeviceIsUsable()
1233 void CameraService::finishConnectLocked(const sp<BasicClient>& client, in finishConnectLocked()
1234 const CameraService::DescriptorPtr& desc) { in finishConnectLocked()
1237 auto clientDescriptor = CameraService::CameraClientManager::makeClientDescriptor(client, desc); in finishConnectLocked()
1265 status_t CameraService::handleEvictionsLocked(const String8& cameraId, int clientPid, in handleEvictionsLocked()
1464 Status CameraService::connect( in connect()
1492 Status CameraService::connectLegacy( in connectLegacy()
1519 bool CameraService::shouldSkipStatusUpdates(SystemCameraKind systemCameraKind, in shouldSkipStatusUpdates()
1533 bool CameraService::shouldRejectSystemCameraConnection(const String8& cameraId) const { in shouldRejectSystemCameraConnection()
1577 Status CameraService::connectDevice( in connectDevice()
1613 Status CameraService::connectHelper(const sp<CALLBACK>& cameraCb, const String8& cameraId, in connectHelper()
1782 status_t CameraService::addOfflineClient(String8 cameraId, sp<BasicClient> offlineClient) { in addOfflineClient()
1853 Status CameraService::setTorchMode(const String16& cameraId, bool enabled, in setTorchMode()
1975 Status CameraService::notifySystemEvent(int32_t eventId, in notifySystemEvent()
2015 void CameraService::notifyMonitoredUids() { in notifyMonitoredUids()
2027 Status CameraService::notifyDeviceStateChange(int64_t newState) { in notifyDeviceStateChange()
2069 Status CameraService::getConcurrentCameraIds( in getConcurrentCameraIds()
2112 Status CameraService::isConcurrentSessionConfigurationSupported( in isConcurrentSessionConfigurationSupported()
2146 Status CameraService::addListener(const sp<ICameraServiceListener>& listener, in addListener()
2152 Status CameraService::addListenerHelper(const sp<ICameraServiceListener>& listener, in addListenerHelper()
2239 Status CameraService::removeListener(const sp<ICameraServiceListener>& listener) { in removeListener()
2269 Status CameraService::getLegacyParameters(int cameraId, /*out*/String16* parameters) { in getLegacyParameters()
2295 Status CameraService::supportsCameraApi(const String16& cameraId, int apiVersion, in supportsCameraApi()
2353 Status CameraService::isHiddenPhysicalCamera(const String16& cameraId, in isHiddenPhysicalCamera()
2365 void CameraService::removeByClient(const BasicClient* client) { in removeByClient()
2376 bool CameraService::evictClientIdByRemote(const wp<IBinder>& remote) { in evictClientIdByRemote()
2424 std::shared_ptr<CameraService::CameraState> CameraService::getCameraState( in getCameraState()
2437 sp<CameraService::BasicClient> CameraService::removeClientLocked(const String8& cameraId) { in removeClientLocked()
2449 void CameraService::doUserSwitch(const std::vector<int32_t>& newUserIds) { in doUserSwitch()
2525 void CameraService::logEvent(const char* event) { in logEvent()
2531 void CameraService::logDisconnected(const char* cameraId, int clientPid, in logDisconnected()
2538 void CameraService::logDisconnectedOffline(const char* cameraId, int clientPid, in logDisconnectedOffline()
2545 void CameraService::logConnected(const char* cameraId, int clientPid, in logConnected()
2552 void CameraService::logConnectedOffline(const char* cameraId, int clientPid, in logConnectedOffline()
2559 void CameraService::logRejected(const char* cameraId, int clientPid, in logRejected()
2566 void CameraService::logTorchEvent(const char* cameraId, const char *torchState, int clientPid) { in logTorchEvent()
2572 void CameraService::logUserSwitch(const std::set<userid_t>& oldUserIds, in logUserSwitch()
2584 void CameraService::logDeviceRemoved(const char* cameraId, const char* reason) { in logDeviceRemoved()
2589 void CameraService::logDeviceAdded(const char* cameraId, const char* reason) { in logDeviceAdded()
2594 void CameraService::logClientDied(int clientPid, const char* reason) { in logClientDied()
2599 void CameraService::logServiceError(const char* msg, int errorCode) { in logServiceError()
2604 status_t CameraService::onTransact(uint32_t code, const Parcel& data, Parcel* reply, in onTransact()
2642 sp<MediaPlayer> CameraService::newMediaPlayer(const char *file) { in newMediaPlayer()
2658 void CameraService::increaseSoundRef() { in increaseSoundRef()
2663 void CameraService::loadSoundLocked(sound_kind kind) { in loadSoundLocked()
2686 void CameraService::decreaseSoundRef() { in decreaseSoundRef()
2699 void CameraService::playSound(sound_kind kind) { in playSound()
2714 CameraService::Client::Client(const sp<CameraService>& cameraService, in Client()
2722 CameraService::BasicClient(cameraService, in Client()
2741 CameraService::Client::~Client() { in ~Client()
2750 sp<CameraService> CameraService::BasicClient::BasicClient::sCameraService;
2752 CameraService::BasicClient::BasicClient(const sp<CameraService>& cameraService, in BasicClient()
2815 CameraService::BasicClient::~BasicClient() { in ~BasicClient()
2820 binder::Status CameraService::BasicClient::disconnect() { in disconnect()
2849 status_t CameraService::BasicClient::dump(int, const Vector<String16>&) { in dump()
2857 String16 CameraService::BasicClient::getPackageName() const { in getPackageName()
2862 int CameraService::BasicClient::getClientPid() const { in getClientPid()
2866 uid_t CameraService::BasicClient::getClientUid() const { in getClientUid()
2870 bool CameraService::BasicClient::canCastToApiClient(apiLevel level) const { in canCastToApiClient()
2875 status_t CameraService::BasicClient::setAudioRestriction(int32_t mode) { in setAudioRestriction()
2884 int32_t CameraService::BasicClient::getServiceAudioRestriction() const { in getServiceAudioRestriction()
2888 int32_t CameraService::BasicClient::getAudioRestriction() const { in getAudioRestriction()
2893 bool CameraService::BasicClient::isValidAudioRestriction(int32_t mode) { in isValidAudioRestriction()
2904 status_t CameraService::BasicClient::startCameraOps() { in startCameraOps()
2958 status_t CameraService::BasicClient::finishCameraOps() { in finishCameraOps()
3001 void CameraService::BasicClient::opChanged(int32_t op, const String16&) { in opChanged()
3028 void CameraService::BasicClient::block() { in block()
3041 void CameraService::Client::notifyError(int32_t errorCode, in notifyError()
3056 binder::Status CameraService::Client::disconnect() { in disconnect()
3061 bool CameraService::Client::canCastToApiClient(apiLevel level) const { in canCastToApiClient()
3065 CameraService::Client::OpsCallback::OpsCallback(wp<BasicClient> client): in OpsCallback()
3069 void CameraService::Client::OpsCallback::opChanged(int32_t op, in opChanged()
3081 void CameraService::UidPolicy::registerSelf() { in registerSelf()
3097 void CameraService::UidPolicy::unregisterSelf() { in unregisterSelf()
3107 void CameraService::UidPolicy::onUidGone(uid_t uid, bool disabled) { in onUidGone()
3111 void CameraService::UidPolicy::onUidActive(uid_t uid) { in onUidActive()
3116 void CameraService::UidPolicy::onUidIdle(uid_t uid, bool /* disabled */) { in onUidIdle()
3125 sp<CameraService> service = mService.promote(); in onUidIdle()
3132 void CameraService::UidPolicy::onUidStateChanged(uid_t uid, int32_t procState, in onUidStateChanged()
3145 sp<CameraService> service = mService.promote(); in onUidStateChanged()
3152 void CameraService::UidPolicy::registerMonitorUid(uid_t uid) { in registerMonitorUid()
3164 void CameraService::UidPolicy::unregisterMonitorUid(uid_t uid) { in unregisterMonitorUid()
3177 bool CameraService::UidPolicy::isUidActive(uid_t uid, String16 callingPackage) { in isUidActive()
3185 bool CameraService::UidPolicy::isUidActiveLocked(uid_t uid, String16 callingPackage) { in isUidActiveLocked()
3239 int32_t CameraService::UidPolicy::getProcState(uid_t uid) { in getProcState()
3244 int32_t CameraService::UidPolicy::getProcStateLocked(uid_t uid) { in getProcStateLocked()
3252 void CameraService::UidPolicy::UidPolicy::addOverrideUid(uid_t uid, in addOverrideUid()
3257 void CameraService::UidPolicy::removeOverrideUid(uid_t uid, String16 callingPackage) { in removeOverrideUid()
3261 void CameraService::UidPolicy::binderDied(const wp<IBinder>& /*who*/) { in binderDied()
3268 void CameraService::UidPolicy::updateOverrideUid(uid_t uid, String16 callingPackage, in updateOverrideUid()
3282 sp<CameraService> service = mService.promote(); in updateOverrideUid()
3292 void CameraService::SensorPrivacyPolicy::registerSelf() { in registerSelf()
3306 void CameraService::SensorPrivacyPolicy::unregisterSelf() { in unregisterSelf()
3314 bool CameraService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { in isSensorPrivacyEnabled()
3319 binder::Status CameraService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool enabled) { in onSensorPrivacyChanged()
3326 sp<CameraService> service = mService.promote(); in onSensorPrivacyChanged()
3334 void CameraService::SensorPrivacyPolicy::binderDied(const wp<IBinder>& /*who*/) { in binderDied()
3344 CameraService::CameraState::CameraState(const String8& id, int cost, in CameraState()
3349 CameraService::CameraState::~CameraState() {} in ~CameraState()
3351 CameraService::StatusInternal CameraService::CameraState::getStatus() const { in getStatus()
3356 std::vector<String8> CameraService::CameraState::getUnavailablePhysicalIds() const { in getUnavailablePhysicalIds()
3362 CameraParameters CameraService::CameraState::getShimParams() const { in getShimParams()
3366 void CameraService::CameraState::setShimParams(const CameraParameters& params) { in setShimParams()
3370 int CameraService::CameraState::getCost() const { in getCost()
3374 std::set<String8> CameraService::CameraState::getConflicting() const { in getConflicting()
3378 String8 CameraService::CameraState::getId() const { in getId()
3382 SystemCameraKind CameraService::CameraState::getSystemCameraKind() const { in getSystemCameraKind()
3386 bool CameraService::CameraState::addUnavailablePhysicalId(const String8& physicalId) { in addUnavailablePhysicalId()
3392 bool CameraService::CameraState::removeUnavailablePhysicalId(const String8& physicalId) { in removeUnavailablePhysicalId()
3402 void CameraService::ClientEventListener::onClientAdded( in onClientAdded()
3404 sp<CameraService::BasicClient>>& descriptor) { in onClientAdded()
3413 void CameraService::ClientEventListener::onClientRemoved( in onClientRemoved()
3415 sp<CameraService::BasicClient>>& descriptor) { in onClientRemoved()
3429 CameraService::CameraClientManager::CameraClientManager() { in CameraClientManager()
3433 CameraService::CameraClientManager::~CameraClientManager() {} in ~CameraClientManager()
3435 sp<CameraService::BasicClient> CameraService::CameraClientManager::getCameraClient( in getCameraClient()
3444 String8 CameraService::CameraClientManager::toString() const { in toString()
3485 CameraService::DescriptorPtr CameraService::CameraClientManager::makeClientDescriptor( in makeClientDescriptor()
3498 CameraService::DescriptorPtr CameraService::CameraClientManager::makeClientDescriptor( in makeClientDescriptor()
3499 const sp<BasicClient>& value, const CameraService::DescriptorPtr& partial) { in makeClientDescriptor()
3523 status_t CameraService::dump(int fd, const Vector<String16>& args) { in dump()
3663 void CameraService::dumpEventLog(int fd) { in dumpEventLog()
3679 void CameraService::handleTorchClientBinderDied(const wp<IBinder> &who) { in handleTorchClientBinderDied()
3697 /*virtual*/void CameraService::binderDied(const wp<IBinder> &who) { in binderDied()
3719 void CameraService::updateStatus(StatusInternal status, const String8& cameraId) { in updateStatus()
3723 void CameraService::updateStatus(StatusInternal status, const String8& cameraId, in updateStatus()
3794 void CameraService::updateOpenCloseStatus(const String8& cameraId, bool open, in updateOpenCloseStatus()
3818 void CameraService::CameraState::updateStatus(StatusInternal status, in updateStatus()
3860 void CameraService::updateProxyDeviceState(int newState, in updateProxyDeviceState()
3868 status_t CameraService::getTorchStatusLocked( in getTorchStatusLocked()
3884 status_t CameraService::setTorchStatusLocked(const String8& cameraId, in setTorchStatusLocked()
3895 void CameraService::notifyPhysicalCameraStatusLocked(int32_t status, const String8& cameraId, in notifyPhysicalCameraStatusLocked()
3924 void CameraService::blockClientsForUid(uid_t uid) { in blockClientsForUid()
3936 void CameraService::blockAllClients() { in blockAllClients()
3949 status_t CameraService::shellCommand(int in, int out, int err, const Vector<String16>& args) { in shellCommand()
3974 status_t CameraService::handleSetUidState(const Vector<String16>& args, int err) { in handleSetUidState()
3999 status_t CameraService::handleResetUidState(const Vector<String16>& args, int err) { in handleResetUidState()
4016 status_t CameraService::handleGetUidState(const Vector<String16>& args, int out, int err) { in handleGetUidState()
4036 status_t CameraService::handleSetRotateAndCrop(const Vector<String16>& args) { in handleSetRotateAndCrop()
4059 status_t CameraService::handleGetRotateAndCrop(int out) { in handleGetRotateAndCrop()
4065 status_t CameraService::printHelp(int out) { in printHelp()
4076 int32_t CameraService::updateAudioRestriction() { in updateAudioRestriction()
4081 int32_t CameraService::updateAudioRestrictionLocked() { in updateAudioRestrictionLocked()