Home | History | Annotate | Download | only in notepad

Lines Matching refs:Notes

49         Uri.withAppendedPath(NotePad.Notes.CONTENT_URI, "invalid");
151 NotePad.Notes.TABLE_NAME, // the table name for the insert
152 NotePad.Notes.COLUMN_NAME_TITLE, // column set to null if empty values map
164 // Tests the MIME type for the notes table URI.
165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI);
166 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType);
169 mimeType = mMockResolver.getType(NotePad.Notes.LIVE_FOLDER_URI);
170 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType);
173 Uri noteIdUri = ContentUris.withAppendedId(NotePad.Notes.CONTENT_ID_URI_BASE, 1);
177 assertEquals(NotePad.Notes.CONTENT_ITEM_TYPE, mimeType);
189 // Tests the notes table URI. This should return null, since the content provider does
190 // not provide a stream MIME type for multiple notes.
191 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL));
194 // provide a stream MIME type for multiple notes.
195 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.LIVE_FOLDER_URI, MIME_TYPES_ALL));
204 Uri testUri = Uri.withAppendedPath(NotePad.Notes.CONTENT_ID_URI_BASE, "1");
225 mimeType = mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL);
249 testNoteIdUri = ContentUris.withAppendedId(NotePad.Notes.CONTENT_ID_URI_BASE, 1);
283 * Changes the URI to a notes URI for multiple notes, and re-test. This should fail, since
289 NotePad.Notes.CONTENT_URI,
354 NotePad.Notes.CONTENT_ID_URI_BASE, // The base pattern for a note ID URI
425 NotePad.Notes.COLUMN_NAME_TITLE,
426 NotePad.Notes.COLUMN_NAME_NOTE,
427 NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE
432 final String TITLE_SELECTION = NotePad.Notes.COLUMN_NAME_TITLE + " = " + "?";
442 final String SORT_ORDER = NotePad.Notes.COLUMN_NAME_TITLE + " ASC";
447 NotePad.Notes.CONTENT_URI, // the URI for the main data table
465 NotePad.Notes.CONTENT_URI, // the URI for the main data table
480 NotePad.Notes.CONTENT_URI, // the URI for the main data table
500 NotePad.Notes.CONTENT_URI, // the URI for the main data table
534 final String SELECTION_COLUMNS = NotePad.Notes.COLUMN_NAME_TITLE + " = " + "?";
540 final String SORT_ORDER = NotePad.Notes.COLUMN_NAME_TITLE + " ASC";
544 NotePad.Notes._ID, // The Notes class extends BaseColumns,
547 NotePad.Notes.COLUMN_NAME_TITLE}; // The note's title
552 // Constructs a URI that matches the provider's notes id URI pattern, using an arbitrary
554 Uri noteIdUri = ContentUris.withAppendedId(NotePad.Notes.CONTENT_ID_URI_BASE, 1);
556 // Queries the table with the notes ID URI. This should return an empty cursor.
577 NotePad.Notes.CONTENT_URI, // the base URI for the table
594 noteIdUri = ContentUris.withAppendedId(NotePad.Notes.CONTENT_ID_URI_BASE, inputNoteId);
633 NotePad.Notes.CONTENT_URI, // the main table URI
643 NotePad.Notes.CONTENT_URI, // the main table URI
657 int titleIndex = cursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_TITLE);
658 int noteIndex = cursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_NOTE);
659 int crdateIndex = cursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_CREATE_DATE);
660 int moddateIndex = cursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE);
676 values.put(NotePad.Notes._ID, (int) noteId);
681 rowUri = mMockResolver.insert(NotePad.Notes.CONTENT_URI, values);
696 final String SELECTION_COLUMNS = NotePad.Notes.COLUMN_NAME_TITLE + " = " + "?";
703 NotePad.Notes.CONTENT_URI, // the base URI of the table
719 NotePad.Notes.CONTENT_URI, // the base URI of the table
732 NotePad.Notes.CONTENT_URI, // the base URI of the table
748 final String SELECTION_COLUMNS = NotePad.Notes.COLUMN_NAME_TITLE + " = " + "?";
760 values.put(NotePad.Notes.COLUMN_NAME_NOTE, "Testing an update with this string");
764 NotePad.Notes.CONTENT_URI, // the URI of the data table
781 NotePad.Notes.CONTENT_URI, // The URI of the data table
831 v.put(NotePad.Notes.COLUMN_NAME_TITLE, title);
832 v.put(NotePad.Notes.COLUMN_NAME_NOTE, note);
833 v.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, createDate);
834 v.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, modDate);