Java Code Examples for com.android.SdkConstants#FD_EXTRAS

The following examples show how to use com.android.SdkConstants#FD_EXTRAS . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LocalSdkParser.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Find any directory in the /extras/vendors/path folders for extra packages.
 * This isn't a recursive search.
 */
private void scanExtras(SdkManager sdkManager,
        HashSet<File> visited,
        ArrayList<Package> packages,
        ILogger log) {
    File root = new File(sdkManager.getLocation(), SdkConstants.FD_EXTRAS);

    for (File vendor : listFilesNonNull(root)) {
        if (vendor.isDirectory()) {
            scanExtrasDirectory(vendor.getAbsolutePath(), visited, packages, log);
        }
    }
}
 
Example 2
Source File: LocalSdkParser.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Find any directory in the /extras/vendors/path folders for extra packages.
 * This isn't a recursive search.
 */
private void scanExtras(SdkManager sdkManager,
        HashSet<File> visited,
        ArrayList<Package> packages,
        ILogger log) {
    File root = new File(sdkManager.getLocation(), SdkConstants.FD_EXTRAS);

    for (File vendor : listFilesNonNull(root)) {
        if (vendor.isDirectory()) {
            scanExtrasDirectory(vendor.getAbsolutePath(), visited, packages, log);
        }
    }
}