コード例 #1
0
 private void checkDataDoesNotExistForPackage(String sourcePackage) {
   Cursor cursor =
       mResolver.query(Voicemails.buildSourceUri(sourcePackage), null, null, null, null);
   assertEquals(0, cursor.getCount());
   cursor = mResolver.query(Status.buildSourceUri(sourcePackage), null, null, null, null);
   assertEquals(0, cursor.getCount());
 }
コード例 #2
0
 private void insertDataForPackage(String sourcePackage) {
   ContentValues values = new ContentValues();
   values.put(VoicemailContract.SOURCE_PACKAGE_FIELD, sourcePackage);
   mResolver.insert(Voicemails.buildSourceUri(sourcePackage), values);
   mResolver.insert(Status.buildSourceUri(sourcePackage), values);
 }