Lines Matching refs:length

86   int length;  member
100 si->length = si->width * si->height; in get_screen_info()
173 DWORD length, number_of_written; in setup_screen() local
177 length = info.dwSize.X * (info.srWindow.Bottom - info.srWindow.Top + 1); in setup_screen()
181 tty_out->handle, '.', length, origin, &number_of_written)); in setup_screen()
182 ASSERT_EQ(length, number_of_written); in setup_screen()
186 DWORD length, number_of_written; in clear_screen() local
190 length = (info.srWindow.Bottom - info.srWindow.Top + 1) * info.dwSize.X - 1; in clear_screen()
194 tty_out->handle, ' ', length, origin, &number_of_written); in clear_screen()
195 ASSERT_EQ(length, number_of_written); in clear_screen()
197 tty_out->handle, si->default_attr, length, origin, &number_of_written); in clear_screen()
198 ASSERT_EQ(length, number_of_written); in clear_screen()
209 DWORD length; in capture_screen() local
214 cs->text = malloc(cs->si.length * sizeof(*cs->text)); in capture_screen()
216 cs->attributes = (WORD*) malloc(cs->si.length * sizeof(*cs->attributes)); in capture_screen()
219 tty_out->handle, cs->text, cs->si.length, origin, &length)); in capture_screen()
220 ASSERT_EQ((unsigned int) cs->si.length, length); in capture_screen()
222 tty_out->handle, cs->attributes, cs->si.length, origin, &length)); in capture_screen()
223 ASSERT_EQ((unsigned int) cs->si.length, length); in capture_screen()
237 end = cs->text + cs->si.length; in make_expect_screen_erase()
256 end = cs->text + cs->si.length; in make_expect_screen_erase()
265 ASSERT_LE(end - cs->text, cs->si.length); in make_expect_screen_erase()
278 size_t length = strlen(text); in make_expect_screen_write() local
279 size_t remain_length = cs->si.length - (cs->text - start); in make_expect_screen_write()
280 length = length > remain_length ? remain_length : length; in make_expect_screen_write()
281 memcpy(start, text, length); in make_expect_screen_write()
286 size_t length, in make_expect_screen_set_attr() argument
291 size_t remain_length = cs->si.length - (cs->attributes - start); in make_expect_screen_set_attr()
292 length = length > remain_length ? remain_length : length; in make_expect_screen_set_attr()
293 while (length) { in make_expect_screen_set_attr()
296 length--; in make_expect_screen_set_attr()
310 if (actual->si.length != expect->si.length) { in compare_screen()
319 while (current < actual->si.length) { in compare_screen()
1076 int i, length; in TEST_IMPL()
1087 length = ARRAY_SIZE(fg_attrs); in TEST_IMPL()
1088 for (i = 0; i < length; i++) { in TEST_IMPL()
1106 length = ARRAY_SIZE(bg_attrs); in TEST_IMPL()
1107 for (i = 0; i < length; i++) { in TEST_IMPL()
1126 length = ARRAY_SIZE(bg_attrs); in TEST_IMPL()
1127 for (i = 0; i < length; i++) { in TEST_IMPL()