/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 45 private SQLiteDatabase mDb; field in NotesDbAdapter 102 mDb = mDbHelper.getWritableDatabase(); in open() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes() 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | RssContentProvider.java | 38 private SQLiteDatabase mDb; field in RssContentProvider 106 mDb = mDbHelper.openDatabase(getContext(), DATABASE_NAME, null, DB_VERSION); in onCreate() 111 if(mDb == null){ in onCreate() 158 Cursor c = qBuilder.query(mDb, in query() 172 int updateCount = mDb.update(DATABASE_TABLE_NAME, values, whereClause); in update() 185 rowId = mDb.insert(DATABASE_TABLE_NAME, "rawcontent", initialValues); in insert() 196 int rowCount = mDb.delete(DATABASE_TABLE_NAME, ID + " = " + uri.getPathLeafId()); in delete()
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
D | NotePadProviderTest.java | 55 private SQLiteDatabase mDb; field in NotePadProviderTest 121 mDb = getProvider().getOpenHelperForTest().getWritableDatabase(); in setUp() 150 mDb.insertOrThrow( in insertData()
|