/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | ProfileSwitcherTest.java | 115 List<QCRow> rows = getProfileRows(); in logoutAllowed_managedDevice_switchAllowed() local 116 assertThat(rows).hasSize(6); in logoutAllowed_managedDevice_switchAllowed() 117 assertThat(rows.get(0).getSubtitle()).isEqualTo( in logoutAllowed_managedDevice_switchAllowed() 119 assertThat(rows.get(1).getTitle()).isEqualTo("User1"); in logoutAllowed_managedDevice_switchAllowed() 120 assertThat(rows.get(2).getTitle()).isEqualTo("User2"); in logoutAllowed_managedDevice_switchAllowed() 121 assertThat(rows.get(3).getTitle()).isEqualTo( in logoutAllowed_managedDevice_switchAllowed() 123 assertThat(rows.get(4).getTitle()).isEqualTo( in logoutAllowed_managedDevice_switchAllowed() 125 assertThat(rows.get(5).getTitle()).isEqualTo(mContext.getString(R.string.end_session)); in logoutAllowed_managedDevice_switchAllowed() 136 List<QCRow> rows = getProfileRows(); in logoutAllowed_managedDevice_switchDisallowed() local 137 assertThat(rows).hasSize(3); in logoutAllowed_managedDevice_switchDisallowed() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/model/grid/ |
D | GridOption.java | 56 public final int rows; field in GridOption 61 public GridOption(String title, String name, boolean isCurrent, int rows, int cols, in GridOption() argument 66 mTileDrawable = new GridTileDrawable(rows, cols, mIconShapePath); in GridOption() 68 this.rows = rows; in GridOption() 79 rows = in.readInt(); in GridOption() 83 mTileDrawable = new GridTileDrawable(rows, cols, mIconShapePath); in GridOption() 125 && this.rows == other.rows; in equals() 146 parcel.writeInt(rows); in writeToParcel() 157 mTitle, mIsCurrent, mTileDrawable, name, rows, cols, previewImageUri, in toString()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | InspectorBot.java | 64 Map<String, String> rows = new HashMap<>(); in getTableRows() local 72 rows.put( in getTableRows() 77 return rows; in getTableRows() 83 Map<String, String> rows = getTableRows(details); in isRowPresent() local 84 return rows.containsKey(key); in isRowPresent() 90 Map<String, String> rows = getTableRows(details); in isRowEquals() local 91 return rows.containsKey(key) && value.equals(rows.get(key)); in isRowEquals()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ActualKeyboardBuilder.java | 60 final ArrayList<ArrayList<Key>> rows = new ArrayList<>(); in buildKeyboard() local 67 rows.add(elements); in buildKeyboard() 72 rows.add(elements); // Add the last row. in buildKeyboard() 75 final int[] dimensions = new int[rows.size()]; in buildKeyboard() 77 dimensions[rowIndex] = rows.get(rowIndex).size(); in buildKeyboard() 81 for (int rowIndex = 0; rowIndex < rows.size(); rowIndex++) { in buildKeyboard() 83 final ArrayList<Key> rowKeys = rows.get(rowIndex); in buildKeyboard() 191 public static String toString(@Nullable final Key[][] rows) { in toString() argument 192 return KeyArrayStringizer.STRINGIZER.join(rows, "\n" /* delimiter */); in toString()
|
D | AbstractKeyboardBuilder.java | 54 AbstractKeyboardBuilder(final E[][] rows) { in AbstractKeyboardBuilder() argument 55 mRows = newArrayOfArray(rows.length); in AbstractKeyboardBuilder() 56 for (int rowIndex = 0; rowIndex < rows.length; rowIndex++) { in AbstractKeyboardBuilder() 57 final E[] row = rows[rowIndex]; in AbstractKeyboardBuilder()
|
D | ExpectedKeyboardBuilder.java | 36 public ExpectedKeyboardBuilder(final ExpectedKey[][] rows) { in ExpectedKeyboardBuilder() argument 37 super(rows); in ExpectedKeyboardBuilder() 335 public static String toString(final ExpectedKey[][] rows) { in toString() argument 337 for (int rowIndex = 0; rowIndex < rows.length; rowIndex++) { in toString() 341 sb.append(Arrays.toString(rows[rowIndex])); in toString()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
D | AnnotatedCallLogContentProvider.java | 211 int rows = database.delete(AnnotatedCallLog.TABLE, selection, selectionArgs); in delete() local 212 if (rows == 0) { in delete() 214 return rows; in delete() 219 return rows; in delete() 237 int rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update() local 238 if (rows == 0) { in update() 240 return rows; in update() 245 return rows; in update() 253 rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update() 254 if (rows == 0) { in update() [all …]
|
/packages/apps/Launcher3/tools/ |
D | print_db.py | 56 rows = [] 58 rows.append(row) 59 return columns,rows 65 rows = [] 67 rows.append(row) 68 return columns,rows 155 columns,rows = get_favorites(conn) 158 data = [dict(zip(columns,row)) for row in rows] 209 for row in rows:
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/ |
D | EpgFetcherImplTest.java | 194 List<List<String>> rows = in fetchImmediately_nochannels() local 202 assertThat(rows).isEmpty(); in fetchImmediately_nochannels() 215 List<List<String>> rows = in fetchImmediately_testChannel() local 223 assertThat(rows) in fetchImmediately_testChannel() 238 List<List<String>> rows = in fetchImmediately_epgChannel() local 246 assertThat(rows) in fetchImmediately_epgChannel() 264 List<List<String>> rows = in testUpdateNetworkAffiliation() local 272 assertThat(rows).containsExactly(ImmutableList.of("Channel TEN", "10", "null")); in testUpdateNetworkAffiliation() 277 rows = in testUpdateNetworkAffiliation() 286 assertThat(rows) in testUpdateNetworkAffiliation()
|
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/ |
D | QCList.java | 34 public QCList(@NonNull List<QCRow> rows) { in QCList() argument 36 mRows = Collections.unmodifiableList(rows); in QCList() 42 List<QCRow> rows = new ArrayList<>(); in QCList() local 44 rows.add(QCRow.CREATOR.createFromParcel(in)); in QCList() 46 mRows = Collections.unmodifiableList(rows); in QCList()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/ |
D | PhoneLookupHistoryContentProvider.java | 201 int rows = database.delete(PhoneLookupHistory.TABLE, selection, selectionArgs); in delete() local 202 if (rows == 0) { in delete() 204 return rows; in delete() 209 return rows; in delete() 234 int rows = database.update(PhoneLookupHistory.TABLE, values, selection, selectionArgs); in update() local 235 if (rows == 0) { in update() 237 return rows; in update() 242 return rows; in update()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | hashtable_lookup_float.mod.py | 19 rows = 3 variable 22 table = [x for x in range(rows * features)] 23 for i in range(rows): 31 value = Input("value", "TENSOR_FLOAT32", "{%d, %d}" % (rows, features))
|
D | hashtable_lookup_quant8.mod.py | 19 rows = 3 variable 22 table = [x for x in range(rows * features)] 23 for i in range(rows): 31 value = Input("value", "TENSOR_QUANT8_ASYMM", "{%d, %d}, 0.5f, 0" % (rows, features))
|
D | embedding_lookup.mod.py | 18 rows = 3 variable 22 actual_values = [x for x in range(rows * columns * features)] 23 for i in range(rows): 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | embedding_lookup_v1_3.mod.py | 18 rows = 3 variable 22 actual_values = [x for x in range(rows * columns * features)] 23 for i in range(rows): 31 "{%d, %d, %d}" % (rows, columns, features))
|
D | embedding_lookup_quant8_signed.mod.py | 18 rows = 3 variable 22 actual_values = [x for x in range(rows * columns * features)] 23 for i in range(rows): 31 "{%d, %d, %d}" % (rows, columns, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/ |
D | embedding_lookup_relaxed.mod.py | 18 rows = 3 variable 22 actual_values = [x for x in range(rows * columns * features)] 23 for i in range(rows): 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
|
D | hashtable_lookup_float_relaxed.mod.py | 19 rows = 3 variable 22 table = [x for x in range(rows * features)] 23 for i in range(rows): 31 value = Input("value", "TENSOR_FLOAT32", "{%d, %d}" % (rows, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | embedding_lookup_v1_2.mod.py | 18 rows = 3 variable 22 actual_values = [x for x in range(rows * columns * features)] 23 for i in range(rows): 31 "{%d, %d, %d}" % (rows, columns, features))
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberProvider.java | 135 int rows = in delete() local 137 if (rows > 0) { in delete() 140 return rows; in delete() 156 int rows = in update() local 159 if (rows > 0) { in update() 162 return rows; in update()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | GridOccupancyTest.java | 58 private GridOccupancy initGrid(int rows, int... cells) { in initGrid() argument 59 int cols = cells.length / rows; in initGrid() 61 GridOccupancy grid = new GridOccupancy(cols, rows); in initGrid() 62 for (int y = 0; y < rows; y++) { in initGrid()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiSliceTest.java | 131 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_isGuestUser_shouldReturnNoToggle() local 134 assertThat(rows).isEqualTo(1); in getWifiSlice_isGuestUser_shouldReturnNoToggle() 192 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_notFromSIPackageAndWithoutWifiPermission_shouldReturnNoToggle() local 195 assertThat(rows).isEqualTo(1); in getWifiSlice_notFromSIPackageAndWithoutWifiPermission_shouldReturnNoToggle() 204 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_wifiOff_shouldReturnSingleRow() local 207 assertThat(rows).isEqualTo(1); in getWifiSlice_wifiOff_shouldReturnSingleRow() 214 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_noAp_shouldReturnLoadingRow() local 219 assertThat(rows).isEqualTo(DEFAULT_EXPANDED_ROW_COUNT + 1); in getWifiSlice_noAp_shouldReturnLoadingRow()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | BufferDebug.java | 67 int rows = len / WIDTH; in toHex() local 68 for (int row = 0; row < rows; row++) { in toHex() 74 writeRow(str, buf, rows * WIDTH, max - (rows * WIDTH), max); in toHex()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorBuilder.java | 105 final ArrayList<Object[]> rows = in build() local 129 rows.add(row); in build() 136 Collections.sort(rows, new Comparator<Object[]>() { in build() 172 for (final Object[] row : rows) { in build()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 56 int i, rows; in buildTriangulation() local 59 rows = (int)( 0.5 + sqrt( (double) size / log( (double) size ))); in buildTriangulation() 67 build( 0, size-1, &lefte, &righte, rows ); in buildTriangulation() 73 void CDelaunay::build(int lo, int hi, EdgePointer *le, EdgePointer *re, int rows) in build() argument 86 if (rows == 1) { // time to switch axis of division in build() 88 rows = 65536; in build() 90 lowrows = rows/2; in build() 92 (0.5 + ((double)(high-low+1) * ((double)lowrows / (double)rows))); in build() 94 build( split+1, high, &rdi, &rdo, (rows-lowrows) ); in build()
|