/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationMenuRowTest.java | 15 package com.android.systemui.statusbar.notification.row; 78 NotificationMenuRowPlugin row = new NotificationMenuRow(mContext); in testAttachDetach() local 79 row.createMenu(mRow, null); in testAttachDetach() 80 ViewUtils.attachView(row.getMenuView()); in testAttachDetach() 82 ViewUtils.detachView(row.getMenuView()); in testAttachDetach() 88 NotificationMenuRowPlugin row = new NotificationMenuRow(mContext); in testRecreateMenu() local 89 row.createMenu(mRow, null); in testRecreateMenu() 90 assertTrue(row.getMenuView() != null); in testRecreateMenu() 91 row.createMenu(mRow, null); in testRecreateMenu() 92 assertTrue(row.getMenuView() != null); in testRecreateMenu() [all …]
|
D | NotificationBlockingHelperManagerTest.java | 17 package com.android.systemui.statusbar.notification.row; 102 ExpandableNotificationRow row = createBlockableRowSpy(); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow() local 103 row.setBlockingHelperShowing(true); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow() 104 when(row.isAttachedToWindow()).thenReturn(false); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow() 105 mBlockingHelperManager.setBlockingHelperRowForTest(row); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow() 115 ExpandableNotificationRow row = createBlockableRowSpy(); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow() local 116 row.setBlockingHelperShowing(true); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow() 117 when(row.isAttachedToWindow()).thenReturn(true); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow() 118 mBlockingHelperManager.setBlockingHelperRowForTest(row); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow() 128 ExpandableNotificationRow row = createBlockableRowSpy(); in testPerhapsShowBlockingHelper_shown() local [all …]
|
D | ExpandableNotificationRowTest.java | 17 package com.android.systemui.statusbar.notification.row; 21 import static com.android.systemui.statusbar.notification.row.NotificationContentInflater.FLAG_CONT… 22 import static com.android.systemui.statusbar.notification.row.NotificationContentInflater.FLAG_CONT… 23 import static com.android.systemui.statusbar.notification.row.NotificationContentInflater.FLAG_CONT… 132 ExpandableNotificationRow row = spy(mNotificationTestHelper.createRow( in testIconColorShouldBeUpdatedWhenSensitive() local 134 row.setSensitive(true, true); in testIconColorShouldBeUpdatedWhenSensitive() 135 row.setHideSensitive(true, false, 0, 0); in testIconColorShouldBeUpdatedWhenSensitive() 136 verify(row).updateShelfIconColor(); in testIconColorShouldBeUpdatedWhenSensitive() 141 ExpandableNotificationRow row = mNotificationTestHelper.createRow(FLAG_CONTENT_VIEW_ALL); in testFreeContentViewWhenSafe() local 143 row.freeContentViewWhenSafe(FLAG_CONTENT_VIEW_HEADS_UP); in testFreeContentViewWhenSafe() [all …]
|
D | NotificationGutsManagerTest.java | 17 package com.android.systemui.statusbar.notification.row; 68 import com.android.systemui.statusbar.notification.row.NotificationGutsManager.OnSettingsClickListe… 151 ExpandableNotificationRow row = spy(realRow); in testOpenAndCloseGuts() local 152 when(row.getWindowToken()).thenReturn(new Binder()); in testOpenAndCloseGuts() 153 when(row.getGuts()).thenReturn(guts); in testOpenAndCloseGuts() 155 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testOpenAndCloseGuts() 169 verify(row, times(1)).setGutsView(any()); in testOpenAndCloseGuts() 191 ExpandableNotificationRow row = spy(realRow); in testChangeDensityOrFontScale() local 193 when(row.getWindowToken()).thenReturn(new Binder()); in testChangeDensityOrFontScale() 194 when(row.getGuts()).thenReturn(guts); in testChangeDensityOrFontScale() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 58 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 59 import com.android.systemui.statusbar.notification.row.NotificationContentInflater.InflationFlag; 60 import com.android.systemui.statusbar.notification.row.NotificationGuts; 125 private ExpandableNotificationRow row; // the outer expanded view field in NotificationEntry 251 if (row != null) { in reset() 252 row.reset(); in reset() 257 return row; in getRow() 261 public void setRow(ExpandableNotificationRow row) { in setRow() argument 262 this.row = row; in setRow() 267 if (row == null) { in getChildren() [all …]
|
D | NotificationRowBinderImpl.java | 21 import static com.android.systemui.statusbar.notification.row.NotificationContentInflater.FLAG_CONT… 45 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 46 import com.android.systemui.statusbar.notification.row.NotificationContentInflater; 47 import com.android.systemui.statusbar.notification.row.NotificationGutsManager; 48 import com.android.systemui.statusbar.notification.row.RowInflaterTask; 144 row -> { in inflateViews() 145 bindRow(entry, pmUser, sbn, row, onDismissRunnable); in inflateViews() 146 updateNotification(entry, pmUser, sbn, row); in inflateViews() 152 StatusBarNotification sbn, ExpandableNotificationRow row, in bindRow() argument 154 row.setExpansionLogger(mExpansionLogger, entry.notification.getKey()); in bindRow() [all …]
|
/frameworks/base/core/java/android/database/ |
D | CursorWindow.java | 73 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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationClicker.java | 26 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 57 final ExpandableNotificationRow row = (ExpandableNotificationRow) v; in onClick() local 58 final StatusBarNotification sbn = row.getStatusBarNotification(); in onClick() 65 if (isMenuVisible(row)) { in onClick() 66 row.animateTranslateNotification(0); in onClick() 68 } else if (row.isChildInGroup() && isMenuVisible(row.getNotificationParent())) { in onClick() 69 row.getNotificationParent().animateTranslateNotification(0); in onClick() 71 } else if (row.isSummaryWithChildren() && row.areChildrenExpanded()) { in onClick() 78 row.setJustClicked(true); in onClick() 79 DejankUtils.postAfterTraversal(() -> row.setJustClicked(false)); in onClick() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | FocusChangeWithInterestingRectHintTest.java | 72 for (int row = 0; row < numRows; row++) { in testSnakeBackAndForth() 74 if ((row % 2) == 0) { in testSnakeBackAndForth() 75 assertEquals("row " + row + ": should be at left column", in testSnakeBackAndForth() 76 row, mLeftColumn.getSelectedRow()); in testSnakeBackAndForth() 79 assertTrue("row " + row + ": should be at middle column", in testSnakeBackAndForth() 81 assertEquals(row, mMiddleColumn.getSelectedRow()); in testSnakeBackAndForth() 84 assertTrue("row " + row + ": should be at right column", in testSnakeBackAndForth() 86 assertEquals(row, mRightColumn.getSelectedRow()); in testSnakeBackAndForth() 88 if (row < numRows - 1) { in testSnakeBackAndForth() 90 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 | 351 VolumeRow row = new VolumeRow(); in addRow() local 352 initRow(row, stream, iconRes, iconMuteRes, important, defaultStream); in addRow() 353 mDialogRowsView.addView(row.view); in addRow() 354 mRows.add(row); in addRow() 360 final VolumeRow row = mRows.get(i); in addExistingRows() local 361 initRow(row, row.stream, row.iconRes, row.iconMuteRes, row.important, in addExistingRows() 362 row.defaultStream); in addExistingRows() 363 mDialogRowsView.addView(row.view); in addExistingRows() 364 updateVolumeRowH(row); in addExistingRows() 369 for (VolumeRow row : mRows) { in getActiveRow() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 87 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 88 long[] columns = properties.delays[row]; in startAnimations() 91 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == 0) { in startAnimations() 95 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() 98 creator.createAnimation(objects[row], delay, mDuration, in startAnimations() 110 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 111 long[] columns = properties.delays[row]; in startAnimations() 113 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() 119 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == col) { in startAnimations() 122 creator.createAnimation(objects[row][col], delay, mDuration, in startAnimations() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManager.java | 16 package com.android.systemui.statusbar.notification.row; 55 import com.android.systemui.statusbar.notification.row.NotificationInfo.CheckSaveListener; 141 final NotificationChannel channel, ExpandableNotificationRow row) { in startAppNotificationSettingsActivity() argument 152 mNotificationActivityStarter.startNotificationGutsIntent(intent, appUid, row); in startAppNotificationSettingsActivity() 156 final NotificationChannel channel, ExpandableNotificationRow row) { in startAppDetailsSettingsActivity() argument 164 mNotificationActivityStarter.startNotificationGutsIntent(intent, appUid, row); in startAppDetailsSettingsActivity() 168 ExpandableNotificationRow row) { in startAppOpsSettingsActivity() argument 171 startAppDetailsSettingsActivity(pkg, uid, null, row); in startAppOpsSettingsActivity() 175 mNotificationActivityStarter.startNotificationGutsIntent(intent, uid, row); in startAppOpsSettingsActivity() 180 mNotificationActivityStarter.startNotificationGutsIntent(intent, uid, row); in startAppOpsSettingsActivity() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | AboveShelfObserverTest.java | 30 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 53 ExpandableNotificationRow row = mNotificationTestHelper.createRow(); in setUp() local 54 row.setAboveShelfChangedListener(mObserver); in setUp() 55 mHostLayout.addView(row); in setUp() 56 row = mNotificationTestHelper.createRow(); in setUp() 57 row.setAboveShelfChangedListener(mObserver); in setUp() 58 mHostLayout.addView(row); in setUp() 64 ExpandableNotificationRow row = (ExpandableNotificationRow) mHostLayout.getChildAt(0); in testObserverChangesWhenGoingAbove() local 66 row.setHeadsUp(true); in testObserverChangesWhenGoingAbove() 72 ExpandableNotificationRow row = (ExpandableNotificationRow) mHostLayout.getChildAt(0); in testObserverChangesWhenGoingBelow() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationShelf.java | 44 import com.android.systemui.statusbar.notification.row.ActivatableNotificationView; 45 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 46 import com.android.systemui.statusbar.notification.row.ExpandableView; 282 ActivatableNotificationView row = (ActivatableNotificationView) child; in updateAppearance() local 284 boolean aboveShelf = ViewState.getFinalTranslationZ(row) > baseZHeight in updateAppearance() 285 || row.isPinned(); in updateAppearance() 287 float rowTranslationY = row.getTranslationY(); in updateAppearance() 293 if (!row.isBelowSpeedBump() && height <= getNotificationMergeSize()) { in updateAppearance() 300 int clipTop = updateNotificationClipHeight(row, notificationClipEnd, notGoneIndex); in updateAppearance() 305 if (row instanceof ExpandableNotificationRow) { in updateAppearance() [all …]
|
D | NotificationHeaderUtil.java | 30 import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow; 31 import com.android.systemui.statusbar.notification.row.NotificationContentView; 46 public Object extractData(ExpandableNotificationRow row) { 47 return row.getStatusBarNotification().getNotification(); 101 public NotificationHeaderUtil(ExpandableNotificationRow row) { in NotificationHeaderUtil() argument 102 mRow = row; in NotificationHeaderUtil() 155 ExpandableNotificationRow row = notificationChildren.get(i); in updateChildrenHeaderAppearance() local 157 mComparators.get(compI).compareToHeader(row); in updateChildrenHeaderAppearance() 163 ExpandableNotificationRow row = notificationChildren.get(i); in updateChildrenHeaderAppearance() local 165 mComparators.get(compI).apply(row); in updateChildrenHeaderAppearance() [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/native/cmds/lshal/ |
D | TextTable.cpp | 36 for (const auto& row : mTable) { in dump() local 37 if (!row.isRow()) { in dump() 38 out << row.line() << std::endl; in dump() 42 for (size_t i = 0; i < row.fields().size(); ++i) { in dump() 47 if (i < row.fields().size() - 1) { in dump() 50 out << row.fields()[i]; in dump() 57 for (auto&& row : other.mTable) { in addAll() 58 if (row.isRow()) { in addAll() 59 computeWidth(row.fields()); in addAll() 62 mTable.emplace_back(std::move(row)); in addAll()
|
/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() 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/tests/coretests/src/android/text/ |
D | EmojiTest.java | 94 for (int row = 0; row < data[version].length; row++) { in testIsNewEmoji_Emoji() 95 for (int c = data[version][row][0]; c < data[version][row][1]; c++) { in testIsNewEmoji_Emoji() 131 for (int row = 0; row < data[version].length; row++) { in testisEmojiModifierBase() 132 for (int c = data[version][row][0]; c < data[version][row][1]; c++) { in testisEmojiModifierBase()
|
/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/ml/nn/runtime/test/specs/V1_2/ |
D | concat_float16_3.mod.py | 20 row = 212 variable 25 input1 = Input("input1", "TENSOR_FLOAT16", "{%d, %d}" % (row, col1)) # input tensor 1 26 input2 = Input("input2", "TENSOR_FLOAT16", "{%d, %d}" % (row, col2)) # input tensor 2 28 output = Output("output", "TENSOR_FLOAT16", "{%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):
|
/frameworks/ml/nn/runtime/test/specs/V1_0/ |
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):
|