/frameworks/base/core/java/android/database/ |
D | CursorWindow.java | 71 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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialog.java | 310 VolumeRow row = new VolumeRow(); in addRow() local 311 initRow(row, stream, iconRes, iconMuteRes, important); in addRow() 313 addSpacer(row); in addRow() 315 mDialogContentView.addView(row.view, mDialogContentView.getChildCount() - 2); in addRow() 316 mRows.add(row); in addRow() 322 final VolumeRow row = mRows.get(i); in addExistingRows() local 323 initRow(row, row.stream, row.iconRes, row.iconMuteRes, row.important); in addExistingRows() 325 addSpacer(row); in addExistingRows() 327 mDialogContentView.addView(row.view, mDialogContentView.getChildCount() - 2); in addExistingRows() 331 private void addSpacer(VolumeRow row) { in addSpacer() argument [all …]
|
/frameworks/base/core/java/android/text/ |
D | PackedIntVector.java | 67 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() 74 if (row >= mRowGapStart) { in getValue() 75 row += mRowGapLength; in getValue() 78 int value = mValues[row * columns + column]; in getValue() 81 if (row >= valuegap[column]) { 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() [all …]
|
D | PackedObjectVector.java | 46 getValue(int row, int column) in getValue() argument 48 if (row >= mRowGapStart) in getValue() 49 row += mRowGapLength; in getValue() 51 Object value = mValues[row * mColumns + column]; in getValue() 57 setValue(int row, int column, E value) in setValue() argument 59 if (row >= mRowGapStart) in setValue() 60 row += mRowGapLength; in setValue() 62 mValues[row * mColumns + column] = value; in setValue() 66 insertAt(int row, E[] values) in insertAt() argument 68 moveRowGapTo(row); in insertAt() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | FocusChangeWithInterestingRectHintTest.java | 73 for (int row = 0; row < numRows; row++) { in testSnakeBackAndForth() 75 if ((row % 2) == 0) { in testSnakeBackAndForth() 76 assertEquals("row " + row + ": should be at left column", in testSnakeBackAndForth() 77 row, mLeftColumn.getSelectedRow()); in testSnakeBackAndForth() 80 assertTrue("row " + row + ": should be at middle column", in testSnakeBackAndForth() 82 assertEquals(row, mMiddleColumn.getSelectedRow()); in testSnakeBackAndForth() 85 assertTrue("row " + row + ": should be at right column", in testSnakeBackAndForth() 87 assertEquals(row, mRightColumn.getSelectedRow()); in testSnakeBackAndForth() 89 if (row < numRows - 1) { in testSnakeBackAndForth() 91 assertEquals(row + 1, mRightColumn.getSelectedRow()); in testSnakeBackAndForth() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 90 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 91 long[] columns = properties.delays[row]; in startAnimations() 94 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == 0) { in startAnimations() 98 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() 101 creator.createAnimation(objects[row], delay, mDuration, in startAnimations() 113 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 114 long[] columns = properties.delays[row]; in startAnimations() 116 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() 122 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == col) { in startAnimations() 125 creator.createAnimation(objects[row][col], delay, mDuration, in startAnimations() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | StaggeredGridDefault.java | 34 if (getLocation(mFirstVisibleIndex).row == rowIndex) { in getRowMax() 40 if (loc.row == rowIndex) { in getRowMax() 47 if (loc.row == rowIndex) { in getRowMax() 53 if (loc.row == rowIndex) { in getRowMax() 72 if (loc.row == rowIndex) { in getRowMin() 78 if (loc.row == rowIndex) { in getRowMin() 84 if (getLocation(mFirstVisibleIndex).row == rowIndex) { in getRowMin() 90 if (loc.row == rowIndex) { in getRowMin() 107 int row = loc.row; in findRowMax() local 110 int visitRow = row; in findRowMax() [all …]
|
D | StaggeredGrid.java | 59 public Location(int row, int offset, int size) { in Location() argument 60 super(row); in Location() 112 pw.print("<" + (mFirstIndex + i) + "," + loc.row + ">"); in debugPrint() 171 int rowIndex = loc.row; in prependVisbleItemsWithCache() 204 private int calculateOffsetAfterLastItem(int row) { in calculateOffsetAfterLastItem() argument 210 if (loc.row == row) { in calculateOffsetAfterLastItem() 328 int rowIndex = loc.row; in appendVisbleItemsWithCache() 416 CircularIntArray row = mTmpItemPositionsInRows[getLocation(i).row]; in getItemPositionsInRows() local 417 if (row.size() > 0 && row.getLast() == i - 1) { in getItemPositionsInRows() 419 row.popLast(); in getItemPositionsInRows() [all …]
|
D | DetailsOverviewLogoPresenter.java | 126 public boolean isBoundToImage(ViewHolder viewHolder, DetailsOverviewRow row) { in isBoundToImage() argument 127 return row != null && row.getImageDrawable() != null; in isBoundToImage() 139 DetailsOverviewRow row = (DetailsOverviewRow) item; in onBindViewHolder() local 141 imageView.setImageDrawable(row.getImageDrawable()); in onBindViewHolder() 142 if (isBoundToImage((ViewHolder) viewHolder, row)) { in onBindViewHolder() 146 lp.width = row.getImageDrawable().getIntrinsicWidth(); in onBindViewHolder() 147 lp.height = row.getImageDrawable().getIntrinsicHeight(); in onBindViewHolder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationHeaderUtil.java | 41 public Object extractData(ExpandableNotificationRow row) { 42 return row.getStatusBarNotification().getNotification(); 93 public NotificationHeaderUtil(ExpandableNotificationRow row) { in NotificationHeaderUtil() argument 94 mRow = row; in NotificationHeaderUtil() 146 ExpandableNotificationRow row = notificationChildren.get(i); in updateChildrenHeaderAppearance() local 148 mComparators.get(compI).compareToHeader(row); in updateChildrenHeaderAppearance() 154 ExpandableNotificationRow row = notificationChildren.get(i); in updateChildrenHeaderAppearance() local 156 mComparators.get(compI).apply(row); in updateChildrenHeaderAppearance() 159 sanitizeHeaderViews(row); in updateChildrenHeaderAppearance() 163 private void sanitizeHeaderViews(ExpandableNotificationRow row) { in sanitizeHeaderViews() argument [all …]
|
D | BaseStatusBar.java | 447 ExpandableNotificationRow row = null; 450 row = (ExpandableNotificationRow) p; 456 if (riv == null || row == null) { 460 row.setUserExpanded(true); 464 onLockedRemoteInput(row, view); 470 onLockedWorkRemoteInput(userId, row, view); 951 boolean exposedGuts = entry.row.getGuts() == mNotificationGutsExposed; in onDensityOrFontScaleChanged() 952 entry.row.reInflateViews(); in onDensityOrFontScaleChanged() 954 mNotificationGutsExposed = entry.row.getGuts(); in onDensityOrFontScaleChanged() 955 bindGuts(entry.row); in onDensityOrFontScaleChanged() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 115 public int[] getDigitsForRow(int row) { in getDigitsForRow() argument 116 if (row < 0 || row > 5) { in getDigitsForRow() 117 throw new IllegalArgumentException("row " + row 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() 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() [all …]
|
/frameworks/base/core/jni/ |
D | android_database_CursorWindow.cpp | 50 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/packages/Shell/src/com/android/shell/ |
D | BugreportStorageProvider.java | 63 final RowBuilder row = result.newRow(); in queryRoots() local 64 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots() 65 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_ADVANCED); in queryRoots() 66 row.add(Root.COLUMN_ICON, android.R.mipmap.sym_def_app_icon); in queryRoots() 67 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.bugreport_storage_title)); in queryRoots() 68 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in queryRoots() 81 final RowBuilder row = result.newRow(); in queryDocument() local 82 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in queryDocument() 83 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in queryDocument() 84 row.add(Document.COLUMN_DISPLAY_NAME, mRoot.getName()); in queryDocument() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiCollection.java | 59 UiObject row = getChildByInstance(childPattern, x); in getChildByDescription() local 60 String nodeDesc = row.getContentDescription(); in getChildByDescription() 62 return row; in getChildByDescription() 64 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); in getChildByDescription() 66 return row; in getChildByDescription() 117 UiObject row = getChildByInstance(childPattern, x); in getChildByText() local 118 String nodeText = row.getText(); in getChildByText() 120 return row; in getChildByText() 122 UiObject item = row.getChild(new UiSelector().text(text)); in getChildByText() 124 return row; in getChildByText()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerPalette.java | 74 TableRow row = new TableRow(getContext()); in createTableRow() local 77 row.setLayoutParams(params); in createTableRow() 78 return row; in createTableRow() 102 TableRow row = createTableRow(); in drawPalette() local 107 addSwatchToRow(row, colorSwatch, rowNumber); in drawPalette() 112 addView(row); in drawPalette() 113 row = createTableRow(); in drawPalette() 122 addSwatchToRow(row, createBlankSpace(), rowNumber); in drawPalette() 125 addView(row); in drawPalette() 133 private static void addSwatchToRow(TableRow row, View swatch, int rowNumber) { in addSwatchToRow() argument [all …]
|
/frameworks/base/libs/androidfw/ |
D | CursorWindow.cpp | 223 CursorWindow::RowSlot* CursorWindow::getRowSlot(uint32_t row) { in getRowSlot() argument 224 uint32_t chunkPos = row; in getRowSlot() 257 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() 264 RowSlot* rowSlot = getRowSlot(row); in getFieldSlot() 266 ALOGE("Failed to find rowSlot for row %d.", row); 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 [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | mb_utils.cpp | 28 int row; in PutSKIPPED_MB() local 29 row = MB_SIZE; in PutSKIPPED_MB() 32 while (row) in PutSKIPPED_MB() 76 row -= 4; in PutSKIPPED_MB() 89 int row; in PutSKIPPED_B() local 91 row = B_SIZE; in PutSKIPPED_B() 92 while (row) in PutSKIPPED_B() 129 row -= 4; in PutSKIPPED_B()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationViewWrapper.java | 45 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 48 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 50 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 52 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 54 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 56 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() 58 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap() 60 return new NotificationCustomViewWrapper(v, row); in wrap() 64 protected NotificationViewWrapper(View view, ExpandableNotificationRow row) { in NotificationViewWrapper() argument 66 mRow = row; in NotificationViewWrapper()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
D | SectionBreakDocumentsAdapterWrapperTest.java | 71 MatrixCursor.RowBuilder row = c.newRow(); in testItemCount_allDirs() local 72 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in testItemCount_allDirs() 73 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in testItemCount_allDirs() 74 row.add(Document.COLUMN_SIZE, i); in testItemCount_allDirs() 75 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in testItemCount_allDirs() 96 MatrixCursor.RowBuilder row = c.newRow(); in testItemCount_mixed() local 97 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in testItemCount_mixed() 98 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in testItemCount_mixed() 99 row.add(Document.COLUMN_SIZE, i); in testItemCount_mixed() 101 row.add(Document.COLUMN_MIME_TYPE, mimeType); in testItemCount_mixed()
|
D | ModelTest.java | 85 MatrixCursor.RowBuilder row = c.newRow(); in setUp() local 86 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in setUp() 87 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp() 88 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in setUp() 91 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp() 92 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp() 229 MatrixCursor.RowBuilder row = c.newRow(); in testSort_sizesWithBucketing() local 230 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in testSort_sizesWithBucketing() 231 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in testSort_sizesWithBucketing() 232 row.add(Document.COLUMN_SIZE, i); in testSort_sizesWithBucketing() [all …]
|
D | TestModel.java | 50 MatrixCursor.RowBuilder row = c.newRow(); in update() local 51 row.add(RootCursorWrapper.COLUMN_AUTHORITY, mAuthority); in update() 52 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in update() 53 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in update() 56 row.add(Document.COLUMN_DISPLAY_NAME, names[i]); in update() 57 row.add(Document.COLUMN_SIZE, rand.nextInt()); in update()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ColorSpaceTransform.java | 135 public Rational getElement(int column, int row) { in getElement() argument 138 } else if (row < 0 || row >= ROWS) { 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() 277 for (int row = 0, i = 0; row < ROWS; row++) { in toShortString() 290 if (row < ROWS - 1) { in toShortString()
|
D | LensShadingMap.java | 127 public float getGainFactor(final int colorChannel, final int column, final int row) { in getGainFactor() argument 132 } else if (row < 0 || row >= mRows) { 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 158 } else if (row < 0 || row >= mRows) { in getGainFactorVector() 162 final int offset = (row * mColumns + column) * COUNT; in getGainFactorVector()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | PseudoGridView.java | 79 for (int row = 0; row < rows; row++) { in onMeasure() 80 int startOfRow = row * mNumColumns; in onMeasure() 96 if (row > 0) { in onMeasure() 110 for (int row = 0; row < rows; row++) { in onLayout() 113 int startOfRow = row * mNumColumns; in onLayout() 131 if (row > 0) { in onLayout()
|