class ResourceUsageAnalyzer {

    @VisibleForTesting
    boolean isResourceClass(@NonNull String name) {
        if (mResourceObfuscation.containsKey(name)) {
            return true;
        }
        assert name.endsWith(DOT_CLASS) : name;
        int index = name.lastIndexOf('/');
        if (index != -1 && name.startsWith("R$", index + 1)) {
            String typeName = name.substring(index + 3, name.length() - DOT_CLASS.length());
            return ResourceType.fromClassName(typeName) != null;
        }

        return false;
    }

    public  ResourceUsageAnalyzer(
            @NonNull File rDir,
            @NonNull Iterable<File> classes,
            @NonNull File manifest,
            @Nullable File mapping,
            @NonNull Iterable<File> resources,
            @Nullable File reportFile,
            @NonNull ApkFormat format);
    public  ResourceUsageAnalyzer(
            @NonNull File rDir,
            @NonNull Iterable<File> classes,
            @NonNull File manifest,
            @Nullable File mapping,
            @NonNull File resources,
            @Nullable File reportFile,
            @NonNull ApkFormat format);

}