/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SecondaryUserContactsProvider2.java | 25 private ContactsDatabaseHelper mDbHelper; field in class:SecondaryUserContactsProvider2 33 if (mDbHelper == null) { 34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, 37 return mDbHelper;
|
H A D | CallLogProviderTestable.java | 25 private CallLogDatabaseHelperTestable mDbHelper; field in class:CallLogProviderTestable 32 mDbHelper); 38 if (mDbHelper == null) { 39 mDbHelper = new CallLogDatabaseHelperTestable(context, mContactsDbForMigration); 41 return mDbHelper;
|
H A D | ContactsDatabaseHelperTest.java | 50 private ContactsDatabaseHelper mDbHelper; field in class:ContactsDatabaseHelperTest 56 mDbHelper = getContactsProvider().getDatabaseHelper(); 57 mDb = mDbHelper.getWritableDatabase(); 68 assertNull(mDbHelper.getAccountIdOrNull(a1)); 69 assertNull(mDbHelper.getAccountIdOrNull(a2)); 70 assertNull(mDbHelper.getAccountIdOrNull(a3)); 71 assertNull(mDbHelper.getAccountIdOrNull(a4)); 72 assertNull(mDbHelper.getAccountIdOrNull(a5)); 75 final long a1id = mDbHelper.getOrCreateAccountIdInTransaction(a1); 76 final long a2id = mDbHelper [all...] |
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
H A D | CarrierIdProviderTestable.java | 28 private InMemoryCarrierIdProviderDbHelper mDbHelper; field in class:CarrierIdProviderTestable 32 Log.d(TAG, "onCreate called: mDbHelper = new InMemoryCarrierIdProviderDbHelper()"); 33 mDbHelper = new InMemoryCarrierIdProviderDbHelper(); 37 // close mDbHelper database object 39 mDbHelper.close(); 44 Log.d(TAG, "getReadableDatabase called" + mDbHelper.getReadableDatabase()); 45 return mDbHelper.getReadableDatabase(); 50 Log.d(TAG, "getWritableDatabase called" + mDbHelper.getWritableDatabase()); 51 return mDbHelper.getWritableDatabase();
|
H A D | CarrierProviderTestable.java | 31 private InMemoryCarrierProviderDbHelper mDbHelper; field in class:CarrierProviderTestable 35 Log.d(TAG, "onCreate called: mDbHelper = new InMemoryCarrierProviderDbHelper()"); 36 mDbHelper = new InMemoryCarrierProviderDbHelper(); 40 // close mDbHelper database object 42 mDbHelper.close(); 47 Log.d(TAG, "getReadableDatabase called" + mDbHelper.getReadableDatabase()); 48 return mDbHelper.getReadableDatabase(); 53 Log.d(TAG, "getWritableDatabase called" + mDbHelper.getWritableDatabase()); 54 return mDbHelper.getWritableDatabase();
|
H A D | TelephonyProviderTestable.java | 45 private InMemoryTelephonyProviderDbHelper mDbHelper; field in class:TelephonyProviderTestable 59 Log.d(TAG, "onCreate called: mDbHelper = new InMemoryTelephonyProviderDbHelper()"); 60 mDbHelper = new InMemoryTelephonyProviderDbHelper(); 65 // close mDbHelper database object 67 mDbHelper.close(); 73 return mDbHelper.getReadableDatabase(); 79 return mDbHelper.getWritableDatabase();
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | CalendarCacheTest.java | 31 private SQLiteOpenHelper mDbHelper; field in class:CalendarCacheTest 40 mDbHelper = CalendarDatabaseHelper.getInstance(getContext()); 41 mCalendarCache = new CalendarCache(mDbHelper); 46 if (mDbHelper != null) { 47 mDbHelper.close(); 48 mDbHelper = null;
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | CarrierProvider.java | 41 private CarrierDatabaseHelper mDbHelper; field in class:CarrierProvider 51 mDbHelper = new CarrierDatabaseHelper(getContext()); 130 return mDbHelper.getReadableDatabase(); 133 return mDbHelper.getWritableDatabase();
|
H A D | HbpcdLookupProvider.java | 146 private HbpcdLookupDatabaseHelper mDbHelper; field in class:HbpcdLookupProvider 153 mDbHelper = new HbpcdLookupDatabaseHelper(getContext()); 155 mDbHelper.getReadableDatabase(); 304 SQLiteDatabase db = mDbHelper.getReadableDatabase(); 326 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
|
H A D | CarrierIdProvider.java | 144 private CarrierIdDatabaseHelper mDbHelper; field in class:CarrierIdProvider 179 mDbHelper = new CarrierIdDatabaseHelper(getContext()); 180 mDbHelper.getReadableDatabase(); 184 updateDatabaseFromPb(mDbHelper.getWritableDatabase()); 305 return mDbHelper.getReadableDatabase(); 308 return mDbHelper.getWritableDatabase();
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | VoicemailStatusTable.java | 62 private final CallLogDatabaseHelper mDbHelper; field in class:VoicemailStatusTable 69 mDbHelper = dbHelper; 76 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 115 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 132 SQLiteDatabase db = mDbHelper.getReadableDatabase(); 146 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 173 return mDbHelper.selectDistinctColumn(mTableName, Status.SOURCE_PACKAGE);
|
H A D | ContactMetadataProvider.java | 90 private ContactsDatabaseHelper mDbHelper; field in class:ContactMetadataProvider 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 [all...] |
H A D | DataRowHandler.java | 79 protected final ContactsDatabaseHelper mDbHelper; field in class:DataRowHandler 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 [all...] |
H A D | VoicemailContentTable.java | 91 private final CallLogDatabaseHelper mDbHelper; field in class:VoicemailContentTable 101 mDbHelper = dbHelper; 146 DatabaseModifier modifier = createDatabaseModifier(mDbHelper.getWritableDatabase()); 153 DatabaseModifier modifier = createDatabaseModifier(mDbHelper.getWritableDatabase()); 191 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 232 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 274 SQLiteDatabase db = mDbHelper.getReadableDatabase(); 289 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 322 return mDbHelper.selectDistinctColumn(mTableName, Voicemails.SOURCE_PACKAGE);
|
H A D | AbstractContactsProvider.java | 85 private ContactsDatabaseHelper mDbHelper; field in class:AbstractContactsProvider 124 mDbHelper = newDatabaseHelper(context); 130 return mDbHelper; 427 if (mDbHelper == null) { 428 pw.println("mDbHelper is null"); 434 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
|
H A D | SearchIndexManager.java | 243 private final ContactsDatabaseHelper mDbHelper; field in class:SearchIndexManager 251 mDbHelper = (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); 262 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 282 mDbHelper.createSearchIndexTable(db, true); 328 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 349 mSb.append(mDbHelper.getMimeTypeId(Nickname.CONTENT_ITEM_TYPE)); 352 mSb.append(mDbHelper.getMimeTypeId(Organization.CONTENT_ITEM_TYPE)); 355 mSb.append(mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE)); 358 mSb.append(mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE)); 406 return Integer.parseInt(mDbHelper [all...] |
H A D | CallLogProvider.java | 179 private CallLogDatabaseHelper mDbHelper; field in class:CallLogProvider 209 mDbHelper = getDatabaseHelper(context); 349 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); 475 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 510 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 539 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 724 mDbHelper.getWritableDatabase().execSQL( 734 mDbHelper.getWritableDatabase().execSQL(UNHIDE_BY_ADDRESS_QUERY, 754 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 811 return Long.valueOf(mDbHelper [all...] |
H A D | LegacyApiSupport.java | 469 private final ContactsDatabaseHelper mDbHelper; field in class:LegacyApiSupport 492 mDbHelper = contactsDatabaseHelper; 499 SQLiteDatabase db = mDbHelper.getReadableDatabase(); 510 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); 511 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); 512 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE); 809 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); 938 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); 1189 SQLiteDatabase db = mDbHelper.getWritableDatabase(); 1270 SQLiteDatabase db = mDbHelper [all...] |
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
H A D | UsbSettingsStorage.java | 45 private final UsbSettingsDbHelper mDbHelper; field in class:UsbSettingsStorage 48 mDbHelper = new UsbSettingsDbHelper(context); 80 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); 99 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { 114 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { 135 try (SQLiteDatabase db = mDbHelper.getReadableDatabase();
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/ |
H A D | UsbSettingsStorage.java | 44 private final UsbSettingsDbHelper mDbHelper; field in class:UsbSettingsStorage 47 mDbHelper = new UsbSettingsDbHelper(context); 55 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); 83 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { 98 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { 119 try (SQLiteDatabase db = mDbHelper.getReadableDatabase();
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | FileCache.java | 60 private DatabaseHelper mDbHelper; field in class:FileCache 92 mDbHelper = new DatabaseHelper(context, dbName); 97 mDbHelper.close(); 124 mDbHelper.getWritableDatabase(), entry); 150 mDbHelper.getWritableDatabase().delete( 168 Cursor cursor = mDbHelper.getReadableDatabase().query(TABLE_NAME, 185 mDbHelper.getWritableDatabase().update(TABLE_NAME, 203 Cursor cursor = mDbHelper.getReadableDatabase().query( 219 Cursor cursor = mDbHelper.getReadableDatabase().query( 238 mDbHelper [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarInstancesHelper.java | 61 private final CalendarDatabaseHelper mDbHelper; field in class:CalendarInstancesHelper 131 mDbHelper = calendarDbHelper; 133 mCalendarCache = new CalendarCache(mDbHelper); 522 mDbHelper.instancesReplace(values); 593 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); 713 mDbHelper.instancesInsert(instanceValues); 860 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
|
H A D | CalendarProvider2.java | 187 private CalendarDatabaseHelper mDbHelper; field in class:CalendarProvider2 488 if (mDbHelper != null) { 489 mDbHelper.close(); 490 mDbHelper = null; 513 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper(); 514 mDb = mDbHelper.getWritableDatabase(); 516 mMetaData = new MetaData(mDbHelper); 517 mInstancesHelper = new CalendarInstancesHelper(mDbHelper, mMetaData); 532 mCalendarCache = new CalendarCache(mDbHelper); 838 final SQLiteDatabase db = mDbHelper [all...] |
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
H A D | BlockedNumberProvider.java | 104 protected BlockedNumberDatabaseHelper mDbHelper; field in class:BlockedNumberProvider 110 mDbHelper = BlockedNumberDatabaseHelper.getInstance(getContext()); 168 final long id = mDbHelper.getWritableDatabase().insertWithOnConflict( 225 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); 293 return qb.query(mDbHelper.getReadableDatabase(), projection, selection, selectionArgs, 418 final Cursor c = mDbHelper.getReadableDatabase().rawQuery(
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
H A D | AbstractContactAggregator.java | 146 protected final ContactsDatabaseHelper mDbHelper; field in class:AbstractContactAggregator 279 mDbHelper = contactsDatabaseHelper; 284 SQLiteDatabase db = mDbHelper.getReadableDatabase(); 387 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); 388 mMimeTypeIdIdentity = mDbHelper.getMimeTypeId(Identity.CONTENT_ITEM_TYPE); 389 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE); 390 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE); 395 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); 399 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); 506 int aggregationMode = mDbHelper [all...] |