Tabnine Logo
Transform.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.android.build.api.transform.Transform

Best Java code snippets using com.android.build.api.transform.Transform.getName (Showing top 6 results out of 315)

origin: com.android.tools.build/gradle-core

private boolean checkContentTypes(
    @NonNull Set<ContentType> contentTypes,
    @NonNull Transform transform) {
  for (ContentType contentType : contentTypes) {
    if (!(contentType instanceof QualifiedContent.DefaultContentType
        || contentType instanceof ExtendedContentType)) {
      errorReporter.handleSyncError(null, SyncIssue.TYPE_GENERIC,
          String.format("Custom content types (%1$s) are not supported in transforms (%2$s)",
              contentType.getClass().getName(), transform.getName()));
      return false;
    }
  }
  return true;
}
origin: com.android.tools.build/gradle-core

@VisibleForTesting
@NonNull
static String getTaskNamePrefix(@NonNull Transform transform) {
  StringBuilder sb = new StringBuilder(100);
  sb.append("transform");
  sb.append(
      transform.getInputTypes()
          .stream()
          .map(inputType ->
              CaseFormat.UPPER_UNDERSCORE.to(
                  CaseFormat.UPPER_CAMEL, inputType.name()))
          .sorted() // Keep the order stable.
          .collect(Collectors.joining("And")))
      .append("With")
      .append(capitalize(transform.getName()))
      .append("For");
  return sb.toString();
}
origin: com.android.tools.build/gradle-core

private boolean validateTransform(@NonNull Transform transform) {
  // check the content type are of the right Type.
  if (!checkContentTypes(transform.getInputTypes(), transform)
      || !checkContentTypes(transform.getOutputTypes(), transform)) {
    return false;
  }
  // check some scopes are not consumed.
  Set<? super Scope> scopes = transform.getScopes();
  // Allow Jack transform to consume provided classes as the .jack files are needed.
  if (scopes.contains(Scope.PROVIDED_ONLY) && !isJackRuntimeLib(transform)) {
    errorReporter.handleSyncError(null, SyncIssue.TYPE_GENERIC,
        String.format("PROVIDED_ONLY scope cannot be consumed by Transform '%1$s'",
            transform.getName()));
    return false;
  }
  if (scopes.contains(Scope.TESTED_CODE)) {
    errorReporter.handleSyncError(null, SyncIssue.TYPE_GENERIC,
        String.format("TESTED_CODE scope cannot be consumed by Transform '%1$s'",
            transform.getName()));
    return false;
  }
  return true;
}
origin: com.android.tools.build/gradle-core

AndroidProject.FD_INTERMEDIATES,
FD_TRANSFORMS,
transform.getName(),
scope.getDirectorySegments()));
origin: com.android.tools.build/gradle-core

    String.format(
        "Unable to add Transform '%s' on variant '%s': requested streams not available: %s+%s / %s",
        transform.getName(), scope.getFullVariantName(),
        transform.getScopes(), transform.getReferencedScopes(),
        transform.getInputTypes()));
logger.debug("\tName: " + transform.getName());
logger.debug("\tTask: " + taskName);
for (TransformStream sd : inputStreams) {
origin: CoffeePartner/capt

if (t.getTransform().getName().equals(NAME)) {
  t.dependsOn(getByVariant(t.getVariantName()));
com.android.build.api.transformTransformgetName

Popular methods of Transform

  • transform
  • getInputTypes
  • getOutputTypes
  • getParameterInputs
  • getReferencedScopes
  • getScopes
  • getSecondaryDirectoryOutputs
  • getSecondaryFileInputs
  • getSecondaryFileOutputs
  • getSecondaryFiles
  • isIncremental
  • isIncremental

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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