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()); }
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); }