Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/
DAbstractCursor.java317 public int getColumnIndex(String columnName) { in getColumnIndex() argument
319 final int periodIndex = columnName.lastIndexOf('.'); in getColumnIndex()
322 Log.e(TAG, "requesting column name with table name -- " + columnName, e); in getColumnIndex()
323 columnName = columnName.substring(periodIndex + 1); in getColumnIndex()
329 if (columnNames[i].equalsIgnoreCase(columnName)) { in getColumnIndex()
336 Log.w("AbstractCursor", "Unknown column " + columnName); in getColumnIndex()
343 public int getColumnIndexOrThrow(String columnName) { in getColumnIndexOrThrow() argument
344 final int index = getColumnIndex(columnName); in getColumnIndexOrThrow()
352 throw new IllegalArgumentException("column '" + columnName in getColumnIndexOrThrow()
DCursorWrapper.java84 public int getColumnIndex(String columnName) { in getColumnIndex() argument
85 return mCursor.getColumnIndex(columnName); in getColumnIndex()
89 public int getColumnIndexOrThrow(String columnName) in getColumnIndexOrThrow() argument
91 return mCursor.getColumnIndexOrThrow(columnName); in getColumnIndexOrThrow()
DCursor.java184 int getColumnIndex(String columnName); in getColumnIndex() argument
197 int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException; in getColumnIndexOrThrow() argument
DMatrixCursor.java236 public RowBuilder add(String columnName, Object value) { in add() argument
238 if (columnName.equals(columnNames[i])) { in add()
DTranslatingCursor.java76 String columnName = cursor.getColumnName(i); in TranslatingCursor() local
77 if (ArrayUtils.contains(config.translateColumns, columnName)) { in TranslatingCursor()
DDatabaseUtils.java1143 String columnName = cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX); in buildSQL() local
1146 mColumns.put(columnName, i); in buildSQL()
1148 sb.append(columnName); in buildSQL()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java174 public int getColumnIndex(String columnName) { in getColumnIndex() argument
187 final int periodIndex = columnName.lastIndexOf('.'); in getColumnIndex()
190 Log.e(TAG, "requesting column name with table name -- " + columnName, e); in getColumnIndex()
191 columnName = columnName.substring(periodIndex + 1); in getColumnIndex()
194 Integer i = mColumnNameMap.get(columnName); in getColumnIndex()
/frameworks/base/telecomm/java/android/telecom/
DCallerInfo.java624 String columnName = null; in getColumnIndexForPersonId() local
629 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId()
635 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId()
641 columnName = PhoneLookup._ID; in getColumnIndexForPersonId()
645 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
646 if (VDBG) Log.v(TAG, "==> Using column '" + columnName in getColumnIndexForPersonId()
/frameworks/base/test-mock/src/android/test/mock/
DMockCursor.java49 public int getColumnIndex(String columnName) { in getColumnIndex() argument
54 public int getColumnIndexOrThrow(String columnName) { in getColumnIndexOrThrow() argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DExportTestProvider.java157 public int getColumnIndex(String columnName) {
158 TestCase.assertEquals(Data.CONTACT_ID, columnName);
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java971 protected void verifyInt(Cursor cursor, String columnName, int expected) { in verifyInt() argument
972 int index = cursor.getColumnIndex(columnName); in verifyInt()
984 protected void verifyString(Cursor cursor, String columnName, String expected) { in verifyString() argument
985 int index = cursor.getColumnIndex(columnName); in verifyString()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java70 private static int getInt(Cursor cursor, String columnName) { in getInt() argument
71 return cursor.getInt(cursor.getColumnIndex(columnName)); in getInt()
74 private static boolean isNull(Cursor cursor, String columnName) { in isNull() argument
75 return cursor.isNull(cursor.getColumnIndex(columnName)); in isNull()
78 private static String getString(Cursor cursor, String columnName) { in getString() argument
79 return cursor.getString(cursor.getColumnIndex(columnName)); in getString()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java638 String columnName = cursor.getColumnName(i); in onExecute() local
640 final int columnIndex = cursor.getColumnIndex(columnName); in onExecute()
659 builder.append(columnName).append("=").append(columnValue); in onExecute()
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java717 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() argument
718 int col = cursor.getColumnIndex(columnName); in getColumnString()
/frameworks/base/core/java/android/app/
DDownloadManager.java1629 final String columnName = getColumnName(columnIndex);
1630 switch (columnName) {