- Aar - Class in com.android.testutils.apk
-
- Aar(Path) - Constructor for class com.android.testutils.apk.Aar
-
- Aar(File) - Constructor for class com.android.testutils.apk.Aar
-
- AbstractZipSubject<S extends com.google.common.truth.Subject<S,T>,T extends Zip> - Class in com.android.testutils.truth
-
Truth support for zip files.
- AbstractZipSubject(FailureMetadata, T) - Constructor for class com.android.testutils.truth.AbstractZipSubject
-
- Action - Class in com.android.testutils.filesystemdiff
-
- Action() - Constructor for class com.android.testutils.filesystemdiff.Action
-
- ActionExecutor - Class in com.android.testutils.filesystemdiff
-
- ActionExecutor() - Constructor for class com.android.testutils.filesystemdiff.ActionExecutor
-
- actionStarted() - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester.MainProcessNotifier
-
Notifies the main process that the current client process starts executing the action
under test.
- actualCustomStringRepresentation() - Method in class com.android.testutils.truth.DexClassSubject
-
- actualCustomStringRepresentation() - Method in class com.android.testutils.truth.DexSubject
-
- add(UnifiedDiff.Chunk) - Method in class com.android.testutils.diff.UnifiedDiff.Diff
-
- addChildEntry(FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.DirectoryEntry
-
- addClassInvocationFromNewProcess(Class, String[]) - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester
-
- addCreateEntry(FileSystemEntry, FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.Script
-
- addDeleteEntry(FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.Script
-
- addLine(String, UnifiedDiff.Chunk.Type) - Method in class com.android.testutils.diff.UnifiedDiff.Chunk
-
- addMethodInvocationFromNewThread(Consumer<Function<F, T>>, Function<F, T>) - Method in class com.android.testutils.concurrency.ConcurrencyTester
-
- addRuntimeHook() - Static method in class com.android.testutils.TestExecutionTimeLogger
-
- advanceBy(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
-
advanceBy will run all actions scheduled within the interval (converted to nanos) specified from the current time.
- advanceBy(long) - Method in class com.android.testutils.VirtualTimeScheduler
-
advanceBy will run all actions scheduled within the interval specified from the current time.
- advanceTo(long) - Method in class com.android.testutils.VirtualTimeScheduler
-
advanceTo will run all actions scheduled between CurrentTimeNanos and endTimeNanos.
- AndroidArchive - Class in com.android.testutils.apk
-
- AndroidArchive(Path) - Constructor for class com.android.testutils.apk.AndroidArchive
-
- annotatedBuilder() - Method in class com.android.testutils.IgnoredTestsRunnerBuilder
-
- ApiTester - Class in com.android.testutils
-
Given a set of classes, return the lines of an API file that lists the accessible APIs.
- ApiTester(String, Collection<ClassPath.ClassInfo>, ApiTester.Filter, String, URL, ApiTester.Flag...) - Constructor for class com.android.testutils.ApiTester
-
- ApiTester.Filter - Enum in com.android.testutils
-
- ApiTester.Flag - Enum in com.android.testutils
-
- Apk - Class in com.android.testutils.apk
-
- Apk(Path) - Constructor for class com.android.testutils.apk.Apk
-
- Apk(File) - Constructor for class com.android.testutils.apk.Apk
-
- apply(File, int) - Method in class com.android.testutils.diff.UnifiedDiff
-
Applies the diff to the given directory, stripping the "prefix" number of directories.
- apply(List<String>) - Method in class com.android.testutils.diff.UnifiedDiff.Diff
-
- assertThat(DexBackedClassDef) - Static method in class com.android.testutils.truth.DexClassSubject
-
- assertThat(Dex) - Static method in class com.android.testutils.truth.DexSubject
-
- assertThat(File) - Static method in class com.android.testutils.truth.FileSubject
-
- assertThat(Zip) - Static method in class com.android.testutils.truth.MoreTruth
-
- assertThat(Dex) - Static method in class com.android.testutils.truth.MoreTruth
-
- assertThat(Path) - Static method in class com.android.testutils.truth.PathSubject
-
- assertThat(File) - Static method in class com.android.testutils.truth.PathSubject
-
- assertThat(Zip) - Static method in class com.android.testutils.truth.ZipFileSubject
-
- assertThatActionsCannotRunConcurrently() - Method in class com.android.testutils.concurrency.ConcurrencyTester
-
Executes the invocations of the method under test in separate threads and asserts that all
the actions ran sequentially.
- assertThatActionsCannotRunConcurrently() - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester
-
Executes the invocations of the class under test's main() method in separate processes and
asserts that all the actions ran sequentially.
- assertThatActionsCanRunConcurrently() - Method in class com.android.testutils.concurrency.ConcurrencyTester
-
Executes the invocations of the method under test in separate threads and asserts that all
the actions ran concurrently.
- assertThatActionsCanRunConcurrently() - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester
-
Executes the invocations of the class under test's main() method in separate processes and
asserts that all the actions ran concurrently.
- assertThatDex(File) - Static method in class com.android.testutils.truth.DexSubject
-
- assertThatDex(File) - Static method in class com.android.testutils.truth.MoreTruth
-
- assertThatOnlyOneActionIsExecuted() - Method in class com.android.testutils.concurrency.ConcurrencyTester
-
Executes the invocations of the method under test in separate threads and asserts that one
and only one of the actions was executed.
- assertThatZip(File) - Static method in class com.android.testutils.truth.MoreTruth
-
Deprecated.
- assertThatZip(Zip) - Static method in class com.android.testutils.truth.MoreTruth
-
- assertThatZip(File) - Static method in class com.android.testutils.truth.ZipFileSubject
-
Deprecated.
- assumeIsLinux() - Static method in class com.android.testutils.AssumeUtil
-
- assumeNotWindows() - Static method in class com.android.testutils.AssumeUtil
-
- assumeNotWindowsBot() - Static method in class com.android.testutils.AssumeUtil
-
- AssumeUtil - Class in com.android.testutils
-
- AssumeUtil() - Constructor for class com.android.testutils.AssumeUtil
-
- assumeWindows() - Static method in class com.android.testutils.AssumeUtil
-
- awaitTermination(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
-
- get(int) - Method in class com.android.testutils.apk.SplitApks
-
- get() - Method in class com.android.testutils.VirtualTimeFuture
-
- get(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeFuture
-
- getAapt2() - Static method in class com.android.testutils.TestUtils
-
Returns the checked in AAPT2 binary that is shipped with the gradle plugin.
- getActions() - Method in class com.android.testutils.filesystemdiff.Script
-
- getActionsExecuted() - Method in class com.android.testutils.VirtualTimeScheduler
-
- getActionsQueued() - Method in class com.android.testutils.VirtualTimeScheduler
-
- getAllClasses() - Method in class com.android.testutils.apk.SplitApks
-
- getAllDexes() - Method in class com.android.testutils.apk.DexAndroidArchive
-
- getAllDexes() - Method in class com.android.testutils.apk.SplitApks
-
- getAndroidManifestContentsAsString() - Method in class com.android.testutils.apk.Aar
-
Returns the contents of the AAR's AndroidManifest.xml entry as a String; returns null if the
AAR doesn't have an AndroidManifest.xml entry.
- getCallable() - Method in class com.android.testutils.VirtualTimeFuture
-
Gets the Callable this future is created for.
- getChildEntries() - Method in class com.android.testutils.filesystemdiff.DirectoryEntry
-
- getChildEntries() - Method in class com.android.testutils.filesystemdiff.FileSystemEntry
-
- getClass(String) - Method in class com.android.testutils.apk.DexAndroidArchive
-
- getClass(DexBackedDexFile, String) - Static method in class com.android.testutils.truth.DexUtils
-
- getClass(Collection<DexBackedDexFile>, String) - Static method in class com.android.testutils.truth.DexUtils
-
- getClasses() - Method in class com.android.testutils.apk.Dex
-
- getContentsSize() - Method in class com.android.testutils.apk.Apk
-
Returns the total size of all the contents in the APK.
- getCurrentTimeNanos() - Method in class com.android.testutils.VirtualTimeScheduler
-
- getDelay(TimeUnit) - Method in class com.android.testutils.VirtualTimeFuture
-
- getDesugarLibConfigContentWithVersion(String) - Static method in class com.android.testutils.TestUtils
-
- getDesugarLibConfigJarWithVersion(String) - Static method in class com.android.testutils.TestUtils
-
- getDesugarLibJarWithVersion(String) - Static method in class com.android.testutils.TestUtils
-
- getDiff(String, String) - Static method in class com.android.testutils.TestUtils
-
- getDiff(String, String, int) - Static method in class com.android.testutils.TestUtils
-
- getDiff(String[], String[]) - Static method in class com.android.testutils.TestUtils
-
- getDiff(String[], String[], int) - Static method in class com.android.testutils.TestUtils
-
- getDirectory(String) - Static method in class com.android.testutils.TestResources
-
- getDirectory(Class<?>, String) - Static method in class com.android.testutils.TestResources
-
Returns a file that is a directory from resources.
- getEntries(String) - Method in class com.android.testutils.apk.SplitApks
-
- getEntries() - Method in class com.android.testutils.apk.Zip
-
- getEntries(Pattern) - Method in class com.android.testutils.apk.Zip
-
- getEntry(String) - Method in class com.android.testutils.apk.Zip
-
- getEntryAsZip(String) - Method in class com.android.testutils.apk.Zip
-
- getFile() - Method in class com.android.testutils.apk.Zip
-
- getFile(String) - Static method in class com.android.testutils.TestResources
-
- getFile(Class<?>, String) - Static method in class com.android.testutils.TestResources
-
Returns a file from class resources.
- getFileInDirectory(Class<?>, String, String) - Static method in class com.android.testutils.TestResources
-
Given a resourceName relative to clazz, copies the resource to a new file
at filePath and registers that to be deleted when the JVM exits.
- getFolderName() - Method in enum com.android.testutils.OsType
-
The name of this OS as it appears on disk.
- getFurthestScheduledTimeNanos() - Method in class com.android.testutils.VirtualTimeScheduler
-
- getHostOs() - Static method in enum com.android.testutils.OsType
-
- getId() - Method in class com.android.testutils.VirtualTimeFuture
-
Helper used by the scheduler's Comparator to distinguish/order futures scheduled for the same time.
- getJavaResource(String) - Method in class com.android.testutils.apk.Aar
-
- getJavaResource(String) - Method in class com.android.testutils.apk.AndroidArchive
-
- getJavaResource(String) - Method in class com.android.testutils.apk.Apk
-
- getKind() - Method in class com.android.testutils.filesystemdiff.DirectoryEntry
-
- getKind() - Method in class com.android.testutils.filesystemdiff.FileEntry
-
- getKind() - Method in class com.android.testutils.filesystemdiff.FileSystemEntry
-
- getKind() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkEntry
-
- getKotlinVersionForTests() - Static method in class com.android.testutils.TestUtils
-
Returns Kotlin version that is used in new project templates and integration tests.
- getLatestAndroidPlatform() - Static method in class com.android.testutils.TestUtils
-
- getMainDexFile() - Method in class com.android.testutils.apk.DexAndroidArchive
-
- getMessages() - Method in class com.android.testutils.MockLog
-
- getName() - Method in class com.android.testutils.filesystemdiff.FileSystemEntry
-
- getNdk() - Static method in class com.android.testutils.TestUtils
-
Returns the path to checked-in NDK.
- getOffset() - Method in class com.android.testutils.VirtualTimeFuture
-
Gets the Offset between invocations of the action behind this future, for repeated actions only.
- getOsName() - Static method in enum com.android.testutils.OsType
-
Get the display-friendly name of the current system's OS.
- getOwningScheduler() - Method in class com.android.testutils.VirtualTimeFuture
-
Gets the VirtualTimeScheduler this future is associated with.
- getPath() - Method in class com.android.testutils.filesystemdiff.FileSystemEntry
-
- getPath() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkDefinition
-
- getPath(Class<?>) - Static method in class com.android.testutils.TestInputsGenerator
-
- getPlatformFile(String) - Static method in class com.android.testutils.TestUtils
-
- getQueue() - Method in class com.android.testutils.VirtualTimeScheduler
-
- getRelativeSdk() - Static method in class com.android.testutils.TestUtils
-
Returns the SDK directory relative to the workspace.
- getRemoteSdk() - Static method in class com.android.testutils.TestUtils
-
Returns the remote SDK directory.
- getRepeatKind() - Method in class com.android.testutils.VirtualTimeFuture
-
Describes if this future is repeated and if so how.
- getResource(String) - Method in class com.android.testutils.apk.AndroidArchive
-
- getRoot(String...) - Static method in class com.android.testutils.TestUtils
-
- getRunnable() - Method in class com.android.testutils.VirtualTimeFuture
-
Gets the Runnable this future is created for.
- getSdk() - Static method in class com.android.testutils.TestUtils
-
Returns the SDK directory.
- getSecondaryDexFiles() - Method in class com.android.testutils.apk.DexAndroidArchive
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.Action
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.CreateDirectoryAction
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.CreateFileAction
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.CreateSymbolicLinkAction
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.DeleteDirectoryAction
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.DeleteFileAction
-
- getSourceEntry() - Method in class com.android.testutils.filesystemdiff.DeleteSymbolicLinkAction
-
- getStrings() - Method in class com.android.testutils.apk.Dex
-
- getTarget() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkDefinition
-
- getTarget() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkEntry
-
- getTestOutputDir() - Static method in class com.android.testutils.TestUtils
-
- getTick() - Method in class com.android.testutils.VirtualTimeFuture
-
Gets the virtual time in nano seconds that this future is scheduled to execute at.
- getVersion() - Method in class com.android.testutils.apk.Dex
-
- getWorkspaceFile(String) - Static method in class com.android.testutils.TestUtils
-
Given a full path to a file from the base of the current workspace, return the file.
- getWorkspaceRoot() - Static method in class com.android.testutils.TestUtils
-
Returns the root of the entire Android Studio codebase.
- GIT_DIFF - Static variable in class com.android.testutils.diff.UnifiedDiff
-
- valueOf(String) - Static method in enum com.android.testutils.ApiTester.Filter
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.testutils.ApiTester.Flag
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.testutils.diff.UnifiedDiff.Chunk.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.testutils.filesystemdiff.FileSystemEntry.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.testutils.OsType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.testutils.VirtualTimeRepeatKind
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.android.testutils.ApiTester.Filter
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.android.testutils.ApiTester.Flag
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.android.testutils.diff.UnifiedDiff.Chunk.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.android.testutils.filesystemdiff.FileSystemEntry.Kind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.android.testutils.OsType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.android.testutils.VirtualTimeRepeatKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verbose(String, Object...) - Method in class com.android.testutils.MockLog
-
- VirtualTimeDateProvider - Class in com.android.testutils
-
An implementation of
DateProvider that uses the virtual notion of time of a
VirtualTimeScheduler to provide a presentation of "now".
- VirtualTimeDateProvider(VirtualTimeScheduler) - Constructor for class com.android.testutils.VirtualTimeDateProvider
-
- VirtualTimeFuture<T> - Class in com.android.testutils
-
- VirtualTimeRepeatKind - Enum in com.android.testutils
-
- VirtualTimeScheduler - Class in com.android.testutils
-
- VirtualTimeScheduler() - Constructor for class com.android.testutils.VirtualTimeScheduler
-