Home
last modified time | relevance | path

Searched refs:columnNames (Results 1 – 21 of 21) 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.java70 Set<String> columnNames = new HashSet<>();
71 columnNames.add(Operation.COLUMN_TYPE);
72 columnNames.add(Operation.COLUMN_DISTRO_MAJOR_VERSION);
73 columnNames.add(Operation.COLUMN_DISTRO_MINOR_VERSION);
74 columnNames.add(Operation.COLUMN_RULES_VERSION);
75 columnNames.add(Operation.COLUMN_REVISION);
76 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/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/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/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/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseHelperTest.java64 String[] columnNames = cursor.getColumnNames(); in testDatabaseSchema() local
80 assertThat(columnNames).isEqualTo(expectedNames); in testDatabaseSchema()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelperTest.java62 final String[] columnNames = cursor.getColumnNames(); in testDatabaseSchema() local
85 assertThat(columnNames).isEqualTo(expectedNames); in testDatabaseSchema()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentsProvider.java138 final String[] columnNames = cursor.getColumnNames(); in filterCursorByString() local
140 final MatrixCursor resultCursor = new MatrixCursor(columnNames, count); in filterCursorByString()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DSearchCursorManager.java288 LocationPermissionCursor(String[] columnNames) { in LocationPermissionCursor() argument
289 super(columnNames); in LocationPermissionCursor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallLogProviderTest.java314 List<String> columnNames = Arrays.asList(cursor.getColumnNames()); in testCannotAccessVoicemailSpecificFields_Query() local
315 assertEquals(NUM_CALLLOG_FIELDS, columnNames.size()); in testCannotAccessVoicemailSpecificFields_Query()
319 columnNames.contains(voicemailColumn)); in testCannotAccessVoicemailSpecificFields_Query()
DVoicemailProviderTest.java694 List<String> columnNames = Arrays.asList(cursor.getColumnNames()); in testCannotAccessCallLogSpecificFields_Query() local
695 assertEquals(NUM_VOICEMAIL_FIELDS, columnNames.size()); in testCannotAccessCallLogSpecificFields_Query()
699 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/Calendar/src/com/android/calendar/
DUtils.java428 String[] columnNames = cursor.getColumnNames(); in matrixCursorFromCursor() local
429 if (columnNames == null) { in matrixCursorFromCursor()
430 columnNames = new String[] {}; in matrixCursorFromCursor()
432 MatrixCursor newCursor = new MatrixCursor(columnNames); in matrixCursorFromCursor()
/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/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/Email/provider_src/com/android/email/provider/
DEmailProvider.java3743 final String[] columnNames = mc.getColumnNames(); in addCombinedAccountRow() local
3744 for (int i = 0; i < columnNames.length; i++) { in addCombinedAccountRow()
3745 builder.put(columnNames[i], i); in addCombinedAccountRow()
3750 final Object[] values = new Object[columnNames.length]; in addCombinedAccountRow()