Home
last modified time | relevance | path

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

12345

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEnterpriseContactsCursorWrapperTest.java185 int column = 0; in testWrappedResults() local
186 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
188 assertEquals(null, rewritten.getString(column++)); 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()
[all …]
DBaseDatabaseHelperUpgradeTest.java82 TableColumn column = new TableColumn(); in TableStructure() local
83 column.cid = cursor.getInt(cidIndex); in TableStructure()
84 column.name = cursor.getString(nameIndex); in TableStructure()
85 column.type = cursor.getString(typeIndex); in TableStructure()
86 column.notnull = cursor.getInt(notNullIndex) != 0; in TableStructure()
87 column.dflt_value = cursor.getString(dfltValueIndex); in TableStructure()
88 column.pk = cursor.getInt(pkIndex); in TableStructure()
90 addColumn(column); in TableStructure()
99 private void addColumn(TableColumn column) { in addColumn() argument
100 mColumns.put(column.name, column); in addColumn()
[all …]
DBaseContactsProvider2Test.java873 protected void storeValue(Uri contentUri, long id, String column, String value) { in storeValue() argument
874 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
877 protected void storeValue(Uri contentUri, String column, String value) { in storeValue() argument
879 values.put(column, value); in storeValue()
884 protected void storeValue(Uri contentUri, long id, String column, long value) { in storeValue() argument
885 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
888 protected void storeValue(Uri contentUri, String column, long value) { in storeValue() argument
890 values.put(column, value); in storeValue()
895 protected void assertStoredValue(Uri contentUri, long id, String column, Object expectedValue) { in assertStoredValue() argument
896 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/apps/DocumentsUI/src/com/android/documentsui/roots/
DRootCursorWrapper.java104 public double getDouble(int column) { in getDouble() argument
105 return mCursor.getDouble(column); in getDouble()
109 public float getFloat(int column) { in getFloat() argument
110 return mCursor.getFloat(column); in getFloat()
114 public int getInt(int column) { in getInt() argument
115 return mCursor.getInt(column); in getInt()
119 public long getLong(int column) { in getLong() argument
120 return mCursor.getLong(column); in getLong()
124 public short getShort(int column) { in getShort() argument
125 return mCursor.getShort(column); in getShort()
[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/Dialer/java/com/android/dialer/calllog/model/
Dcoalesced_row.proto16 // Value in column CoalescedAnnotatedCallLog._ID
19 // Value in column CoalescedAnnotatedCallLog.TIMESTAMP
22 // Value in column CoalescedAnnotatedCallLog.NUMBER
25 // Value in column CoalescedAnnotatedCallLog.FORMATTED_NUMBER
28 // Value in column CoalescedAnnotatedCallLog.NUMBER_PRESENTATION
31 // Value in column CoalescedAnnotatedCallLog.IS_READ
34 // Value in column CoalescedAnnotatedCallLog.NEW
37 // Value in column CoalescedAnnotatedCallLog.GEOCODED_LOCATION
40 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME
43 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_ID
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFilteringCursorWrapper.java101 public double getDouble(int column) { in getDouble() argument
102 return mCursor.getDouble(column); in getDouble()
106 public float getFloat(int column) { in getFloat() argument
107 return mCursor.getFloat(column); in getFloat()
111 public int getInt(int column) { in getInt() argument
112 return mCursor.getInt(column); in getInt()
116 public long getLong(int column) { in getLong() argument
117 return mCursor.getLong(column); in getLong()
121 public short getShort(int column) { in getShort() argument
122 return mCursor.getShort(column); in getShort()
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/model/
Dvoicemail_entry.proto14 // Value in column AnnotatedCallLog._ID
17 // Value in column AnnotatedCallLog.TIMESTAMP
20 // Value in column AnnotatedCallLog.NUMBER
23 // Value in column AnnotatedCallLog.FORMATTED_NUMBER
26 // Value in column AnnotatedCallLog.GEOCODED_LOCATION
29 // Value in column AnnotatedCallLog.DURATION
32 // Value in column AnnotatedCallLog.TRANSCRIPTION
35 // Value in column AnnotatedCallLog.VOICEMAIL_URI
38 // Value in column AnnotatedCallLog.CALL_TYPE
41 // Value in column AnnotatedCallLog.IS_READ
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java122 final String column = editField.column; in rebuildDateView() local
123 String data = DateUtils.formatDate(getContext(), getEntry().getAsString(column), in rebuildDateView()
139 final String column = editField.column; in isEmpty() local
140 return TextUtils.isEmpty(getEntry().getAsString(column)); in isEmpty()
162 final String column = getKind().fieldList.get(0).column; in onLabelRebuilt() local
163 final String oldValue = getEntry().getAsString(column); in onLabelRebuilt()
189 onFieldChanged(column, formattedDate); in onLabelRebuilt()
198 final String column = getKind().fieldList.get(0).column; in createDatePickerDialog() local
199 final String oldValue = getEntry().getAsString(column); in createDatePickerDialog()
255 onFieldChanged(column, resultString); in createDatePickerDialog()
[all …]
DStructuredNameEditorView.java89 public void onFieldChanged(String column, String value) { in onFieldChanged() argument
90 if (!isFieldChanged(column, value)) { in onFieldChanged()
95 saveValue(column, value); in onFieldChanged()
102 public void updatePhonetic(String column, String value) { in updatePhonetic() argument
108 if (StructuredName.FAMILY_NAME.equals(column)) { in updatePhonetic()
110 } else if (StructuredName.GIVEN_NAME.equals(column)) { in updatePhonetic()
112 } else if (StructuredName.MIDDLE_NAME.equals(column)) { in updatePhonetic()
123 public String getPhonetic(String column) { in getPhonetic() argument
130 if (StructuredName.FAMILY_NAME.equals(column)) { in getPhonetic()
132 } else if (StructuredName.GIVEN_NAME.equals(column)) { in getPhonetic()
[all …]
DTextFieldsEditorView.java240 private String getNameField(String column) { in getNameField() argument
244 if (StructuredName.FAMILY_NAME.equals(column)) { in getNameField()
246 } else if (StructuredName.GIVEN_NAME.equals(column)) { in getNameField()
248 } else if (StructuredName.MIDDLE_NAME.equals(column)) { in getNameField()
312 final String column = field.column; in setValues() local
313 final String value = entry.getAsString(column); in setValues()
329 onFieldChanged(column, s.toString()); in setValues()
342 updatePhonetic(column, tmpString); in setValues()
344 mFixedPhonetic = getPhonetic(column); in setValues()
355 mFixedPhonetic = getPhonetic(column); in setValues()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java126 public double getDouble(int column) { in getDouble() argument
127 return mCursor.getDouble(column); in getDouble()
131 public float getFloat(int column) { in getFloat() argument
132 return mCursor.getFloat(column); in getFloat()
136 public int getInt(int column) { in getInt() argument
137 return mCursor.getInt(column); in getInt()
141 public long getLong(int column) { in getLong() argument
142 return mCursor.getLong(column); in getLong()
146 public short getShort(int column) { in getShort() argument
147 return mCursor.getShort(column); in getShort()
[all …]
/packages/apps/TimeZoneData/src/main/com/android/timezone/data/
DTimeZoneRulesDataProvider.java197 public int getType(int column) { in query() argument
198 String columnName = projectionList.get(column); in query()
211 public String getString(int column) { in query() argument
213 String columnName = projectionList.get(column); in query()
221 public short getShort(int column) { in query() argument
227 public int getInt(int column) { in query() argument
229 String columnName = projectionList.get(column); in query()
237 public long getLong(int column) { in query() argument
238 return getInt(column); in query()
242 public float getFloat(int column) { in query() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/database/
DSelection.java135 public static Column column(@NonNull String column) { in column() method in Selection
136 return new Column(column); in column()
142 @NonNull private final String column; field in Selection.Column
144 private Column(@NonNull String column) { in Column() argument
145 this.column = Assert.isNotNull(column); in Column()
151 return fromString(column + " " + Assert.isNotNull(operator) + " ?", value.toString()); in is()
160 return fromString(column + " " + Assert.isNotNull(condition)); in is()
169 column + " IN (" + TextUtils.join(",", Collections.nCopies(values.size(), "?")) + ")", in in()
/packages/apps/Dialer/java/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/Contacts/src/com/android/contacts/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/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/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java396 for (String column : getColumns(uri)) { in testNoHiddenColumns()
397 if (column.toLowerCase().startsWith(ContactsContract.HIDDEN_COLUMN_PREFIX)) { in testNoHiddenColumns()
398 addFailure("Uri " + uri + " returned hidden column " + column, null); in testNoHiddenColumns()
559 private void checkColumnAccessible(Uri uri, String column) { in checkColumnAccessible() argument
562 uri, new String[]{column}, column + "=0", null, column in checkColumnAccessible() argument
597 private void checkColumnNotAccessible(Uri uri, String column) { in checkColumnNotAccessible() argument
598 checkColumnNotAccessibleInner(uri, new String[] {column}, null, null, null); in checkColumnNotAccessible()
599 checkColumnNotAccessibleInner(uri, null, column + "=1", null, null); in checkColumnNotAccessible()
600 checkColumnNotAccessibleInner(uri, null, null, null, /* order by */ column); in checkColumnNotAccessible()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java126 for (String column : CellBroadcastContentProvider.QUERY_COLUMNS) { in migrateFromLegacy()
127 copyFromCursorToContentValues(column, c, values); in migrateFromLegacy()
152 public static void copyFromCursorToContentValues(@NonNull String column, @NonNull Cursor cursor, in copyFromCursorToContentValues() argument
154 final int index = cursor.getColumnIndex(column); in copyFromCursorToContentValues()
157 values.putNull(column); in copyFromCursorToContentValues()
159 values.put(column, cursor.getString(index)); in copyFromCursorToContentValues()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java139 @Override public double getDouble(int column) { return 0; } in getDouble() argument
140 @Override public float getFloat(int column) { return 0; } in getFloat() argument
141 @Override public int getInt(int column) { return 0; } in getInt() argument
142 @Override public short getShort(int column) { return 0; } in getShort() argument
143 @Override public long getLong(int column) { return 0; } in getLong() argument
145 @Override public String getString(final int column) { in getString() argument
146 switch (column) { in getString()
155 public boolean isNull(final int column) { in isNull() argument
157 return column != 0; in isNull()

12345