OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mOpenHelper
(Results
1 - 25
of
36
) sorted by null
1
2
/cts/tests/tests/database/src/android/database/sqlite/cts/
SQLiteOpenHelperTest.java
36
private MockOpenHelper
mOpenHelper
;
47
mOpenHelper
= getOpenHelper();
66
assertFalse(
mOpenHelper
.hasCalledOnOpen());
68
database =
mOpenHelper
.getReadableDatabase();
71
assertTrue(
mOpenHelper
.hasCalledOnOpen());
74
mOpenHelper
.resetStatus();
75
assertFalse(
mOpenHelper
.hasCalledOnOpen());
77
SQLiteDatabase database2 =
mOpenHelper
.getWritableDatabase();
80
assertFalse(
mOpenHelper
.hasCalledOnOpen());
82
mOpenHelper
.close()
[
all
...]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
TestLauncherProvider.java
20
if (
mOpenHelper
== null) {
21
mOpenHelper
= new MyDatabaseHelper(getContext());
/packages/apps/Launcher3/src/com/android/launcher3/util/
SQLiteCacheHelper.java
20
private final MySQLiteOpenHelper
mOpenHelper
;
26
mOpenHelper
= new MySQLiteOpenHelper(context, name, version);
39
mOpenHelper
.getWritableDatabase().update(mTableName, values, whereClause, whereArgs);
55
mOpenHelper
.getWritableDatabase().delete(mTableName, whereClause, whereArgs);
71
mOpenHelper
.getWritableDatabase().insertWithOnConflict(
89
return
mOpenHelper
.getReadableDatabase().query(
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
BlockedNumberDatabaseHelper.java
35
private final OpenHelper
mOpenHelper
;
83
mOpenHelper
= new OpenHelper(mContext,
97
return
mOpenHelper
.getReadableDatabase();
101
return
mOpenHelper
.getWritableDatabase();
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
TrackerProvider.java
77
private DatabaseHelper
mOpenHelper
;
81
mOpenHelper
= new DatabaseHelper(getContext());
87
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
100
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
113
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
SearchRecentSuggestionsProvider.java
40
private SQLiteOpenHelper
mOpenHelper
;
75
mOpenHelper
= new DatabaseHelper(mContext, DATABASE_VERSION);
84
mOpenHelper
.close();
138
return readOnly ?
mOpenHelper
.getReadableDatabase() :
139
mOpenHelper
.getWritableDatabase();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
MetaData.java
53
private final SQLiteOpenHelper
mOpenHelper
;
70
mOpenHelper
= openHelper;
81
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
115
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
171
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
203
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
227
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
SQLiteContentProvider.java
44
private SQLiteOpenHelper
mOpenHelper
;
56
mOpenHelper
= getDatabaseHelper(context);
83
return
mOpenHelper
;
96
mDb =
mOpenHelper
.getWritableDatabase();
124
mDb =
mOpenHelper
.getWritableDatabase();
151
mDb =
mOpenHelper
.getWritableDatabase();
184
mDb =
mOpenHelper
.getWritableDatabase();
224
mDb =
mOpenHelper
.getWritableDatabase();
CalendarCache.java
59
private final SQLiteOpenHelper
mOpenHelper
;
74
mOpenHelper
= openHelper;
148
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
201
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
/frameworks/ex/common/java/com/android/common/content/
SQLiteContentProvider.java
40
private SQLiteOpenHelper
mOpenHelper
;
62
mOpenHelper
= getDatabaseHelper(context);
87
return
mOpenHelper
;
99
mDb =
mOpenHelper
.getWritableDatabase();
124
mDb =
mOpenHelper
.getWritableDatabase();
152
mDb =
mOpenHelper
.getWritableDatabase();
180
mDb =
mOpenHelper
.getWritableDatabase();
207
mDb =
mOpenHelper
.getWritableDatabase();
225
mDb =
mOpenHelper
.getWritableDatabase();
/packages/apps/Gallery2/src/com/android/photos/data/
SQLiteContentProvider.java
43
private SQLiteOpenHelper
mOpenHelper
;
57
mOpenHelper
= getDatabaseHelper(context);
108
return
mOpenHelper
;
121
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
141
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
164
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
188
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
210
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/packages/apps/Launcher3/src/com/android/launcher3/
LauncherProvider.java
81
protected DatabaseHelper
mOpenHelper
;
91
mOpenHelper
= new DatabaseHelper(context);
98
return
mOpenHelper
.wasNewDbCreated();
103
mOpenHelper
.mListener = mListener;
120
if (
mOpenHelper
== null) {
121
mOpenHelper
= new DatabaseHelper(getContext());
133
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
167
if (!
mOpenHelper
.initializeExternalAdd(initialValues)) {
172
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
174
final long rowId = dbInsertAndCheck(
mOpenHelper
, db, args.table, null, initialValues)
[
all
...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastContentProvider.java
69
private SQLiteOpenHelper
mOpenHelper
;
77
mOpenHelper
= new CellBroadcastDatabaseHelper(getContext());
121
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
192
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
218
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
236
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
257
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/frameworks/base/core/tests/coretests/src/android/app/activity/
LocalProvider.java
32
private SQLiteOpenHelper
mOpenHelper
;
79
mOpenHelper
= new DatabaseHelper(getContext());
103
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
134
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
TestResultsProvider.java
88
private SQLiteOpenHelper
mOpenHelper
;
100
mOpenHelper
= new TestResultsOpenHelper(getContext());
160
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
166
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
203
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
214
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/packages/apps/DeskClock/src/com/android/deskclock/provider/
ClockProvider.java
44
private ClockDatabaseHelper
mOpenHelper
;
135
mOpenHelper
= new ClockDatabaseHelper(storageContext);
143
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
205
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
231
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
234
rowId =
mOpenHelper
.fixAlarmInsert(initialValues);
252
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/frameworks/base/core/java/android/content/
SearchRecentSuggestionsProvider.java
83
private SQLiteOpenHelper
mOpenHelper
;
226
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
273
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
308
mOpenHelper
= new DatabaseHelper(getContext(), mWorkingDbVersion);
321
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
CallLogDatabaseHelper.java
54
private final OpenHelper
mOpenHelper
;
188
mOpenHelper
= new OpenHelper(mContext, databaseName, /* factory=*/ null, DATABASE_VERSION);
208
return
mOpenHelper
.getReadableDatabase();
212
return
mOpenHelper
.getWritableDatabase();
327
mOpenHelper
.close();
/frameworks/base/core/tests/coretests/src/android/content/
MemoryFileProvider.java
47
private SQLiteOpenHelper
mOpenHelper
;
101
mOpenHelper
= new DatabaseHelper(getContext());
158
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
UserDictionaryProvider.java
137
private DatabaseHelper
mOpenHelper
;
141
mOpenHelper
= new DatabaseHelper(getContext());
183
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
242
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
256
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
285
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
MmsSmsProvider.java
304
private SQLiteOpenHelper
mOpenHelper
;
311
mOpenHelper
= MmsSmsDatabaseHelper.getInstanceForCe(getContext());
331
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
548
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
557
db =
mOpenHelper
.getWritableDatabase();
648
long result =
mOpenHelper
.getWritableDatabase().insert(TABLE_THREADS, null, values);
689
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
762
return
mOpenHelper
.getReadableDatabase().query(TABLE_THREADS, projection,
[
all
...]
/development/samples/NotePad/src/com/example/android/notepad/
NotePadProvider.java
108
private DatabaseHelper
mOpenHelper
;
236
mOpenHelper
= new DatabaseHelper(getContext());
302
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
544
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
586
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
672
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
750
return
mOpenHelper
;
/cts/tests/tests/content/src/android/content/cts/
MockContentProvider.java
51
private SQLiteOpenHelper
mOpenHelper
;
126
mOpenHelper
= new DatabaseHelper(getContext(), mDbName);
133
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
221
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
290
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
301
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/development/samples/ApiDemos/src/com/example/android/apis/app/
LoaderThrottle.java
179
private DatabaseHelper
mOpenHelper
;
202
mOpenHelper
= new DatabaseHelper(getContext());
241
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
287
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
306
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
342
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
LoaderThrottleSupport.java
180
private DatabaseHelper
mOpenHelper
;
203
mOpenHelper
= new DatabaseHelper(getContext());
242
SQLiteDatabase db =
mOpenHelper
.getReadableDatabase();
288
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
307
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
343
SQLiteDatabase db =
mOpenHelper
.getWritableDatabase();
Completed in 270 milliseconds
1
2