Lines Matching refs:Client

145     sp<Client> client;
198 client = new Client(this, cameraClient, hardware, cameraId, info.facing, callingPid);
211 sp<Client> client;
220 // Client::~Client() -> disconnect() -> removeClient().
239 sp<CameraService::Client> CameraService::getClientById(int cameraId) {
268 // may come in while the previous Client's destructor has not been run or is
269 // still running. If the last strong reference of the previous Client is gone
270 // but the destructor has not been finished, we should not allow the new Client
271 // to be created because we need to wait for the previous Client to tear down
331 CameraService::Client::Client(const sp<CameraService>& cameraService,
336 LOG1("Client::Client E (pid %d)", callingPid);
362 LOG1("Client::Client X (pid %d)", callingPid);
366 CameraService::Client::~Client() {
368 LOG1("Client::~Client E (pid %d, this %p)", callingPid, this);
374 LOG1("Client::~Client X (pid %d, this %p)", callingPid, this);
379 status_t CameraService::Client::checkPid() const {
388 status_t CameraService::Client::checkPidAndHardware() const {
398 status_t CameraService::Client::lock() {
413 status_t CameraService::Client::unlock() {
435 status_t CameraService::Client::connect(const sp<ICameraClient>& client) {
470 void CameraService::Client::disconnect() {
515 status_t CameraService::Client::setPreviewWindow(const sp<IBinder>& binder,
561 status_t CameraService::Client::setPreviewDisplay(const sp<Surface>& surface) {
570 status_t CameraService::Client::setPreviewTexture(
586 void CameraService::Client::setPreviewCallbackFlag(int callback_flag) {
600 status_t CameraService::Client::startPreview() {
606 status_t CameraService::Client::startRecording() {
612 status_t CameraService::Client::startCameraMode(camera_mode mode) {
636 status_t CameraService::Client::startPreviewMode() {
657 status_t CameraService::Client::startRecordingMode() {
685 void CameraService::Client::stopPreview() {
698 void CameraService::Client::stopRecording() {
711 void CameraService::Client::releaseRecordingFrame(const sp<IMemory>& mem) {
717 status_t CameraService::Client::storeMetaDataInBuffers(bool enabled)
727 bool CameraService::Client::previewEnabled() {
735 bool CameraService::Client::recordingEnabled() {
743 status_t CameraService::Client::autoFocus() {
753 status_t CameraService::Client::cancelAutoFocus() {
764 status_t CameraService::Client::takePicture(int msgType) {
793 status_t CameraService::Client::setParameters(const String8& params) {
805 String8 CameraService::Client::getParameters() const {
815 status_t CameraService::Client::enableShutterSound(bool enable) {
843 status_t CameraService::Client::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) {
884 void CameraService::Client::enableMsgType(int32_t msgType) {
889 void CameraService::Client::disableMsgType(int32_t msgType) {
895 bool CameraService::Client::lockIfMessageWanted(int32_t msgType) {
919 sp<CameraService::Client> CameraService::Client::getClientFromCookie(void* user) {
920 sp<Client> client = gCameraService->getClientById((int) user);
922 // This could happen if the Client is in the process of shutting down (the
959 // invoke methods in the Client class again (For example, the preview frame
964 void CameraService::Client::notifyCallback(int32_t msgType, int32_t ext1,
968 sp<Client> client = getClientFromCookie(user);
983 void CameraService::Client::dataCallback(int32_t msgType,
987 sp<Client> client = getClientFromCookie(user);
1016 void CameraService::Client::dataCallbackTimestamp(nsecs_t timestamp,
1020 sp<Client> client = getClientFromCookie(user);
1034 void CameraService::Client::handleShutter(void) {
1051 void CameraService::Client::handlePreviewData(int32_t msgType,
1097 void CameraService::Client::handlePostview(const sp<IMemory>& mem) {
1108 void CameraService::Client::handleRawPicture(const sp<IMemory>& mem) {
1123 void CameraService::Client::handleCompressedPicture(const sp<IMemory>& mem) {
1134 void CameraService::Client::handleGenericNotify(int32_t msgType,
1143 void CameraService::Client::handleGenericData(int32_t msgType,
1152 void CameraService::Client::handleGenericDataTimestamp(nsecs_t timestamp,
1161 void CameraService::Client::copyFrameAndPostCopiedFrame(
1199 int CameraService::Client::getOrientation(int degrees, bool mirror) {
1262 sp<Client> client = mClient[i].promote();
1265 sprintf(buffer, "Client[%d] (%p) PID: %d\n",