Home
last modified time | relevance | path

Searched refs:column (Results 1 – 25 of 97) sorted by relevance

1234

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEnterpriseContactsCursorWrapperTest.java186 int column = 0; in testWrappedResults() local
187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
188 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
189 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
190 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
191 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
192 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
193 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
194 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
195 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
[all …]
DBaseDatabaseHelperUpgradeTest.java83 TableColumn column = new TableColumn(); in TableStructure() local
84 column.cid = cursor.getInt(cidIndex); in TableStructure()
85 column.name = cursor.getString(nameIndex); in TableStructure()
86 column.type = cursor.getString(typeIndex); in TableStructure()
87 column.notnull = cursor.getInt(notNullIndex) != 0; in TableStructure()
88 column.dflt_value = cursor.getString(dfltValueIndex); in TableStructure()
89 column.pk = cursor.getInt(pkIndex); in TableStructure()
91 addColumn(column); in TableStructure()
100 private void addColumn(TableColumn column) { in addColumn() argument
101 mColumns.put(column.name, column); in addColumn()
[all …]
DBaseContactsProvider2Test.java865 protected void storeValue(Uri contentUri, long id, String column, String value) { in storeValue() argument
866 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
869 protected void storeValue(Uri contentUri, String column, String value) { in storeValue() argument
871 values.put(column, value); in storeValue()
876 protected void storeValue(Uri contentUri, long id, String column, long value) { in storeValue() argument
877 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
880 protected void storeValue(Uri contentUri, String column, long value) { in storeValue() argument
882 values.put(column, value); in storeValue()
887 protected void assertStoredValue(Uri contentUri, long id, String column, Object expectedValue) { in assertStoredValue() argument
888 assertStoredValue(ContentUris.withAppendedId(contentUri, id), column, expectedValue); in assertStoredValue() local
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java41 public Object get(int column) { in get() argument
42 return mRows.get(getPosition()).get(column); in get()
56 public double getDouble(int column) { in getDouble() argument
57 return mRows.get(getPosition()).getDouble(column); in getDouble()
61 public float getFloat(int column) { in getFloat() argument
62 return mRows.get(getPosition()).getFloat(column); in getFloat()
66 public int getInt(int column) { in getInt() argument
67 return mRows.get(getPosition()).getInt(column); in getInt()
71 public long getLong(int column) { in getLong() argument
72 return mRows.get(getPosition()).getLong(column); in getLong()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java62 ColumnInfo column = columns[i]; in EntrySchema() local
63 projection[i] = column.name; in EntrySchema()
64 if (column.fullText) { in EntrySchema()
86 for (ColumnInfo column : mColumnInfo) { in getColumnIndex()
87 if (column.name.equals(columnName)) { in getColumnIndex()
88 return column.projectionIndex; in getColumnIndex()
105 for (ColumnInfo column : mColumnInfo) { in cursorToObject()
106 int columnIndex = column.projectionIndex; in cursorToObject()
107 Field field = column.field; in cursorToObject()
108 switch (column.type) { in cursorToObject()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DReorderingCursorWrapper.java67 public double getDouble(int column) { in getDouble() argument
68 return mCursor.getDouble(column); in getDouble()
72 public float getFloat(int column) { in getFloat() argument
73 return mCursor.getFloat(column); in getFloat()
77 public int getInt(int column) { in getInt() argument
78 return mCursor.getInt(column); in getInt()
82 public long getLong(int column) { in getLong() argument
83 return mCursor.getLong(column); in getLong()
87 public short getShort(int column) { in getShort() argument
88 return mCursor.getShort(column); in getShort()
[all …]
DPhoneLookupWithStarPrefix.java84 for (int column = 0; column < cursor.getColumnCount(); column++) { in removeNonStarMatchesFromCursor()
85 b.add(cursor.getColumnName(column), cursorValue(cursor, column)); in removeNonStarMatchesFromCursor()
134 private static Object cursorValue(Cursor cursor, int column) { in cursorValue() argument
135 switch(cursor.getType(column)) { in cursorValue()
137 return cursor.getBlob(column); in cursorValue()
139 return cursor.getInt(column); in cursorValue()
141 return cursor.getFloat(column); in cursorValue()
143 return cursor.getString(column); in cursorValue()
147 Log.d(TAG, "Invalid value in cursor: " + cursor.getType(column)); in cursorValue()
DGlobalSearchSupport.java119 private void addColumnValue(ArrayList<Object> list, String column) { in addColumnValue() argument
120 if ("_id".equals(column)) { in addColumnValue()
122 } else if (SearchManager.SUGGEST_COLUMN_TEXT_1.equals(column)) { in addColumnValue()
124 } else if (SearchManager.SUGGEST_COLUMN_TEXT_2.equals(column)) { in addColumnValue()
126 } else if (SearchManager.SUGGEST_COLUMN_ICON_1.equals(column)) { in addColumnValue()
128 } else if (SearchManager.SUGGEST_COLUMN_ICON_2.equals(column)) { in addColumnValue()
130 } else if (SearchManager.SUGGEST_COLUMN_INTENT_DATA.equals(column)) { in addColumnValue()
132 } else if (SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID.equals(column)) { in addColumnValue()
134 } else if (SearchManager.SUGGEST_COLUMN_SHORTCUT_ID.equals(column)) { in addColumnValue()
136 } else if (SearchManager.SUGGEST_COLUMN_INTENT_EXTRA_DATA.equals(column)) { in addColumnValue()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionCursorBackedCursor.java109 public int getInt(int column) { in getInt() argument
110 if (column == COLUMN_INDEX_ID) { in getInt()
114 return Integer.valueOf(getString(column)); in getInt()
122 public String getString(int column) { in getString() argument
123 if (column < COLUMNS.length) { in getString()
124 switch (column) { in getString()
152 throw new CursorIndexOutOfBoundsException("Requested column " + column in getString()
156 return getExtra(column); in getString()
161 public long getLong(int column) { in getLong() argument
163 return Long.valueOf(getString(column)); in getLong()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DThreadSafeCursorWrapper.java45 public String getString(int column) { in getString() argument
48 return super.getString(column); in getString()
53 public short getShort(int column) { in getShort() argument
56 return super.getShort(column); in getShort()
61 public int getInt(int column) { in getInt() argument
64 return super.getInt(column); in getInt()
69 public long getLong(int column) { in getLong() argument
72 return super.getLong(column); in getLong()
77 public float getFloat(int column) { in getFloat() argument
80 return super.getFloat(column); in getFloat()
[all …]
/packages/apps/Music/src/com/android/music/
DSortCursor.java185 public String getString(int column) in getString() argument
187 return mCursor.getString(column); in getString()
191 public short getShort(int column) in getShort() argument
193 return mCursor.getShort(column); in getShort()
197 public int getInt(int column) in getInt() argument
199 return mCursor.getInt(column); in getInt()
203 public long getLong(int column) in getLong() argument
205 return mCursor.getLong(column); in getLong()
209 public float getFloat(int column) in getFloat() argument
211 return mCursor.getFloat(column); in getFloat()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java123 final String column = editField.column; in rebuildDateView() local
124 String data = DateUtils.formatDate(getContext(), getEntry().getAsString(column), in rebuildDateView()
140 final String column = editField.column; in isEmpty() local
141 return TextUtils.isEmpty(getEntry().getAsString(column)); in isEmpty()
164 final String column = getKind().fieldList.get(0).column; in onLabelRebuilt() local
165 final String oldValue = getEntry().getAsString(column); in onLabelRebuilt()
186 onFieldChanged(column, kind.dateFormatWithYear.format(calendar.getTime())); in onLabelRebuilt()
195 final String column = getKind().fieldList.get(0).column; in createDatePickerDialog() local
196 final String oldValue = getEntry().getAsString(column); in createDatePickerDialog()
248 onFieldChanged(column, resultString); in createDatePickerDialog()
[all …]
DPhoneticNameEditorView.java88 public static boolean isUnstructuredPhoneticNameColumn(String column) { in isUnstructuredPhoneticNameColumn() argument
89 return DataKind.PSEUDO_COLUMN_PHONETIC_NAME.equals(column); in isUnstructuredPhoneticNameColumn()
115 public void onFieldChanged(String column, String value) { in onFieldChanged() argument
116 if (!isFieldChanged(column, value)) { in onFieldChanged()
131 if (isEditingUnstructuredPhoneticName == isUnstructuredPhoneticNameColumn(column)) { in onFieldChanged()
134 super.onFieldChanged(column, value); in onFieldChanged()
140 super.onFieldChanged(column, value); in onFieldChanged()
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
DEmptyCursor.java47 public String getString(int column) { in getString() argument
52 public short getShort(int column) { in getShort() argument
57 public int getInt(int column) { in getInt() argument
62 public long getLong(int column) { in getLong() argument
67 public float getFloat(int column) { in getFloat() argument
72 public double getDouble(int column) { in getDouble() argument
77 public boolean isNull(int column) { in isNull() argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java512 T get(Cursor cursor, int column);
517 public Long get(Cursor cursor, int column) {
518 return cursor.getLong(column);
524 public Integer get(Cursor cursor, int column) {
525 return cursor.getInt(column);
531 public String get(Cursor cursor, int column) {
532 return cursor.getString(column);
538 public byte[] get(Cursor cursor, int column) {
539 return cursor.getBlob(column);
564 int column, T defaultValue, CursorGetter<T> getter) {
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java144 String column = projection[i]; in queryPicasaItem() local
145 if (PicasaColumns.USER_ACCOUNT.equals(column)) { in queryPicasaItem()
147 } else if (PicasaColumns.PICASA_ID.equals(column)) { in queryPicasaItem()
149 } else if (ImageColumns.DISPLAY_NAME.equals(column)) { in queryPicasaItem()
151 } else if (ImageColumns.SIZE.equals(column)){ in queryPicasaItem()
153 } else if (ImageColumns.MIME_TYPE.equals(column)) { in queryPicasaItem()
155 } else if (ImageColumns.DATE_TAKEN.equals(column)) { in queryPicasaItem()
157 } else if (ImageColumns.LATITUDE.equals(column)) { in queryPicasaItem()
159 } else if (ImageColumns.LONGITUDE.equals(column)) { in queryPicasaItem()
161 } else if (ImageColumns.ORIENTATION.equals(column)) { in queryPicasaItem()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java213 for (final VerticalGridView column : mColumnViews) { in updateAllColumnsForClick()
214 final int selected = column.getSelectedPosition(); in updateAllColumnsForClick()
216 final RecyclerView.LayoutManager manager = column.getLayoutManager(); in updateAllColumnsForClick()
265 for (final VerticalGridView column : mColumnViews) { in childFocusChanged()
266 updateColumn(column, column.hasFocus(), animList); in childFocusChanged()
276 private void updateColumn(VerticalGridView column, boolean animateAlpha, in updateColumn() argument
278 if (column == null) { in updateColumn()
282 final int selected = column.getSelectedPosition(); in updateColumn()
283 final boolean focused = column.hasFocus(); in updateColumn()
292 final RecyclerView.LayoutManager manager = column.getLayoutManager(); in updateColumn()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DSimpleCharStream.java34 protected int column = 0; field in SimpleCharStream
157 column++; in UpdateLineColumn()
162 line += (column = 1); in UpdateLineColumn()
172 line += (column = 1); in UpdateLineColumn()
184 column--; in UpdateLineColumn()
185 column += (tabSize - (column % tabSize)); in UpdateLineColumn()
192 bufcolumn[bufpos] = column; in UpdateLineColumn()
262 column = startcolumn - 1; in SimpleCharStream()
285 column = startcolumn - 1; in ReInit()
451 column = bufcolumn[j]; in adjustBeginLineColumn()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DOpenHelper.java147 private static String getCursorString(Cursor cursor, String column) { in getCursorString() argument
148 return cursor.getString(cursor.getColumnIndexOrThrow(column)); in getCursorString()
151 private static Uri getCursorUri(Cursor cursor, String column) { in getCursorUri() argument
152 return Uri.parse(getCursorString(cursor, column)); in getCursorUri()
155 private static File getCursorFile(Cursor cursor, String column) { in getCursorFile() argument
156 return new File(cursor.getString(cursor.getColumnIndexOrThrow(column))); in getCursorFile()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactsSource.java295 public String column; field in ContactsSource.EditField
301 public EditField(String column, int titleRes) { in EditField() argument
302 this.column = column; in EditField()
306 public EditField(String column, int titleRes, int inputType) { in EditField() argument
307 this(column, titleRes); in EditField()

1234