Java Code Examples for com.android.sdklib.AndroidVersion#DEFAULT

The following examples show how to use com.android.sdklib.AndroidVersion#DEFAULT . 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: FileDevice.java    From logviewer with Apache License 2.0 4 votes vote down vote up
@Override
public com.android.sdklib.AndroidVersion getVersion() {
    return AndroidVersion.DEFAULT;
}
 
Example 2
Source File: Project.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Returns the target API level for the project
 *
 * @return the target API level or {@link AndroidVersion#DEFAULT} if unknown
 */
@NonNull
public AndroidVersion getTargetSdkVersion() {
    return mManifestTargetSdk == AndroidVersion.DEFAULT
            ? getMinSdkVersion() : mManifestTargetSdk;
}
 
Example 3
Source File: PermissionHolder.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@VisibleForTesting
public SetPermissionLookup(@NonNull Set<String> grantedPermissions,
        @NonNull Set<String> revocablePermissions) {
    this(grantedPermissions, revocablePermissions, AndroidVersion.DEFAULT,
            AndroidVersion.DEFAULT);
}
 
Example 4
Source File: Project.java    From javaide with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the minimum API level for the project
 *
 * @return the minimum API level or {@link AndroidVersion#DEFAULT} if unknown
 */
@NonNull
public AndroidVersion getMinSdkVersion() {
    return mManifestMinSdk == null ? AndroidVersion.DEFAULT : mManifestMinSdk;
}
 
Example 5
Source File: Project.java    From javaide with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the minimum API <b>level</b> requested by the manifest, or -1 if not
 * specified. Use {@link #getMinSdkVersion()} to get a full version if you need
 * to check if the platform is a preview platform etc.
 *
 * @return the minimum API level or -1 if unknown
 */
public int getMinSdk() {
    AndroidVersion version = getMinSdkVersion();
    return version == AndroidVersion.DEFAULT ? -1 : version.getApiLevel();
}
 
Example 6
Source File: Project.java    From javaide with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the target API <b>level</b> specified by the manifest, or -1 if not
 * specified. Use {@link #getTargetSdkVersion()} to get a full version if you need
 * to check if the platform is a preview platform etc.
 *
 * @return the target API level or -1 if unknown
 */
public int getTargetSdk() {
    AndroidVersion version = getTargetSdkVersion();
    return version == AndroidVersion.DEFAULT ? -1 : version.getApiLevel();
}