public FakeAndroidTarget(String sdkLocation, String target) { mSdkLocation = sdkLocation; mApiLevel = getApiLevel(target); if ("unstubbed".equals(target)) { mBootClasspath.add(mSdkLocation + "/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar"); mBootClasspath.add(mSdkLocation + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar"); // pre-build the path to the platform components mPaths.put(ANDROID_JAR, mSdkLocation + "/prebuilts/sdk/current/" + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_AIDL, mSdkLocation + "/prebuilts/sdk/renderscript/" + SdkConstants.FN_FRAMEWORK_AIDL); } else { String apiPrebuilts; if ("current".equals(target)) { apiPrebuilts = mSdkLocation + "/prebuilts/sdk/current/"; } else { apiPrebuilts = mSdkLocation + "/prebuilts/sdk/" + Integer.toString(mApiLevel) + "/"; } // pre-build the path to the platform components mBootClasspath.add(apiPrebuilts + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_JAR, apiPrebuilts + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_AIDL, apiPrebuilts + SdkConstants.FN_FRAMEWORK_AIDL); } }
public FakeAndroidTarget(String sdkLocation, String target) { mSdkLocation = sdkLocation; mApiLevel = getApiLevel(target); if ("unstubbed".equals(target)) { mBootClasspath.add(mSdkLocation + "/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar"); mBootClasspath.add(mSdkLocation + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar"); // pre-build the path to the platform components mPaths.put(ANDROID_JAR, mSdkLocation + "/prebuilts/sdk/current/" + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_AIDL, mSdkLocation + "/prebuilts/sdk/renderscript/" + SdkConstants.FN_FRAMEWORK_AIDL); } else { String apiPrebuilts; if ("current".equals(target)) { apiPrebuilts = mSdkLocation + "/prebuilts/sdk/current/"; } else { apiPrebuilts = mSdkLocation + "/prebuilts/sdk/" + Integer.toString(mApiLevel) + "/"; } // pre-build the path to the platform components mBootClasspath.add(apiPrebuilts + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_JAR, apiPrebuilts + SdkConstants.FN_FRAMEWORK_LIBRARY); mPaths.put(ANDROID_AIDL, apiPrebuilts + SdkConstants.FN_FRAMEWORK_AIDL); } }