Codota Logo
AndroidTargetHash.isPlatform
Code IndexAdd Codota to your IDE (free)

How to use
isPlatform
method
in
com.android.sdklib.AndroidTargetHash

Best Java code snippets using com.android.sdklib.AndroidTargetHash.isPlatform (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.android.tools/sdklib

/**
 * Gets the API level from a hash string, either a platform version or add-on version.
 *
 * @see #getAddOnVersion(String)
 * @see #getPlatformVersion(String)
 */
@Nullable
public static AndroidVersion getVersionFromHash(@NonNull String hashString) {
  if (isPlatform(hashString)) {
    return getPlatformVersion(hashString);
  } else {
    return getAddOnVersion(hashString);
  }
}
origin: com.android.tools.build/builder

if (!AndroidTargetHash.isPlatform(targetHash)) {
  RemotePackage addonPackage = null;
  for (RemotePackage p : repoManager.getPackages().getRemotePackages()
com.android.sdklibAndroidTargetHashisPlatform

Javadoc

Given a hash string, indicates whether this is a platform hash string. If not, it's an addon hash string.

Popular methods of AndroidTargetHash

  • getPlatformHashString
    Returns the hash string for a given platform version.
  • getPlatformVersion
    Returns the AndroidVersion for the given hash string, if it represents a platform. If the hash strin
  • getVersionFromHash
    Gets the API level from a hash string, either a platform version or add-on version.
  • getAddonHashString
    Returns the hash string for a given add-on.
  • getAddOnVersion
  • getTargetHashString
    Returns the hash string for a given target (add-on or platform.)

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now