/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 85 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/ |
D | DataStatus.java | 144 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/ |
D | AnnotatedCallLogConstraints.java | 59 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/Messaging/tests/src/com/android/messaging/datamodel/ |
D | FakeCursor.java | 44 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/ |
D | TimeZoneRulesDataProvider.java | 198 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/ |
D | SearchIndexManager.java | 110 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/ |
D | ChannelDataManagerTest.java | 597 public int getColumnIndex(String columnName) { in getColumnIndex() argument 599 if (mColumns[i].equalsIgnoreCase(columnName)) { in getColumnIndex() 608 String columnName = getColumnName(columnIndex); in getLong() local 609 switch (columnName) { in getLong() 615 Log.d(TAG, "Column (" + columnName + ") is ignored in getLong()"); in getLong() 622 String columnName = getColumnName(columnIndex); in getString() local 624 switch (columnName) { in getString() 636 Log.d(TAG, "Column (" + columnName + ") is ignored in getString()"); in getString() 643 String columnName = getColumnName(columnIndex); in getInt() local 645 switch (columnName) { in getInt() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | AbstractSuggestionExtras.java | 45 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
|
D | JsonBackedSuggestionExtras.java | 54 public String getExtra(String columnName) { in getExtra() argument 56 if (mExtras.isNull(columnName)) { in getExtra() 59 return mExtras.getString(columnName); in getExtra()
|
D | CursorBackedSuggestionExtras.java | 93 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/ |
D | CallerInfo.java | 408 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/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreDatabase.java | 743 private static String getString(final Cursor cursor, final String columnName) { in getString() argument 744 final int columnIndex = cursor.getColumnIndex(columnName); in getString() 747 private static byte[] getBlob(final Cursor cursor, final String columnName) { in getBlob() argument 748 final int columnIndex = cursor.getColumnIndex(columnName); in getBlob() 751 private static int getInt(final Cursor cursor, final String columnName, in getInt() argument 753 final int columnIndex = cursor.getColumnIndex(columnName); in getInt() 756 private static long getLong(final Cursor cursor, final String columnName, in getLong() argument 758 final int columnIndex = cursor.getColumnIndex(columnName); in getLong()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DocumentInfo.java | 383 public static String getCursorString(Cursor cursor, String columnName) { in getCursorString() argument 387 final int index = cursor.getColumnIndex(columnName); in getCursorString() 394 public static long getCursorLong(Cursor cursor, String columnName) { in getCursorLong() argument 399 final int index = cursor.getColumnIndex(columnName); in getCursorLong() 413 public static int getCursorInt(Cursor cursor, String columnName) { in getCursorInt() argument 418 final int index = cursor.getColumnIndex(columnName); in getCursorInt()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
D | EnterpriseContactsCursorWrapper.java | 81 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/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 164 final String columnName = cl.getColumnName(i); in testCorrectness() local 165 if (columnName.equals(MediaColumns._ID)) continue; in testCorrectness() 166 if (columnName.equals(MediaColumns.DATE_ADDED)) continue; in testCorrectness() 171 assertEquals(columnName + " type", in testCorrectness() 174 assertEquals(columnName + " value", in testCorrectness()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortModel.java | 298 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/ |
D | BaseContactsProvider2Test.java | 750 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/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | EventsLiveData.java | 297 private static String text(Cursor cursor, String columnName) { in text() argument 298 return cursor.getString(cursor.getColumnIndex(columnName)); in text() 302 private static long integer(Cursor cursor, String columnName) { in integer() argument 303 return cursor.getLong(cursor.getColumnIndex(columnName)); in integer()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1216 CharSequence columnName = extras.getCharSequence(TvContract.EXTRA_COLUMN_NAME); in call() local 1218 if (TextUtils.isEmpty(columnName) || TextUtils.isEmpty(dataType)) { in call() 1256 + columnName + " " + dataType + defaultValue + ";"); in call() 1257 projectionMap.put(columnName.toString(), tableName + '.' + columnName); in call() local 1678 for (String columnName : getColumnNames(db, tableName)) { in updateProjectionMap() 1679 if (!projectionMap.containsKey(columnName)) { in updateProjectionMap() 1680 projectionMap.put(columnName, tableName + '.' + columnName); in updateProjectionMap() 1700 for (String columnName : projection) { in createProjectionMapForQuery() 1701 String value = projectionMap.get(columnName); in createProjectionMapForQuery() 1703 columnProjectionMap.put(columnName, value); in createProjectionMapForQuery() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManagerTest.java | 928 void assertHasColumn(Cursor cursor, String columnName, boolean hasColumn) { in assertHasColumn() argument 930 assertThat(cursor.getColumnIndex(columnName), CoreMatchers.not(-1)); in assertHasColumn() 932 assertThat(cursor.getColumnIndex(columnName), CoreMatchers.is(-1)); in assertHasColumn() 939 void assertColumnIntData(Cursor cursor, String columnName, int value) { in assertColumnIntData() argument 940 assertThat(cursor.getInt(cursor.getColumnIndex(columnName)), CoreMatchers.is(value)); in assertColumnIntData() 946 void assertColumnBlob(Cursor cursor, String columnName) { in assertColumnBlob() argument 947 assertThat(cursor.getType(cursor.getColumnIndex(columnName)), in assertColumnBlob() 954 void assertColumnBlobData(Cursor cursor, String columnName, byte[] data) { in assertColumnBlobData() argument 955 assertThat(cursor.getBlob(cursor.getColumnIndex(columnName)), in assertColumnBlobData()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | MockSuggestionExtras.java | 39 public String doGetExtra(String columnName) { in doGetExtra() argument 40 Object o = mMap.get(columnName); in doGetExtra()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
D | ContactFilterCursor.java | 403 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastContentProvider.java | 304 boolean markBroadcastRead(String columnName, long columnValue) { in markBroadcastRead() argument 310 String whereClause = columnName + "=?"; in markBroadcastRead() 317 Log.e(TAG, "failed to mark broadcast read: " + columnName + " = " + columnValue); in markBroadcastRead()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LauncherDbUtils.java | 97 public static IntArray queryIntArray(SQLiteDatabase db, String tableName, String columnName, in queryIntArray() argument 100 try (Cursor c = db.query(tableName, new String[] { columnName }, selection, null, in queryIntArray() argument
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvProviderUtils.java | 193 private static boolean addColumnToTable(Context context, Uri contentUri, String columnName) { in addColumnToTable() argument 195 extra.putCharSequence(TvContract.EXTRA_COLUMN_NAME, columnName); in addColumnToTable()
|