Lines Matching defs:row

112     // Fill in the row slot
123 LOGE("The row failed, so back out the new row accounting from allocRowSlot %d", mHeader->numRows);
129 LOG_WINDOW("Allocated row %u, rowSlot is at offset %u, fieldDir is %d bytes at offset %u\n", (mHeader->numRows - 1), ((uint8_t *)rowSlot) - mData, fieldDirSize, fieldDirOffset);
150 // Only grow the window if the first row doesn't fit
152 LOGE("not growing since there are already %d row(s), max size %d", mHeader->numRows, mMaxSize);
175 row_slot_t * CursorWindow::getRowSlot(int row)
177 LOG_WINDOW("enter getRowSlot current row num %d, this row %d", mHeader->numRows, row);
178 int chunkNum = row / ROW_SLOT_CHUNK_NUM_ROWS;
179 int chunkPos = row % ROW_SLOT_CHUNK_NUM_ROWS;
187 LOG_WINDOW("exit getRowSlot current row num %d, this row %d", mHeader->numRows, row);
196 LOG_WINDOW("Allocating row slot, mHeader->numRows is %d, chunkNum is %d, chunkPos is %d", mHeader->numRows, chunkNum, chunkPos);
201 // Allocate a new row chunk
222 field_slot_t * CursorWindow::getFieldSlotWithCheck(int row, int column)
224 if (row < 0 || row >= mHeader->numRows || column < 0 || column >= mHeader->numColumns) {
225 LOGE("Bad request for field slot %d,%d. numRows = %d, numColumns = %d", row, column, mHeader->numRows, mHeader->numColumns);
228 row_slot_t * rowSlot = getRowSlot(row);
230 LOGE("Failed to find rowSlot for row %d", row);
241 uint32_t CursorWindow::read_field_slot(int row, int column, field_slot_t * slotOut)
243 if (row < 0 || row >= mHeader->numRows || column < 0 || column >= mHeader->numColumns) {
244 LOGE("Bad request for field slot %d,%d. numRows = %d, numColumns = %d", row, column, mHeader->numRows, mHeader->numColumns);
247 row_slot_t * rowSlot = getRowSlot(row);
249 LOGE("Failed to find rowSlot for row %d", row);
256 LOG_WINDOW("Found field directory for %d,%d at rowSlot %d, offset %d", row, column, (uint8_t *)rowSlot - mData, rowSlot->offset);
258 LOG_WINDOW("Read field_slot_t %d,%d: offset = %d, size = %d, type = %d", row, column, fieldDir[column].data.buffer.offset, fieldDir[column].data.buffer.size, fieldDir[column].type);
307 bool CursorWindow::putLong(unsigned int row, unsigned int col, int64_t value)
309 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);
331 bool CursorWindow::putDouble(unsigned int row, unsigned int col, double value)
333 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);
355 bool CursorWindow::putNull(unsigned int row, unsigned int col)
357 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);
368 bool CursorWindow::getLong(unsigned int row, unsigned int col, int64_t * valueOut)
370 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);
383 bool CursorWindow::getDouble(unsigned int row, unsigned int col, double * valueOut)
385 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);
398 bool CursorWindow::getNull(unsigned int row, unsigned int col, bool * valueOut)
400 field_slot_t * fieldSlot = getFieldSlotWithCheck(row, col);