Home
last modified time | relevance | path

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

1234

/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/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/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java796 protected void storeValue(Uri contentUri, long id, String column, String value) { in storeValue() argument
797 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
800 protected void storeValue(Uri contentUri, String column, String value) { in storeValue() argument
802 values.put(column, value); in storeValue()
807 protected void storeValue(Uri contentUri, long id, String column, long value) { in storeValue() argument
808 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
811 protected void storeValue(Uri contentUri, String column, long value) { in storeValue() argument
813 values.put(column, value); in storeValue()
818 protected void assertStoredValue(Uri contentUri, long id, String column, Object expectedValue) { in assertStoredValue() argument
819 assertStoredValue(ContentUris.withAppendedId(contentUri, id), column, expectedValue); in assertStoredValue() local
[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 …]
DTrackBrowserActivity.java1240 public String getString(int column)
1243 return mCurrentPlaylistCursor.getString(column);
1251 public short getShort(int column)
1253 return mCurrentPlaylistCursor.getShort(column);
1257 public int getInt(int column)
1260 return mCurrentPlaylistCursor.getInt(column);
1268 public long getLong(int column)
1271 return mCurrentPlaylistCursor.getLong(column);
1279 public float getFloat(int column)
1281 return mCurrentPlaylistCursor.getFloat(column);
[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/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/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java120 final String column = editField.column; in rebuildDateView() local
121 String data = DateUtils.formatDate(getContext(), getEntry().getAsString(column), in rebuildDateView()
137 final String column = editField.column; in isEmpty() local
138 return TextUtils.isEmpty(getEntry().getAsString(column)); in isEmpty()
161 final String column = getKind().fieldList.get(0).column; in onLabelRebuilt() local
162 final String oldValue = getEntry().getAsString(column); in onLabelRebuilt()
183 onFieldChanged(column, kind.dateFormatWithYear.format(calendar.getTime())); in onLabelRebuilt()
192 final String column = getKind().fieldList.get(0).column; in createDatePickerDialog() local
193 final String oldValue = getEntry().getAsString(column); in createDatePickerDialog()
245 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()
114 public void onFieldChanged(String column, String value) { in onFieldChanged() argument
115 if (!isFieldChanged(column, value)) { in onFieldChanged()
130 if (isEditingUnstructuredPhoneticName == isUnstructuredPhoneticNameColumn(column)) { in onFieldChanged()
133 super.onFieldChanged(column, value); in onFieldChanged()
139 super.onFieldChanged(column, value); in onFieldChanged()
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java235 final String column = projection[i]; in query() local
236 if (column.equals(Directory.ACCOUNT_NAME)) { in query()
238 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in query()
240 } else if (column.equals(Directory.TYPE_RESOURCE_ID)) { in query()
252 } else if (column.equals(Directory.DISPLAY_NAME)) { in query()
264 } else if (column.equals(Directory.EXPORT_SUPPORT)) { in query()
266 } else if (column.equals(Directory.SHORTCUT_SUPPORT)) { in query()
390 final String column = projection[i]; in buildGalResultCursor() local
391 if (Contacts.DISPLAY_NAME.equals(column) || in buildGalResultCursor()
392 Contacts.DISPLAY_NAME_PRIMARY.equals(column)) { in buildGalResultCursor()
[all …]
/packages/apps/Browser/src/com/android/browser/search/
DOpenSearchSearchEngine.java234 public String getString(int column) { in getString() argument
236 if ((column == COLUMN_INDEX_QUERY) || (column == COLUMN_INDEX_TEXT_1)) { in getString()
242 } else if (column == COLUMN_INDEX_TEXT_2) { in getString()
248 } else if (column == COLUMN_INDEX_ICON) { in getString()
256 public double getDouble(int column) { in getDouble() argument
261 public float getFloat(int column) { in getFloat() argument
266 public int getInt(int column) { in getInt() argument
271 public long getLong(int column) { in getLong() argument
272 if (column == COLUMN_INDEX_ID) { in getLong()
279 public short getShort(int column) { in getShort() argument
[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/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/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/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/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java281 public int column; field in StaggeredGridView.LayoutRecord
327 String result = "LayoutRecord{c=" + column + ", id=" + id + " h=" + height + in toString()
1315 final int col = mIsRtlLayout ? lp.column - spanIndex : in recycleOffscreenViews()
1316 lp.column + spanIndex; in recycleOffscreenViews()
1344 rec.column = lp.column; in recreateLayoutRecord()
1828 if (lp.column < (mColCount / 2)) {
1997 if (lp.column < (mColCount / 2)) {
2160 rec.column = nextColumn;
2275 col = lp.column;
2318 lp.column = getNextColumnDown();
[all …]
/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/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java322 ScrollAdapterView column = mColumnViews.get(j); in updateAllColumnsForClick() local
323 int selected = column.getSelectedItemPosition(); in updateAllColumnsForClick()
324 for (int i = 0; i < column.getAdapter().getCount(); i++) { in updateAllColumnsForClick()
325 item = column.getItemView(i); in updateAllColumnsForClick()
363 private void updateColumn(ScrollAdapterView column, boolean animateAlpha, in updateColumn() argument
365 if (column == null) { in updateColumn()
369 int selected = column.getSelectedItemPosition(); in updateColumn()
371 boolean focused = column.hasFocus(); in updateColumn()
379 for (int i = 0; i < column.getAdapter().getCount(); i++) { in updateColumn()
380 item = column.getItemView(i); in updateColumn()
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/
DFillCallLogTestActivity.java190 for (int column = 0; column < cursor.getColumnCount(); in createContentValuesFromCursor()
191 ++column) { in createContentValuesFromCursor()
192 String name = cursor.getColumnName(column); in createContentValuesFromCursor()
193 switch (cursor.getType(column)) { in createContentValuesFromCursor()
195 values.put(name, cursor.getString(column)); in createContentValuesFromCursor()
198 values.put(name, cursor.getLong(column)); in createContentValuesFromCursor()
201 values.put(name, cursor.getDouble(column)); in createContentValuesFromCursor()
204 values.put(name, cursor.getBlob(column)); in createContentValuesFromCursor()
210 Log.d(TAG, "Invalid value in cursor: " + cursor.getType(column)); in createContentValuesFromCursor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java138 @Override public double getDouble(int column) { return 0; } in getDouble() argument
139 @Override public float getFloat(int column) { return 0; } in getFloat() argument
140 @Override public int getInt(int column) { return 0; } in getInt() argument
141 @Override public short getShort(int column) { return 0; } in getShort() argument
142 @Override public long getLong(int column) { return 0; } in getLong() argument
144 @Override public String getString(final int column) { in getString() argument
145 switch (column) { in getString()
154 public boolean isNull(final int column) { in isNull() argument
156 return column != 0; in isNull()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountType.java432 public String column; field in AccountType.EditField
440 public EditField(String column, int titleRes) { in EditField() argument
441 this.column = column; in EditField()
445 public EditField(String column, int titleRes, int inputType) { in EditField() argument
446 this(column, titleRes); in EditField()
478 + " column=" + column in toString()

1234