Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/database/
DCursorWindow.java73 private static native byte[] nativeGetBlob(long windowPtr, int row, int column); in nativeGetBlob() argument
74 private static native String nativeGetString(long windowPtr, int row, int column); in nativeGetString() argument
75 private static native void nativeCopyStringToBuffer(long windowPtr, int row, int column, in nativeCopyStringToBuffer() argument
77 private static native boolean nativePutBlob(long windowPtr, byte[] value, int row, int column); in nativePutBlob() argument
79 int row, int column); in nativePutString() argument
96 private static native int nativeGetType(long windowPtr, int row, int column); in nativeGetType() argument
98 private static native long nativeGetLong(long windowPtr, int row, int column); in nativeGetLong() argument
100 private static native double nativeGetDouble(long windowPtr, int row, int column); in nativeGetDouble() argument
103 private static native boolean nativePutLong(long windowPtr, long value, int row, int column); in nativePutLong() argument
105 … private static native boolean nativePutDouble(long windowPtr, double value, int row, int column); in nativePutDouble() argument
[all …]
DMatrixCursor.java70 private Object get(int column) { in get() argument
71 if (column < 0 || column >= columnCount) { in get()
73 + column + ", # of columns: " + columnCount); in get()
81 return data[mPos * columnCount + column]; in get()
265 public String getString(int column) { in getString() argument
266 Object value = get(column); in getString()
272 public short getShort(int column) { in getShort() argument
273 Object value = get(column); in getShort()
280 public int getInt(int column) { in getInt() argument
281 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.java99 abstract public String getString(int column); in getString() argument
101 abstract public short getShort(int column); in getShort() argument
103 abstract public int getInt(int column); in getInt() argument
105 abstract public long getLong(int column); in getLong() argument
107 abstract public float getFloat(int column); in getFloat() argument
109 abstract public double getDouble(int column); in getDouble() argument
111 abstract public boolean isNull(int column); in isNull() argument
114 public int getType(int column) { in getType() argument
123 public byte[] getBlob(int column) { in getBlob() argument
/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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DTextFormatParseLocation.java54 static TextFormatParseLocation create(int line, int column) { in create() argument
55 if (line == -1 && column == -1) { in create()
58 if (line < 0 || column < 0) { in create()
60 String.format("line and column values must be >= 0: line %d, column: %d", line, column)); in create()
62 return new TextFormatParseLocation(line, column); in create()
66 private final int column; field in TextFormatParseLocation
68 private TextFormatParseLocation(int line, int column) { in TextFormatParseLocation() argument
70 this.column = column; in TextFormatParseLocation()
78 return column; in getColumn()
83 return String.format("ParseLocation{line=%d, column=%d}", line, column); in toString()
[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/core/jni/
Dandroid_database_CursorWindow.cpp56 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { in throwExceptionWithRowCol() argument
60 row, column); in throwExceptionWithRowCol()
183 jint row, jint column) { in nativeGetType() argument
185 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); in nativeGetType()
187 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetType()
198 jint row, jint column) { in nativeGetBlob() argument
200 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); in nativeGetBlob()
202 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetBlob()
204 throwExceptionWithRowCol(env, row, column); in nativeGetBlob()
237 jint row, jint column) { in nativeGetString() argument
[all …]
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java189 public String getString(int column) in getString() argument
191 return mCursor.getString(column); in getString()
195 public short getShort(int column) in getShort() argument
197 return mCursor.getShort(column); in getShort()
201 public int getInt(int column) in getInt() argument
203 return mCursor.getInt(column); in getInt()
207 public long getLong(int column) in getLong() argument
209 return mCursor.getLong(column); in getLong()
213 public float getFloat(int column) in getFloat() argument
215 return mCursor.getFloat(column); in getFloat()
[all …]
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/java/com/prefabulated/bouncyball/
DOrbitActivity.java83 for (int column = 0; column < mChoreographerInfoGrid[0].length; ++column) { in buildChoreographerInfoGrid()
85 GridLayout.Spec colSpec = GridLayout.spec(column, 1.0f); in buildChoreographerInfoGrid()
89 if (column == 0) { in buildChoreographerInfoGrid()
92 cell.setText(String.format(Locale.US, "%d", column - 1)); in buildChoreographerInfoGrid()
95 mChoreographerInfoGrid[0][column] = cell; in buildChoreographerInfoGrid()
102 for (int column = 0; column < mChoreographerInfoGrid[row].length; ++column) { in buildChoreographerInfoGrid()
104 GridLayout.Spec colSpec = GridLayout.spec(column, 1.0f); in buildChoreographerInfoGrid()
109 if (column == 0) { in buildChoreographerInfoGrid()
126 mChoreographerInfoGrid[row][column] = cell; in buildChoreographerInfoGrid()
131 for (TextView column : row) { in buildChoreographerInfoGrid()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DLinearLayoutGrid.java40 public Button getButtonAt(int column, int row) { in getButtonAt() argument
44 if (column < 0 || column > 2) { in getButtonAt()
47 return (Button) getColumn(column).getChildAt(row); in getButtonAt()
52 private LinearLayout getColumn(int column) { in getColumn() argument
53 switch (column) { in getColumn()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java40 int column; field in MtpPropertyGroup.Property
42 Property(int code, int type, int column) { in Property() argument
45 this.column = column; in Property()
75 String column = null; in createProperty() local
104 column = Audio.AudioColumns.YEAR; in createProperty()
114 column = Audio.AudioColumns.DURATION; in createProperty()
118 column = Audio.AudioColumns.TRACK; in createProperty()
131 column = Audio.AudioColumns.ALBUM_ARTIST; in createProperty()
135 column = Audio.AudioColumns.COMPOSER; in createProperty()
139 column = Images.ImageColumns.DESCRIPTION; in createProperty()
[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/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.cpp276 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { in getFieldSlot() argument
277 if (row >= mHeader->numRows || column >= mHeader->numColumns) { in getFieldSlot()
280 row, column, mHeader->numRows, mHeader->numColumns); in getFieldSlot()
289 return &fieldDir[column]; in getFieldSlot()
292 status_t CursorWindow::putBlob(uint32_t row, uint32_t column, const void* value, size_t size) { in putBlob() argument
293 return putBlobOrString(row, column, value, size, FIELD_TYPE_BLOB); in putBlob()
296 status_t CursorWindow::putString(uint32_t row, uint32_t column, const char* value, in putString() argument
298 return putBlobOrString(row, column, value, sizeIncludingNull, FIELD_TYPE_STRING); in putString()
301 status_t CursorWindow::putBlobOrString(uint32_t row, uint32_t column, in putBlobOrString() argument
307 FieldSlot* fieldSlot = getFieldSlot(row, column); in putBlobOrString()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java135 public float getGainFactor(final int colorChannel, final int column, final int row) { in getGainFactor() argument
138 } else if (column < 0 || column >= mColumns) { in getGainFactor()
144 return mElements[colorChannel + (row * mColumns + column) * COUNT ]; in getGainFactor()
163 public RggbChannelVector getGainFactorVector(final int column, final int row) { in getGainFactorVector() argument
164 if (column < 0 || column >= mColumns) { in getGainFactorVector()
170 final int offset = (row * mColumns + column) * COUNT; in getGainFactorVector()
DBlackLevelPattern.java70 public int getOffsetForIndex(int column, int row) { in getOffsetForIndex() argument
71 if (row < 0 || column < 0) { in getOffsetForIndex()
74 return mCfaOffsets[((row & 1) << 1) | (column & 1)]; in getOffsetForIndex()
DColorSpaceTransform.java135 public Rational getElement(int column, int row) { in getElement() argument
136 if (column < 0 || column >= COLUMNS) { in getElement()
142 int numerator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_NUMERATOR]; in getElement()
143 int denominator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_DENOMINATOR]; in getElement()
/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/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java168 int column = 0; in layoutTileRecords() local
172 for (int i = 0; i < tilesToLayout; i++, column++) { in layoutTileRecords()
174 if (column == mColumns) { in layoutTileRecords()
175 column = 0; in layoutTileRecords()
181 final int left = getColumnStart(isRtl ? mColumns - column - 1 : column); in layoutTileRecords()
196 protected int getColumnStart(int column) { in getColumnStart() argument
198 column * (mCellWidth + mCellMarginHorizontal); in getColumnStart()
/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.java166 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns()
167 virtualCount = layoutParams.column; in mapIndexAndColumns()
403 public int column; field in TableRow.LayoutParams
427 column = a.getInt(com.android.internal.R.styleable.TableRow_Cell_layout_column, -1); in LayoutParams()
444 column = -1; in LayoutParams()
457 column = -1; in LayoutParams()
468 column = -1; in LayoutParams()
481 public LayoutParams(int column) { in LayoutParams() argument
483 this.column = column; in LayoutParams()
521 encoder.addProperty("layout:column", column); in encodeProperties()
/frameworks/base/tools/preload2/src/com/android/preload/
DDumpTableModel.java60 public String getColumnName(int column) { in getColumnName() argument
61 switch (column) { in getColumnName()
72 throw new IndexOutOfBoundsException(String.valueOf(column)); in getColumnName()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java168 final int column; field in LockPatternView.Cell
187 private Cell(int row, int column) { in Cell() argument
188 checkRange(row, column); in Cell()
190 this.column = column; in Cell()
198 return column; in getColumn()
201 public static Cell of(int row, int column) { in of() argument
202 checkRange(row, column); in of()
203 return sCells[row][column]; in of()
206 private static void checkRange(int row, int column) { in checkRange() argument
210 if (column < 0 || column > 2) { in checkRange()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dimporter.cc102 void AddError(int line, int column, const string& message) { in AddError() argument
104 multi_file_error_collector_->AddError(filename_, line, column, message); in AddError()
183 int line, column; in AddError() local
184 owner_->source_locations_.Find(descriptor, location, &line, &column); in AddError()
185 owner_->error_collector_->AddError(filename, line, column, message); in AddError()
196 int line, column; in AddWarning() local
197 owner_->source_locations_.Find(descriptor, location, &line, &column); in AddWarning()
198 owner_->error_collector_->AddWarning(filename, line, column, message); in AddWarning()

1234