Lines Matching refs:x
74 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y) in GetPixelValue() argument
81 DISPLAY_TEST_CHK_RETURN((x < 0 || x >= handle.width), 0, in GetPixelValue()
82 DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%d width:%d", x, handle.width)); in GetPixelValue()
86 int32_t position = y * handle.width + x; in GetPixelValue()
104 uint32_t CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) in CheckPixel() argument
111 DISPLAY_TEST_CHK_RETURN((x < 0 || x >= handle.width), 0, in CheckPixel()
112 DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%d width:%d", x, handle.width)); in CheckPixel()
116 int32_t position = y * handle.width + x; in CheckPixel()
125 DISPLAY_TEST_LOGI("x:%d y:%d width:%d", x, y, handle.width); in CheckPixel()
141 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument
149 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((x < 0 || x >= handle.width), in SetPixel()
150 DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%d width:%d", x, handle.width)); in SetPixel()
154 int32_t position = y * handle.width + x; in SetPixel()
164 for (int32_t x = 0; x < handle.width; x++) { in ClearColor() local
166 SetPixel(handle, x, y, color); in ClearColor()
173 DISPLAY_TEST_LOGI("x %d, y %d w %d h %d color %x ", rect.x, rect.y, rect.w, rect.h, color); in ClearColorRect()
174 for (int32_t x = 0; x < rect.w; x++) { in ClearColorRect() local
176 SetPixel(handle, x + rect.x, y + rect.y, color); in ClearColorRect()
198 for (uint32_t x = 0; x < rowNum; x++) { in SplitBuffer() local
200 rect.x = x * cellWidth; in SplitBuffer()