Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/text/
DPackedIntVector.java43 public PackedIntVector(int columns) { in PackedIntVector() argument
44 mColumns = columns; in PackedIntVector()
51 mValueGap = new int[2 * columns]; in PackedIntVector()
67 final int columns = mColumns; in getValue() local
69 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { in getValue()
77 int value = mValues[row * columns + column]; in getValue()
81 value += valuegap[column + columns]; in getValue()
254 final int columns = mColumns; in growBuffer() local
256 newsize = ArrayUtils.idealIntArraySize(newsize * columns) / columns; in growBuffer()
257 int[] newvalues = new int[newsize * columns]; in growBuffer()
[all …]
DPackedObjectVector.java32 PackedObjectVector(int columns) in PackedObjectVector() argument
34 mColumns = columns; in PackedObjectVector()
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java154 int[] columns = ca.getConvertedFrom(); in testChangeCursorColumns() local
155 assertEquals(columns[0], 0); in testChangeCursorColumns()
156 assertEquals(columns[1], 1); in testChangeCursorColumns()
165 columns = ca.getConvertedFrom(); in testChangeCursorColumns()
166 assertEquals(columns[0], 1); in testChangeCursorColumns()
167 assertEquals(columns[1], 0); in testChangeCursorColumns()
193 int[] columns = ca.getConvertedFrom(); in testChangeNullToMapped() local
194 assertEquals(2, columns.length); in testChangeNullToMapped()
195 assertEquals(0, columns[0]); in testChangeNullToMapped()
196 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.java63 int columns, int size) { in newInstance() argument
65 ret.initialize(titleResId, colors, selectedColor, columns, size); in newInstance()
69 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { in initialize() argument
70 setArguments(titleResId, columns, size); in initialize()
74 public void setArguments(int titleResId, int columns, int size) { in setArguments() argument
77 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/media/java/android/media/
DRingtoneManager.java503 List<String> columns = mFilterColumns; in setFilterColumnsList() local
504 columns.clear(); in setFilterColumnsList()
507 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList()
511 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList()
515 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList()
527 private static String constructBooleanTrueWhereClause(List<String> columns) { in constructBooleanTrueWhereClause() argument
529 if (columns == null) return null; in constructBooleanTrueWhereClause()
534 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause()
535 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause()
538 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
/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/core/java/android/widget/
DTableLayout.java151 SparseBooleanArray columns = new SparseBooleanArray(); in parseColumns() local
162 columns.put(columnIndex, true); in parseColumns()
169 return columns; in parseColumns()
580 private void mutateColumnsWidth(SparseBooleanArray columns, in mutateColumnsWidth() argument
585 final int count = allColumns ? length : columns.size(); in mutateColumnsWidth()
601 int column = columns.keyAt(i); in mutateColumnsWidth()
602 if (columns.valueAt(i)) { in mutateColumnsWidth()
623 int column = columns.keyAt(i); in mutateColumnsWidth()
624 if (columns.valueAt(i) && column < length) { in mutateColumnsWidth()
/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.java1029 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1032 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1070 public Cursor query(boolean distinct, String table, String[] columns, in query() argument
1073 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, in query()
1110 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1113 return queryWithFactory(cursorFactory, distinct, table, columns, selection, in queryWithFactory()
1153 boolean distinct, String table, String[] columns, in queryWithFactory() argument
1159 distinct, table, columns, selection, groupBy, having, orderBy, limit); in queryWithFactory()
1196 public Cursor query(String table, String[] columns, String selection, in query() argument
1200 return query(false, table, columns, selection, selectionArgs, groupBy, in query()
[all …]
DSQLiteCursor.java168 String[] columns = mColumns; in getColumnIndex() local
169 int columnCount = columns.length; in getColumnIndex()
172 map.put(columns[i], i); in getColumnIndex()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java78 ArrayList<String> columns = new ArrayList<String>(count); in MtpPropertyGroup() local
79 columns.add(Files.FileColumns._ID); in MtpPropertyGroup()
83 mProperties[i] = createProperty(properties[i], columns); in MtpPropertyGroup()
85 count = columns.size(); in MtpPropertyGroup()
88 mColumns[i] = columns.get(i); in MtpPropertyGroup()
92 private Property createProperty(int code, ArrayList<String> columns) { in createProperty() argument
183 columns.add(column); in createProperty()
184 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.java714 String[] columns = cursor.getColumnNames(); in cursorRowToContentValues() local
715 int length = columns.length; in cursorRowToContentValues()
718 values.put(columns[i], cursor.getBlob(i)); in cursorRowToContentValues()
720 values.put(columns[i], cursor.getString(i)); in cursorRowToContentValues()
/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/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/packages/DocumentsUI/src/com/android/documentsui/
DColumnAdapter.java59 public void setColumns(int columns) { in setColumns() argument
60 mColumns = columns; in setColumns()
/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
367 {@link android.database.Cursor} columns to the {@link android.widget.QuickContactBadge}. Neither
502 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
/frameworks/base/docs/html/training/basics/data-storage/
Ddatabases.jd57 tables, and columns. The contract class allows you to use the same constants
63 class for each table that enumerates its columns.</p>
216 method, passing it your selection criteria and desired columns.
225 // Define a <em>projection</em> that specifies which columns from the database
240 projection, // The columns to return
241 selection, // The columns for the WHERE clause
276 clause defines the columns to look at, and also allows you to combine column
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboard.java83 CharSequence characters, int columns, int horizontalPadding) { in PasswordEntryKeyboard() argument
84 super(context, layoutTemplateResId, characters, columns, horizontalPadding); in PasswordEntryKeyboard()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java574 CharSequence characters, int columns, int horizontalPadding) { in Keyboard() argument
587 final int maxColumns = columns == -1 ? Integer.MAX_VALUE : columns; in Keyboard()
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-provider-basics.jd249 mProjection, // The columns to return for each row
277 <code>projection</code> is an array of columns that should be included for each row
415 // A "projection" defines the columns that will be returned for each row
434 set of columns to return, a set of selection criteria, and a sort order.
437 The set of columns that the query should return is called a <strong>projection</strong>
482 mProjection, // The columns to return for each row
571 returns a {@link android.database.Cursor} containing the columns specified by the query's
573 {@link android.database.Cursor} object provides random read access to the rows and columns it
581 <strong>Note:</strong> A provider may restrict access to columns based on the nature of the
582 object making the query. For example, the Contacts Provider restricts access for some columns to
[all …]

123