Lines Matching refs:idx
198 ResponseCode TrustyConfirmationUI::renderAndSwap(uint32_t idx) { in renderAndSwap() argument
208 switch (fb_info_[idx].rotation) { in renderAndSwap()
215 x = (fb_info_[idx].width - temp) - 1; in renderAndSwap()
219 x = (fb_info_[idx].width - x) - 1; in renderAndSwap()
220 y = (fb_info_[idx].height - y) - 1; in renderAndSwap()
226 y = (fb_info_[idx].height - temp) - 1; in renderAndSwap()
234 y * fb_info_[idx].line_stride + x * fb_info_[idx].pixel_stride; in renderAndSwap()
235 TLOGD("pos: %zu, bufferSize: %" PRIu32 "\n", pos, fb_info_[idx].size); in renderAndSwap()
236 if (pos >= fb_info_[idx].size) { in renderAndSwap()
242 *reinterpret_cast<teeui::Color*>(fb_info_[idx].buffer + pos); in renderAndSwap()
255 uint8_t* line_iter = fb_info_[idx].buffer; in renderAndSwap()
256 for (uint32_t yi = 0; yi < fb_info_[idx].height; ++yi) { in renderAndSwap()
258 for (uint32_t xi = 0; xi < fb_info_[idx].width; ++xi) { in renderAndSwap()
260 pixel_iter += fb_info_[idx].pixel_stride; in renderAndSwap()
262 line_iter += fb_info_[idx].line_stride; in renderAndSwap()
265 if (auto error = layout_[idx]->drawElements(drawPixel)) { in renderAndSwap()
270 if (auto rc = secure_fb_display_next(secure_fb_handle_[idx], in renderAndSwap()
271 &fb_info_[idx])) { in renderAndSwap()