Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 25 of 45) 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/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java138 private static String getString(Cursor cursor, String columnName) { in getString() argument
139 return cursor.getString(cursor.getColumnIndex(columnName)); in getString()
142 private static int getInt(Cursor cursor, String columnName) { in getInt() argument
143 return cursor.getInt(cursor.getColumnIndex(columnName)); in getInt()
146 private static int getInt(Cursor cursor, String columnName, int missingValue) { in getInt() argument
147 final int columnIndex = cursor.getColumnIndex(columnName); in getInt()
151 private static long getLong(Cursor cursor, String columnName, long missingValue) { in getLong() argument
152 final int columnIndex = cursor.getColumnIndex(columnName); in getLong()
156 private static boolean isNull(Cursor cursor, String columnName) { in isNull() argument
157 return cursor.isNull(cursor.getColumnIndex(columnName)); in isNull()
/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/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/providers/ContactsProvider/src/com/android/providers/contacts/
DSearchIndexManager.java106 public String getString(String columnName) { in getString() argument
107 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString()
110 public int getInt(String columnName) { in getInt() argument
111 return mCursor.getInt(mCursor.getColumnIndex(columnName)); in getInt()
133 public void appendContentFromColumn(String columnName) { in appendContentFromColumn() argument
134 appendContentFromColumn(columnName, SEPARATOR_SPACE); in appendContentFromColumn()
137 public void appendContentFromColumn(String columnName, int format) { in appendContentFromColumn() argument
138 appendContent(getString(columnName), format); in appendContentFromColumn()
189 public void appendNameFromColumn(String columnName) { in appendNameFromColumn() argument
190 appendName(getString(columnName)); in appendNameFromColumn()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java539 public int getColumnIndex(String columnName) { in getColumnIndex() argument
541 if (mColumns[i].equalsIgnoreCase(columnName)) { in getColumnIndex()
550 String columnName = getColumnName(columnIndex); in getLong() local
551 switch (columnName) { in getLong()
556 Log.d(TAG, "Column (" + columnName + ") is ignored in getLong()"); in getLong()
563 String columnName = getColumnName(columnIndex); in getString() local
565 switch (columnName) { in getString()
576 Log.d(TAG, "Column (" + columnName + ") is ignored in getString()"); in getString()
583 String columnName = getColumnName(columnIndex); in getInt() local
585 switch (columnName) { in getInt()
[all …]
DProgramDataManagerTest.java420 public int getColumnIndex(String columnName) {
422 if (mColumns[i].equalsIgnoreCase(columnName)) {
439 String columnName = getColumnName(columnIndex);
440 switch (columnName) {
449 Log.d(TAG, "Column (" + columnName + ") is ignored in getLong()");
456 String columnName = getColumnName(columnIndex);
457 switch (columnName) {
466 Log.d(TAG, "Column (" + columnName + ") is ignored in getString()");
/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/Dialer/java/com/android/incallui/
DCallerInfo.java426 String columnName = null; in getColumnIndexForPersonId() local
431 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId()
437 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId()
443 columnName = PhoneLookupUtil.getContactIdColumnNameForUri(contactRef); in getColumnIndexForPersonId()
447 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
451 + columnName in getColumnIndexForPersonId()
/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/DocumentsUI/src/com/android/documentsui/base/
DDocumentInfo.java304 public static String getCursorString(Cursor cursor, String columnName) { in getCursorString() argument
305 final int index = cursor.getColumnIndex(columnName); in getCursorString()
312 public static long getCursorLong(Cursor cursor, String columnName) { in getCursorLong() argument
313 final int index = cursor.getColumnIndex(columnName); in getCursorLong()
327 public static int getCursorInt(Cursor cursor, String columnName) { in getCursorInt() argument
328 final int index = cursor.getColumnIndex(columnName); in getCursorInt()
/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/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java287 final String columnName; in getDocumentSortQuery() local
292 columnName = Document.COLUMN_DISPLAY_NAME; in getDocumentSortQuery()
295 columnName = Document.COLUMN_LAST_MODIFIED; in getDocumentSortQuery()
298 columnName = Document.COLUMN_SIZE; in getDocumentSortQuery()
319 return columnName + direction; in getDocumentSortQuery()
/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/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java999 for (String columnName : cursor.getColumnNames()) { in updateProjectionMap()
1000 if (!projectionMap.containsKey(columnName)) { in updateProjectionMap()
1001 projectionMap.put(columnName, tableName + '.' + columnName); in updateProjectionMap()
1161 CharSequence columnName = extras.getCharSequence(TvContract.EXTRA_COLUMN_NAME); in call() local
1163 if (TextUtils.isEmpty(columnName) || TextUtils.isEmpty(dataType)) { in call()
1200 + columnName + " " + dataType + defaultValue + ";"); in call()
1201 projectionMap.put(columnName.toString(), tableName + '.' + columnName); in call() local
1601 for (String columnName : projection) { in createProjectionMapForQuery()
1603 columnProjectionMap.put(columnName, in createProjectionMapForQuery()
1604 projectionMap.getOrDefault(columnName, "NULL as " + columnName)); 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/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()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java3027 private static String uriWithColumn(String type, String columnName) { in uriWithColumn() argument
3028 return "'content://" + EmailContent.AUTHORITY + "/" + type + "/' || " + columnName; in uriWithColumn()
5069 private static void putIntegerLongOrBoolean(ContentValues values, String columnName, in putIntegerLongOrBoolean() argument
5073 values.put(columnName, intValue); in putIntegerLongOrBoolean()
5076 values.put(columnName, boolValue ? 1 : 0); in putIntegerLongOrBoolean()
5079 values.put(columnName, longValue); in putIntegerLongOrBoolean()
5216 for (String columnName: uiValues.keySet()) { in uiUpdateFolder()
5217 if (columnName.equals(MailboxColumns.LAST_TOUCHED_TIME)) { in uiUpdateFolder()
5218 ourValues.put(MailboxColumns.LAST_TOUCHED_TIME, uiValues.getAsLong(columnName)); in uiUpdateFolder()
5254 for (String columnName : values.keySet()) { in convertUiMessageValues()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/
DMockUiProviderTests.java257 for (String columnName : columns) { in traverseUri()
258 if (columnName.toLowerCase().contains("uri")) { in traverseUri()
260 cursor.getString(cursor.getColumnIndex(columnName)); in traverseUri()
/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/Car/Dialer/src/com/android/car/dialer/telecom/
DPhoneLoader.java217 public static String getNumberFromContactId(ContentResolver cr, String columnName, String id) { in getNumberFromContactId() argument
231 columnName + " = ?" , new String[] {id}, null); in getNumberFromContactId()

12