/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/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | QueryParam.java | 114 public QueryBuilder project(String columnName) { in project() argument 115 mProjectionColumns.add(columnName); in project() 197 public static Condition is(String columnName, String operator, @NonNull Object value) { in is() argument 199 condition.mSelection = condition.toSelectionString(columnName, operator); in is() 207 public Condition and(String columnName, String operator, @NonNull Object value) { in and() argument 208 mSelection += wrapWithSpaces(AND) + toSelectionString(columnName, operator); in and() 216 public Condition or(String columnName, String operator, @NonNull Object value) { in or() argument 217 mSelection += wrapWithSpaces(OR) + toSelectionString(columnName, operator); in or() 230 static String toSelectionString(String columnName, String op) { in toSelectionString() argument 231 return columnName + " " + op + " ?"; in toSelectionString()
|
/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 | 111 public String getString(String columnName) { in getString() argument 112 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString() 115 public int getInt(String columnName) { in getInt() argument 116 return mCursor.getInt(mCursor.getColumnIndex(columnName)); in getInt() 138 public void appendContentFromColumn(String columnName) { in appendContentFromColumn() argument 139 appendContentFromColumn(columnName, SEPARATOR_SPACE); in appendContentFromColumn() 142 public void appendContentFromColumn(String columnName, int format) { in appendContentFromColumn() argument 143 appendContent(getString(columnName), format); in appendContentFromColumn() 194 public void appendNameFromColumn(String columnName) { in appendNameFromColumn() argument 195 appendName(getString(columnName)); in appendNameFromColumn()
|
/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/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/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/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/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreDatabase.java | 749 private static String getString(final Cursor cursor, final String columnName) { in getString() argument 750 final int columnIndex = cursor.getColumnIndex(columnName); in getString() 753 private static byte[] getBlob(final Cursor cursor, final String columnName) { in getBlob() argument 754 final int columnIndex = cursor.getColumnIndex(columnName); in getBlob() 757 private static int getInt(final Cursor cursor, final String columnName, in getInt() argument 759 final int columnIndex = cursor.getColumnIndex(columnName); in getInt() 762 private static long getLong(final Cursor cursor, final String columnName, in getLong() argument 764 final int columnIndex = cursor.getColumnIndex(columnName); in getLong()
|
/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastContentProvider.java | 363 boolean markBroadcastRead(String columnName, long columnValue) { in markBroadcastRead() argument 369 String whereClause = columnName + "=?"; in markBroadcastRead() 376 Log.e(TAG, "failed to mark broadcast read: " + columnName + " = " + columnValue); in markBroadcastRead() 391 public boolean markBroadcastSmsSyncPending(String columnName, long columnValue, in markBroadcastSmsSyncPending() argument 398 String whereClause = columnName + "=?"; in markBroadcastSmsSyncPending() 407 + " where: " + columnName + " = " + columnValue); in markBroadcastSmsSyncPending()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 188 final String columnName = cl.getColumnName(i); in testCorrectness() local 189 if (columnName.equals(MediaColumns._ID)) continue; in testCorrectness() 190 if (columnName.equals(MediaColumns.DATE_ADDED)) continue; in testCorrectness() 195 assertEquals(columnName + " type", in testCorrectness() 198 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 | 324 private static String text(Cursor cursor, String columnName) { in text() argument 325 return cursor.getString(cursor.getColumnIndex(columnName)); in text() 329 private static long integer(Cursor cursor, String columnName) { in integer() argument 330 return cursor.getLong(cursor.getColumnIndex(columnName)); in integer()
|
/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/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/ |
D | FakeCursor.java | 28 public FakeCursor(List<String> rows, String columnName) { in FakeCursor() argument 30 mColumnName = columnName; in FakeCursor()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1264 CharSequence columnName = extras.getCharSequence(TvContract.EXTRA_COLUMN_NAME); in call() local 1266 if (TextUtils.isEmpty(columnName) || TextUtils.isEmpty(dataType)) { in call() 1304 + columnName + " " + dataType + defaultValue + ";"); in call() 1305 projectionMap.put(columnName.toString(), tableName + '.' + columnName); in call() local 1726 for (String columnName : getColumnNames(db, tableName)) { in updateProjectionMap() 1727 if (!projectionMap.containsKey(columnName)) { in updateProjectionMap() 1728 projectionMap.put(columnName, tableName + '.' + columnName); in updateProjectionMap() 1748 for (String columnName : projection) { in createProjectionMapForQuery() 1749 String value = projectionMap.get(columnName); in createProjectionMapForQuery() 1751 columnProjectionMap.put(columnName, value); in createProjectionMapForQuery() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManagerTest.java | 1037 void assertHasColumn(Cursor cursor, String columnName, boolean hasColumn) { in assertHasColumn() argument 1039 assertThat(cursor.getColumnIndex(columnName), CoreMatchers.not(-1)); in assertHasColumn() 1041 assertThat(cursor.getColumnIndex(columnName), CoreMatchers.is(-1)); in assertHasColumn() 1048 void assertColumnIntData(Cursor cursor, String columnName, int value) { in assertColumnIntData() argument 1049 assertThat(cursor.getInt(cursor.getColumnIndex(columnName)), CoreMatchers.is(value)); in assertColumnIntData() 1055 void assertColumnBlob(Cursor cursor, String columnName) { in assertColumnBlob() argument 1056 assertThat(cursor.getType(cursor.getColumnIndex(columnName)), in assertColumnBlob() 1063 void assertColumnBlobData(Cursor cursor, String columnName, byte[] data) { in assertColumnBlobData() argument 1064 assertThat(cursor.getBlob(cursor.getColumnIndex(columnName)), in assertColumnBlobData()
|
/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()
|