public LocalBuildToolPkgInfo( @NonNull LocalSdk localSdk, @NonNull File localDir, @NonNull Properties sourceProps, @NonNull FullRevision revision, @Nullable BuildToolInfo btInfo) { super(localSdk, localDir, sourceProps); mDesc = PkgDesc.Builder.newBuildTool(revision).create(); mBuildToolInfo = btInfo; }
public LocalSysImgPkgInfo( @NonNull LocalSdk localSdk, @NonNull File localDir, @NonNull Properties sourceProps, @NonNull AndroidVersion version, @Nullable IdDisplay tag, @NonNull String abi, @NonNull MajorRevision revision) { super(localSdk, localDir, sourceProps); mDesc = PkgDesc.Builder.newSysImg(version, tag, abi, revision).create(); }
@Override protected void setUp() throws Exception { super.setUp(); m = new BrokenPackage( null /*props*/, "short description", "long description", 12, // min api level 13, // exact api level "os/path", PkgDesc.Builder.newTool(new FullRevision(1, 2, 3, 4), FullRevision.NOT_SPECIFIED) .create()); }
public final void testGetPkgDesc() { assertEquals( PkgDesc.Builder.newTool(new FullRevision(1, 2, 3, 4), FullRevision.NOT_SPECIFIED).create(), m.getPkgDesc()); }