/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/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/core/java/android/text/ |
D | PackedIntVector.java | 71 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() 78 if (row >= mRowGapStart) { in getValue() 79 row += mRowGapLength; in getValue() 82 int value = mValues[row * columns + column]; in getValue() 85 if (row >= valuegap[column]) { 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() [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/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 337 VolumeRow row = new VolumeRow(); in addRow() local 338 initRow(row, stream, iconRes, iconMuteRes, important); in addRow() 344 mDialogRowsView.addView(row.view, viewSize - 2); in addRow() 345 mRows.add(rowSize - 2, row); in addRow() 347 mDialogRowsView.addView(row.view); in addRow() 348 mRows.add(row); in addRow() 355 final VolumeRow row = mRows.get(i); in addExistingRows() local 356 initRow(row, row.stream, row.iconRes, row.iconMuteRes, row.important); in addExistingRows() 357 mDialogRowsView.addView(row.view); in addExistingRows() 367 for (VolumeRow row : mRows) { in getActiveRow() [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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | AboveShelfObserverTest.java | 49 ExpandableNotificationRow row = mNotificationTestHelper.createRow(); in setUp() local 50 row.setAboveShelfChangedListener(mObserver); in setUp() 51 mHostLayout.addView(row); in setUp() 52 row = mNotificationTestHelper.createRow(); in setUp() 53 row.setAboveShelfChangedListener(mObserver); in setUp() 54 mHostLayout.addView(row); in setUp() 60 ExpandableNotificationRow row = (ExpandableNotificationRow) mHostLayout.getChildAt(0); in testObserverChangesWhenGoingAbove() local 62 row.setHeadsUp(true); in testObserverChangesWhenGoingAbove() 68 ExpandableNotificationRow row = (ExpandableNotificationRow) mHostLayout.getChildAt(0); in testObserverChangesWhenGoingBelow() local 69 row.setHeadsUp(true); in testObserverChangesWhenGoingBelow() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | ExpandableNotificationRowTest.java | 89 ExpandableNotificationRow row = spy(mNotificationTestHelper.createRow()); in testIconColorShouldBeUpdatedWhenSensitive() local 90 row.setSensitive(true, true); in testIconColorShouldBeUpdatedWhenSensitive() 91 row.setHideSensitive(true, false, 0, 0); in testIconColorShouldBeUpdatedWhenSensitive() 92 verify(row).updateShelfIconColor(); in testIconColorShouldBeUpdatedWhenSensitive() 97 ExpandableNotificationRow row = spy(mNotificationTestHelper.createRow()); in testIconColorShouldBeUpdatedWhenSettingDark() local 98 row.setDark(true, false, 0); in testIconColorShouldBeUpdatedWhenSettingDark() 99 verify(row).updateShelfIconColor(); in testIconColorShouldBeUpdatedWhenSettingDark() 104 ExpandableNotificationRow row = mNotificationTestHelper.createRow(); in testAboveShelfChangedListenerCalled() local 106 row.setAboveShelfChangedListener(listener); in testAboveShelfChangedListenerCalled() 107 row.setHeadsUp(true); in testAboveShelfChangedListenerCalled() [all …]
|
D | NotificationMenuRowTest.java | 44 NotificationMenuRowPlugin row = new NotificationMenuRow(mContext); in testAttachDetach() local 45 row.createMenu(null, null); in testAttachDetach() 46 ViewUtils.attachView(row.getMenuView()); in testAttachDetach() 48 ViewUtils.detachView(row.getMenuView()); in testAttachDetach() 54 NotificationMenuRowPlugin row = new NotificationMenuRow(mContext); in testRecreateMenu() local 55 row.createMenu(null, null); in testRecreateMenu() 56 assertTrue(row.getMenuView() != null); in testRecreateMenu() 57 row.createMenu(null, null); in testRecreateMenu() 58 assertTrue(row.getMenuView() != null); in testRecreateMenu() 63 NotificationMenuRowPlugin row = new NotificationMenuRow(mContext); in testResetUncreatedMenu() local [all …]
|
D | NotificationTestHelper.java | 80 ExpandableNotificationRow row = mRow; in createRow() local 81 row.setGroupManager(mGroupManager); in createRow() 82 row.setHeadsUpManager(mHeadsUpManager); in createRow() 83 row.setAboveShelfChangedListener(aboveShelf -> {}); in createRow() 89 entry.row = row; in createRow() 91 NotificationInflaterTest.runThenWaitForInflation(() -> row.updateNotification(entry), in createRow() 92 row.getNotificationInflater()); in createRow() 93 return row; in createRow() 97 ExpandableNotificationRow row = createRow(); in createGroup() local 98 row.addChildNotification(createRow()); in createGroup() [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 …]
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BrowseAnimationFragment.java | 95 RowPresenter.ViewHolder rowViewHolder, Row row) { in createRandomItem() 96 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) in createRandomItem() 110 RowPresenter.ViewHolder rowViewHolder, Row row) { in createRandomItem() 111 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) in createRandomItem() 125 RowPresenter.ViewHolder rowViewHolder, Row row) { in createRandomItem() 126 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) in createRandomItem() 138 RowPresenter.ViewHolder rowViewHolder, Row row) { in createRandomItem() 139 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) in createRandomItem() 148 RowPresenter.ViewHolder rowViewHolder, Row row) { in createRandomItem() 149 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) in createRandomItem() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationShelf.java | 262 ExpandableNotificationRow row = (ExpandableNotificationRow) child; in updateAppearance() local 264 boolean aboveShelf = ViewState.getFinalTranslationZ(row) > baseZHeight; in updateAppearance() 266 float rowTranslationY = row.getTranslationY(); in updateAppearance() 272 if (!row.isBelowSpeedBump() && height <= getNotificationMergeSize()) { in updateAppearance() 279 updateNotificationClipHeight(row, notificationClipEnd); in updateAppearance() 280 float inShelfAmount = updateIconAppearance(row, expandAmount, scrolling, scrollingFast, in updateAppearance() 283 int ownColorUntinted = row.getBackgroundColorWithoutTint(); in updateAppearance() 297 row.setOverrideTintColor(colorOfViewBeforeLast, inShelfAmount); in updateAppearance() 300 row.setOverrideTintColor(NO_COLOR, 0 /* overrideAmount */); in updateAppearance() 303 row.setAboveShelf(false); in updateAppearance() [all …]
|
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 …]
|
/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/support/content/tests/java/android/support/content/ |
D | TestContentProvider.java | 184 for (int row = 0; row < windowSize; row++) { in buildPagedWindowedResults() 188 if (!fillRow(window, row)) { in buildPagedWindowedResults() 248 private void fillRow(RowBuilder row, int rowId) { in fillRow() argument 249 row.add(createCellValue(rowId, 0)); in fillRow() 250 row.add(createCellValue(rowId, 1)); in fillRow() 251 row.add(createCellValue(rowId, 2)); in fillRow() 252 row.add(createCellValue(rowId, 3)); in fillRow() 253 row.add(createCellValue(rowId, 4)); in fillRow() 259 private static boolean fillRow(CursorWindow window, int row) { in fillRow() argument 260 if (!window.putLong((int) createCellValue(row, 0), row, 0)) { in fillRow() [all …]
|
/frameworks/base/core/jni/ |
D | android_database_CursorWindow.cpp | 56 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { in throwExceptionWithRowCol() argument 60 row, column); in throwExceptionWithRowCol() 179 jint row, jint column) { in nativeGetType() argument 181 LOG_WINDOW("returning column type affinity for %d,%d from %p", row, column, window); in nativeGetType() 183 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetType() 194 jint row, jint column) { in nativeGetBlob() argument 196 LOG_WINDOW("Getting blob for %d,%d from %p", row, column, window); in nativeGetBlob() 198 CursorWindow::FieldSlot* fieldSlot = window->getFieldSlot(row, column); in nativeGetBlob() 200 throwExceptionWithRowCol(env, row, column); in nativeGetBlob() 233 jint row, jint column) { in nativeGetString() argument [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/base/packages/Shell/src/com/android/shell/ |
D | BugreportStorageProvider.java | 61 final RowBuilder row = result.newRow(); in queryRoots() local 62 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots() 63 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_ADVANCED); in queryRoots() 64 row.add(Root.COLUMN_ICON, android.R.mipmap.sym_def_app_icon); in queryRoots() 65 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.bugreport_storage_title)); in queryRoots() 66 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in queryRoots() 134 RowBuilder row = super.includeFile(result, docId, file); in includeFile() local 135 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in includeFile() 136 return row; in includeFile() 140 final RowBuilder row = result.newRow(); in includeDefaultDocument() local [all …]
|
/frameworks/ml/nn/runtime/test/specs/ |
D | concat_float_3.mod.py | 20 row = 212 variable 25 input1 = Input("input1", "TENSOR_FLOAT32", "{%d, %d}" % (row, col1)) # input tensor 1 26 input2 = Input("input2", "TENSOR_FLOAT32", "{%d, %d}" % (row, col2)) # input tensor 2 28 output = Output("output", "TENSOR_FLOAT32", "{%d, %d}" % (row, output_col)) # output 32 input1_values = [x for x in range(row * col1)] 33 input2_values = [-x for x in range(row * col2)] 37 output_values = [x for x in range(row * output_col)] 38 for r in range(row):
|
D | concat_quant8_3.mod.py | 20 row = 400 variable 25 input1 = Input("input1", "TENSOR_QUANT8_ASYMM", "{%d, %d}, 0.5f, 0" % (row, col1)) 26 input2 = Input("input2", "TENSOR_QUANT8_ASYMM", "{%d, %d}, 0.5f, 0" % (row, col2)) 28 output = Output("output", "TENSOR_QUANT8_ASYMM", "{%d, %d}, 0.5f, 0" % (row, output_col)) 32 input1_values = [(x % 128 + 128) for x in range(row * col1)] 33 input2_values = [x % 128 for x in range(row * col2)] 37 output_values = [x for x in range(row * output_col)] 38 for r in range(row):
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationViewWrapper.java | 46 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 49 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 51 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 53 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 55 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 57 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() 59 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap() 61 return new NotificationCustomViewWrapper(ctx, v, row); in wrap() 65 protected NotificationViewWrapper(Context ctx, View view, ExpandableNotificationRow row) { in NotificationViewWrapper() argument 67 mRow = row; in NotificationViewWrapper() [all …]
|
/frameworks/base/libs/androidfw/ |
D | CursorWindow.cpp | 228 CursorWindow::RowSlot* CursorWindow::getRowSlot(uint32_t row) { in getRowSlot() argument 229 uint32_t chunkPos = row; in getRowSlot() 262 CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { in getFieldSlot() argument 263 if (row >= mHeader->numRows || column >= mHeader->numColumns) { in getFieldSlot() 266 row, column, mHeader->numRows, mHeader->numColumns); in getFieldSlot() 269 RowSlot* rowSlot = getRowSlot(row); in getFieldSlot() 271 ALOGE("Failed to find rowSlot for row %d.", row); in getFieldSlot() 278 status_t CursorWindow::putBlob(uint32_t row, uint32_t column, const void* value, size_t size) { in putBlob() argument 279 return putBlobOrString(row, column, value, size, FIELD_TYPE_BLOB); in putBlob() 282 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()
|