Interface OnSystemUiVisibilityChangeListener is nested in class View, so I believe you would have to do Class.forName("android.view.View$OnSystemUiVisibilityChangeListener"); (note the ‘$’).
References:
solved android Class.forName throws exception