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;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
  @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());
  }
コード例 #4
0
 public final void testGetPkgDesc() {
   assertEquals(
       PkgDesc.Builder.newTool(new FullRevision(1, 2, 3, 4), FullRevision.NOT_SPECIFIED).create(),
       m.getPkgDesc());
 }