Home
last modified time | relevance | path

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

12

/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/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DTableLayoutBindingAdapter.java32 SparseBooleanArray columns = parseColumns(columnsStr); in setCollapseColumns() local
34 boolean isCollapsed = columns.get(i, false); in setCollapseColumns()
47 SparseBooleanArray columns = parseColumns(columnsStr); in setShrinkColumns() local
48 int columnCount = columns.size(); in setShrinkColumns()
50 int column = columns.keyAt(i); in setShrinkColumns()
51 boolean shrinkable = columns.valueAt(i); in setShrinkColumns()
65 SparseBooleanArray columns = parseColumns(columnsStr); in setStretchColumns() local
66 int columnCount = columns.size(); in setStretchColumns()
68 int column = columns.keyAt(i); in setStretchColumns()
69 boolean stretchable = columns.valueAt(i); in setStretchColumns()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java156 int[] columns = ca.getConvertedFrom(); in testChangeCursorColumns() local
157 assertEquals(columns[0], 0); in testChangeCursorColumns()
158 assertEquals(columns[1], 1); in testChangeCursorColumns()
167 columns = ca.getConvertedFrom(); in testChangeCursorColumns()
168 assertEquals(columns[0], 1); in testChangeCursorColumns()
169 assertEquals(columns[1], 0); in testChangeCursorColumns()
195 int[] columns = ca.getConvertedFrom(); in testChangeNullToMapped() local
196 assertEquals(2, columns.length); in testChangeNullToMapped()
197 assertEquals(0, columns[0]); in testChangeNullToMapped()
198 assertEquals(1, columns[1]); in testChangeNullToMapped()
[all …]
/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/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.java91 long[] columns = properties.delays[row]; in startAnimations() local
92 long delay = columns[0]; in startAnimations()
114 long[] columns = properties.delays[row]; in startAnimations() local
119 for (int col = 0; col < columns.length; col++) { in startAnimations()
120 long delay = columns[col]; in startAnimations()
156 T[] columns = items[row]; in getDelays() local
157 mProperties.delays[row] = new long[columns.length]; in getDelays()
158 for (int col = 0; col < columns.length; col++) { in getDelays()
/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/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java321 final String[] columns = new String[] { in testRestoreIdForRootDocuments() local
336 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
354 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
369 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
384 final String[] columns = new String[] { in testRestoreIdForChildDocuments() local
406 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments()
419 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments()
437 final String[] columns = new String[] { in testRestoreIdForDifferentDevices() local
463 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices()
509 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java202 boolean distinct, String tables, String[] columns, String where, in buildQueryString() argument
218 if (columns != null && columns.length != 0) { in buildQueryString()
219 appendColumns(query, columns); in buildQueryString()
245 public static void appendColumns(StringBuilder s, String[] columns) { in appendColumns() argument
246 int n = columns.length; in appendColumns()
249 String column = columns[i]; in appendColumns()
DSQLiteDatabase.java1033 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1036 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1074 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1077 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1114 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1117 return queryWithFactory(cursorFactory, distinct, table, columns, selection, in queryWithFactory()
1157 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1163 distinct, table, columns, selection, groupBy, having, orderBy, limit); in queryWithFactory()
1200 public Cursor query(String table, String[] columns, String selection, in query() argument
1204 return query(false, table, columns, selection, selectionArgs, groupBy, in query()
[all …]
DSQLiteCursor.java167 String[] columns = mColumns; in getColumnIndex() local
168 int columnCount = columns.length; in getColumnIndex()
171 map.put(columns[i], i); in getColumnIndex()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DTimePicker.java192 ArrayList<PickerColumn> columns = new ArrayList<>(3); in updateColumns() local
196 columns.add(mHourColumn = new PickerColumn()); in updateColumns()
201 columns.add(mMinuteColumn = new PickerColumn()); in updateColumns()
206 columns.add(mAmPmColumn = new PickerColumn()); in updateColumns()
216 setColumns(columns); in updateColumns()
DDatePicker.java138 ArrayList<PickerColumn> columns = new ArrayList<PickerColumn>(3); in setDatePickerFormat() local
145 columns.add(mYearColumn = new PickerColumn()); in setDatePickerFormat()
153 columns.add(mMonthColumn = new PickerColumn()); in setDatePickerFormat()
161 columns.add(mDayColumn = new PickerColumn()); in setDatePickerFormat()
169 setColumns(columns); in setDatePickerFormat()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java75 ArrayList<String> columns = new ArrayList<String>(count); in MtpPropertyGroup() local
76 columns.add(Files.FileColumns._ID); in MtpPropertyGroup()
80 mProperties[i] = createProperty(properties[i], columns); in MtpPropertyGroup()
82 count = columns.size(); in MtpPropertyGroup()
85 mColumns[i] = columns.get(i); in MtpPropertyGroup()
89 private Property createProperty(int code, ArrayList<String> columns) { in createProperty() argument
191 columns.add(column); in createProperty()
192 return new Property(code, type, columns.size() - 1); in createProperty()
/frameworks/base/core/java/android/database/
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()
DDatabaseUtils.java731 String[] columns = cursor.getColumnNames(); in cursorRowToContentValues() local
732 int length = columns.length; in cursorRowToContentValues()
735 values.put(columns[i], cursor.getBlob(i)); in cursorRowToContentValues()
737 values.put(columns[i], cursor.getString(i)); in cursorRowToContentValues()
/frameworks/base/media/java/android/media/
DRingtoneManager.java639 List<String> columns = mFilterColumns; in setFilterColumnsList() local
640 columns.clear(); in setFilterColumnsList()
643 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList()
647 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList()
651 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList()
663 private static String constructBooleanTrueWhereClause(List<String> columns) { in constructBooleanTrueWhereClause() argument
665 if (columns == null) return null; in constructBooleanTrueWhereClause()
670 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause()
671 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause()
674 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java77 final int columns = Math.max(1, res.getInteger(R.integer.quick_settings_num_columns)); in updateResources() local
81 if (mColumns != columns) { in updateResources()
82 mColumns = columns; in updateResources()
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java61 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
64 mColumns = checkArgumentPositive(columns, "columns must be positive"); in LensShadingMap()
/frameworks/compile/mclinker/lib/Script/
DScriptScanner.ll41 #define YY_USER_ACTION yylloc->columns(yyleng);
306 pLocation.columns(1);
314 pLocation.columns(1);
319 pLocation.columns(1);
323 pLocation.columns(1);
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java458 String[] columns = { ACCOUNTS_ID }; in findCeAccountId() local
461 try (Cursor cursor = db.query(CE_TABLE_ACCOUNTS, columns, selection, selectionArgs, in findCeAccountId() argument
474 String[] columns = {ACCOUNTS_PASSWORD}; in findAccountPasswordByNameAndType() local
475 try (Cursor cursor = db.query(CE_TABLE_ACCOUNTS, columns, selection, selectionArgs, in findAccountPasswordByNameAndType() argument
786 String[] columns = {ACCOUNTS_ID}; in findDeAccountId() local
789 try (Cursor cursor = db.query(TABLE_ACCOUNTS, columns, selection, selectionArgs, in findDeAccountId() argument
801 String[] columns = {ACCOUNTS_ID, ACCOUNTS_TYPE, ACCOUNTS_NAME}; in findAllDeAccounts() local
802 try (Cursor cursor = db.query(TABLE_ACCOUNTS, columns, in findAllDeAccounts() argument
818 String[] columns = {ACCOUNTS_PREVIOUS_NAME}; in findDeAccountPreviousName() local
821 try (Cursor cursor = db.query(TABLE_ACCOUNTS, columns, selection, selectionArgs, in findDeAccountPreviousName() argument
/frameworks/base/core/java/android/net/
Dnetwork-policy-restrictions.md8 The 2 leftmost columns define the Data Saver mode and whether the app is whitelisted, not whitelis…

12