Home
last modified time | relevance | path

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

123456

/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.java90 abstract public String getString(int column); in getString() argument
92 abstract public short getShort(int column); in getShort() argument
94 abstract public int getInt(int column); in getInt() argument
96 abstract public long getLong(int column); in getLong() argument
98 abstract public float getFloat(int column); in getFloat() argument
100 abstract public double getDouble(int column); in getDouble() argument
102 abstract public boolean isNull(int column); in isNull() argument
105 public int getType(int column) { in getType() argument
114 public byte[] getBlob(int column) { in getBlob() argument
/frameworks/base/core/java/android/text/
DPackedIntVector.java67 public int getValue(int row, int column) { in getValue() argument
70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue()
71 throw new IndexOutOfBoundsException(row + ", " + column); in getValue()
78 int value = mValues[row * columns + column]; in getValue()
81 if (row >= valuegap[column]) { in getValue()
82 value += valuegap[column + columns]; in getValue()
98 public void setValue(int row, int column, int value) { in setValue() argument
99 if (((row | column) < 0) || (row >= size()) || (column >= mColumns)) { in setValue()
100 throw new IndexOutOfBoundsException(row + ", " + column); in setValue()
108 if (row >= valuegap[column]) { in setValue()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootCursorWrapper.java93 public double getDouble(int column) { in getDouble() argument
94 return mCursor.getDouble(column); in getDouble()
98 public float getFloat(int column) { in getFloat() argument
99 return mCursor.getFloat(column); in getFloat()
103 public int getInt(int column) { in getInt() argument
104 return mCursor.getInt(column); in getInt()
108 public long getLong(int column) { in getLong() argument
109 return mCursor.getLong(column); in getLong()
113 public short getShort(int column) { in getShort() argument
114 return mCursor.getShort(column); in getShort()
[all …]
DFilteringCursorWrapper.java101 public double getDouble(int column) { in getDouble() argument
102 return mCursor.getDouble(column); in getDouble()
106 public float getFloat(int column) { in getFloat() argument
107 return mCursor.getFloat(column); in getFloat()
111 public int getInt(int column) { in getInt() argument
112 return mCursor.getInt(column); in getInt()
116 public long getLong(int column) { in getLong() argument
117 return mCursor.getLong(column); in getLong()
121 public short getShort(int column) { in getShort() argument
122 return mCursor.getShort(column); in getShort()
[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.cpp50 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { in throwExceptionWithRowCol() argument
54 row, column); in throwExceptionWithRowCol()
156 jint row, jint column) { in nativeGetType() argument
158 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); in nativeGetType()
160 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetType()
171 jint row, jint column) { in nativeGetBlob() argument
173 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); in nativeGetBlob()
175 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetBlob()
177 throwExceptionWithRowCol(env, row, column); in nativeGetBlob()
206 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/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/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/compat/tests/java/android/support/v4/testutils/
DTestUtils.java79 for (int column = 0; column < drawableWidth; column++) { in assertAllPixelsOfColor()
80 if (rowPixels[column] != color) { in assertAllPixelsOfColor()
85 + "] but at position (" + row + "," + column + ") found [" in assertAllPixelsOfColor()
86 + Color.red(rowPixels[column]) + "," in assertAllPixelsOfColor()
87 + Color.green(rowPixels[column]) + "," in assertAllPixelsOfColor()
88 + Color.blue(rowPixels[column]) + "]"; in assertAllPixelsOfColor()
/frameworks/base/libs/androidfw/
DCursorWindow.cpp257 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { in getFieldSlot() argument
258 if (row >= mHeader->numRows || column >= mHeader->numColumns) { in getFieldSlot()
261 row, column, mHeader->numRows, mHeader->numColumns); in getFieldSlot()
270 return &fieldDir[column]; in getFieldSlot()
273 status_t CursorWindow::putBlob(uint32_t row, uint32_t column, const void* value, size_t size) { in putBlob() argument
274 return putBlobOrString(row, column, value, size, FIELD_TYPE_BLOB); in putBlob()
277 status_t CursorWindow::putString(uint32_t row, uint32_t column, const char* value, in putString() argument
279 return putBlobOrString(row, column, value, sizeIncludingNull, FIELD_TYPE_STRING); in putString()
282 status_t CursorWindow::putBlobOrString(uint32_t row, uint32_t column, in putBlobOrString() argument
288 FieldSlot* fieldSlot = getFieldSlot(row, column); in putBlobOrString()
[all …]
/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/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/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/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DPicker.java57 public void onValueChanged(Picker picker, int column); in onValueChanged() argument
224 public void setColumnAt(int columnIndex, PickerColumn column) { in setColumnAt() argument
225 mColumns.set(columnIndex, column); in setColumnAt()
231 columnView.setSelectedPosition(column.getCurrentValue() - column.getMinValue()); in setColumnAt()
241 PickerColumn column = mColumns.get(columnIndex); in setColumnValue() local
242 if (column.getCurrentValue() != value) { in setColumnValue()
243 column.setCurrentValue(value); in setColumnValue()
287 VerticalGridView column = mColumnViews.get(colIndex); in updateColumnAlpha() local
289 int selected = column.getSelectedPosition(); in updateColumnAlpha()
292 for (int i = 0; i < column.getAdapter().getItemCount(); i++) { in updateColumnAlpha()
[all …]
DDatePicker.java203 public final void onColumnValueChanged(int column, int newVal) { in onColumnValueChanged() argument
206 int oldVal = getColumnAt(column).getCurrentValue(); in onColumnValueChanged()
207 if (column == mColDayIndex) { in onColumnValueChanged()
209 } else if (column == mColMonthIndex) { in onColumnValueChanged()
211 } else if (column == mColYearIndex) { in onColumnValueChanged()
332 private static boolean updateMin(PickerColumn column, int value) { in updateMin() argument
333 if (value != column.getMinValue()) { in updateMin()
334 column.setMinValue(value); in updateMin()
340 private static boolean updateMax(PickerColumn column, int value) { in updateMax() argument
341 if (value != column.getMaxValue()) { in updateMax()
[all …]
/frameworks/base/include/androidfw/
DCursorWindow.h104 status_t putBlob(uint32_t row, uint32_t column, const void* value, size_t size);
105 status_t putString(uint32_t row, uint32_t column, const char* value, size_t sizeIncludingNull);
106 status_t putLong(uint32_t row, uint32_t column, int64_t value);
107 status_t putDouble(uint32_t row, uint32_t column, double value);
108 status_t putNull(uint32_t row, uint32_t column);
114 FieldSlot* getFieldSlot(uint32_t row, uint32_t column);
187 status_t putBlobOrString(uint32_t row, uint32_t column,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java115 int column = 0; in onLayout() local
116 for (int i = 0; i < mRecords.size(); i++, column++) { in onLayout()
117 if (column == mColumns) { in onLayout()
119 column -= mColumns; in onLayout()
122 int left = getColumnStart(column); in onLayout()
139 private int getColumnStart(int column) { in getColumnStart() argument
140 return column * (mCellWidth + mCellMargin) + mCellMargin; in getColumnStart()
/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

123456