use of java.lang.reflect.Field in project platform_frameworks_base by android.
the class ContentProviderOperationTest method operationGetSelection.
private String operationGetSelection(ContentProviderOperation operation) throws NoSuchFieldException, IllegalAccessException {
final Field field = CLASS_OPERATION.getDeclaredField("mSelection");
field.setAccessible(true);
return (String) field.get(operation);
}
use of java.lang.reflect.Field in project platform_frameworks_base by android.
the class ContentProviderOperationTest method builderSetSelectionArgsBackReferences.
private void builderSetSelectionArgsBackReferences(ContentProviderOperation.Builder builder, HashMap<Integer, Integer> selArgsBackRef) throws NoSuchFieldException, IllegalAccessException {
Field field;
field = CLASS_BUILDER.getDeclaredField("mSelectionArgsBackReferences");
field.setAccessible(true);
field.set(builder, selArgsBackRef);
}
use of java.lang.reflect.Field in project platform_frameworks_base by android.
the class ContentProviderOperationTest method builderSetSelectionArgs.
private void builderSetSelectionArgs(ContentProviderOperation.Builder builder, String[] selArgs) throws NoSuchFieldException, IllegalAccessException {
Field field;
field = CLASS_BUILDER.getDeclaredField("mSelectionArgs");
field.setAccessible(true);
field.set(builder, selArgs);
}
use of java.lang.reflect.Field in project platform_frameworks_base by android.
the class ContentProviderOperationTest method operationGetUri.
private Uri operationGetUri(ContentProviderOperation operation) throws NoSuchFieldException, IllegalAccessException {
final Field field = CLASS_OPERATION.getDeclaredField("mUri");
field.setAccessible(true);
return (Uri) field.get(operation);
}
use of java.lang.reflect.Field in project platform_frameworks_base by android.
the class ContentProviderOperationTest method operationGetExpectedCount.
private Integer operationGetExpectedCount(ContentProviderOperation operation) throws NoSuchFieldException, IllegalAccessException {
final Field field = CLASS_OPERATION.getDeclaredField("mExpectedCount");
field.setAccessible(true);
return (Integer) field.get(operation);
}
Aggregations