@NotThreadSafe
public class AaptProcess
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AaptProcess.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(com.android.ide.common.res2.CompileResourceRequest request,
com.android.builder.tasks.Job<AaptProcess> job,
com.android.ide.common.process.ProcessOutputHandler processOutputHandler)
Notifies the slave process of a new AAPT2 compile request, does not block on completion, the
notification will be issued through the job parameter's
Job.finished() or Job.error(Throwable) ()} functions. |
void |
crunch(java.io.File in,
java.io.File out,
com.android.builder.tasks.Job<AaptProcess> job)
Notifies the slave process of a new crunching request, does not block on completion, the
notification will be issued through the job parameter's
Job.finished() or Job.error(Throwable) ()} functions. |
void |
link(com.android.builder.internal.aapt.AaptPackageConfig config,
com.android.builder.tasks.Job<AaptProcess> job,
com.android.ide.common.process.ProcessOutputHandler processOutputHandler)
Notifies the slave process of a new AAPT2 link request, does not block on completion, the
notification will be issued through the job parameter's
Job.finished() or Job.error(Throwable) ()} functions. |
void |
shutdown()
Shutdowns the slave process and release all resources.
|
java.lang.String |
toString() |
boolean |
waitForReadyOrFail() |
public void crunch(@NonNull
java.io.File in,
@NonNull
java.io.File out,
@NonNull
com.android.builder.tasks.Job<AaptProcess> job)
throws java.io.IOException
Job.finished() or Job.error(Throwable) ()} functions.in - the source file to crunchout - where to place the crunched filejob - the job to notify when the crunching is finished successfully or not.java.io.IOExceptionpublic void compile(@NonNull
com.android.ide.common.res2.CompileResourceRequest request,
@NonNull
com.android.builder.tasks.Job<AaptProcess> job,
@Nullable
com.android.ide.common.process.ProcessOutputHandler processOutputHandler)
throws java.io.IOException
Job.finished() or Job.error(Throwable) ()} functions.request - the compile request containing the the input, output and compilation flagsjob - the job to notify when the compiling is finished successfully or not.java.io.IOExceptionpublic void link(@NonNull
com.android.builder.internal.aapt.AaptPackageConfig config,
@NonNull
com.android.builder.tasks.Job<AaptProcess> job,
@Nullable
com.android.ide.common.process.ProcessOutputHandler processOutputHandler)
throws java.io.IOException
Job.finished() or Job.error(Throwable) ()} functions.config - the configuration of the link requestjob - the job to notify when the linking is finished successfully or not.java.io.IOExceptionpublic boolean waitForReadyOrFail()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void shutdown()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException