Home
last modified time | relevance | path

Searched refs:columnNames (Results 1 – 18 of 18) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMatrixCursorWithCachedColumns.java27 public MatrixCursorWithCachedColumns(final String[] columnNames, final int initialCapacity) { in MatrixCursorWithCachedColumns() argument
28 super(columnNames, initialCapacity); in MatrixCursorWithCachedColumns()
30 final int columnCount = columnNames.length; in MatrixCursorWithCachedColumns()
33 mColumnNameMap.put(columnNames[i], i); in MatrixCursorWithCachedColumns()
37 public MatrixCursorWithCachedColumns(final String[] columnNames) { in MatrixCursorWithCachedColumns() argument
38 this(columnNames, 16); in MatrixCursorWithCachedColumns()
DMatrixCursorWithExtra.java23 public MatrixCursorWithExtra(String[] columnNames, int initialCapacity, Bundle extras) { in MatrixCursorWithExtra() argument
24 super(columnNames, initialCapacity); in MatrixCursorWithExtra()
/packages/apps/TimeZoneData/src/main/com/android/timezone/data/
DTimeZoneRulesDataProvider.java69 Set<String> columnNames = new HashSet<>();
70 columnNames.add(Operation.COLUMN_TYPE);
71 columnNames.add(Operation.COLUMN_DISTRO_MAJOR_VERSION);
72 columnNames.add(Operation.COLUMN_DISTRO_MINOR_VERSION);
73 columnNames.add(Operation.COLUMN_RULES_VERSION);
74 columnNames.add(Operation.COLUMN_REVISION);
75 KNOWN_COLUMN_NAMES = Collections.unmodifiableSet(columnNames);
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java166 String[] columnNames; in getResult() local
168 columnNames = projection != null ? projection : mDefaultProjection; in getResult()
170 columnNames = mProjection != null ? mProjection : mDefaultProjection; in getResult()
173 MatrixCursor cursor = new MatrixCursor(columnNames); in getResult()
179 Object[] columns = new Object[columnNames.length]; in getResult()
180 for (int i = 0; i < columnNames.length; i++) { in getResult()
181 columns[i] = values.get(columnNames[i]); in getResult()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java113 String[] columnNames = cursor.getColumnNames(); in addRowsForQuery() local
114 String[] names = new String[columnNames.length]; in addRowsForQuery()
115 System.arraycopy(columnNames, 0, names, 0, columnNames.length); in addRowsForQuery()
/packages/apps/Email/src/com/android/email/data/
DClosingMatrixCursor.java31 public ClosingMatrixCursor(String[] columnNames, Cursor innerCursor) { in ClosingMatrixCursor() argument
32 super(columnNames); in ClosingMatrixCursor()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DMemoryCursor.java30 public MemoryCursor(String name, String[] columnNames) { in MemoryCursor() argument
32 mColumnNames = columnNames; in MemoryCursor()
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java164 String[] columnNames = cursor.getColumnNames(); in testCachedCursors() local
165 assertEquals(Mailbox.CONTENT_PROJECTION.length, columnNames.length); in testCachedCursors()
167 assertEquals(Mailbox.CONTENT_PROJECTION[i], columnNames[i]); in testCachedCursors()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockRespondMatrixCursor.java36 public MockRespondMatrixCursor(final String[] columnNames, final int initialCapacity, in MockRespondMatrixCursor() argument
38 super(columnNames, initialCapacity); in MockRespondMatrixCursor()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeCursor.java33 public FakeCursor(final String[] projection, final String[] columnNames, in FakeCursor() argument
35 mColumnNamesOfData = columnNames; in FakeCursor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallLogProviderTest.java315 List<String> columnNames = Arrays.asList(cursor.getColumnNames()); in testCannotAccessVoicemailSpecificFields_Query() local
316 assertEquals(NUM_CALLLOG_FIELDS, columnNames.size()); in testCannotAccessVoicemailSpecificFields_Query()
320 columnNames.contains(voicemailColumn)); in testCannotAccessVoicemailSpecificFields_Query()
DVoicemailProviderTest.java568 List<String> columnNames = Arrays.asList(cursor.getColumnNames()); in testCannotAccessCallLogSpecificFields_Query() local
569 assertEquals(NUM_VOICEMAIL_FIELDS, columnNames.size()); in testCannotAccessCallLogSpecificFields_Query()
573 columnNames.contains(callLogColumn)); in testCannotAccessCallLogSpecificFields_Query()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java113 static private final String[] columnNames = { MetadataDbHelper.WORDLISTID_COLUMN, field in DictionaryProvider.ResourcePathCursor
131 return columnNames; in getColumnNames()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java246 public String toDebugString(Entry entry, String... columnNames) { in toDebugString() argument
250 for (String columnName : columnNames) { in toDebugString()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java472 String[] columnNames = cursor.getColumnNames(); in matrixCursorFromCursor() local
473 if (columnNames == null) { in matrixCursorFromCursor()
474 columnNames = new String[] {}; in matrixCursorFromCursor()
476 MatrixCursor newCursor = new MatrixCursor(columnNames); in matrixCursorFromCursor()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java2072 String[] columnNames, String[] values) { in updateStrings() argument
2074 for (int i = 0; i < columnNames.length; i++) { in updateStrings()
2075 cv.put(columnNames[i], values[i]); in updateStrings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseIndexingManagerTest.java154 List<String> columnNames = new ArrayList<>(Arrays.asList(dbCursor.getColumnNames())); in testDatabaseSchema() local
180 assertThat(columnNames).containsAllIn(expColumnNames); in testDatabaseSchema()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java3742 final String[] columnNames = mc.getColumnNames(); in addCombinedAccountRow() local
3743 for (int i = 0; i < columnNames.length; i++) { in addCombinedAccountRow()
3744 builder.put(columnNames[i], i); in addCombinedAccountRow()
3749 final Object[] values = new Object[columnNames.length]; in addCombinedAccountRow()