Examples of IPkgDesc


Examples of com.android.sdklib.repository.descriptors.IPkgDesc

        assert filter == PkgType.PKG_PLATFORMS ||
               filter == PkgType.PKG_SAMPLES ||
               filter == PkgType.PKG_SOURCES;

        for (LocalPkgInfo pkg : getPkgsInfos(filter)) {
            IPkgDesc d = pkg.getDesc();
            if (d.hasAndroidVersion() && d.getAndroidVersion().equals(version)) {
                return pkg;
            }
        }

        return null;
View Full Code Here

Examples of com.android.sdklib.repository.descriptors.IPkgDesc

    public LocalPkgInfo getPkgInfo(@NonNull PkgType filter, @NonNull FullRevision revision) {

        assert filter == PkgType.PKG_BUILD_TOOLS;

        for (LocalPkgInfo pkg : getPkgsInfos(filter)) {
            IPkgDesc d = pkg.getDesc();
            if (d.hasFullRevision() && d.getFullRevision().equals(revision)) {
                return pkg;
            }
        }
        return null;
    }
View Full Code Here

Examples of com.android.sdklib.repository.descriptors.IPkgDesc

        assert filter == PkgType.PKG_ADDONS ||
               filter == PkgType.PKG_PLATFORMS;

        for (LocalPkgInfo pkg : getPkgsInfos(filter)) {
            IPkgDesc d = pkg.getDesc();
            if (d.hasPath() && path.equals(d.getPath())) {
               return pkg;
           }
       }
       return null;
    }
View Full Code Here

Examples of com.android.sdklib.repository.descriptors.IPkgDesc

        assert filter == PkgType.PKG_EXTRAS ||
               filter == PkgType.PKG_ADDONS;

        for (LocalPkgInfo pkg : getPkgsInfos(filter)) {
            IPkgDesc d = pkg.getDesc();
            if (d.hasVendorId() && vendor.equals(d.getVendorId())) {
                if (d.hasPath() && path.equals(d.getPath())) {
                   return pkg;
               }
            }
       }
       return null;
View Full Code Here

Examples of com.android.sdklib.repository.descriptors.IPkgDesc

            sb.append('\n').append(error);
        }

        String longDesc = sb.toString();

        IPkgDesc desc = PkgDesc.newSysImg(
                version != null ? version : new AndroidVersion(0, null),
                tag,
                abiType,
                new MajorRevision(MajorRevision.MISSING_MAJOR_REV));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.