Home
last modified time | relevance | path

Searched refs:Notes (Results 1 – 6 of 6) sorted by relevance

/development/samples/NotePad/src/com/example/android/notepad/
DNotePadProvider.java77 NotePad.Notes._ID, // Projection position 0, the note's id
78 NotePad.Notes.COLUMN_NAME_NOTE, // Projection position 1, the note's content
79 NotePad.Notes.COLUMN_NAME_TITLE, // Projection position 2, the note's title
130 sNotesProjectionMap.put(NotePad.Notes._ID, NotePad.Notes._ID); in sNotesProjectionMap.put()
133 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_TITLE, NotePad.Notes.COLUMN_NAME_TITLE); in sNotesProjectionMap.put()
136 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_NOTE, NotePad.Notes.COLUMN_NAME_NOTE); in sNotesProjectionMap.put()
139 sNotesProjectionMap.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, in sNotesProjectionMap.put()
140 NotePad.Notes.COLUMN_NAME_CREATE_DATE); in sNotesProjectionMap.put()
144 NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, in sNotesProjectionMap.put()
145 NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE); in sNotesProjectionMap.put()
[all …]
DNoteEditor.java43 import com.example.android.notepad.NotePad.Notes;
60 NotePad.Notes._ID,
61 NotePad.Notes.COLUMN_NAME_TITLE,
62 NotePad.Notes.COLUMN_NAME_NOTE
352 int colNoteIndex = cursor.getColumnIndex(Notes.COLUMN_NAME_NOTE); in onPrepareOptionsMenu()
421 if (uri != null && NotePad.Notes.CONTENT_ITEM_TYPE.equals(cr.getType(uri))) { in performPaste()
436 int colNoteIndex = orig.getColumnIndex(NotePad.Notes.COLUMN_NAME_NOTE); in performPaste()
437 int colTitleIndex = orig.getColumnIndex(NotePad.Notes.COLUMN_NAME_TITLE); in performPaste()
468 values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, System.currentTimeMillis()); in updateNote()
493 values.put(NotePad.Notes.COLUMN_NAME_TITLE, title); in updateNote()
[all …]
DTitleEditor.java47 NotePad.Notes._ID, // 0
48 NotePad.Notes.COLUMN_NAME_TITLE, // 1
174 values.put(NotePad.Notes.COLUMN_NAME_TITLE, newTitle); in saveTitle()
DNotePad.java38 public static final class Notes implements BaseColumns { class in NotePad
41 private Notes() {} in Notes() method in NotePad.Notes
DNotesList.java60 NotePad.Notes._ID, // 0
61 NotePad.Notes.COLUMN_NAME_TITLE, // 1
89 intent.setData(NotePad.Notes.CONTENT_URI); in onCreate()
109 String[] dataColumns = { NotePad.Notes.COLUMN_NAME_TITLE } ; in onCreate()
468 NotePad.Notes.DEFAULT_SORT_ORDER // Use the default sort order. in onCreateLoader()
/development/samples/NotePad/tests/src/com/example/android/notepad/
DNotePadProviderTest.java49 Uri.withAppendedPath(NotePad.Notes.CONTENT_URI, "invalid");
151 NotePad.Notes.TABLE_NAME, // the table name for the insert in insertData()
152 NotePad.Notes.COLUMN_NAME_TITLE, // column set to null if empty values map in insertData()
165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI); in testUriAndGetType()
166 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); in testUriAndGetType()
169 mimeType = mMockResolver.getType(NotePad.Notes.LIVE_FOLDER_URI); in testUriAndGetType()
170 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); in testUriAndGetType()
173 Uri noteIdUri = ContentUris.withAppendedId(NotePad.Notes.CONTENT_ID_URI_BASE, 1); in testUriAndGetType()
177 assertEquals(NotePad.Notes.CONTENT_ITEM_TYPE, mimeType); in testUriAndGetType()
191 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL)); in testGetStreamTypes()
[all …]