Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 25 of 33) 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/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/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/ContactsCommon/src/com/android/contacts/common/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/Exchange/tests/src/com/android/exchange/eas/
DEasSyncContactsTests.java66 final String columnName = "test_column"; in testTryGetStringDataEmptyColumnValue() local
68 contentValues.put(columnName, ""); in testTryGetStringDataEmptyColumnValue()
69 final String result = EasSyncContacts.tryGetStringData(contentValues, columnName); in testTryGetStringDataEmptyColumnValue()
76 final String columnName = "test_column"; in testTryGetStringDataWrongType() local
80 contentValues.put(columnName, columnValue); in testTryGetStringDataWrongType()
81 final String result = EasSyncContacts.tryGetStringData(contentValues, columnName); in testTryGetStringDataWrongType()
87 final String columnName = "test_column"; in testTryGetStringDataSuccess() local
90 contentValues.put(columnName, columnValue); in testTryGetStringDataSuccess()
91 final String result = EasSyncContacts.tryGetStringData(contentValues, columnName); in testTryGetStringDataSuccess()
/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/InCallUI/src/com/android/incallui/
DCallerInfo.java425 String columnName = null; in getColumnIndexForPersonId() local
430 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId()
436 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId()
442 columnName = PhoneLookup._ID; in getColumnIndexForPersonId()
446 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
447 Log.v(TAG, "==> Using column '" + columnName in getColumnIndexForPersonId()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java732 private void assertNullOrEquals(Cursor c, Long value, String columnName) { in assertNullOrEquals() argument
734 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
735 else assertEquals((long) value, c.getLong(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
739 private void assertNullOrEquals(Cursor c, String value, String columnName) { in assertNullOrEquals() argument
741 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
742 else assertEquals(value, c.getString(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
764 String columnName = (String) expectedArguments[i]; in assertDataRow() local
770 assertNull(actual.toString(), actual.get(columnName)); in assertDataRow()
773 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
774 expectedValue, actual.getAsLong(columnName)); in assertDataRow()
[all …]
/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/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 …]
DDBHelper.java208 static String createIndex(String tableName, String columnName) { in createIndex() argument
209 return "create index " + tableName.toLowerCase() + '_' + columnName in createIndex()
210 + " on " + tableName + " (" + columnName + ");"; in createIndex()
353 for (String columnName : indexColumns) { in createMessageTable()
354 db.execSQL(createIndex(Message.TABLE_NAME, columnName)); in createMessageTable()
/packages/apps/Mms/src/com/android/mms/
DSuggestionsProvider.java232 public int getColumnIndex(String columnName) { in getColumnIndex() argument
234 if (mVirtualColumns[i].equals(columnName)) { in getColumnIndex()
238 return mDatabaseCursor.getColumnIndex(columnName); in getColumnIndex()
330 public int getColumnIndexOrThrow(String columnName) in getColumnIndexOrThrow() argument
/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
DAbstractActivityController.java1751 public void updateConversation(Collection <Conversation> target, String columnName,
1753 mConversationListCursor.updateBoolean(target, columnName, value);
1758 public void updateConversation(Collection <Conversation> target, String columnName,
1760 mConversationListCursor.updateInt(target, columnName, value);
1765 public void updateConversation(Collection <Conversation> target, String columnName,
1767 mConversationListCursor.updateString(target, columnName, value);
/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java254 boolean markBroadcastRead(String columnName, long columnValue) { in markBroadcastRead() argument
260 String whereClause = columnName + "=?"; in markBroadcastRead()
267 Log.e(TAG, "failed to mark broadcast read: " + columnName + " = " + columnValue); in markBroadcastRead()
/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/experimental/LoaderApp/src/com/android/loaderapp/model/
DFallbackSource.java450 public SimpleInflater(String columnName) { in SimpleInflater() argument
451 this(-1, columnName); in SimpleInflater()
454 public SimpleInflater(int stringRes, String columnName) { in SimpleInflater() argument
456 mColumnName = columnName; in SimpleInflater()
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java165 void put(String columnName, Object value) { in put() argument
166 final Integer integer = mProjection.columnMap.get(columnName); in put()
170 LogUtils.e(TAG, "Unsupported column: " + columnName); in put()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DAbstractSyncAdapter.java133 Operation(ContentProviderOperation.Builder builder, String columnName, int offset) { in Operation() argument
136 mColumnName = columnName; in Operation()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java352 String columnName) { in getOptionalColumn() argument
355 result = contentResolver.query(uri, new String[]{columnName}, null, null, null); in getOptionalColumn()

12