Lines Matching refs:y
95 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y) in GetPixelValue() argument
105 DISPLAY_TEST_CHK_RETURN((y < 0 || y >= handle.height), 0, in GetPixelValue()
106 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in GetPixelValue()
108 int32_t position = y * handle.width + x; in GetPixelValue()
128 uint32_t CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) in CheckPixel() argument
138 DISPLAY_TEST_CHK_RETURN((y < 0 || y >= handle.height), 0, in CheckPixel()
139 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in CheckPixel()
141 int32_t position = y * handle.width + x; in CheckPixel()
150 DISPLAY_TEST_LOGD("x:%{public}d y:%{public}d width:%{public}d", x, y, handle.width); in CheckPixel()
169 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument
179 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((y < 0 || y >= handle.height), in SetPixel()
180 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in SetPixel()
182 int32_t position = y * handle.stride / PIXEL_BYTES + x; in SetPixel()
195 for (int32_t y = 0; y < handle.height; y++) { in ClearColor() local
196 SetPixel(handle, x, y, color); in ClearColor()
203 …D("x %{public}d, y %{public}d w %{public}d h %{public}d color %x ", rect.x, rect.y, rect.w, rect.h, in ClearColorRect()
206 for (int32_t y = 0; y < rect.h; y++) { in ClearColorRect() local
207 SetPixel(handle, x + rect.x, y + rect.y, color); in ClearColorRect()
232 for (uint32_t y = 0; y < COL_NUM; y++) { in SplitBuffer() local
234 rect.y = y * CELL_HEIGHT; in SplitBuffer()