HomeSort by relevance Sort by last modified time
    Searched refs:mDbHelper (Results 1 - 25 of 54) sorted by null

1 2 3

  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
StandaloneContactsProvider2.java 24 private static ContactsDatabaseHelper mDbHelper;
33 if (mDbHelper == null) {
34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context);
36 return mDbHelper;
ContactsDatabaseHelperTest.java 38 private ContactsDatabaseHelper mDbHelper;
44 mDbHelper = getContactsProvider().getDatabaseHelper(getContext());
45 mDb = mDbHelper.getWritableDatabase();
56 assertNull(mDbHelper.getAccountIdOrNull(a1));
57 assertNull(mDbHelper.getAccountIdOrNull(a2));
58 assertNull(mDbHelper.getAccountIdOrNull(a3));
59 assertNull(mDbHelper.getAccountIdOrNull(a4));
60 assertNull(mDbHelper.getAccountIdOrNull(a5));
63 final long a1id = mDbHelper.getOrCreateAccountIdInTransaction(a1);
64 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2)
    [all...]
CallLogProviderTestable.java 25 private CallLogDatabaseHelperTestable mDbHelper;
32 mDbHelper);
38 if (mDbHelper == null) {
39 mDbHelper = new CallLogDatabaseHelperTestable(context, mContactsDbForMigration);
41 return mDbHelper;
  /packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
BlockedNumberProviderTestable.java 27 mDbHelper = BlockedNumberDatabaseHelper.newInstanceForTest(getContext());
33 mDbHelper.getReadableDatabase().close();
  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
CalendarCacheTest.java 31 private SQLiteOpenHelper mDbHelper;
40 mDbHelper = CalendarDatabaseHelper.getInstance(getContext());
41 mCalendarCache = new CalendarCache(mDbHelper);
46 if (mDbHelper != null) {
47 mDbHelper.close();
48 mDbHelper = null;
  /development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
Notepadv1.java 30 private NotesDbAdapter mDbHelper;
37 mDbHelper = new NotesDbAdapter(this);
38 mDbHelper.open();
61 mDbHelper.createNote(noteName, "");
67 Cursor c = mDbHelper.fetchAllNotes();
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/
LocationDataManager.java 37 private LocationDbHelper mDbHelper;
40 mDbHelper = dbHelper;
54 List<LocationEntry> points = mDbHelper.read(calendar);
69 return mDbHelper.delete(day);
81 mDbHelper.insert(entry);
89 mDbHelper.insert(entry);
  /developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/
LocationDataManager.java 37 private LocationDbHelper mDbHelper;
40 mDbHelper = dbHelper;
54 List<LocationEntry> points = mDbHelper.read(calendar);
69 return mDbHelper.delete(day);
81 mDbHelper.insert(entry);
89 mDbHelper.insert(entry);
  /development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
LocationDataManager.java 37 private LocationDbHelper mDbHelper;
40 mDbHelper = dbHelper;
54 List<LocationEntry> points = mDbHelper.read(calendar);
69 return mDbHelper.delete(day);
81 mDbHelper.insert(entry);
89 mDbHelper.insert(entry);
  /development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
NoteEdit.java 31 private NotesDbAdapter mDbHelper;
36 mDbHelper = new NotesDbAdapter(this);
37 mDbHelper.open();
69 Cursor note = mDbHelper.fetchNote(mRowId);
102 long id = mDbHelper.createNote(title, body);
107 mDbHelper.updateNote(mRowId, title, body);
Notepadv3.java 39 private NotesDbAdapter mDbHelper;
46 mDbHelper = new NotesDbAdapter(this);
47 mDbHelper.open();
53 Cursor notesCursor = mDbHelper.fetchAllNotes();
98 mDbHelper.deleteNote(info.id);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandler.java 79 protected final ContactsDatabaseHelper mDbHelper;
89 mDbHelper = dbHelper;
104 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype);
123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId);
130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
132 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId);
137 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) {
138 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
200 final String photoHashId= mDbHelper.getPhotoHashId();
206 hashId = mDbHelper.generateHashId(data1, data2)
    [all...]
ContactMetadataProvider.java 90 private ContactsDatabaseHelper mDbHelper;
98 mDbHelper = getDatabaseHelper(context);
115 mDbHelper = helper;
155 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
183 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
201 throw new IllegalArgumentException(mDbHelper.exceptionMessage(
214 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
249 throw new IllegalArgumentException(mDbHelper.exceptionMessage(
262 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
272 throw new IllegalArgumentException(mDbHelper.exceptionMessage
    [all...]
  /development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
Notepadv2.java 38 private NotesDbAdapter mDbHelper;
46 mDbHelper = new NotesDbAdapter(this);
47 mDbHelper.open();
53 mNotesCursor = mDbHelper.fetchAllNotes();
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
FakeSmsContentProvider.java 32 public SQLiteOpenHelper mDbHelper = new InMemorySmsDbHelper();
77 SQLiteDatabase db = mDbHelper.getReadableDatabase();
84 SQLiteDatabase db = mDbHelper.getWritableDatabase();
92 SQLiteDatabase db = mDbHelper.getWritableDatabase();
111 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
Notepadv2.java 39 private NotesDbAdapter mDbHelper;
47 mDbHelper = new NotesDbAdapter(this);
48 mDbHelper.open();
55 mNotesCursor = mDbHelper.fetchAllNotes();
100 mDbHelper.deleteNote(info.id);
134 mDbHelper.createNote(title, body);
142 mDbHelper.updateNote(rowId, editTitle, editBody);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
Notepadv3.java 39 private NotesDbAdapter mDbHelper;
47 mDbHelper = new NotesDbAdapter(this);
48 mDbHelper.open();
55 mNotesCursor = mDbHelper.fetchAllNotes();
100 mDbHelper.deleteNote(info.id);
134 mDbHelper.createNote(title, body);
142 mDbHelper.updateNote(rowId, editTitle, editBody);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /cts/tests/JobScheduler/src/android/jobscheduler/
DummyJobContentProvider.java 35 private DatabaseHelper mDbHelper;
57 mDbHelper = new DatabaseHelper(getContext());
91 SQLiteDatabase db = mDbHelper.getWritableDatabase();
110 SQLiteDatabase db = mDbHelper.getReadableDatabase();
136 SQLiteDatabase db = mDbHelper.getWritableDatabase();
153 SQLiteDatabase db = mDbHelper.getWritableDatabase();
  /cts/tests/tests/content/src/android/content/cts/
DummyProvider.java 40 private DatabaseHelper mDbHelper;
68 mDbHelper = new DatabaseHelper(getContext());
102 SQLiteDatabase db = mDbHelper.getWritableDatabase();
121 SQLiteDatabase db = mDbHelper.getReadableDatabase();
167 SQLiteDatabase db = mDbHelper.getWritableDatabase();
184 SQLiteDatabase db = mDbHelper.getWritableDatabase();
  /development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();

Completed in 3711 milliseconds

1 2 3