Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/
DAbstractCursor.java275 public int getColumnIndex(String columnName) { in getColumnIndex() argument
277 final int periodIndex = columnName.lastIndexOf('.'); in getColumnIndex()
280 Log.e(TAG, "requesting column name with table name -- " + columnName, e); in getColumnIndex()
281 columnName = columnName.substring(periodIndex + 1); in getColumnIndex()
287 if (columnNames[i].equalsIgnoreCase(columnName)) { in getColumnIndex()
294 Log.w("AbstractCursor", "Unknown column " + columnName); in getColumnIndex()
300 public int getColumnIndexOrThrow(String columnName) { in getColumnIndexOrThrow() argument
301 final int index = getColumnIndex(columnName); in getColumnIndexOrThrow()
303 throw new IllegalArgumentException("column '" + columnName + "' does not exist"); in getColumnIndexOrThrow()
DCursorWrapper.java72 public int getColumnIndex(String columnName) { in getColumnIndex() argument
73 return mCursor.getColumnIndex(columnName); in getColumnIndex()
76 public int getColumnIndexOrThrow(String columnName) in getColumnIndexOrThrow() argument
78 return mCursor.getColumnIndexOrThrow(columnName); in getColumnIndexOrThrow()
DCursor.java180 int getColumnIndex(String columnName); in getColumnIndex() argument
193 int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException; in getColumnIndexOrThrow() argument
DMatrixCursor.java230 public RowBuilder add(String columnName, Object value) { in add() argument
232 if (columnName.equals(columnNames[i])) { in add()
DDatabaseUtils.java1033 String columnName = cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX); in buildSQL() local
1036 mColumns.put(columnName, i); in buildSQL()
1038 sb.append(columnName); in buildSQL()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java165 public int getColumnIndex(String columnName) { in getColumnIndex() argument
178 final int periodIndex = columnName.lastIndexOf('.'); in getColumnIndex()
181 Log.e(TAG, "requesting column name with table name -- " + columnName, e); in getColumnIndex()
182 columnName = columnName.substring(periodIndex + 1); in getColumnIndex()
185 Integer i = mColumnNameMap.get(columnName); in getColumnIndex()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java242 public static String getCursorString(Cursor cursor, String columnName) { in getCursorString() argument
243 final int index = cursor.getColumnIndex(columnName); in getCursorString()
250 public static long getCursorLong(Cursor cursor, String columnName) { in getCursorLong() argument
251 final int index = cursor.getColumnIndex(columnName); in getCursorLong()
265 public static int getCursorInt(Cursor cursor, String columnName) { in getCursorInt() argument
266 final int index = cursor.getColumnIndex(columnName); in getCursorInt()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java505 String columnName = null; in getColumnIndexForPersonId() local
510 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId()
516 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId()
522 columnName = PhoneLookup._ID; in getColumnIndexForPersonId()
526 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
527 if (VDBG) Rlog.v(TAG, "==> Using column '" + columnName in getColumnIndexForPersonId()
/frameworks/base/test-runner/src/android/test/mock/
DMockCursor.java42 public int getColumnIndex(String columnName) { in getColumnIndex() argument
46 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(Contacts._ID, columnName);
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java970 protected void verifyInt(Cursor cursor, String columnName, int expected) { in verifyInt() argument
971 int index = cursor.getColumnIndex(columnName); in verifyInt()
983 protected void verifyString(Cursor cursor, String columnName, String expected) { in verifyString() argument
984 int index = cursor.getColumnIndex(columnName); in verifyString()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java553 String columnName = cursor.getColumnName(i); in onExecute() local
555 final int columnIndex = cursor.getColumnIndex(columnName); in onExecute()
574 builder.append(columnName).append("=").append(columnValue); in onExecute()
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java692 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() argument
693 int col = cursor.getColumnIndex(columnName); in getColumnString()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSuggestionsAdapter.java651 public static String getColumnString(Cursor cursor, String columnName) { in getColumnString() argument
652 int col = cursor.getColumnIndex(columnName); in getColumnString()