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

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

Best Java code snippets using com.android.sdklib.AndroidTargetHash.getAddonHashString (Showing top 3 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

/**
 * Returns the hash string for a given target (add-on or platform.)
 *
 * @param target A non-null target.
 * @return A non-null hash string uniquely representing this target.
 */
public static String getTargetHashString(@NonNull IAndroidTarget target) {
  if (target.isPlatform()) {
    return getPlatformHashString(target.getVersion());
  } else {
    return getAddonHashString(
        target.getVendor(),
        target.getName(),
        target.getVersion());
  }
}
origin: com.android.tools.build/builder

DetailsTypes.AddonDetailsType addonDetails
    = (DetailsTypes.AddonDetailsType) p.getTypeDetails();
String addonHash = AndroidTargetHash.getAddonHashString(
    addonDetails.getVendor().getDisplay(),
    addonDetails.getTag().getDisplay(),
origin: com.android.tools/sdklib

/**
 * Create a new add-on package descriptor.
 * <p>
 * The vendor id and the name id provided are used to compute the add-on's
 * target hash.
 *
 * @param version The android version of the add-on package.
 * @param revision The revision of the add-on package.
 * @param addonVendor The vendor id/display of the add-on package.
 * @param addonName The name id/display of the add-on package.
 * @return A {@link PkgDesc} describing this add-on package.
 */
@NonNull
public static Builder newAddon(@NonNull AndroidVersion version,
                @NonNull Revision revision,
                @NonNull IdDisplay addonVendor,
                @NonNull IdDisplay addonName) {
  Builder p = new Builder(PkgType.PKG_ADDON);
  p.mAndroidVersion = version;
  p.mRevision = revision;
  p.mVendor         = addonVendor;
  p.mNameIdDisplay  = addonName;
  p.mPath = AndroidTargetHash.getAddonHashString(addonVendor.getDisplay(),
      addonName.getDisplay(),
      version);
  return p;
}
com.android.sdklibAndroidTargetHashgetAddonHashString

Javadoc

Returns the hash string for a given add-on.

Popular methods of AndroidTargetHash

  • getPlatformHashString
  • 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.
  • isPlatform
    Given a hash string, indicates whether this is a platform hash string. If not, it's an addon hash st
  • getAddOnVersion
  • getTargetHashString
    Returns the hash string for a given target (add-on or platform.)

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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