Lines Matching refs:cols

78     inline ScrollbackLine(dimen_t _cols) : cols(_cols) {  in ScrollbackLine()
79 mCells = new VTermScreenCell[cols]; in ScrollbackLine()
85 inline dimen_t copyFrom(dimen_t cols, const VTermScreenCell* cells) { in copyFrom() argument
86 dimen_t n = this->cols > cols ? cols : this->cols; in copyFrom()
91 inline dimen_t copyTo(dimen_t cols, VTermScreenCell* cells) { in copyTo() argument
92 dimen_t n = cols > this->cols ? this->cols : cols; in copyTo()
101 const dimen_t cols; member in android::ScrollbackLine
123 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows);
125 status_t onPushline(dimen_t cols, const VTermScreenCell* cells);
126 status_t onPopline(dimen_t cols, VTermScreenCell* cells);
238 static int term_sb_pushline(int cols, const VTermScreenCell *cells, void *user) { in term_sb_pushline() argument
244 return term->onPushline(cols, cells); in term_sb_pushline()
247 static int term_sb_popline(int cols, VTermScreenCell *cells, void *user) { in term_sb_popline() argument
253 return term->onPopline(cols, cells); in term_sb_popline()
418 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) { in resize() argument
421 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows); in resize()
424 mCols = cols; in resize()
427 struct winsize size = { rows, cols, 0, 0 }; in resize()
430 vterm_set_size(mVt, rows, cols); in resize()
436 status_t Terminal::onPushline(dimen_t cols, const VTermScreenCell* cells) { in onPushline() argument
440 if (mScroll[mScrollCur - 1]->cols == cols) { in onPushline()
452 line = new ScrollbackLine(cols); in onPushline()
461 line->copyFrom(cols, cells); in onPushline()
465 status_t Terminal::onPopline(dimen_t cols, VTermScreenCell* cells) { in onPopline() argument
474 dimen_t n = line->copyTo(cols, cells); in onPopline()
475 for (dimen_t col = n; col < cols; col++) { in onPopline()
500 if ((size_t) pos.col < line->cols) { in getCellLocked()
510 line->getCell(line->cols - 1, cell); in getCellLocked()
569 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { in com_android_terminal_Terminal_nativeResize() argument
571 return term->resize(rows, cols, scrollRows); in com_android_terminal_Terminal_nativeResize()