Lines Matching refs:StatusInternal

328     StatusInternal newStatus = mapToInternal(newHalStatus);  in onDeviceStatusChanged()
333 if (newStatus == StatusInternal::PRESENT) { in onDeviceStatusChanged()
347 StatusInternal oldStatus = state->getStatus(); in onDeviceStatusChanged()
354 if (newStatus == StatusInternal::NOT_PRESENT) { in onDeviceStatusChanged()
360 updateStatus(StatusInternal::NOT_PRESENT, id); in onDeviceStatusChanged()
387 if (oldStatus == StatusInternal::NOT_PRESENT) { in onDeviceStatusChanged()
761 CameraService::StatusInternal CameraService::mapToInternal(CameraDeviceStatus status) { in mapToInternal()
762 StatusInternal serviceStatus = StatusInternal::NOT_PRESENT; in mapToInternal()
765 serviceStatus = StatusInternal::NOT_PRESENT; in mapToInternal()
768 serviceStatus = StatusInternal::PRESENT; in mapToInternal()
771 serviceStatus = StatusInternal::ENUMERATING; in mapToInternal()
779 int32_t CameraService::mapToInterface(StatusInternal status) { in mapToInterface()
782 case StatusInternal::NOT_PRESENT: in mapToInterface()
785 case StatusInternal::PRESENT: in mapToInterface()
788 case StatusInternal::ENUMERATING: in mapToInterface()
791 case StatusInternal::NOT_AVAILABLE: in mapToInterface()
794 case StatusInternal::UNKNOWN: in mapToInterface()
1054 StatusInternal currentStatus = cameraState->getStatus(); in checkIfDeviceIsUsable()
1055 if (currentStatus == StatusInternal::NOT_PRESENT) { in checkIfDeviceIsUsable()
1059 } else if (currentStatus == StatusInternal::ENUMERATING) { in checkIfDeviceIsUsable()
1585 StatusInternal cameraStatus = state->getStatus(); in setTorchMode()
1586 if (cameraStatus != StatusInternal::PRESENT && in setTorchMode()
1587 cameraStatus != StatusInternal::NOT_AVAILABLE) { in setTorchMode()
1610 if (cameraStatus == StatusInternal::NOT_AVAILABLE) { in setTorchMode()
2510 sCameraService->updateStatus(StatusInternal::NOT_AVAILABLE, mCameraIdStr); in startCameraOps()
2542 std::initializer_list<StatusInternal> rejected = {StatusInternal::PRESENT, in finishCameraOps()
2543 StatusInternal::ENUMERATING, StatusInternal::NOT_PRESENT}; in finishCameraOps()
2546 sCameraService->updateStatus(StatusInternal::PRESENT, in finishCameraOps()
2915 mStatus(StatusInternal::NOT_PRESENT), mCost(cost), mConflicting(conflicting), in CameraState()
2920 CameraService::StatusInternal CameraService::CameraState::getStatus() const { in getStatus()
3268 void CameraService::updateStatus(StatusInternal status, const String8& cameraId) { in updateStatus()
3272 void CameraService::updateStatus(StatusInternal status, const String8& cameraId, in updateStatus()
3273 std::initializer_list<StatusInternal> rejectSourceStates) { in updateStatus()
3300 (const String8& cameraId, StatusInternal status) { in updateStatus()
3302 if (status != StatusInternal::ENUMERATING) { in updateStatus()
3309 status == StatusInternal::PRESENT ? in updateStatus()
3363 void CameraService::CameraState::updateStatus(StatusInternal status, in updateStatus()
3365 std::initializer_list<StatusInternal> rejectSourceStates, in updateStatus()
3368 StatusInternal oldStatus = mStatus; in updateStatus()
3378 if (oldStatus == StatusInternal::NOT_PRESENT && in updateStatus()
3379 (status != StatusInternal::PRESENT && in updateStatus()
3380 status != StatusInternal::ENUMERATING)) { in updateStatus()