Lines Matching refs:newStatus
328 StatusInternal newStatus = mapToInternal(newHalStatus); in onDeviceStatusChanged() local
333 if (newStatus == StatusInternal::PRESENT) { in onDeviceStatusChanged()
340 updateStatus(newStatus, id); in onDeviceStatusChanged()
349 if (oldStatus == newStatus) { in onDeviceStatusChanged()
350 ALOGE("%s: State transition to the same status %#x not allowed", __FUNCTION__, newStatus); in onDeviceStatusChanged()
354 if (newStatus == StatusInternal::NOT_PRESENT) { in onDeviceStatusChanged()
356 newStatus)); in onDeviceStatusChanged()
389 newStatus)); in onDeviceStatusChanged()
391 updateStatus(newStatus, id); in onDeviceStatusChanged()
397 TorchModeStatus newStatus) { in onTorchStatusChanged() argument
399 onTorchStatusChangedLocked(cameraId, newStatus); in onTorchStatusChanged()
403 TorchModeStatus newStatus) { in onTorchStatusChangedLocked() argument
405 __FUNCTION__, cameraId.string(), newStatus); in onTorchStatusChangedLocked()
414 if (status == newStatus) { in onTorchStatusChangedLocked()
418 res = setTorchStatusLocked(cameraId, newStatus); in onTorchStatusChangedLocked()
421 (uint32_t)newStatus, strerror(-res), res); in onTorchStatusChangedLocked()
438 if (newStatus == TorchModeStatus::AVAILABLE_ON) { in onTorchStatusChangedLocked()
444 if (newStatus == TorchModeStatus::AVAILABLE_ON) { in onTorchStatusChangedLocked()
453 broadcastTorchModeStatus(cameraId, newStatus); in onTorchStatusChangedLocked()