Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 25 of 50) sorted by relevance

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java85 public int getColumnIndex(String columnName) { in getColumnIndex() argument
87 if (column.name.equals(columnName)) { in getColumnIndex()
94 public ColumnInfo getColumn(String columnName) { in getColumn() argument
95 int index = getColumnIndex(columnName); in getColumn()
157 String columnName = column.name; in valuesToObject() local
161 setIfNotNull(field, object, values.getAsString(columnName)); in valuesToObject()
164 setIfNotNull(field, object, values.getAsBoolean(columnName)); in valuesToObject()
167 setIfNotNull(field, object, values.getAsShort(columnName)); in valuesToObject()
170 setIfNotNull(field, object, values.getAsInteger(columnName)); in valuesToObject()
173 setIfNotNull(field, object, values.getAsLong(columnName)); in valuesToObject()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DDataStatus.java144 private static String getString(Cursor cursor, String columnName) { in getString() argument
145 return cursor.getString(cursor.getColumnIndex(columnName)); in getString()
148 private static int getInt(Cursor cursor, String columnName) { in getInt() argument
149 return cursor.getInt(cursor.getColumnIndex(columnName)); in getInt()
152 private static int getInt(Cursor cursor, String columnName, int missingValue) { in getInt() argument
153 final int columnIndex = cursor.getColumnIndex(columnName); in getInt()
157 private static long getLong(Cursor cursor, String columnName, long missingValue) { in getLong() argument
158 final int columnIndex = cursor.getColumnIndex(columnName); in getLong()
162 private static boolean isNull(Cursor cursor, String columnName) { in isNull() argument
163 return cursor.isNull(cursor.getColumnIndex(columnName)); in isNull()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogConstraints.java59 String columnName, ContentValues contentValues, @Operation int operationType) { in checkBooleanColumn() argument
61 columnName, in checkBooleanColumn()
65 Integer value = contentValuesToCheck.getAsInteger(columnName); in checkBooleanColumn()
95 String columnName, in checkColumn() argument
101 if (!contentValues.containsKey(columnName)) { in checkColumn()
109 columnName, in checkColumn() local
110 contentValues.get(columnName)); in checkColumn()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java898 public void setConversationColumn(Uri conversationUri, String columnName, Object value) { in setConversationColumn() argument
901 cacheValue(uriStr, columnName, value); in setConversationColumn()
912 private void cacheValue(String uriString, String columnName, Object value) { in cacheValue() argument
929 if (columnName.equals(DELETED_COLUMN)) { in cacheValue()
931 final boolean hasValue = map.get(columnName) != null; in cacheValue()
940 map.remove(columnName); in cacheValue()
955 putInValues(map, columnName, value); in cacheValue()
957 if (DEBUG && (!columnName.equals(DELETED_COLUMN))) { in cacheValue()
958 LogUtils.i(LOG_TAG, "Caching value for %s: %s", uriString, columnName); in cacheValue()
976 String columnName; in getCachedValue() local
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeCursor.java44 public Object getAt(final String columnName, final int row) { in getAt() argument
45 final int dataIdx = getColumnIndex(columnName); in getAt()
112 public int getColumnIndex(final String columnName) { in getColumnIndex() argument
114 if (mColumnNamesOfData[i].equals(columnName)) { in getColumnIndex()
122 public int getColumnIndexOrThrow(final String columnName) { in getColumnIndexOrThrow() argument
123 final int result = getColumnIndex(columnName); in getColumnIndexOrThrow()
/packages/apps/TimeZoneData/src/main/com/android/timezone/data/
DTimeZoneRulesDataProvider.java198 String columnName = projectionList.get(column); in query() local
199 Class<?> columnJavaType = KNOWN_COLUMN_TYPES.get(columnName); in query()
206 "Unsupported type: " + columnJavaType + " for " + columnName); in query()
213 String columnName = projectionList.get(column); in query() local
214 if (KNOWN_COLUMN_TYPES.get(columnName) != String.class) { in query()
217 return (String) mColumnData.get(columnName); in query()
229 String columnName = projectionList.get(column); in query() local
230 if (KNOWN_COLUMN_TYPES.get(columnName) != Integer.class) { in query()
233 return (Integer) mColumnData.get(columnName); in query()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DSearchIndexManager.java110 public String getString(String columnName) { in getString() argument
111 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString()
114 public int getInt(String columnName) { in getInt() argument
115 return mCursor.getInt(mCursor.getColumnIndex(columnName)); in getInt()
137 public void appendContentFromColumn(String columnName) { in appendContentFromColumn() argument
138 appendContentFromColumn(columnName, SEPARATOR_SPACE); in appendContentFromColumn()
141 public void appendContentFromColumn(String columnName, int format) { in appendContentFromColumn() argument
142 appendContent(getString(columnName), format); in appendContentFromColumn()
193 public void appendNameFromColumn(String columnName) { in appendNameFromColumn() argument
194 appendName(getString(columnName)); in appendNameFromColumn()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java603 public int getColumnIndex(String columnName) { in getColumnIndex() argument
605 if (mColumns[i].equalsIgnoreCase(columnName)) { in getColumnIndex()
614 String columnName = getColumnName(columnIndex); in getLong() local
615 switch (columnName) { in getLong()
621 Log.d(TAG, "Column (" + columnName + ") is ignored in getLong()"); in getLong()
628 String columnName = getColumnName(columnIndex); in getString() local
630 switch (columnName) { in getString()
642 Log.d(TAG, "Column (" + columnName + ") is ignored in getString()"); in getString()
649 String columnName = getColumnName(columnIndex); in getInt() local
651 switch (columnName) { in getInt()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DAbstractSuggestionExtras.java45 public String getExtra(String columnName) { in getExtra() argument
46 String extra = doGetExtra(columnName); in getExtra()
48 extra = mMore.getExtra(columnName); in getExtra()
53 protected abstract String doGetExtra(String columnName); in doGetExtra() argument
DJsonBackedSuggestionExtras.java54 public String getExtra(String columnName) { in getExtra() argument
56 if (mExtras.isNull(columnName)) { in getExtra()
59 return mExtras.getString(columnName); in getExtra()
DCursorBackedSuggestionExtras.java93 public String doGetExtra(String columnName) { in doGetExtra() argument
96 int columnIdx = mCursor.getColumnIndex(columnName); in doGetExtra()
101 Log.e(TAG, "getExtra(" + columnName + ") failed, ", ex); in doGetExtra()
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfo.java408 String columnName = null; in getColumnIndexForPersonId() local
413 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId()
419 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId()
425 columnName = PhoneLookup.CONTACT_ID; in getColumnIndexForPersonId()
429 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
433 + columnName in getColumnIndexForPersonId()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentInfo.java330 public static String getCursorString(Cursor cursor, String columnName) { in getCursorString() argument
334 final int index = cursor.getColumnIndex(columnName); in getCursorString()
341 public static long getCursorLong(Cursor cursor, String columnName) { in getCursorLong() argument
346 final int index = cursor.getColumnIndex(columnName); in getCursorLong()
360 public static int getCursorInt(Cursor cursor, String columnName) { in getCursorInt() argument
365 final int index = cursor.getColumnIndex(columnName); in getCursorInt()
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreDatabase.java685 private static String getString(final Cursor cursor, final String columnName) { in getString() argument
686 final int columnIndex = cursor.getColumnIndex(columnName); in getString()
689 private static byte[] getBlob(final Cursor cursor, final String columnName) { in getBlob() argument
690 final int columnIndex = cursor.getColumnIndex(columnName); in getBlob()
693 private static int getInt(final Cursor cursor, final String columnName, in getInt() argument
695 final int columnIndex = cursor.getColumnIndex(columnName); in getInt()
698 private static long getLong(final Cursor cursor, final String columnName, in getLong() argument
700 final int columnIndex = cursor.getColumnIndex(columnName); in getLong()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java143 final String columnName = cl.getColumnName(i); in testCorrectness() local
144 if (columnName.equals(MediaColumns._ID)) continue; in testCorrectness()
145 if (columnName.equals(MediaColumns.DATE_ADDED)) continue; in testCorrectness()
150 assertEquals(columnName + " type", in testCorrectness()
153 assertEquals(columnName + " value", in testCorrectness()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterpriseContactsCursorWrapper.java81 final String columnName = super.getColumnName(columnIndex); in getString() local
83 switch (columnName) { in getString()
132 final String columnName = getColumnName(column); in getLong() local
133 switch (columnName) { in getLong()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationUpdater.java48 void updateConversation(Collection <Conversation> target, String columnName, String value); in updateConversation() argument
58 void updateConversation(Collection <Conversation> target, String columnName, int value); in updateConversation() argument
68 void updateConversation(Collection <Conversation> target, String columnName, boolean value); in updateConversation() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java298 final String columnName; in getDocumentSortQuery() local
303 columnName = Document.COLUMN_DISPLAY_NAME; in getDocumentSortQuery()
306 columnName = Document.COLUMN_LAST_MODIFIED; in getDocumentSortQuery()
309 columnName = Document.COLUMN_SIZE; in getDocumentSortQuery()
335 return columnName + direction; in getDocumentSortQuery()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java750 private void assertNullOrEquals(Cursor c, Long value, String columnName) { in assertNullOrEquals() argument
752 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
753 else assertEquals((long) value, c.getLong(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
757 private void assertNullOrEquals(Cursor c, String value, String columnName) { in assertNullOrEquals() argument
759 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
760 else assertEquals(value, c.getString(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
782 String columnName = (String) expectedArguments[i]; in assertDataRow() local
788 assertNull(actual.toString(), actual.get(columnName)); in assertDataRow()
791 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
792 expectedValue, actual.getAsLong(columnName)); in assertDataRow()
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1179 CharSequence columnName = extras.getCharSequence(TvContract.EXTRA_COLUMN_NAME); in call() local
1181 if (TextUtils.isEmpty(columnName) || TextUtils.isEmpty(dataType)) { in call()
1219 + columnName + " " + dataType + defaultValue + ";"); in call()
1220 projectionMap.put(columnName.toString(), tableName + '.' + columnName); in call() local
1641 for (String columnName : getColumnNames(db, tableName)) { in updateProjectionMap()
1642 if (!projectionMap.containsKey(columnName)) { in updateProjectionMap()
1643 projectionMap.put(columnName, tableName + '.' + columnName); in updateProjectionMap()
1663 for (String columnName : projection) { in createProjectionMapForQuery()
1664 String value = projectionMap.get(columnName); in createProjectionMapForQuery()
1666 columnProjectionMap.put(columnName, value); in createProjectionMapForQuery()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java256 boolean markBroadcastRead(String columnName, long columnValue) { in markBroadcastRead() argument
262 String whereClause = columnName + "=?"; in markBroadcastRead()
269 Log.e(TAG, "failed to mark broadcast read: " + columnName + " = " + columnValue); in markBroadcastRead()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionExtras.java39 public String doGetExtra(String columnName) { in doGetExtra() argument
40 Object o = mMap.get(columnName); in doGetExtra()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMatrixCursorWithCachedColumns.java42 public int getColumnIndex(String columnName) { in getColumnIndex() argument
43 final Integer i = mColumnNameMap.get(columnName); in getColumnIndex()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactFilterCursor.java403 public int getColumnIndex(String columnName) { in getColumnIndex() argument
404 return cursor.getColumnIndex(columnName); in getColumnIndex()
408 public int getColumnIndexOrThrow(String columnName) { in getColumnIndexOrThrow() argument
409 return cursor.getColumnIndexOrThrow(columnName); in getColumnIndexOrThrow()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMailAppProvider.java222 for (final String columnName : resultProjection) { in query()
223 if (accountValues.containsKey(columnName)) { in query()
224 builder.add(accountValues.get(columnName)); in query()
226 throw new IllegalStateException("Unexpected column: " + columnName); in query()

12