Lines Matching refs:CameraService

129 Mutex CameraService::sProxyMutex;
130 sp<hardware::ICameraServiceProxy> CameraService::sCameraServiceProxy;
132 CameraService::CameraService() : in CameraService() function in android::CameraService
140 void CameraService::onFirstRef() in onFirstRef()
170 CameraService::pingCameraServiceProxy(); in onFirstRef()
174 status_t CameraService::enumerateProviders() { in enumerateProviders()
220 sp<ICameraServiceProxy> CameraService::getCameraServiceProxy() { in getCameraServiceProxy()
237 void CameraService::pingCameraServiceProxy() { in pingCameraServiceProxy()
243 void CameraService::broadcastTorchModeStatus(const String8& cameraId, TorchModeStatus status) { in broadcastTorchModeStatus()
251 CameraService::~CameraService() { in ~CameraService()
257 void CameraService::onNewProviderRegistered() { in onNewProviderRegistered()
261 bool CameraService::isPublicallyHiddenSecureCamera(const String8& cameraId) { in isPublicallyHiddenSecureCamera()
270 void CameraService::updateCameraNumAndIds() { in updateCameraNumAndIds()
277 void CameraService::addStates(const String8 id) { in addStates()
310 void CameraService::removeStates(const String8 id) { in removeStates()
323 void CameraService::onDeviceStatusChanged(const String8& id, in onDeviceStatusChanged()
396 void CameraService::onTorchStatusChanged(const String8& cameraId, in onTorchStatusChanged()
402 void CameraService::onTorchStatusChangedLocked(const String8& cameraId, in onTorchStatusChangedLocked()
456 Status CameraService::getNumberOfCameras(int32_t type, int32_t* numCameras) { in getNumberOfCameras()
475 Status CameraService::getCameraInfo(int cameraId, in getCameraInfo()
502 std::string CameraService::cameraIdIntToStrLocked(int cameraIdInt) { in cameraIdIntToStrLocked()
512 String8 CameraService::cameraIdIntToStr(int cameraIdInt) { in cameraIdIntToStr()
517 Status CameraService::getCameraCharacteristics(const String16& cameraId, in getCameraCharacteristics()
580 String8 CameraService::getFormattedCurrentTime() { in getFormattedCurrentTime()
587 Status CameraService::getCameraVendorTagDescriptor( in getCameraVendorTagDescriptor()
602 Status CameraService::getCameraVendorTagCache( in getCameraVendorTagCache()
618 int CameraService::getDeviceVersion(const String8& cameraId, int* facing) { in getDeviceVersion()
640 Status CameraService::filterGetInfoErrorCode(status_t err) { in filterGetInfoErrorCode()
657 Status CameraService::makeClient(const sp<CameraService>& cameraService, in makeClient()
729 String8 CameraService::toString(std::set<userid_t> intSet) { in toString()
743 int32_t CameraService::mapToInterface(TorchModeStatus status) { in mapToInterface()
761 CameraService::StatusInternal CameraService::mapToInternal(CameraDeviceStatus status) { in mapToInternal()
779 int32_t CameraService::mapToInterface(StatusInternal status) { in mapToInterface()
803 Status CameraService::initializeShimMetadata(int cameraId) { in initializeShimMetadata()
821 Status CameraService::getLegacyParametersLazy(int cameraId, in getLegacyParametersLazy()
914 Status CameraService::validateConnectLocked(const String8& cameraId, in validateConnectLocked()
962 Status CameraService::validateClientPermissionsLocked(const String8& cameraId, in validateClientPermissionsLocked()
1045 status_t CameraService::checkIfDeviceIsUsable(const String8& cameraId) const { in checkIfDeviceIsUsable()
1068 void CameraService::finishConnectLocked(const sp<BasicClient>& client, in finishConnectLocked()
1069 const CameraService::DescriptorPtr& desc) { in finishConnectLocked()
1072 auto clientDescriptor = CameraService::CameraClientManager::makeClientDescriptor(client, desc); in finishConnectLocked()
1100 status_t CameraService::handleEvictionsLocked(const String8& cameraId, int clientPid, in handleEvictionsLocked()
1294 Status CameraService::connect( in connect()
1322 Status CameraService::connectLegacy( in connectLegacy()
1349 bool CameraService::shouldRejectHiddenCameraConnection(const String8 & cameraId) { in shouldRejectHiddenCameraConnection()
1361 Status CameraService::connectDevice( in connectDevice()
1396 Status CameraService::connectHelper(const sp<CALLBACK>& cameraCb, const String8& cameraId, in connectHelper()
1563 Status CameraService::setTorchMode(const String16& cameraId, bool enabled, in setTorchMode()
1685 Status CameraService::notifySystemEvent(int32_t eventId, in notifySystemEvent()
1726 void CameraService::notifyMonitoredUids() { in notifyMonitoredUids()
1738 Status CameraService::notifyDeviceStateChange(int64_t newState) { in notifyDeviceStateChange()
1781 Status CameraService::addListener(const sp<ICameraServiceListener>& listener, in addListener()
1787 Status CameraService::addListenerHelper(const sp<ICameraServiceListener>& listener, in addListenerHelper()
1868 Status CameraService::removeListener(const sp<ICameraServiceListener>& listener) { in removeListener()
1898 Status CameraService::getLegacyParameters(int cameraId, /*out*/String16* parameters) { in getLegacyParameters()
1924 Status CameraService::supportsCameraApi(const String16& cameraId, int apiVersion, in supportsCameraApi()
1981 Status CameraService::isHiddenPhysicalCamera(const String16& cameraId, in isHiddenPhysicalCamera()
1993 void CameraService::removeByClient(const BasicClient* client) { in removeByClient()
2003 bool CameraService::evictClientIdByRemote(const wp<IBinder>& remote) { in evictClientIdByRemote()
2051 std::shared_ptr<CameraService::CameraState> CameraService::getCameraState( in getCameraState()
2064 sp<CameraService::BasicClient> CameraService::removeClientLocked(const String8& cameraId) { in removeClientLocked()
2076 void CameraService::doUserSwitch(const std::vector<int32_t>& newUserIds) { in doUserSwitch()
2152 void CameraService::logEvent(const char* event) { in logEvent()
2158 void CameraService::logDisconnected(const char* cameraId, int clientPid, in logDisconnected()
2165 void CameraService::logConnected(const char* cameraId, int clientPid, in logConnected()
2172 void CameraService::logRejected(const char* cameraId, int clientPid, in logRejected()
2179 void CameraService::logTorchEvent(const char* cameraId, const char *torchState, int clientPid) { in logTorchEvent()
2185 void CameraService::logUserSwitch(const std::set<userid_t>& oldUserIds, in logUserSwitch()
2197 void CameraService::logDeviceRemoved(const char* cameraId, const char* reason) { in logDeviceRemoved()
2202 void CameraService::logDeviceAdded(const char* cameraId, const char* reason) { in logDeviceAdded()
2207 void CameraService::logClientDied(int clientPid, const char* reason) { in logClientDied()
2212 void CameraService::logServiceError(const char* msg, int errorCode) { in logServiceError()
2217 status_t CameraService::onTransact(uint32_t code, const Parcel& data, Parcel* reply, in onTransact()
2255 sp<MediaPlayer> CameraService::newMediaPlayer(const char *file) { in newMediaPlayer()
2271 void CameraService::increaseSoundRef() { in increaseSoundRef()
2276 void CameraService::loadSoundLocked(sound_kind kind) { in loadSoundLocked()
2299 void CameraService::decreaseSoundRef() { in decreaseSoundRef()
2312 void CameraService::playSound(sound_kind kind) { in playSound()
2327 CameraService::Client::Client(const sp<CameraService>& cameraService, in Client()
2334 CameraService::BasicClient(cameraService, in Client()
2353 CameraService::Client::~Client() { in ~Client()
2362 sp<CameraService> CameraService::BasicClient::BasicClient::sCameraService;
2364 CameraService::BasicClient::BasicClient(const sp<CameraService>& cameraService, in BasicClient()
2417 CameraService::BasicClient::~BasicClient() { in ~BasicClient()
2422 binder::Status CameraService::BasicClient::disconnect() { in disconnect()
2451 status_t CameraService::BasicClient::dump(int, const Vector<String16>&) { in dump()
2459 String16 CameraService::BasicClient::getPackageName() const { in getPackageName()
2464 int CameraService::BasicClient::getClientPid() const { in getClientPid()
2468 uid_t CameraService::BasicClient::getClientUid() const { in getClientUid()
2472 bool CameraService::BasicClient::canCastToApiClient(apiLevel level) const { in canCastToApiClient()
2477 status_t CameraService::BasicClient::startCameraOps() { in startCameraOps()
2528 status_t CameraService::BasicClient::finishCameraOps() { in finishCameraOps()
2571 void CameraService::BasicClient::opChanged(int32_t op, const String16&) { in opChanged()
2597 void CameraService::BasicClient::block() { in block()
2610 void CameraService::Client::notifyError(int32_t errorCode, in notifyError()
2625 binder::Status CameraService::Client::disconnect() { in disconnect()
2630 bool CameraService::Client::canCastToApiClient(apiLevel level) const { in canCastToApiClient()
2634 CameraService::Client::OpsCallback::OpsCallback(wp<BasicClient> client): in OpsCallback()
2638 void CameraService::Client::OpsCallback::opChanged(int32_t op, in opChanged()
2650 void CameraService::UidPolicy::registerSelf() { in registerSelf()
2666 void CameraService::UidPolicy::unregisterSelf() { in unregisterSelf()
2676 void CameraService::UidPolicy::onUidGone(uid_t uid, bool disabled) { in onUidGone()
2680 void CameraService::UidPolicy::onUidActive(uid_t uid) { in onUidActive()
2685 void CameraService::UidPolicy::onUidIdle(uid_t uid, bool /* disabled */) { in onUidIdle()
2694 sp<CameraService> service = mService.promote(); in onUidIdle()
2701 void CameraService::UidPolicy::onUidStateChanged(uid_t uid, int32_t procState, in onUidStateChanged()
2714 sp<CameraService> service = mService.promote(); in onUidStateChanged()
2721 void CameraService::UidPolicy::registerMonitorUid(uid_t uid) { in registerMonitorUid()
2733 void CameraService::UidPolicy::unregisterMonitorUid(uid_t uid) { in unregisterMonitorUid()
2746 bool CameraService::UidPolicy::isUidActive(uid_t uid, String16 callingPackage) { in isUidActive()
2754 bool CameraService::UidPolicy::isUidActiveLocked(uid_t uid, String16 callingPackage) { in isUidActiveLocked()
2808 int32_t CameraService::UidPolicy::getProcState(uid_t uid) { in getProcState()
2813 int32_t CameraService::UidPolicy::getProcStateLocked(uid_t uid) { in getProcStateLocked()
2821 void CameraService::UidPolicy::UidPolicy::addOverrideUid(uid_t uid, in addOverrideUid()
2826 void CameraService::UidPolicy::removeOverrideUid(uid_t uid, String16 callingPackage) { in removeOverrideUid()
2830 void CameraService::UidPolicy::binderDied(const wp<IBinder>& /*who*/) { in binderDied()
2837 void CameraService::UidPolicy::updateOverrideUid(uid_t uid, String16 callingPackage, in updateOverrideUid()
2851 sp<CameraService> service = mService.promote(); in updateOverrideUid()
2861 void CameraService::SensorPrivacyPolicy::registerSelf() { in registerSelf()
2875 void CameraService::SensorPrivacyPolicy::unregisterSelf() { in unregisterSelf()
2883 bool CameraService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { in isSensorPrivacyEnabled()
2888 binder::Status CameraService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool enabled) { in onSensorPrivacyChanged()
2895 sp<CameraService> service = mService.promote(); in onSensorPrivacyChanged()
2903 void CameraService::SensorPrivacyPolicy::binderDied(const wp<IBinder>& /*who*/) { in binderDied()
2913 CameraService::CameraState::CameraState(const String8& id, int cost, in CameraState()
2918 CameraService::CameraState::~CameraState() {} in ~CameraState()
2920 CameraService::StatusInternal CameraService::CameraState::getStatus() const { in getStatus()
2925 CameraParameters CameraService::CameraState::getShimParams() const { in getShimParams()
2929 void CameraService::CameraState::setShimParams(const CameraParameters& params) { in setShimParams()
2933 int CameraService::CameraState::getCost() const { in getCost()
2937 std::set<String8> CameraService::CameraState::getConflicting() const { in getConflicting()
2941 String8 CameraService::CameraState::getId() const { in getId()
2945 bool CameraService::CameraState::isPublicallyHiddenSecureCamera() const { in isPublicallyHiddenSecureCamera()
2953 void CameraService::ClientEventListener::onClientAdded( in onClientAdded()
2955 sp<CameraService::BasicClient>>& descriptor) { in onClientAdded()
2964 void CameraService::ClientEventListener::onClientRemoved( in onClientRemoved()
2966 sp<CameraService::BasicClient>>& descriptor) { in onClientRemoved()
2980 CameraService::CameraClientManager::CameraClientManager() { in CameraClientManager()
2984 CameraService::CameraClientManager::~CameraClientManager() {} in ~CameraClientManager()
2986 sp<CameraService::BasicClient> CameraService::CameraClientManager::getCameraClient( in getCameraClient()
2995 String8 CameraService::CameraClientManager::toString() const { in toString()
3036 CameraService::DescriptorPtr CameraService::CameraClientManager::makeClientDescriptor( in makeClientDescriptor()
3049 CameraService::DescriptorPtr CameraService::CameraClientManager::makeClientDescriptor( in makeClientDescriptor()
3050 const sp<BasicClient>& value, const CameraService::DescriptorPtr& partial) { in makeClientDescriptor()
3074 status_t CameraService::dump(int fd, const Vector<String16>& args) { in dump()
3212 void CameraService::dumpEventLog(int fd) { in dumpEventLog()
3228 void CameraService::handleTorchClientBinderDied(const wp<IBinder> &who) { in handleTorchClientBinderDied()
3246 /*virtual*/void CameraService::binderDied(const wp<IBinder> &who) { in binderDied()
3268 void CameraService::updateStatus(StatusInternal status, const String8& cameraId) { in updateStatus()
3272 void CameraService::updateStatus(StatusInternal status, const String8& cameraId, in updateStatus()
3339 void CameraService::updateOpenCloseStatus(const String8& cameraId, bool open, in updateOpenCloseStatus()
3363 void CameraService::CameraState::updateStatus(StatusInternal status, in updateStatus()
3405 void CameraService::updateProxyDeviceState(int newState, in updateProxyDeviceState()
3413 status_t CameraService::getTorchStatusLocked( in getTorchStatusLocked()
3429 status_t CameraService::setTorchStatusLocked(const String8& cameraId, in setTorchStatusLocked()
3440 void CameraService::blockClientsForUid(uid_t uid) { in blockClientsForUid()
3452 void CameraService::blockAllClients() { in blockAllClients()
3465 status_t CameraService::shellCommand(int in, int out, int err, const Vector<String16>& args) { in shellCommand()
3486 status_t CameraService::handleSetUidState(const Vector<String16>& args, int err) { in handleSetUidState()
3511 status_t CameraService::handleResetUidState(const Vector<String16>& args, int err) { in handleResetUidState()
3528 status_t CameraService::handleGetUidState(const Vector<String16>& args, int out, int err) { in handleGetUidState()
3548 status_t CameraService::printHelp(int out) { in printHelp()