Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/database/
DCursorWindow.java71 private static native int nativeGetType(long windowPtr, int row, int column); in nativeGetType() argument
72 private static native byte[] nativeGetBlob(long windowPtr, int row, int column); in nativeGetBlob() argument
73 private static native String nativeGetString(long windowPtr, int row, int column); in nativeGetString() argument
74 private static native long nativeGetLong(long windowPtr, int row, int column); in nativeGetLong() argument
75 private static native double nativeGetDouble(long windowPtr, int row, int column); in nativeGetDouble() argument
76 private static native void nativeCopyStringToBuffer(long windowPtr, int row, int column, in nativeCopyStringToBuffer() argument
79 private static native boolean nativePutBlob(long windowPtr, byte[] value, int row, int column); in nativePutBlob() argument
80 … private static native boolean nativePutString(long windowPtr, String value, int row, int column); in nativePutString() argument
81 private static native boolean nativePutLong(long windowPtr, long value, int row, int column); in nativePutLong() argument
82 … private static native boolean nativePutDouble(long 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()
253 public String getString(int column) { in getString() argument
254 Object value = get(column); in getString()
260 public short getShort(int column) { in getShort() argument
261 Object value = get(column); in getShort()
268 public int getInt(int column) { in getInt() argument
269 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.java91 abstract public String getString(int column); in getString() argument
93 abstract public short getShort(int column); in getShort() argument
95 abstract public int getInt(int column); in getInt() argument
97 abstract public long getLong(int column); in getLong() argument
99 abstract public float getFloat(int column); in getFloat() argument
101 abstract public double getDouble(int column); in getDouble() argument
103 abstract public boolean isNull(int column); in isNull() argument
106 public int getType(int column) { in getType() argument
115 public byte[] getBlob(int column) { in getBlob() argument
/frameworks/support/content/src/android/support/content/
DInMemoryCursor.java170 public short getShort(int column) {
171 checkValidColumn(column);
173 return (short) mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
177 public int getInt(int column) {
178 checkValidColumn(column);
180 return (int) mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
184 public long getLong(int column) {
185 checkValidColumn(column);
187 return mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
191 public float getFloat(int column) {
[all …]
/frameworks/base/core/java/android/text/
DPackedIntVector.java71 public int getValue(int row, int column) { in getValue() argument
74 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue()
75 throw new IndexOutOfBoundsException(row + ", " + column); in getValue()
82 int value = mValues[row * columns + column]; in getValue()
85 if (row >= valuegap[column]) { in getValue()
86 value += valuegap[column + columns]; in getValue()
102 public void setValue(int row, int column, int value) { in setValue() argument
103 if (((row | column) < 0) || (row >= size()) || (column >= mColumns)) { in setValue()
104 throw new IndexOutOfBoundsException(row + ", " + column); in setValue()
112 if (row >= valuegap[column]) { in setValue()
[all …]
/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()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java41 int column; field in MtpPropertyGroup.Property
43 Property(int code, int type, int column) { in Property() argument
46 this.column = column; in Property()
90 String column = null; in createProperty() local
95 column = Files.FileColumns.STORAGE_ID; in createProperty()
99 column = Files.FileColumns.FORMAT; in createProperty()
107 column = Files.FileColumns.SIZE; in createProperty()
111 column = Files.FileColumns.DATA; in createProperty()
115 column = MediaColumns.TITLE; in createProperty()
119 column = Files.FileColumns.DATE_MODIFIED; in createProperty()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp56 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { in throwExceptionWithRowCol() argument
60 row, column); in throwExceptionWithRowCol()
179 jint row, jint column) { in nativeGetType() argument
181 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); in nativeGetType()
183 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetType()
194 jint row, jint column) { in nativeGetBlob() argument
196 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); in nativeGetBlob()
198 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetBlob()
200 throwExceptionWithRowCol(env, row, column); in nativeGetBlob()
233 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/ex/common/java/com/android/common/content/
DProjectionMap.java32 public Builder add(String column) { in add() argument
33 mMap.putColumn(column, column); in add()
43 for (String column : columns) { in addAll()
44 add(column); in addAll()
79 private void putColumn(String alias, String column) { in putColumn() argument
80 super.put(alias, column); in putColumn()
/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/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtils.java73 for (int column = 0; column < drawableWidth; column++) { in assertAllPixelsOfColor()
74 if (rowPixels[column] != color) { in assertAllPixelsOfColor()
79 + "] but at position (" + row + "," + column + ") found [" in assertAllPixelsOfColor()
80 + Color.red(rowPixels[column]) + "," in assertAllPixelsOfColor()
81 + Color.green(rowPixels[column]) + "," in assertAllPixelsOfColor()
82 + Color.blue(rowPixels[column]) + "]"; in assertAllPixelsOfColor()
/frameworks/support/compat/tests/java/android/support/v4/testutils/
DTestUtils.java74 for (int column = 0; column < drawableWidth; column++) { in assertAllPixelsOfColor()
75 if (rowPixels[column] != color) { in assertAllPixelsOfColor()
80 + "] but at position (" + row + "," + column + ") found [" in assertAllPixelsOfColor()
81 + Color.red(rowPixels[column]) + "," in assertAllPixelsOfColor()
82 + Color.green(rowPixels[column]) + "," in assertAllPixelsOfColor()
83 + Color.blue(rowPixels[column]) + "]"; in assertAllPixelsOfColor()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java87 for(String column : PhotoQuery.PROJECTION) { in swapCursor()
88 mColumnIndices.put(column, newCursor.getColumnIndexOrThrow(column)); in swapCursor()
91 for(String column : PhotoQuery.OPTIONAL_COLUMNS) { in swapCursor()
92 int index = newCursor.getColumnIndex(column); in swapCursor()
94 mColumnIndices.put(column, index); in swapCursor()
127 private String getString(Cursor cursor, String column) { in getString() argument
128 if (mColumnIndices.containsKey(column)) { in getString()
129 return cursor.getString(mColumnIndices.get(column)); in getString()
/frameworks/base/libs/androidfw/
DCursorWindow.cpp262 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { in getFieldSlot() argument
263 if (row >= mHeader->numRows || column >= mHeader->numColumns) { in getFieldSlot()
266 row, column, mHeader->numRows, mHeader->numColumns); in getFieldSlot()
275 return &fieldDir[column]; in getFieldSlot()
278 status_t CursorWindow::putBlob(uint32_t row, uint32_t column, const void* value, size_t size) { in putBlob() argument
279 return putBlobOrString(row, column, value, size, FIELD_TYPE_BLOB); in putBlob()
282 status_t CursorWindow::putString(uint32_t row, uint32_t column, const char* value, in putString() argument
284 return putBlobOrString(row, column, value, sizeIncludingNull, FIELD_TYPE_STRING); in putString()
287 status_t CursorWindow::putBlobOrString(uint32_t row, uint32_t column, in putBlobOrString() argument
293 FieldSlot* fieldSlot = getFieldSlot(row, column); in putBlobOrString()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DPicker.java59 public void onValueChanged(Picker picker, int column); in onValueChanged() argument
292 public void setColumnAt(int columnIndex, PickerColumn column) { in setColumnAt() argument
293 mColumns.set(columnIndex, column); in setColumnAt()
299 columnView.setSelectedPosition(column.getCurrentValue() - column.getMinValue()); in setColumnAt()
310 PickerColumn column = mColumns.get(columnIndex); in setColumnValue() local
311 if (column.getCurrentValue() != value) { in setColumnValue()
312 column.setCurrentValue(value); in setColumnValue()
358 VerticalGridView column = mColumnViews.get(colIndex); in updateColumnAlpha() local
360 int selected = column.getSelectedPosition(); in updateColumnAlpha()
363 for (int i = 0; i < column.getAdapter().getItemCount(); i++) { in updateColumnAlpha()
[all …]
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtils.java79 for (int column = firstCol; column <= lastCol; column++) { in assertAllPixelsOfColor()
80 int sourceAlpha = Color.alpha(rowPixels[column]); in assertAllPixelsOfColor()
81 int sourceRed = Color.red(rowPixels[column]); in assertAllPixelsOfColor()
82 int sourceGreen = Color.green(rowPixels[column]); in assertAllPixelsOfColor()
83 int sourceBlue = Color.blue(rowPixels[column]); in assertAllPixelsOfColor()
100 + "] but at position (" + row + "," + column + ") found [" in assertAllPixelsOfColor()
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java127 public float getGainFactor(final int colorChannel, final int column, final int row) { in getGainFactor() argument
130 } else if (column < 0 || column >= mColumns) { in getGainFactor()
136 return mElements[colorChannel + (row * mColumns + column) * COUNT ]; in getGainFactor()
155 public RggbChannelVector getGainFactorVector(final int column, final int row) { in getGainFactorVector() argument
156 if (column < 0 || column >= mColumns) { in getGainFactorVector()
162 final int offset = (row * mColumns + column) * COUNT; in getGainFactorVector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java116 int column = 0; in onLayout() local
117 for (int i = 0; i < mRecords.size(); i++, column++) { in onLayout()
118 if (column == mColumns) { in onLayout()
120 column -= mColumns; in onLayout()
123 int left = getColumnStart(column); in onLayout()
140 private int getColumnStart(int column) { in getColumnStart() argument
141 return column * (mCellWidth + mCellMargin) + mCellMargin; in getColumnStart()
/frameworks/base/libs/androidfw/include/androidfw/
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);
198 status_t putBlobOrString(uint32_t row, uint32_t column,
/frameworks/base/core/java/android/widget/
DTableRow.java165 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns()
166 virtualCount = layoutParams.column; in mapIndexAndColumns()
401 public int column; field in TableRow.LayoutParams
424 column = a.getInt(com.android.internal.R.styleable.TableRow_Cell_layout_column, -1); in LayoutParams()
441 column = -1; in LayoutParams()
454 column = -1; in LayoutParams()
465 column = -1; in LayoutParams()
478 public LayoutParams(int column) { in LayoutParams() argument
480 this.column = column; in LayoutParams()
518 encoder.addProperty("layout:column", column); in encodeProperties()
/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/support/content/tests/java/android/support/content/
DTestContentProvider.java300 public static void assertExpectedCellValue(Cursor cursor, int row, int column) { in assertExpectedCellValue() argument
301 int type = cursor.getType(column); in assertExpectedCellValue()
306 assertEquals(createCellValue(row, column), cursor.getInt(column)); in assertExpectedCellValue()
309 assertEquals(createCellValue(row, column), cursor.getDouble(column)); in assertExpectedCellValue()
312 assertEquals(createCellValue(row, column), cursor.getBlob(column)); in assertExpectedCellValue()
315 assertEquals(createCellValue(row, column), cursor.getString(column)); in assertExpectedCellValue()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java375 String column = columns[i]; in appendColumns() local
377 if (column != null) { in appendColumns()
381 s.append(column); in appendColumns()
705 final String column = rawValuesIt.next(); in enforceStrictColumns() local
706 if (!mProjectionMap.containsKey(column)) { in enforceStrictColumns()
707 throw new IllegalArgumentException("Invalid column " + column); in enforceStrictColumns()
982 @NonNull String column) { in maybeWithOperator() argument
984 return operator + "(" + column + ")"; in maybeWithOperator()
986 return column; in maybeWithOperator()
1020 final String column = computeSingleProjection(userColumn); in computeSingleProjectionOrThrow() local
[all …]

1234