Home
last modified time | relevance | path

Searched refs:column (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/database/
DCursorWindow.java74 private static native int nativeGetType(int windowPtr, int row, int column); in nativeGetType() argument
75 private static native byte[] nativeGetBlob(int windowPtr, int row, int column); in nativeGetBlob() argument
76 private static native String nativeGetString(int windowPtr, int row, int column); in nativeGetString() argument
77 private static native long nativeGetLong(int windowPtr, int row, int column); in nativeGetLong() argument
78 private static native double nativeGetDouble(int windowPtr, int row, int column); in nativeGetDouble() argument
79 private static native void nativeCopyStringToBuffer(int windowPtr, int row, int column, in nativeCopyStringToBuffer() argument
82 private static native boolean nativePutBlob(int windowPtr, byte[] value, int row, int column); in nativePutBlob() argument
83 private static native boolean nativePutString(int windowPtr, String value, int row, int column); in nativePutString() argument
84 private static native boolean nativePutLong(int windowPtr, long value, int row, int column); in nativePutLong() argument
85 private static native boolean nativePutDouble(int windowPtr, double value, int row, int column); in nativePutDouble() argument
[all …]
DMatrixCursor.java64 private Object get(int column) { in get() argument
65 if (column < 0 || column >= columnCount) { in get()
67 + column + ", # of columns: " + columnCount); in get()
75 return data[mPos * columnCount + column]; in get()
228 public String getString(int column) { in getString() argument
229 Object value = get(column); in getString()
235 public short getShort(int column) { in getShort() argument
236 Object value = get(column); in getShort()
243 public int getInt(int column) { in getInt() argument
244 Object value = get(column); in getInt()
[all …]
DMergeCursor.java96 public String getString(int column) in getString() argument
98 return mCursor.getString(column); in getString()
102 public short getShort(int column) in getShort() argument
104 return mCursor.getShort(column); in getShort()
108 public int getInt(int column) in getInt() argument
110 return mCursor.getInt(column); in getInt()
114 public long getLong(int column) in getLong() argument
116 return mCursor.getLong(column); in getLong()
120 public float getFloat(int column) in getFloat() argument
122 return mCursor.getFloat(column); in getFloat()
[all …]
DAbstractCursor.java47 abstract public String getString(int column); in getString() argument
48 abstract public short getShort(int column); in getShort() argument
49 abstract public int getInt(int column); in getInt() argument
50 abstract public long getLong(int column); in getLong() argument
51 abstract public float getFloat(int column); in getFloat() argument
52 abstract public double getDouble(int column); in getDouble() argument
53 abstract public boolean isNull(int column); in isNull() argument
55 public int getType(int column) { in getType() argument
60 public byte[] getBlob(int column) { in getBlob() argument
DDatabaseUtils.java775 String column) { in cursorStringToContentValuesIfPresent() argument
776 final int index = cursor.getColumnIndex(column); in cursorStringToContentValuesIfPresent()
778 values.put(column, cursor.getString(index)); in cursorStringToContentValuesIfPresent()
791 String column) { in cursorLongToContentValuesIfPresent() argument
792 final int index = cursor.getColumnIndex(column); in cursorLongToContentValuesIfPresent()
794 values.put(column, cursor.getLong(index)); in cursorLongToContentValuesIfPresent()
807 String column) { in cursorShortToContentValuesIfPresent() argument
808 final int index = cursor.getColumnIndex(column); in cursorShortToContentValuesIfPresent()
810 values.put(column, cursor.getShort(index)); in cursorShortToContentValuesIfPresent()
823 String column) { in cursorIntToContentValuesIfPresent() argument
[all …]
/frameworks/base/core/java/android/text/
DPackedIntVector.java66 public int getValue(int row, int column) { in getValue() argument
69 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue()
70 throw new IndexOutOfBoundsException(row + ", " + column); in getValue()
77 int value = mValues[row * columns + column]; in getValue()
80 if (row >= valuegap[column]) { in getValue()
81 value += valuegap[column + columns]; in getValue()
97 public void setValue(int row, int column, int value) { in setValue() argument
98 if (((row | column) < 0) || (row >= size()) || (column >= mColumns)) { in setValue()
99 throw new IndexOutOfBoundsException(row + ", " + column); in setValue()
107 if (row >= valuegap[column]) { in setValue()
[all …]
DPackedObjectVector.java44 getValue(int row, int column) in getValue() argument
49 Object value = mValues[row * mColumns + column]; in getValue()
55 setValue(int row, int column, E value) in setValue() argument
60 mValues[row * mColumns + column] = value; in setValue()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java122 for (int column = 0; column < 7; column++) { in getDigitsForRow()
123 result[column] = getDayAt(row, column); in getDigitsForRow()
134 public int getDayAt(int row, int column) { in getDayAt() argument
136 if (row == 0 && column < mOffset) { in getDayAt()
137 return mNumDaysInPrevMonth + column - mOffset + 1; in getDayAt()
140 int day = 7 * row + column - mOffset + 1; in getDayAt()
179 public boolean isWithinCurrentMonth(int row, int column) { in isWithinCurrentMonth() argument
181 if (row < 0 || column < 0 || row > 5 || column > 6) { in isWithinCurrentMonth()
185 if (row == 0 && column < mOffset) { in isWithinCurrentMonth()
189 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth()
DDayOfMonthCursor.java91 public boolean isSelected(int row, int column) { in isSelected() argument
92 return (mRow == row) && (mColumn == column); in isSelected()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java42 int column; field in MtpPropertyGroup.Property
44 Property(int code, int type, int column) { in Property() argument
47 this.column = column; in Property()
91 String column = null; in createProperty() local
96 column = Files.FileColumns.STORAGE_ID; in createProperty()
100 column = Files.FileColumns.FORMAT; in createProperty()
108 column = Files.FileColumns.SIZE; in createProperty()
112 column = Files.FileColumns.DATA; in createProperty()
116 column = MediaColumns.TITLE; in createProperty()
120 column = Files.FileColumns.DATE_MODIFIED; in createProperty()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp46 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { in throwExceptionWithRowCol() argument
50 row, column); in throwExceptionWithRowCol()
153 jint row, jint column) { in nativeGetType() argument
155 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); in nativeGetType()
157 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetType()
168 jint row, jint column) { in nativeGetBlob() argument
170 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); in nativeGetBlob()
172 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetBlob()
174 throwExceptionWithRowCol(env, row, column); in nativeGetBlob()
203 jint row, jint column) { in nativeGetString() argument
[all …]
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java185 public String getString(int column) in getString() argument
187 return mCursor.getString(column); in getString()
191 public short getShort(int column) in getShort() argument
193 return mCursor.getShort(column); in getShort()
197 public int getInt(int column) in getInt() argument
199 return mCursor.getInt(column); in getInt()
203 public long getLong(int column) in getLong() argument
205 return mCursor.getLong(column); in getLong()
209 public float getFloat(int column) in getFloat() argument
211 return mCursor.getFloat(column); in getFloat()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DLinearLayoutGrid.java39 public Button getButtonAt(int column, int row) { in getButtonAt() argument
43 if (column < 0 || column > 2) { in getButtonAt()
46 return (Button) getColumn(column).getChildAt(row); in getButtonAt()
51 private LinearLayout getColumn(int column) { in getColumn() argument
52 switch (column) { in getColumn()
/frameworks/base/libs/binder/
DCursorWindow.cpp258 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { in getFieldSlot() argument
259 if (row >= mHeader->numRows || column >= mHeader->numColumns) { in getFieldSlot()
262 row, column, mHeader->numRows, mHeader->numColumns); in getFieldSlot()
271 return &fieldDir[column]; in getFieldSlot()
274 status_t CursorWindow::putBlob(uint32_t row, uint32_t column, const void* value, size_t size) { in putBlob() argument
275 return putBlobOrString(row, column, value, size, FIELD_TYPE_BLOB); in putBlob()
278 status_t CursorWindow::putString(uint32_t row, uint32_t column, const char* value, in putString() argument
280 return putBlobOrString(row, column, value, sizeIncludingNull, FIELD_TYPE_STRING); in putString()
283 status_t CursorWindow::putBlobOrString(uint32_t row, uint32_t column, in putBlobOrString() argument
289 FieldSlot* fieldSlot = getFieldSlot(row, column); in putBlobOrString()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java137 int column; field in LockPatternView.Cell
153 private Cell(int row, int column) { in Cell() argument
154 checkRange(row, column); in Cell()
156 this.column = column; in Cell()
164 return column; in getColumn()
171 public static synchronized Cell of(int row, int column) { in of() argument
172 checkRange(row, column); in of()
173 return sCells[row][column]; in of()
176 private static void checkRange(int row, int column) { in checkRange() argument
180 if (column < 0 || column > 2) { in checkRange()
[all …]
/frameworks/base/include/binder/
DCursorWindow.h105 status_t putBlob(uint32_t row, uint32_t column, const void* value, size_t size);
106 status_t putString(uint32_t row, uint32_t column, const char* value, size_t sizeIncludingNull);
107 status_t putLong(uint32_t row, uint32_t column, int64_t value);
108 status_t putDouble(uint32_t row, uint32_t column, double value);
109 status_t putNull(uint32_t row, uint32_t column);
115 FieldSlot* getFieldSlot(uint32_t row, uint32_t column);
188 status_t putBlobOrString(uint32_t row, uint32_t column,
/frameworks/base/core/java/android/view/animation/
DGridLayoutAnimationController.java305 final int column = getTransformedColumnIndex(params); in getDelayForView() local
324 viewDelay = (long) (row * rowDelay + column * rowsCount * rowDelay); in getDelayForView()
328 viewDelay = (long) (column * columnDelay + row * columnsCount * columnDelay); in getDelayForView()
333 viewDelay = (long) (column * columnDelay + row * rowDelay); in getDelayForView()
348 index = params.columnsCount - 1 - params.column; in getTransformedColumnIndex()
358 index = params.column; in getTransformedColumnIndex()
407 public int column; field in GridLayoutAnimationController.AnimationParameters
/frameworks/base/core/java/android/widget/
DTableRow.java164 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns()
165 virtualCount = layoutParams.column; in mapIndexAndColumns()
393 public int column; field in TableRow.LayoutParams
416 column = a.getInt(com.android.internal.R.styleable.TableRow_Cell_layout_column, -1); in LayoutParams()
433 column = -1; in LayoutParams()
446 column = -1; in LayoutParams()
457 column = -1; in LayoutParams()
470 public LayoutParams(int column) { in LayoutParams() argument
472 this.column = column; in LayoutParams()
DTableLayout.java593 int column = columns.keyAt(i); in mutateColumnsWidth() local
595 if (column < length) { in mutateColumnsWidth()
596 maxWidths[column] += extraSpace; in mutateColumnsWidth()
615 int column = columns.keyAt(i); in mutateColumnsWidth() local
616 if (columns.valueAt(i) && column < length) { in mutateColumnsWidth()
617 if (extraSpace > maxWidths[column]) { in mutateColumnsWidth()
618 maxWidths[column] = 0; in mutateColumnsWidth()
620 maxWidths[column] += extraSpace; in mutateColumnsWidth()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java246 String column = columns[i]; in appendColumns() local
248 if (column != null) { in appendColumns()
252 s.append(column); in appendColumns()
574 String column = mProjectionMap.get(userColumn); in computeProjection() local
576 if (column != null) { in computeProjection()
577 projection[i] = column; in computeProjection()
/frameworks/base/docs/html/guide/topics/search/
Dadding-custom-suggestions.jd320 using the required column names and then add a row for each suggestion using {@link
348 <dd>A string. If your Cursor includes this column, then all suggestions are provided in a
349 two-line format. The string in this column is displayed as a second, smaller line of text below the
352 <dd>A drawable resource, content, or file URI string. If your Cursor includes this column, then
356 <dd>A drawable resource, content, or file URI string. If your Cursor includes this column, then
360 <dd>An intent action string. If this column exists and contains a value at the given row, the
365 android:searchSuggestIntentAction} and omit this column.</dd>
367 <dd>A data URI string. If this column exists and contains a value at the given row, this is the
373 android:searchSuggestIntentData} and omit this column.
376 <dd>A URI path string. If this column exists and contains a value at the given row, then "/" and
[all …]
Dsearchable-config.jd98 column to rewrite the query text.</td>
103 {@link android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA} column to rewrite the
168 android.app.SearchManager#SUGGEST_COLUMN_INTENT_ACTION} column), this value is placed in the action
175 android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA} column), this value is
341 <dd><em>String</em>. The name of the column in your content provider that defines the
347 <p>First, you must define a column in your
349 column in this attribute. The system looks at your suggestion cursor,
350 using the string provided here to select your action message column, and
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-providers.jd94 where each row is a record and each column is data of a particular type
151 record to record and column to column to read the contents of each field.
348 But every provider has an {@code _ID} column, which holds a unique numeric
350 of records returned as the {@code _COUNT} column; its value
410 The Cursor lets you request the column name from the index of the column,
411 or the index number from the column name.
491 the name of a column in the content provider and the value is the desired
492 value for the new record in that column. Then call <code>{@link
743 <li><p>Define the column names that the content provider will return to clients.
744 If you are using an underlying database, these column names are typically
[all …]
/frameworks/base/docs/html/resources/
Dtopics.jd53 // create a new column
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java578 int column = 0; in Keyboard() local
590 if (column >= maxColumns in Keyboard()
594 column = 0; in Keyboard()
601 column++; in Keyboard()

123