/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | FocusChangeWithInterestingRectHintTest.java | 37 * when taking focus to best select the internal row to show as selected. 73 for (int row = 0; row < numRows; row++) { 75 if ((row % 2) == 0) { 76 assertEquals("row " + row + ": should be at left column", 77 row, mLeftColumn.getSelectedRow()); 80 assertTrue("row " + row [all...] |
H A D | LinearLayoutGrid.java | 39 public Button getButtonAt(int column, int row) { argument 40 if (row < 0 || row > 2) { 41 throw new IllegalArgumentException("row out of range"); 46 return (Button) getColumn(column).getChildAt(row);
|
/frameworks/base/core/java/android/database/ |
H A D | CursorWindow.java | 71 private static native int nativeGetType(long windowPtr, int row, int column); argument 72 private static native byte[] nativeGetBlob(long windowPtr, int row, int column); argument 73 private static native String nativeGetString(long windowPtr, int row, int column); argument 74 private static native long nativeGetLong(long windowPtr, int row, int column); argument 75 private static native double nativeGetDouble(long windowPtr, int row, int column); argument 76 private static native void nativeCopyStringToBuffer(long windowPtr, int row, int column, argument 79 private static native boolean nativePutBlob(long windowPtr, byte[] value, int row, int column); argument 80 private static native boolean nativePutString(long windowPtr, String value, int row, int column); argument 81 private static native boolean nativePutLong(long windowPtr, long value, int row, int column); argument 82 private static native boolean nativePutDouble(long windowPtr, double value, int row, in argument 83 nativePutNull(long windowPtr, int row, int column) argument 289 isNull(int row, int column) argument 304 isBlob(int row, int column) argument 319 isLong(int row, int column) argument 333 isFloat(int row, int column) argument 348 isString(int row, int column) argument 370 getType(int row, int column) argument 400 getBlob(int row, int column) argument 435 getString(int row, int column) argument 474 copyStringToBuffer(int row, int column, CharArrayBuffer buffer) argument 508 getLong(int row, int column) argument 540 getDouble(int row, int column) argument 561 getShort(int row, int column) argument 577 getInt(int row, int column) argument 593 getFloat(int row, int column) argument 605 putBlob(byte[] value, int row, int column) argument 622 putString(String value, int row, int column) argument 639 putLong(long value, int row, int column) argument 657 putDouble(double value, int row, int column) argument 673 putNull(int row, int column) argument [all...] |
/frameworks/rs/ |
H A D | rsMatrix2x2.h | 28 inline float get(uint32_t col, uint32_t row) const { 29 return m[col*2 + row]; 32 inline void set(uint32_t col, uint32_t row, float v) { argument 33 m[col*2 + row] = v;
|
H A D | rsMatrix3x3.h | 28 inline float get(uint32_t col, uint32_t row) const { 29 return m[col*3 + row]; 32 inline void set(uint32_t col, uint32_t row, float v) { argument 33 m[col*3 + row] = v;
|
H A D | rsMatrix4x4.h | 28 float get(uint32_t col, uint32_t row) const { 29 return m[col*4 + row]; 32 void set(uint32_t col, uint32_t row, float v) { argument 33 m[col*4 + row] = v;
|
/frameworks/base/core/java/android/text/ |
H A D | PackedIntVector.java | 56 * Returns the value at the specified row and column. 58 * @param row the index of the row to return. 63 * @throws IndexOutOfBoundsException if the row is out of range 64 * (row < 0 || row >= size()) or the column is out of range 67 public int getValue(int row, int column) { argument 70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { 71 throw new IndexOutOfBoundsException(row 98 setValue(int row, int column, int value) argument 123 setValueInternal(int row, int column, int value) argument 176 insertAt(int row, int[] values) argument 216 deleteAt(int row, int count) argument [all...] |
H A D | PackedObjectVector.java | 46 getValue(int row, int column) argument 48 if (row >= mRowGapStart) 49 row += mRowGapLength; 51 Object value = mValues[row * mColumns + column]; 57 setValue(int row, int column, E value) argument 59 if (row >= mRowGapStart) 60 row += mRowGapLength; 62 mValues[row * mColumns + column] = value; 66 insertAt(int row, E[] values) argument 68 moveRowGapTo(row); 85 deleteAt(int row, int count) argument [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiCollection.java | 56 UiObject row = getChildByInstance(childPattern, x); 57 String nodeDesc = row.getContentDescription(); 59 return row; 61 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); 63 return row; 114 UiObject row = getChildByInstance(childPattern, x); 115 String nodeText = row.getText(); 117 return row; 119 UiObject item = row.getChild(new UiSelector().text(text)); 121 return row; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialog.java | 261 final VolumeRow row = initRow(stream, iconRes, iconMuteRes, important); 270 row.space = v; 272 row.settingsButton.addOnLayoutChangeListener(new OnLayoutChangeListener() { 284 if (c == row.view) { 285 repositionExpandAnim(row); 292 // add new row just before the footer 293 mDialogContentView.addView(row.view, mDialogContentView.getChildCount() - 1); 294 mRows.add(row); 302 for (VolumeRow row : mRows) { 303 if (row 317 repositionExpandAnim(VolumeRow row) argument 558 isVisibleH(VolumeRow row, boolean isActive) argument 650 updateVolumeRowH(VolumeRow row) argument 740 updateVolumeRowHeaderVisibleH(VolumeRow row) argument 749 updateVolumeRowSliderTintH(VolumeRow row, boolean isActive) argument 761 updateVolumeRowSliderH(VolumeRow row, boolean enable, int vlevel) argument 813 recheckH(VolumeRow row) argument 1004 VolumeSeekBarChangeListener(VolumeRow row) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | MonthDisplayHelper.java | 23 * 6 row calendar grid format. 111 * @param row Which row (0-5). 115 public int[] getDigitsForRow(int row) { argument 116 if (row < 0 || row > 5) { 117 throw new IllegalArgumentException("row " + row 123 result[column] = getDayAt(row, column); 130 * @param row Th 134 getDayAt(int row, int column) argument 179 isWithinCurrentMonth(int row, int column) argument [all...] |
H A D | DayOfMonthCursor.java | 24 * <li>Keeps track of current cursor position (row, column)</li> 63 public void setSelectedRowColumn(int row, int col) { argument 64 mRow = row; 74 * depending on whether the selection is in the first or last row. 91 public boolean isSelected(int row, int column) { argument 92 return (mRow == row) && (mColumn == column);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
H A D | AppearAnimationUtils.java | 90 for (int row = 0; row < properties.delays.length; row++) { 91 long[] columns = properties.delays[row]; 94 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == 0) { 98 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) 101 creator.createAnimation(objects[row], delay, mDuration, 113 for (int row = 0; row < properties.delays.length; row 171 calculateDelay(int row, int col) argument 250 getRowTranslationScale(int row, int numRows) argument [all...] |
H A D | DisappearAnimationUtils.java | 47 protected long calculateDelay(int row, int col) { argument 48 return (long) ((row * 60 + col * (Math.pow(row, 0.4) + 0.4) * 10) * mDelayScale); 54 public float getRowTranslationScale(int row, int numRows) { 55 return (float) (Math.pow((numRows - row), 2) / numRows);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | OnItemViewClickedListener.java | 22 RowPresenter.ViewHolder rowViewHolder, Row row); 21 onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, Row row) argument
|
H A D | OnItemViewSelectedListener.java | 17 * Interface for receiving notification when a row or item becomes selected. The concept of 18 * current selection is different than focus. A row or item can be selected without having focus; 19 * for example, when a row header view gains focus then the corresponding row view becomes selected. 23 * Called when the a row or a new item becomes selected. 26 * selection changes between rows, regardless if row view has focus or not. 28 * For a {@link ListRow} case, parameter item is null if the list row is empty. 31 * In the case of a grid, the row parameter is always null. 34 * Row has focus: event is fired when focus changes between children of the row. 37 * No row ha 46 onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, Row row) argument [all...] |
H A D | DetailsOverviewLogoPresenter.java | 64 public boolean isBoundToImage(ViewHolder viewHolder, DetailsOverviewRow row) { argument 65 return row != null && row.getImageDrawable() != null; 70 DetailsOverviewRow row = (DetailsOverviewRow) item; 72 imageView.setImageDrawable(row.getImageDrawable()); 73 if (isBoundToImage((ViewHolder) viewHolder, row)) { 75 lp.width = row.getImageDrawable().getIntrinsicWidth(); 76 lp.height = row.getImageDrawable().getIntrinsicHeight();
|
H A D | StaggeredGridDefault.java | 19 * This implementation tries to fill items in consecutive row order. The next 20 * item is always in same row or in the next row. 25 * Returns the max edge value of item (visible or cached) in a row. This 34 if (getLocation(mFirstVisibleIndex).row == rowIndex) { 40 if (loc.row == rowIndex) { 47 if (loc.row == rowIndex) { 53 if (loc.row == rowIndex) { 62 * Returns the min edge value of item (visible or cached) in a row. This 72 if (loc.row [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | mb_utils.cpp | 28 int row; local 29 row = MB_SIZE; 32 while (row) 76 row -= 4; 89 int row; local 91 row = B_SIZE; 92 while (row) 129 row -= 4;
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportStorageProvider.java | 57 final RowBuilder row = result.newRow(); 58 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); 59 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_ADVANCED); 60 row.add(Root.COLUMN_ICON, android.R.mipmap.sym_def_app_icon); 61 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.bugreport_storage_title)); 62 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); 71 final RowBuilder row = result.newRow(); 72 row.add(Document.COLUMN_DOCUMENT_ID, documentId); 73 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); 74 row [all...] |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorPickerPalette.java | 32 * row (and the padding between the squares) is determined by the user. 74 TableRow row = new TableRow(getContext()); 77 row.setLayoutParams(params); 78 return row; 102 TableRow row = createTableRow(); 107 addSwatchToRow(row, colorSwatch, rowNumber); 112 addView(row); 113 row = createTableRow(); 119 // Create blank views to fill the row if the last row ha 133 addSwatchToRow(TableRow row, View swatch, int rowNumber) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 50 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { argument 52 msg.appendFormat("Couldn't read row %d, col %d from CursorWindow. " 54 row, column); 156 jint row, jint column) { 158 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); 160 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); 164 //throwExceptionWithRowCol(env, row, column); 171 jint row, jint column) { 173 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); 175 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, colum 155 nativeGetType(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument 170 nativeGetBlob(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument 205 nativeGetString(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument 297 nativeCopyStringToBuffer(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column, jobject bufferObj) argument 336 nativeGetLong(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument 367 nativeGetDouble(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument 398 nativePutBlob(JNIEnv* env, jclass clazz, jlong windowPtr, jbyteArray valueObj, jint row, jint column) argument 416 nativePutString(JNIEnv* env, jclass clazz, jlong windowPtr, jstring valueObj, jint row, jint column) argument 438 nativePutLong(JNIEnv* env, jclass clazz, jlong windowPtr, jlong value, jint row, jint column) argument 452 nativePutDouble(JNIEnv* env, jclass clazz, jlong windowPtr, jdouble value, jint row, jint column) argument 466 nativePutNull(JNIEnv* env, jclass clazz, jlong windowPtr, jint row, jint column) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 166 // Fill in the row slot 177 LOG_WINDOW("The row failed, so back out the new row accounting " 184 LOG_WINDOW("Allocated row %u, rowSlot is at offset %u, fieldDir is %d bytes at offset %u\n", 223 CursorWindow::RowSlot* CursorWindow::getRowSlot(uint32_t row) { argument 224 uint32_t chunkPos = row; 257 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { argument 258 if (row >= mHeader->numRows || column >= mHeader->numColumns) { 259 ALOGE("Failed to read row %d, column %d from a CursorWindow which " 261 row, colum 273 putBlob(uint32_t row, uint32_t column, const void* value, size_t size) argument 277 putString(uint32_t row, uint32_t column, const char* value, size_t sizeIncludingNull) argument 282 putBlobOrString(uint32_t row, uint32_t column, const void* value, size_t size, int32_t type) argument 306 putLong(uint32_t row, uint32_t column, int64_t value) argument 321 putDouble(uint32_t row, uint32_t column, double value) argument 336 putNull(uint32_t row, uint32_t column) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | ColorSpaceTransform.java | 28 * Immutable class for describing a 3x3 matrix of {@link Rational} values in row-major order. 62 * <p>The elements must be stored in a row-major order.</p> 90 * <p>The elements must be stored in a row-major order. Each rational is stored 102 * where {@code Nij} and {@code Dij} is the numerator and denominator for row {@code i} and 126 * Get an element of this matrix by its row and column. 133 * @throws IllegalArgumentException if column or row was out of range 135 public Rational getElement(int column, int row) { argument 138 } else if (row < 0 || row >= ROWS) { 139 throw new IllegalArgumentException("row ou [all...] |
H A D | LensShadingMap.java | 44 * <p>The elements must be stored in a row-major order (fully packed).</p> 101 * Get a single color channel gain factor from this lens shading map by its row and column. 114 * @param row within the range [0, {@link #getRowCount}) 127 public float getGainFactor(final int colorChannel, final int column, final int row) { argument 132 } else if (row < 0 || row >= mRows) { 133 throw new IllegalArgumentException("row out of range"); 136 return mElements[colorChannel + (row * mColumns + column) * COUNT ]; 140 * Get a gain factor vector from this lens shading map by its row and column. 146 * @param row withi 155 getGainFactorVector(final int column, final int row) argument [all...] |