/frameworks/base/core/java/android/text/ |
D | PackedIntVector.java | 48 public PackedIntVector(int columns) { in PackedIntVector() argument 49 mColumns = columns; in PackedIntVector() 56 mValueGap = new int[2 * columns]; in PackedIntVector() 72 final int columns = mColumns; in getValue() local 74 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue() 82 int value = mValues[row * columns + column]; in getValue() 86 value += valuegap[column + columns]; in getValue() 259 final int columns = mColumns; in growBuffer() local 261 GrowingArrayUtils.growSize(size()) * columns); in growBuffer() 262 int newsize = newvalues.length / columns; in growBuffer() [all …]
|
D | PackedObjectVector.java | 35 PackedObjectVector(int columns) in PackedObjectVector() argument 37 mColumns = columns; in PackedObjectVector()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 157 int[] columns = ca.getConvertedFrom(); in testChangeCursorColumns() local 158 assertEquals(columns[0], 0); in testChangeCursorColumns() 159 assertEquals(columns[1], 1); in testChangeCursorColumns() 168 columns = ca.getConvertedFrom(); in testChangeCursorColumns() 169 assertEquals(columns[0], 1); in testChangeCursorColumns() 170 assertEquals(columns[1], 0); in testChangeCursorColumns() 196 int[] columns = ca.getConvertedFrom(); in testChangeNullToMapped() local 197 assertEquals(2, columns.length); in testChangeNullToMapped() 198 assertEquals(0, columns[0]); in testChangeNullToMapped() 199 assertEquals(1, columns[1]); in testChangeNullToMapped() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_0/ |
D | embedding_lookup.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features)) 31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | embedding_lookup_v1_3.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
D | embedding_lookup_quant8_signed.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
/frameworks/ml/nn/runtime/test/specs/V1_1/ |
D | embedding_lookup_relaxed.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features)) 31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | embedding_lookup_v1_2.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
/frameworks/ex/common/java/com/android/common/content/ |
D | ProjectionMap.java | 42 public Builder addAll(String[] columns) { in addAll() argument 43 for (String column : columns) { in addAll() 57 String[] columns = new String[mMap.size()]; in build() local 58 mMap.keySet().toArray(columns); in build() 59 Arrays.sort(columns); in build() 60 mMap.mColumns = columns; in build()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | TintController.java | 106 static String matrixToString(float[] matrix, int columns) { in matrixToString() argument 107 if (matrix == null || columns <= 0) { in matrixToString() 110 + " columns: " + columns); in matrixToString() 116 if (i % columns == 0) { in matrixToString()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerDialog.java | 65 int columns, int size) { in newInstance() argument 67 ret.initialize(titleResId, colors, selectedColor, columns, size); in newInstance() 71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { in initialize() argument 72 setArguments(titleResId, columns, size); in initialize() 76 public void setArguments(int titleResId, int columns, int size) { in setArguments() argument 79 bundle.putInt(KEY_COLUMNS, columns); in setArguments()
|
D | ColorPickerPalette.java | 57 public void init(int size, int columns, OnColorSelectedListener listener) { in init() argument 58 mNumColumns = columns; in init()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | SelectionBuilder.java | 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() argument 100 return query(db, table, columns, null, null, orderBy, null); in query() 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() argument 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 88 long[] columns = properties.delays[row]; in startAnimations() local 89 long delay = columns[0]; in startAnimations() 111 long[] columns = properties.delays[row]; in startAnimations() local 116 for (int col = 0; col < columns.length; col++) { in startAnimations() 117 long delay = columns[col]; in startAnimations() 153 T[] columns = items[row]; in getDelays() local 154 mProperties.delays[row] = new long[columns.length]; in getDelays() 155 for (int col = 0; col < columns.length; col++) { in getDelays()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpPropertyGroup.java | 60 ArrayList<String> columns = new ArrayList<>(count); in MtpPropertyGroup() local 61 columns.add(Files.FileColumns._ID); in MtpPropertyGroup() 65 mProperties[i] = createProperty(properties[i], columns); in MtpPropertyGroup() 67 count = columns.size(); in MtpPropertyGroup() 70 mColumns[i] = columns.get(i); in MtpPropertyGroup() 74 private Property createProperty(int code, ArrayList<String> columns) { in createProperty() argument 160 columns.add(column); in createProperty() 161 return new Property(code, type, columns.size() - 1); in createProperty()
|
/frameworks/base/core/java/android/widget/ |
D | TableLayout.java | 149 SparseBooleanArray columns = new SparseBooleanArray(); in parseColumns() local 160 columns.put(columnIndex, true); in parseColumns() 167 return columns; in parseColumns() 578 private void mutateColumnsWidth(SparseBooleanArray columns, in mutateColumnsWidth() argument 583 final int count = allColumns ? length : columns.size(); in mutateColumnsWidth() 599 int column = columns.keyAt(i); in mutateColumnsWidth() 600 if (columns.valueAt(i)) { in mutateColumnsWidth() 621 int column = columns.keyAt(i); in mutateColumnsWidth() 622 if (columns.valueAt(i) && column < length) { in mutateColumnsWidth()
|
/frameworks/base/core/java/android/database/ |
D | RedactingCursor.java | 49 final String[] columns = cursor.getColumnNames(); in create() local 50 for (int i = 0; i < columns.length; i++) { in create() 51 if (redactions.containsKey(columns[i])) { in create() 52 internalRedactions.put(i, redactions.get(columns[i])); in create()
|
D | CursorJoiner.java | 109 int[] columns = new int[columnNames.length]; in buildColumnIndiciesArray() local 111 columns[i] = cursor.getColumnIndexOrThrow(columnNames[i]); in buildColumnIndiciesArray() 113 return columns; in buildColumnIndiciesArray()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 322 final String[] columns = new String[] { in testRestoreIdForRootDocuments() local 337 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 355 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 370 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 385 final String[] columns = new String[] { in testRestoreIdForChildDocuments() local 407 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments() 420 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments() 438 final String[] columns = new String[] { in testRestoreIdForDifferentDevices() local 464 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices() 510 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 590 List<String> columns = mFilterColumns; in setFilterColumnsList() local 591 columns.clear(); in setFilterColumnsList() 594 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList() 598 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList() 602 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList() 614 private static String constructBooleanTrueWhereClause(List<String> columns) { in constructBooleanTrueWhereClause() argument 616 if (columns == null) return null; in constructBooleanTrueWhereClause() 621 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause() 622 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause() 625 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteCursor.java | 177 String[] columns = mColumns; in getColumnIndex() local 178 int columnCount = columns.length; in getColumnIndex() 181 map.put(columns[i], i); in getColumnIndex()
|
D | SQLiteDatabase.java | 1158 public Cursor query(boolean distinct, String table, String[] columns, in query() argument 1161 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query() 1199 public Cursor query(boolean distinct, String table, String[] columns, in query() argument 1202 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query() 1239 boolean distinct, String table, String[] columns, in queryWithFactory() argument 1242 return queryWithFactory(cursorFactory, distinct, table, columns, selection, in queryWithFactory() 1282 boolean distinct, String table, String[] columns, in queryWithFactory() argument 1288 distinct, table, columns, selection, groupBy, having, orderBy, limit); in queryWithFactory() 1325 public Cursor query(String table, String[] columns, String selection, in query() argument 1329 return query(false, table, columns, selection, selectionArgs, groupBy, in query() [all …]
|
D | SQLiteQueryBuilder.java | 386 boolean distinct, String tables, String[] columns, String where, in buildQueryString() argument 399 if (columns != null && columns.length != 0) { in buildQueryString() 400 appendColumns(query, columns); in buildQueryString() 426 public static void appendColumns(StringBuilder s, String[] columns) { in appendColumns() argument 427 int n = columns.length; in appendColumns() 430 String column = columns[i]; in appendColumns()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | TileLayout.java | 85 final int columns = Math.max(1, res.getInteger(R.integer.quick_settings_num_columns)); in updateResources() local 92 if (mColumns != columns) { in updateResources() 93 mColumns = columns; in updateResources()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | LensShadingMap.java | 69 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument 72 mColumns = checkArgumentPositive(columns, "columns must be positive"); in LensShadingMap()
|