@@ -187,7 +187,10 @@ private class QueryBuilderUpdateMethod extends SQLiteRunner {
187187private class ContentProviderDeleteMethod extends SQLiteRunner {
188188 ContentProviderDeleteMethod ( ) {
189189 // delete(Uri uri, String selection, String[] selectionArgs)
190- this .getDeclaringType ( ) instanceof AndroidContentProvider and
190+ (
191+ this .getDeclaringType ( ) instanceof AndroidContentProvider or
192+ this .getDeclaringType ( ) instanceof AndroidContentResolver
193+ ) and
191194 this .hasName ( "delete" ) and
192195 this .getNumberOfParameters ( ) = 3
193196 }
@@ -199,7 +202,10 @@ private class ContentProviderQueryMethod extends SQLiteRunner {
199202 ContentProviderQueryMethod ( ) {
200203 // query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)
201204 // query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
202- this .getDeclaringType ( ) instanceof AndroidContentProvider and
205+ (
206+ this .getDeclaringType ( ) instanceof AndroidContentProvider or
207+ this .getDeclaringType ( ) instanceof AndroidContentResolver
208+ ) and
203209 this .hasName ( "query" ) and
204210 this .getNumberOfParameters ( ) = [ 5 , 6 ]
205211 }
@@ -210,7 +216,10 @@ private class ContentProviderQueryMethod extends SQLiteRunner {
210216private class ContentProviderUpdateMethod extends SQLiteRunner {
211217 ContentProviderUpdateMethod ( ) {
212218 // update(Uri uri, ContentValues values, String selection, String[] selectionArgs)
213- this .getDeclaringType ( ) instanceof AndroidContentProvider and
219+ (
220+ this .getDeclaringType ( ) instanceof AndroidContentProvider or
221+ this .getDeclaringType ( ) instanceof AndroidContentResolver
222+ ) and
214223 this .hasName ( "update" ) and
215224 this .getNumberOfParameters ( ) = 4
216225 }
0 commit comments