Lines Matching refs:StatusInternal
369 StatusInternal newStatus = mapToInternal(newHalStatus); in onDeviceStatusChanged()
374 if (newStatus == StatusInternal::PRESENT) { in onDeviceStatusChanged()
388 StatusInternal oldStatus = state->getStatus(); in onDeviceStatusChanged()
395 if (newStatus == StatusInternal::NOT_PRESENT) { in onDeviceStatusChanged()
401 updateStatus(StatusInternal::NOT_PRESENT, id); in onDeviceStatusChanged()
422 if (oldStatus == StatusInternal::NOT_PRESENT) { in onDeviceStatusChanged()
436 StatusInternal newStatus = mapToInternal(newHalStatus); in onDeviceStatusChanged()
446 StatusInternal logicalCameraStatus = state->getStatus(); in onDeviceStatusChanged()
447 if (logicalCameraStatus != StatusInternal::PRESENT && in onDeviceStatusChanged()
448 logicalCameraStatus != StatusInternal::NOT_AVAILABLE) { in onDeviceStatusChanged()
455 if (newStatus == StatusInternal::PRESENT) { in onDeviceStatusChanged()
463 if (newStatus == StatusInternal::PRESENT) { in onDeviceStatusChanged()
909 CameraService::StatusInternal CameraService::mapToInternal(CameraDeviceStatus status) { in mapToInternal()
910 StatusInternal serviceStatus = StatusInternal::NOT_PRESENT; in mapToInternal()
913 serviceStatus = StatusInternal::NOT_PRESENT; in mapToInternal()
916 serviceStatus = StatusInternal::PRESENT; in mapToInternal()
919 serviceStatus = StatusInternal::ENUMERATING; in mapToInternal()
927 int32_t CameraService::mapToInterface(StatusInternal status) { in mapToInterface()
930 case StatusInternal::NOT_PRESENT: in mapToInterface()
933 case StatusInternal::PRESENT: in mapToInterface()
936 case StatusInternal::ENUMERATING: in mapToInterface()
939 case StatusInternal::NOT_AVAILABLE: in mapToInterface()
942 case StatusInternal::UNKNOWN: in mapToInterface()
1219 StatusInternal currentStatus = cameraState->getStatus(); in checkIfDeviceIsUsable()
1220 if (currentStatus == StatusInternal::NOT_PRESENT) { in checkIfDeviceIsUsable()
1224 } else if (currentStatus == StatusInternal::ENUMERATING) { in checkIfDeviceIsUsable()
1875 StatusInternal cameraStatus = state->getStatus(); in setTorchMode()
1876 if (cameraStatus != StatusInternal::PRESENT && in setTorchMode()
1877 cameraStatus != StatusInternal::NOT_AVAILABLE) { in setTorchMode()
1900 if (cameraStatus == StatusInternal::NOT_AVAILABLE) { in setTorchMode()
2096 StatusInternal status = state->getStatus(); in getConcurrentCameraIds()
2097 if (status == StatusInternal::NOT_PRESENT || status == StatusInternal::ENUMERATING) { in getConcurrentCameraIds()
2940 sCameraService->updateStatus(StatusInternal::NOT_AVAILABLE, mCameraIdStr); in startCameraOps()
2972 std::initializer_list<StatusInternal> rejected = {StatusInternal::PRESENT, in finishCameraOps()
2973 StatusInternal::ENUMERATING, StatusInternal::NOT_PRESENT}; in finishCameraOps()
2976 sCameraService->updateStatus(StatusInternal::PRESENT, in finishCameraOps()
3346 mStatus(StatusInternal::NOT_PRESENT), mCost(cost), mConflicting(conflicting), in CameraState()
3351 CameraService::StatusInternal CameraService::CameraState::getStatus() const { in getStatus()
3719 void CameraService::updateStatus(StatusInternal status, const String8& cameraId) { in updateStatus()
3723 void CameraService::updateStatus(StatusInternal status, const String8& cameraId, in updateStatus()
3724 std::initializer_list<StatusInternal> rejectSourceStates) { in updateStatus()
3757 (const String8& cameraId, StatusInternal status) { in updateStatus()
3759 if (status != StatusInternal::ENUMERATING) { in updateStatus()
3766 status == StatusInternal::PRESENT ? in updateStatus()
3818 void CameraService::CameraState::updateStatus(StatusInternal status, in updateStatus()
3820 std::initializer_list<StatusInternal> rejectSourceStates, in updateStatus()
3823 StatusInternal oldStatus = mStatus; in updateStatus()
3833 if (oldStatus == StatusInternal::NOT_PRESENT && in updateStatus()
3834 (status != StatusInternal::PRESENT && in updateStatus()
3835 status != StatusInternal::ENUMERATING)) { in updateStatus()