public static boolean isPublicStaticFinal(Field field) {
        int modifiers = field.getModifiers();
        return Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers);
    }
Determine whether the given field is a "public static final" constant.

@param field the field to check
android/android_framework/base/src/main/java/util/ReflectionUtils.java