camera: Replace "sanity" with more inclusive terms
Replace "sanity check" with "consistency check".
BUG=b:162281119
TEST=CQ
Change-Id: I4a5d8dc90a22c5ab3c2a6e78e5ad7bd3e89d14ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2320915
Tested-by: Shik Chen <shik@chromium.org>
Reviewed-by: Hung-yu Wu <hywu@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
diff --git a/camera/common/camera_buffer_handle.h b/camera/common/camera_buffer_handle.h
index 45ec020..f4e730d 100644
--- a/camera/common/camera_buffer_handle.h
+++ b/camera/common/camera_buffer_handle.h
@@ -25,7 +25,7 @@
native_handle_t base;
// The fds for each plane.
int fds[kMaxPlanes];
- // Should be kCameraBufferMagic. This is for basic sanity check.
+ // Should be kCameraBufferMagic. This is for basic consistency check.
uint32_t magic;
// Used to identify the buffer object on the other end of the IPC channel
// (e.g. the Android container or Chrome browser process.)
diff --git a/camera/hal/intel/ipu3/psl/ipu3/AAARunner.cpp b/camera/hal/intel/ipu3/psl/ipu3/AAARunner.cpp
index 55763d9..28e07dc 100644
--- a/camera/hal/intel/ipu3/psl/ipu3/AAARunner.cpp
+++ b/camera/hal/intel/ipu3/psl/ipu3/AAARunner.cpp
@@ -734,7 +734,8 @@
int lutSize = results.gamma_lut_size;
/*
- * Sanity check. If gbce isn't producing a lut, we can't overwrite it.
+ * Basic consistency check. If gbce isn't producing a lut, we can't
+ * overwrite it.
*/
if (lutSize <= 0) {
LOGE("Bad gamma lut size (%d) in gbce results", lutSize);
diff --git a/camera/hal/intel/ipu3/psl/ipu3/GraphConfig.cpp b/camera/hal/intel/ipu3/psl/ipu3/GraphConfig.cpp
index 6a0fe46..05d17cb 100644
--- a/camera/hal/intel/ipu3/psl/ipu3/GraphConfig.cpp
+++ b/camera/hal/intel/ipu3/psl/ipu3/GraphConfig.cpp
@@ -1072,7 +1072,7 @@
retErr = getDimensions(csiBEOutput, csiBEOutW, csiBEOutH);
CheckError(retErr != OK, UNKNOWN_ERROR, "Failed to get values from csi be output");
- /* sanity check, we have at least one CSI-BE */
+ /* consistency check, we have at least one CSI-BE */
CheckError(csiBEOutput == nullptr, UNKNOWN_ERROR, "CSI BE Output nullptr");
/* Set sensor pixel array parameter to the attributes in 'sensor_mode' node,
diff --git a/camera/hal/rockchip/common/v4l2dev/v4l2videonode.cpp b/camera/hal/rockchip/common/v4l2dev/v4l2videonode.cpp
index 224d2ee..92520fa 100644
--- a/camera/hal/rockchip/common/v4l2dev/v4l2videonode.cpp
+++ b/camera/hal/rockchip/common/v4l2dev/v4l2videonode.cpp
@@ -531,8 +531,8 @@
}
/**
- * queries the capabilities of the device and it does some basic sanity checks
- * based on the direction of the video device node
+ * queries the capabilities of the device and it does some basic consistency
+ * checks based on the direction of the video device node
*
* \param cap: [OUT] V4L2 capability structure
*
diff --git a/camera/hal/rockchip/psl/rkisp1/GraphConfig.cpp b/camera/hal/rockchip/psl/rkisp1/GraphConfig.cpp
index 65a5069..9fa8393 100644
--- a/camera/hal/rockchip/psl/rkisp1/GraphConfig.cpp
+++ b/camera/hal/rockchip/psl/rkisp1/GraphConfig.cpp
@@ -2022,7 +2022,7 @@
}
}
- /* sanity check, we have at least one CSI-BE */
+ /* consistency check, we have at least one CSI-BE */
if (CC_UNLIKELY(csiBESocOutput == nullptr && csiBEOutput == nullptr)) {
LOGE("Error: CSI BE Output nullptr");
return UNKNOWN_ERROR;
diff --git a/camera/hal/rockchip/psl/rkisp1/Rk3aRunner.cpp b/camera/hal/rockchip/psl/rkisp1/Rk3aRunner.cpp
index 2a8d228..2747ec7 100644
--- a/camera/hal/rockchip/psl/rkisp1/Rk3aRunner.cpp
+++ b/camera/hal/rockchip/psl/rkisp1/Rk3aRunner.cpp
@@ -276,7 +276,8 @@
int lutSize = results.gamma_y.gamma_y_cnt;
/*
- * Sanity check. If gbce isn't producing a lut, we can't overwrite it.
+ * Basic consistency check. If gbce isn't producing a lut, we can't
+ * overwrite it.
*/
if (lutSize <= 0) {
LOGE("Bad gamma lut size (%d) in gbce results", lutSize);