Home
last modified time | relevance | path

Searched refs:columns (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/text/
DPackedIntVector.java48 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 …]
DPackedObjectVector.java35 PackedObjectVector(int columns) in PackedObjectVector() argument
37 mColumns = columns; in PackedObjectVector()
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java157 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_3/
Dembedding_lookup_v1_3.mod.py19 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))
Dembedding_lookup_quant8_signed.mod.py19 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_0/
Dembedding_lookup.mod.py19 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_1/
Dembedding_lookup_relaxed.mod.py19 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/
Dembedding_lookup_v1_2.mod.py19 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/
DProjectionMap.java42 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/
DTintController.java106 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/base/core/java/com/android/internal/content/
DSelectionBuilder.java99 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/opt/colorpicker/src/com/android/colorpicker/
DColorPickerDialog.java65 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()
DColorPickerPalette.java57 public void init(int size, int columns, OnColorSelectedListener listener) { in init() argument
58 mNumColumns = columns; in init()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DAppearAnimationUtils.java88 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/
DMtpPropertyGroup.java60 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
166 columns.add(column); in createProperty()
167 return new Property(code, type, columns.size() - 1); in createProperty()
/frameworks/base/core/java/android/database/
DRedactingCursor.java49 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()
DCursorJoiner.java109 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/core/java/android/widget/
DTableLayout.java149 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/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleOverflowActivity.java69 NoScrollGridLayoutManager(Context context, int columns) { in NoScrollGridLayoutManager() argument
70 super(context, columns); in NoScrollGridLayoutManager()
120 final int columns = res.getInteger(R.integer.bubbles_overflow_columns); in updateDimensions() local
122 new NoScrollGridLayoutManager(getApplicationContext(), columns)); in updateDimensions()
129 final int viewWidth = recyclerViewWidth / columns; in updateDimensions()
132 final int rows = (int) Math.ceil((double) maxOverflowBubbles / columns); in updateDimensions()
/frameworks/base/media/java/android/media/
DRingtoneManager.java593 List<String> columns = mFilterColumns; in setFilterColumnsList() local
594 columns.clear(); in setFilterColumnsList()
597 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList()
601 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList()
605 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList()
617 private static String constructBooleanTrueWhereClause(List<String> columns) { in constructBooleanTrueWhereClause() argument
619 if (columns == null) return null; in constructBooleanTrueWhereClause()
624 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause()
625 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause()
628 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java177 String[] columns = mColumns; in getColumnIndex() local
178 int columnCount = columns.length; in getColumnIndex()
181 map.put(columns[i], i); in getColumnIndex()
DSQLiteDatabase.java1260 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1263 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1301 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1304 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1341 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1344 return queryWithFactory(cursorFactory, distinct, table, columns, selection, in queryWithFactory()
1384 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1390 distinct, table, columns, selection, groupBy, having, orderBy, limit); in queryWithFactory()
1427 public Cursor query(String table, String[] columns, String selection, in query() argument
1431 return query(false, table, columns, selection, selectionArgs, groupBy, in query()
[all …]
DSQLiteQueryBuilder.java374 boolean distinct, String tables, String[] columns, String where, in buildQueryString() argument
387 if (columns != null && columns.length != 0) { in buildQueryString()
388 appendColumns(query, columns); in buildQueryString()
414 public static void appendColumns(StringBuilder s, String[] columns) { in appendColumns() argument
415 int n = columns.length; in appendColumns()
418 String column = columns[i]; in appendColumns()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java77 public Cursor query(String[] columns, String selection, String[] selectionArgs) { in query() argument
79 mTableName, columns, selection, selectionArgs, null, null, null); in query()
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java69 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
72 mColumns = checkArgumentPositive(columns, "columns must be positive"); in LensShadingMap()

123