• Home
  • Raw
  • Download

Lines Matching refs:Status

32 using ::android::hardware::camera::common::V1_0::Status;
60 Status CameraDevice::initStatus() const { in initStatus()
62 Status status = Status::OK; in initStatus()
64 status = Status::INTERNAL_ERROR; in initStatus()
66 status = Status::CAMERA_DISCONNECTED; in initStatus()
89 Status CameraDevice::getHidlStatus(int status) { in getHidlStatus()
91 case 0: return Status::OK; in getHidlStatus()
92 case -ENOSYS: return Status::OPERATION_NOT_SUPPORTED; in getHidlStatus()
93 case -EBUSY : return Status::CAMERA_IN_USE; in getHidlStatus()
94 case -EUSERS: return Status::MAX_CAMERAS_IN_USE; in getHidlStatus()
95 case -ENODEV: return Status::INTERNAL_ERROR; in getHidlStatus()
96 case -EINVAL: return Status::ILLEGAL_ARGUMENT; in getHidlStatus()
99 return Status::INTERNAL_ERROR; in getHidlStatus()
105 Status status = initStatus(); in getResourceCost()
107 if (status == Status::OK) { in getResourceCost()
126 status = Status::INTERNAL_ERROR; in getResourceCost()
130 if (status == Status::OK) { in getResourceCost()
146 Status status = initStatus(); in getCameraCharacteristics()
148 if (status == Status::OK) { in getCameraCharacteristics()
156 status = Status::INTERNAL_ERROR; in getCameraCharacteristics()
163 Return<Status> CameraDevice::setTorchMode(TorchMode mode) { in setTorchMode()
165 return Status::METHOD_NOT_SUPPORTED; in setTorchMode()
168 Status status = initStatus(); in setTorchMode()
169 if (status == Status::OK) { in setTorchMode()
178 Status status = initStatus(); in open()
184 _hidl_cb(Status::ILLEGAL_ARGUMENT, nullptr); in open()
188 if (status != Status::OK) { in open()
193 _hidl_cb(Status::CAMERA_DISCONNECTED, nullptr); in open()
203 _hidl_cb(Status::CAMERA_IN_USE, nullptr); in open()
232 _hidl_cb(Status::ILLEGAL_ARGUMENT, nullptr); in open()
242 _hidl_cb(Status::ILLEGAL_ARGUMENT, nullptr); in open()
251 _hidl_cb(Status::INTERNAL_ERROR, nullptr); in open()
258 _hidl_cb(Status::INTERNAL_ERROR, nullptr); in open()