Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/text/
DPackedIntVector.java44 public PackedIntVector(int columns) { in PackedIntVector() argument
45 mColumns = columns; in PackedIntVector()
52 mValueGap = new int[2 * columns]; in PackedIntVector()
68 final int columns = mColumns; in getValue() local
70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue()
78 int value = mValues[row * columns + column]; in getValue()
82 value += valuegap[column + columns]; in getValue()
255 final int columns = mColumns; in growBuffer() local
257 GrowingArrayUtils.growSize(size()) * columns); in growBuffer()
258 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/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()
/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/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/media/java/android/media/
DRingtoneManager.java532 List<String> columns = mFilterColumns; in setFilterColumnsList() local
533 columns.clear(); in setFilterColumnsList()
536 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList()
540 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList()
544 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList()
556 private static String constructBooleanTrueWhereClause(List<String> columns) { in constructBooleanTrueWhereClause() argument
558 if (columns == null) return null; in constructBooleanTrueWhereClause()
563 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause()
564 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause()
567 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
/frameworks/base/core/java/android/widget/
DTableLayout.java148 SparseBooleanArray columns = new SparseBooleanArray(); in parseColumns() local
159 columns.put(columnIndex, true); in parseColumns()
166 return columns; in parseColumns()
577 private void mutateColumnsWidth(SparseBooleanArray columns, in mutateColumnsWidth() argument
582 final int count = allColumns ? length : columns.size(); in mutateColumnsWidth()
598 int column = columns.keyAt(i); in mutateColumnsWidth()
599 if (columns.valueAt(i)) { in mutateColumnsWidth()
620 int column = columns.keyAt(i); in mutateColumnsWidth()
621 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/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/docs/html/about/versions/
Dandroid-2.2-highlights.jd21 #jd-content table.columns {
24 #jd-content table.columns td {
27 #jd-content table.columns td+td {
30 #jd-content table.columns td img {
33 #jd-content table.columns td+td>*:first-child {
72 <table class="columns" style="max-width:800px">
92 <table class="columns" style="max-width:800px">
115 <table class="columns" style="max-width:800px">
135 <table class="columns" style="max-width:800px">
153 <table class="columns" style="max-width:800px">
[all …]
/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()
/frameworks/base/docs/html/training/tv/discovery/
Dsearchable.jd12 <li><a href="#columns">Identify Columns</a></li>
54 <h2 id="columns">Identify Columns</h2>
57 columns of an SQLite database. Regardless of your data's format, you must map your data fields to
58 these columns, usually in the class that accessess your content data. For information about building
63 <p>The {@link android.app.SearchManager} class includes several columns for Android TV. Some of the
64 more important columns are described below.</p>
97 <p>The search framework requires the following columns:</p>
105 <p>When the values of these columns for your content match the values for the same content from oth…
111 <p>Your application's database class might define the columns as follows:</p>
115 //The columns we'll include in the video database table
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DDatePicker.java134 ArrayList<PickerColumn> columns = new ArrayList<PickerColumn>(3); in setDatePickerFormat() local
141 columns.add(mYearColumn = new PickerColumn()); in setDatePickerFormat()
149 columns.add(mMonthColumn = new PickerColumn()); in setDatePickerFormat()
157 columns.add(mDayColumn = new PickerColumn()); in setDatePickerFormat()
165 setColumns(columns); in setDatePickerFormat()
/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/docs/html/guide/topics/ui/layout/
Dgrid.jd21 displays child {@link android.view.View} elements in rows and columns.</p>
27 and columns. TableLayout containers do not display border lines for their rows, columns,
28 or cells. The table will have as many columns as the row with the most cells. A table can leave
29 cells empty, but cells cannot span columns, as they can in HTML.</p>
38 <table class="columns">
/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/base/docs/html/training/search/
Dsearch.jd57 //The columns we'll include in the dictionary table
174 public Cursor getWordMatches(String query, String[] columns) {
178 return query(selection, selectionArgs, columns);
181 private Cursor query(String selection, String[] selectionArgs, String[] columns) {
186 columns, selection, selectionArgs, null, null, null);
/frameworks/base/docs/html/training/contacts-provider/
Ddisplay-contact-badge.jd109 both the content URI and the {@link android.graphics.Bitmap} from columns retrieved from the
110 Contacts Provider. Specify these columns as part of the projection you use to load data into
114 For Android 3.0 (API level 11) and later, include the following columns in your projection:</p>
124 For Android 2.3.3 (API level 10) and earlier, use the following columns:
132 {@link android.database.Cursor} that contains these columns as well as others you may have
133 chosen. To learn how to retrieve this columns in a {@link android.database.Cursor}, read the
138 Once you have the necessary columns, you can bind data to the
197 {@link android.provider.ContactsContract.Contacts#LOOKUP_KEY Contacts.LOOKUP_KEY} columns, as
366 {@link android.database.Cursor} columns to the {@link android.widget.QuickContactBadge}. Neither
501 includes the necessary columns.
[all …]
Dretrieve-details.jd67 device, because it needs to retrieve all of the columns in the
84 Depending on the data type a row contains, it may use only a few columns or many. In addition,
85 the data is in different columns depending on the data type.
86 To ensure you get all the possible columns for all possible data types, you need to add all the
116 This projection retrieves all the columns for a row in the
122 {@link android.provider.ContactsContract.Data} class. Notice, however, that the columns
292 Modify your projection to retrieve the columns that are specific to the
319 Define the columns you want to retrieve, using the column name constants in the subclass
341 In the projection, you can also use any of the other columns defined in the

123456