Home
last modified time | relevance | path

Searched refs:columns (Results 1 – 25 of 52) 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/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/media/java/android/media/
DRingtoneManager.java515 List<String> columns = mFilterColumns; in setFilterColumnsList() local
516 columns.clear(); in setFilterColumnsList()
519 columns.add(MediaStore.Audio.AudioColumns.IS_RINGTONE); in setFilterColumnsList()
523 columns.add(MediaStore.Audio.AudioColumns.IS_NOTIFICATION); in setFilterColumnsList()
527 columns.add(MediaStore.Audio.AudioColumns.IS_ALARM); in setFilterColumnsList()
539 … private static String constructBooleanTrueWhereClause(List<String> columns, boolean includeDrm) { in constructBooleanTrueWhereClause() argument
541 if (columns == null) return null; in constructBooleanTrueWhereClause()
546 for (int i = columns.size() - 1; i >= 0; i--) { in constructBooleanTrueWhereClause()
547 sb.append(columns.get(i)).append("=1 or "); in constructBooleanTrueWhereClause()
550 if (columns.size() > 0) { in constructBooleanTrueWhereClause()
/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/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/core/java/android/webkit/
DWebViewDatabaseClassic.java350 final String[] columns = new String[] { in getUsernamePassword() local
359 columns, selection, new String[] { schemePlusHost }, null, in getUsernamePassword()
446 final String[] columns = new String[] { in getHttpAuthUsernamePassword() local
456 columns, selection, new String[] { host, realm }, null, in getHttpAuthUsernamePassword()
/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>
218 method, passing it your selection criteria and desired columns.
227 // Define a <em>projection</em> that specifies which columns from the database
242 projection, // The columns to return
243 selection, // The columns for the WHERE clause
278 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/docs/html/design/style/
Diconography.jd79 <!-- 2 free columns -->
90 <!-- 1 free columns -->
267 <!-- 2 free columns -->
339 <!-- 2 free columns -->
/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()

123