/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 | 59 UiObject row = getChildByInstance(childPattern, x); 60 String nodeDesc = row.getContentDescription(); 62 return row; 64 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); 66 return row; 117 UiObject row = getChildByInstance(childPattern, x); 118 String nodeText = row.getText(); 120 return row; 122 UiObject item = row.getChild(new UiSelector().text(text)); 124 return row; [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 | BaseOnItemViewClickedListener.java | 22 * Called when an item inside a row gets clicked. 25 * @param rowViewHolder The view holder of the row which the clicked item belongs to. 26 * @param row The row which the clicked item belongs to. 29 RowPresenter.ViewHolder rowViewHolder, T row); 28 onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, T row) argument
|
H A D | BaseOnItemViewSelectedListener.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. 24 * Called when a row or a new item becomes selected. 27 * selection changes between rows, regardless if row view has focus or not. 29 * For a {@link ListRow} case, parameter item is null if the list row is empty. 32 * In the case of a grid, the row parameter is always null. 35 * Row has focus: event is fired when focus changes between children of the row. 38 * No row ha 47 onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, T row) argument [all...] |
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/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
H A D | TestModel.java | 50 MatrixCursor.RowBuilder row = c.newRow(); 51 row.add(RootCursorWrapper.COLUMN_AUTHORITY, mAuthority); 52 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); 53 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); 56 row.add(Document.COLUMN_DISPLAY_NAME, names[i]); 57 row.add(Document.COLUMN_SIZE, rand.nextInt());
|
H A D | SectionBreakDocumentsAdapterWrapperTest.java | 71 MatrixCursor.RowBuilder row = c.newRow(); 72 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); 73 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); 74 row.add(Document.COLUMN_SIZE, i); 75 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); 96 MatrixCursor.RowBuilder row = c.newRow(); 97 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); 98 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); 99 row.add(Document.COLUMN_SIZE, i); 101 row [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialog.java | 310 VolumeRow row = new VolumeRow(); 311 initRow(row, stream, iconRes, iconMuteRes, important); 313 addSpacer(row); 315 mDialogContentView.addView(row.view, mDialogContentView.getChildCount() - 2); 316 mRows.add(row); 322 final VolumeRow row = mRows.get(i); 323 initRow(row, row.stream, row.iconRes, row 331 addSpacer(VolumeRow row) argument 387 initRow(final VolumeRow row, final int stream, int iconRes, int iconMuteRes, boolean important) argument 604 isVisibleH(VolumeRow row, boolean isActive) argument 704 updateVolumeRowH(VolumeRow row) argument 824 updateVolumeRowHeaderVisibleH(VolumeRow row) argument 833 updateVolumeRowSliderTintH(VolumeRow row, boolean isActive) argument 845 updateVolumeRowSliderH(VolumeRow row, boolean enable, int vlevel) argument 897 recheckH(VolumeRow row) argument 1125 VolumeSeekBarChangeListener(VolumeRow row) argument [all...] |
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportStorageProvider.java | 63 final RowBuilder row = result.newRow(); 64 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); 65 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_ADVANCED); 66 row.add(Root.COLUMN_ICON, android.R.mipmap.sym_def_app_icon); 67 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.bugreport_storage_title)); 68 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); 81 final RowBuilder row = result.newRow(); 82 row.add(Document.COLUMN_DOCUMENT_ID, documentId); 83 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); 84 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationHeaderUtil.java | 41 public Object extractData(ExpandableNotificationRow row) { 42 return row.getStatusBarNotification().getNotification(); 93 public NotificationHeaderUtil(ExpandableNotificationRow row) { argument 94 mRow = row; 146 ExpandableNotificationRow row = notificationChildren.get(i); 148 mComparators.get(compI).compareToHeader(row); 152 // Apply the comparison to the row 154 ExpandableNotificationRow row = notificationChildren.get(i); 156 mComparators.get(compI).apply(row); 159 sanitizeHeaderViews(row); 163 sanitizeHeaderViews(ExpandableNotificationRow row) argument 230 restoreNotificationHeader(ExpandableNotificationRow row) argument 247 forTextView(ExpandableNotificationRow row, int id) argument 251 HeaderProcessor(ExpandableNotificationRow row, int id, DataExtractor extractor, ViewComparator comparator, ResultApplicator applicator) argument 266 compareToHeader(ExpandableNotificationRow row) argument 280 apply(ExpandableNotificationRow row) argument 284 apply(ExpandableNotificationRow row, boolean reset) argument 318 extractData(ExpandableNotificationRow row) 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationViewWrapper.java | 45 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { argument 48 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); 50 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); 52 return new NotificationMediaTemplateViewWrapper(ctx, v, row); 54 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); 56 return new NotificationTemplateViewWrapper(ctx, v, row); 58 return new NotificationHeaderViewWrapper(ctx, v, row); 60 return new NotificationCustomViewWrapper(v, row); 64 protected NotificationViewWrapper(View view, ExpandableNotificationRow row) { argument 66 mRow = row; [all...] |