Searched refs:NotePad (Results 1 – 8 of 8) sorted by relevance
/development/samples/NotePad/src/com/example/android/notepad/ |
D | NotePadProvider.java | 19 import com.example.android.notepad.NotePad; 77 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 115 sUriMatcher.addURI(NotePad.AUTHORITY, "notes", NOTES); in sUriMatcher.addURI() 119 sUriMatcher.addURI(NotePad.AUTHORITY, "notes/#", NOTE_ID); in sUriMatcher.addURI() 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() [all …]
|
D | NoteEditor.java | 43 import com.example.android.notepad.NotePad.Notes; 60 NotePad.Notes._ID, 61 NotePad.Notes.COLUMN_NAME_TITLE, 62 NotePad.Notes.COLUMN_NAME_NOTE 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() 496 values.put(NotePad.Notes.COLUMN_NAME_TITLE, title); in updateNote() [all …]
|
D | TitleEditor.java | 47 NotePad.Notes._ID, // 0 48 NotePad.Notes.COLUMN_NAME_TITLE, // 1 174 values.put(NotePad.Notes.COLUMN_NAME_TITLE, newTitle); in saveTitle()
|
D | NotesList.java | 60 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()
|
D | NotePad.java | 28 public final class NotePad { class 32 private NotePad() { in NotePad() method in NotePad
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
D | NotePadProviderTest.java | 49 Uri.withAppendedPath(NotePad.Notes.CONTENT_URI, "invalid"); 101 super(NotePadProvider.class, NotePad.AUTHORITY); in NotePadProviderTest() 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() [all …]
|
/development/samples/NotePad/ |
D | Android.bp | 2 name: "NotePad",
|
/development/build/ |
D | sdk.atree | 420 development/samples/NotePad samples/${PLATFORM_NAME}/legacy/NotePad
|