congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AndroidTargetHash.getAddonHashString
Code IndexAdd Tabnine 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)

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
    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.
  • 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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • setContentView (Activity)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now