Skip navigation links
A B C D E F G H I J K L M N O P R S T V W Z 

A

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(FailureStrategy, 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.
addChildEntry(FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.DirectoryEntry
 
addClassInvocationFromNewProcess(Class, String[]) - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester
Adds a new invocation of the class under test's main() method to this InterProcessConcurrencyTester instance.
addCreateEntry(FileSystemEntry, FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.Script
 
addDeleteEntry(FileSystemEntry) - Method in class com.android.testutils.filesystemdiff.Script
 
addMethodInvocationFromNewThread(Consumer<Function<F, T>>, Function<F, T>) - Method in class com.android.testutils.concurrency.ConcurrencyTester
Adds a new invocation of the method under test to this ConcurrencyTester instance.
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
 
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
 
assertThat(File) - Static method in class com.android.testutils.truth.MoreTruth
 
assertThat(Path) - Static method in class com.android.testutils.truth.MoreTruth
 
assertThat(FileRecord) - Static method in class com.android.testutils.truth.MoreTruth
 
assertThat(Zip) - Static method in class com.android.testutils.truth.MoreTruth
 
assertThat(Dex) - Static method in class com.android.testutils.truth.MoreTruth
 
assertThat(Optional<T>) - Static method in class com.android.testutils.truth.MoreTruth
 
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.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
 
assertThatZip(Zip) - Static method in class com.android.testutils.truth.MoreTruth
 
assumeThat(Path) - Static method in class com.android.testutils.truth.MoreTruth
 
awaitTermination(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 

B

BazelRunfilesManifestProcessor - Class in com.android.testutils
 
BazelRunfilesManifestProcessor() - Constructor for class com.android.testutils.BazelRunfilesManifestProcessor
 
buildFromFileSystem(Path) - Static method in class com.android.testutils.filesystemdiff.TreeBuilder
 
buildFromSymbolicLinkDefinitions(Path, Iterable<SymbolicLinkDefinition>) - Static method in class com.android.testutils.filesystemdiff.TreeBuilder
 

C

cancel(boolean) - Method in class com.android.testutils.VirtualTimeFuture
 
checkValidClassName(String) - Static method in class com.android.testutils.apk.AndroidArchive
 
CLASS_FORMAT - Static variable in class com.android.testutils.apk.AndroidArchive
 
classWithEmptyMethods(String, String...) - Static method in class com.android.testutils.TestClassesGenerator
Generates a class containing specified methods that contain empty bodies.
classWithFieldsAndMethods(String, List<String>, List<String>) - Static method in class com.android.testutils.TestClassesGenerator
Generates a class containing specified fields and methods.
classWithStrings(String, int) - Static method in class com.android.testutils.TestClassesGenerator
Generates a class containing specified fields and methods.
clear() - Method in class com.android.testutils.MockLog
 
close() - Method in class com.android.testutils.apk.SplitApks
 
close() - Method in class com.android.testutils.apk.Zip
 
close() - Method in class com.android.testutils.SystemPropertyOverrides
 
close() - Method in class com.android.testutils.truth.AbstractZipSubject
 
com.android.testutils - package com.android.testutils
 
com.android.testutils.apk - package com.android.testutils.apk
 
com.android.testutils.classloader - package com.android.testutils.classloader
 
com.android.testutils.concurrency - package com.android.testutils.concurrency
 
com.android.testutils.filesystemdiff - package com.android.testutils.filesystemdiff
 
com.android.testutils.incremental - package com.android.testutils.incremental
 
com.android.testutils.truth - package com.android.testutils.truth
 
compareTo(Delayed) - Method in class com.android.testutils.VirtualTimeFuture
 
compute() - Method in class com.android.testutils.filesystemdiff.TreeBuilder.TraverseDirectoryTask
 
computeEditScript(FileSystemEntry, FileSystemEntry) - Static method in class com.android.testutils.filesystemdiff.TreeDifferenceEngine
 
ConcurrencyTester<F,T> - Class in com.android.testutils.concurrency
Utility class to test concurrency.
ConcurrencyTester() - Constructor for class com.android.testutils.concurrency.ConcurrencyTester
 
contains(String) - Method in class com.android.testutils.truth.AbstractZipSubject
Asserts the zip file contains a file with the specified path.
contains(String) - Method in class com.android.testutils.truth.FileSubject
 
contains(byte[]) - Method in class com.android.testutils.truth.FileSubject
 
contains(String) - Method in class com.android.testutils.truth.ZipFileSubject
 
containsAllOf(String...) - Method in class com.android.testutils.truth.FileSubject
 
containsClass(String) - Method in class com.android.testutils.apk.AndroidArchive
 
containsClass(String) - Method in class com.android.testutils.truth.DexSubject
 
containsClasses(String...) - Method in class com.android.testutils.truth.DexSubject
 
containsClassesIn(Iterable<String>) - Method in class com.android.testutils.truth.DexSubject
 
containsExactlyClassesIn(Iterable<String>) - Method in class com.android.testutils.truth.DexSubject
 
containsFile(String) - Method in class com.android.testutils.truth.FileSubject
 
containsFileWithContent(String, String) - Method in class com.android.testutils.truth.AbstractZipSubject
Asserts the zip file contains a file with the specified String content.
containsFileWithContent(String, byte[]) - Method in class com.android.testutils.truth.AbstractZipSubject
Asserts the zip file contains a file with the specified byte array content.
containsFileWithMatch(String, String) - Method in class com.android.testutils.truth.AbstractZipSubject
 
containsFileWithoutContent(String, String) - Method in class com.android.testutils.truth.AbstractZipSubject
Asserts the zip file contains a file without the specified byte sequence anywhere in the file
containsMainClass(String) - Method in class com.android.testutils.apk.Aar
 
containsMainClass(String) - Method in class com.android.testutils.apk.AndroidArchive
 
containsMainClass(String) - Method in class com.android.testutils.apk.DexAndroidArchive
 
containsSecondaryClass(String) - Method in class com.android.testutils.apk.Aar
 
containsSecondaryClass(String) - Method in class com.android.testutils.apk.AndroidArchive
 
containsSecondaryClass(String) - Method in class com.android.testutils.apk.DexAndroidArchive
 
contentWithUnixLineSeparatorsIsExactly(String) - Method in class com.android.testutils.truth.FileSubject
 
CreateDirectoryAction - Class in com.android.testutils.filesystemdiff
 
CreateDirectoryAction(DirectoryEntry, DirectoryEntry) - Constructor for class com.android.testutils.filesystemdiff.CreateDirectoryAction
 
CreateFileAction - Class in com.android.testutils.filesystemdiff
 
CreateFileAction(FileEntry, FileEntry) - Constructor for class com.android.testutils.filesystemdiff.CreateFileAction
 
CreateSymbolicLinkAction - Class in com.android.testutils.filesystemdiff
 
CreateSymbolicLinkAction(SymbolicLinkEntry, SymbolicLinkEntry) - Constructor for class com.android.testutils.filesystemdiff.CreateSymbolicLinkAction
 
createTempDirDeletedOnExit() - Static method in class com.android.testutils.TestUtils
 

D

DeleteDirectoryAction - Class in com.android.testutils.filesystemdiff
 
DeleteDirectoryAction(DirectoryEntry) - Constructor for class com.android.testutils.filesystemdiff.DeleteDirectoryAction
 
deleteFile(File) - Static method in class com.android.testutils.TestUtils
 
DeleteFileAction - Class in com.android.testutils.filesystemdiff
 
DeleteFileAction(FileEntry) - Constructor for class com.android.testutils.filesystemdiff.DeleteFileAction
 
DeleteSymbolicLinkAction - Class in com.android.testutils.filesystemdiff
 
DeleteSymbolicLinkAction(SymbolicLinkEntry) - Constructor for class com.android.testutils.filesystemdiff.DeleteSymbolicLinkAction
 
Dex - Class in com.android.testutils.apk
 
Dex(Path) - Constructor for class com.android.testutils.apk.Dex
 
Dex(File) - Constructor for class com.android.testutils.apk.Dex
 
Dex(byte[], String) - Constructor for class com.android.testutils.apk.Dex
 
DexAndroidArchive - Class in com.android.testutils.apk
 
DexAndroidArchive(Path, String, String) - Constructor for class com.android.testutils.apk.DexAndroidArchive
 
DexClassSubject - Class in com.android.testutils.truth
 
DexSubject - Class in com.android.testutils.truth
 
DexUtils - Class in com.android.testutils.truth
 
DirectoryEntry - Class in com.android.testutils.filesystemdiff
 
DirectoryEntry(Path) - Constructor for class com.android.testutils.filesystemdiff.DirectoryEntry
 
dirWithEmptyClasses(Path, Collection<String>) - Static method in class com.android.testutils.TestInputsGenerator
Generates a dir containing empty classes with the specified names.
doesNotContain(String) - Method in class com.android.testutils.truth.AbstractZipSubject
Asserts the zip file does not contains a file with the specified path.
doesNotContain(String) - Method in class com.android.testutils.truth.FileSubject
 
doesNotContain(String) - Method in class com.android.testutils.truth.ZipFileSubject
 
doesNotContainClasses(String...) - Method in class com.android.testutils.truth.DexSubject
 
doesNotContainFile(String) - Method in class com.android.testutils.truth.FileSubject
 
doesNotExist() - Method in class com.android.testutils.truth.AbstractZipSubject
 
doesNotExist() - Method in class com.android.testutils.truth.FileSubject
 
doesNotExist() - Method in class com.android.testutils.truth.PathSubject
 
doesNotHaveField(String) - Method in class com.android.testutils.truth.DexClassSubject
 
doesNotHaveMethod(String) - Method in class com.android.testutils.truth.DexClassSubject
 

E

emptyClass(String, String) - Static method in class com.android.testutils.TestClassesGenerator
Generates an empty class in the specified package.
emptyClass(String, String, String) - Static method in class com.android.testutils.TestClassesGenerator
 
entries(String) - Method in class com.android.testutils.truth.AbstractZipSubject
Returns a IterableSubject of all the Zip entries which name matches the passed regular expression.
error(Throwable, String, Object...) - Method in class com.android.testutils.MockLog
 
error(Throwable, String, Object...) - Method in class com.android.testutils.NoErrorsOrWarningsLogger
 
eventually(Runnable) - Static method in class com.android.testutils.TestUtils
Asserts that a runnable will eventually not throw an assertion exception.
eventually(Runnable, Duration) - Static method in class com.android.testutils.TestUtils
Asserts that a runnable will eventually not throw AssertionError before timeoutMs milliseconds have ellapsed
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.Action
 
execute(ILogger, Action) - Method in class com.android.testutils.filesystemdiff.ActionExecutor
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.CreateDirectoryAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.CreateFileAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.CreateSymbolicLinkAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.DeleteDirectoryAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.DeleteFileAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.DeleteSymbolicLinkAction
 
execute(ILogger) - Method in class com.android.testutils.filesystemdiff.Script
 
execute(ILogger, ActionExecutor) - Method in class com.android.testutils.filesystemdiff.Script
 
execute(Runnable) - Method in class com.android.testutils.VirtualTimeScheduler
 
exists() - Method in class com.android.testutils.apk.Zip
 
exists() - Method in class com.android.testutils.truth.AbstractZipSubject
 
exists() - Method in class com.android.testutils.truth.FileSubject
 
exists() - Method in class com.android.testutils.truth.PathSubject
 
extractContentAsBytes(String) - Method in class com.android.testutils.truth.AbstractZipSubject
 
extractContentAsString(String) - Method in class com.android.testutils.truth.AbstractZipSubject
 

F

FACTORY - Static variable in class com.android.testutils.truth.DexClassSubject
 
FACTORY - Static variable in class com.android.testutils.truth.DexSubject
 
FACTORY - Static variable in class com.android.testutils.truth.FileRecordSubject
 
FACTORY - Static variable in class com.android.testutils.truth.FileSubject
 
factory() - Static method in class com.android.testutils.truth.FileSubjectFactory
 
FACTORY - Static variable in class com.android.testutils.truth.PathSubject
 
FACTORY - Static variable in class com.android.testutils.truth.ZipFileSubject
 
FileEntry - Class in com.android.testutils.filesystemdiff
 
FileEntry(Path) - Constructor for class com.android.testutils.filesystemdiff.FileEntry
 
FileRecord - Class in com.android.testutils.incremental
Record of a file for verify if a File has changed.
FileRecordSubject - Class in com.android.testutils.truth
Truth support for validating FileRecord.
FileRecordSubject(FailureStrategy, FileRecord) - Constructor for class com.android.testutils.truth.FileRecordSubject
 
FileSubject - Class in com.android.testutils.truth
Truth support for validating File.
FileSubject(FailureStrategy, File) - Constructor for class com.android.testutils.truth.FileSubject
 
FileSubjectFactory - Class in com.android.testutils.truth
Factory to add truth support for File.
FileSystemEntry - Class in com.android.testutils.filesystemdiff
 
FileSystemEntry(Path) - Constructor for class com.android.testutils.filesystemdiff.FileSystemEntry
 
FileSystemEntry.Kind - Enum in com.android.testutils.filesystemdiff
 

G

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
 
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
 
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(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
 
getCurrentTimeNanos() - Method in class com.android.testutils.VirtualTimeScheduler
 
getDelay(TimeUnit) - Method in class com.android.testutils.VirtualTimeFuture
 
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
Variant of TestResources.getDirectory(Class, String) that only works with absolute paths, so doesn't need a "context" class.
getDirectory(Class<?>, String) - Static method in class com.android.testutils.TestResources
Returns a file that is a directory from resources.
getDisplaySubject() - Method in class com.android.testutils.truth.DexClassSubject
 
getDisplaySubject() - Method in class com.android.testutils.truth.DexSubject
 
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() - Method in class com.android.testutils.incremental.FileRecord
 
getFile(String) - Static method in class com.android.testutils.TestResources
Variant of TestResources.getFile(Class, String) that only works with absolute paths, so doesn't need a "context" class.
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
 
getHash() - Method in class com.android.testutils.incremental.FileRecord
 
getHostOs() - Static method in enum com.android.testutils.OsType
Get the matching OsType for the current system's OS (or OsType.UNKNOWN if no match).
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
 
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
 
getPlatformFile(String) - Static method in class com.android.testutils.TestUtils
Returns a file at path relative to the root for TestUtils.getLatestAndroidPlatform().
getQueue() - Method in class com.android.testutils.VirtualTimeScheduler
 
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
 
getSubject(FailureStrategy, File) - Method in class com.android.testutils.truth.FileSubjectFactory
 
getTarget() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkDefinition
 
getTarget() - Method in class com.android.testutils.filesystemdiff.SymbolicLinkEntry
 
getTick() - Method in class com.android.testutils.VirtualTimeFuture
Gets the virtual time in nano seconds that this future is scheduled to execute at.
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.

H

hasChanged() - Method in class com.android.testutils.truth.FileRecordSubject
 
hasContents(String) - Method in class com.android.testutils.truth.FileSubject
 
hasContents(byte[]) - Method in class com.android.testutils.truth.PathSubject
 
hasField(String) - Method in class com.android.testutils.truth.DexClassSubject
 
hasMethod(String) - Method in class com.android.testutils.truth.DexClassSubject
 
hasMethods(String...) - Method in class com.android.testutils.truth.DexClassSubject
 
hasMethodWithLineInfoCount(String, int) - Method in class com.android.testutils.truth.DexClassSubject
 
hasName(String) - Method in class com.android.testutils.truth.FileSubject
 
hasName(String) - Method in class com.android.testutils.truth.PathSubject
 
hasNotChanged() - Method in class com.android.testutils.truth.FileRecordSubject
 
hasValueEqualTo(T) - Method in class com.android.testutils.truth.Java8OptionalSubject
 

I

IndirectSubject<S extends com.google.common.truth.Subject> - Interface in com.android.testutils.truth
Make assertions more readable as english.
info(String, Object...) - Method in class com.android.testutils.MockLog
 
InterProcessConcurrencyTester - Class in com.android.testutils.concurrency
Utility class to test inter-process concurrency.
InterProcessConcurrencyTester() - Constructor for class com.android.testutils.concurrency.InterProcessConcurrencyTester
 
InterProcessConcurrencyTester.MainProcessNotifier - Class in com.android.testutils.concurrency
Class to be used by client processes (which are executing the actions under test) to notify the main process of events happening in the client processes.
invokeAll(Collection<? extends Callable<T>>) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAny(Collection<? extends Callable<T>>) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
isAbsent() - Method in class com.android.testutils.truth.Java8OptionalSubject
 
isCancelled() - Method in class com.android.testutils.VirtualTimeFuture
 
isDirectory() - Method in class com.android.testutils.truth.FileSubject
 
isDirectory() - Method in class com.android.testutils.truth.PathSubject
 
isDone() - Method in class com.android.testutils.VirtualTimeFuture
 
isExecutable() - Method in class com.android.testutils.truth.PathSubject
 
isFile() - Method in class com.android.testutils.truth.FileSubject
 
isFile() - Method in class com.android.testutils.truth.PathSubject
 
isNewerThan(long) - Method in class com.android.testutils.truth.FileSubject
 
isNewerThan(File) - Method in class com.android.testutils.truth.FileSubject
 
isPresent() - Method in class com.android.testutils.truth.Java8OptionalSubject
 
isShutdown() - Method in class com.android.testutils.VirtualTimeScheduler
 
isTerminated() - Method in class com.android.testutils.VirtualTimeScheduler
 

J

JarTestSuite - Class in com.android.testutils
 
JarTestSuite() - Constructor for class com.android.testutils.JarTestSuite
 
JarTestSuiteRunner - Class in com.android.testutils
 
JarTestSuiteRunner(Class<?>, RunnerBuilder) - Constructor for class com.android.testutils.JarTestSuiteRunner
 
JarTestSuiteRunner.ExcludeClasses - Annotation Type in com.android.testutils
Putatively temporary mechanism to avoid running certain classes.
jarWithEmptyClasses(Path, Collection<String>) - Static method in class com.android.testutils.TestInputsGenerator
Generates a jar containing empty classes with the specified names.
Java8OptionalSubject<T> - Class in com.android.testutils.truth
Truth Subject for Java 8 Optional.
Java8OptionalSubject(FailureStrategy, Optional<T>) - Constructor for class com.android.testutils.truth.Java8OptionalSubject
 

K

KOTLIN_VERSION_FOR_TESTS - Static variable in class com.android.testutils.TestUtils
Kotlin version that is used in new project templates and integration tests.

L

load() - Method in class com.android.testutils.classloader.MultiClassLoader
 
load() - Method in class com.android.testutils.classloader.SingleClassLoader
 
loadClass(String) - Method in class com.android.testutils.classloader.MultiClassLoader
 
loadClass(String) - Method in class com.android.testutils.classloader.SingleClassLoader
 
loadDex(byte[]) - Static method in class com.android.testutils.truth.DexUtils
 
loadDex(Path) - Static method in class com.android.testutils.truth.DexUtils
 
loadDex(File) - Static method in class com.android.testutils.truth.DexUtils
 
logger - Static variable in class com.android.testutils.BazelRunfilesManifestProcessor
 

M

MainProcessNotifier(int) - Constructor for class com.android.testutils.concurrency.InterProcessConcurrencyTester.MainProcessNotifier
Creates a new instance of MainProcessNotifier.
MockLog - Class in com.android.testutils
An instance of ILogger that captures all messages to an internal list.
MockLog() - Constructor for class com.android.testutils.MockLog
 
MoreTruth - Class in com.android.testutils.truth
Additional entry point to Truth framework for custom Subject.
MoreTruth() - Constructor for class com.android.testutils.truth.MoreTruth
 
MultiClassLoader - Class in com.android.testutils.classloader
A custom class loader that loads a given list of classes and delegates loading other classes to the default class loaders.
MultiClassLoader(List<String>) - Constructor for class com.android.testutils.classloader.MultiClassLoader
 

N

NoErrorsOrWarningsLogger - Class in com.android.testutils
 
NoErrorsOrWarningsLogger() - Constructor for class com.android.testutils.NoErrorsOrWarningsLogger
 
now() - Method in class com.android.testutils.VirtualTimeDateProvider
 

O

of(File) - Static method in class com.android.testutils.incremental.FileRecord
 
OsType - Enum in com.android.testutils
Enumeration of supported OSes, plus some helpful utility methods.

P

PathSubject - Class in com.android.testutils.truth
Truth support for validating java.nio.file.Path.
PathSubject(FailureStrategy, Path) - Constructor for class com.android.testutils.truth.PathSubject
 
processStarted() - Method in class com.android.testutils.concurrency.InterProcessConcurrencyTester.MainProcessNotifier
Notifies the main process that the current client process has started execution.

R

rewriteToVersion(int, InputStream) - Static method in class com.android.testutils.TestClassesGenerator
Rewrites the version of the class file.
RUNFILES_MANIFEST_FILE_ENV - Static variable in class com.android.testutils.BazelRunfilesManifestProcessor
 
runningFromBazel() - Static method in class com.android.testutils.TestUtils
Checks if tests were started by Bazel.

S

schedule(Runnable, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
schedule(Callable<V>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
Script - Class in com.android.testutils.filesystemdiff
 
Script() - Constructor for class com.android.testutils.filesystemdiff.Script
 
setProperty(String, String) - Method in class com.android.testutils.SystemPropertyOverrides
Sets a system property (by calling System.setProperty(String, String)) while backing up the original value and replacing it once this class is closed.
setUp() - Static method in class com.android.testutils.JarTestSuite
 
setUpRunfiles() - Static method in class com.android.testutils.BazelRunfilesManifestProcessor
 
shutdown() - Method in class com.android.testutils.VirtualTimeScheduler
 
shutdownNow() - Method in class com.android.testutils.VirtualTimeScheduler
 
SingleClassLoader - Class in com.android.testutils.classloader
A custom class loader that loads only one given class and delegates loading other classes to the default class loaders.
SingleClassLoader(String) - Constructor for class com.android.testutils.classloader.SingleClassLoader
 
size() - Method in class com.android.testutils.apk.SplitApks
 
SplitApks - Class in com.android.testutils.apk
Represents a collection of split APKs, such as from a instant run cold swap.
SplitApks(List<Apk>) - Constructor for class com.android.testutils.apk.SplitApks
 
submit(Callable<T>) - Method in class com.android.testutils.VirtualTimeScheduler
 
submit(Runnable, T) - Method in class com.android.testutils.VirtualTimeScheduler
 
submit(Runnable) - Method in class com.android.testutils.VirtualTimeScheduler
 
SymbolicLinkDefinition - Class in com.android.testutils.filesystemdiff
 
SymbolicLinkDefinition(Path, Path) - Constructor for class com.android.testutils.filesystemdiff.SymbolicLinkDefinition
 
SymbolicLinkEntry - Class in com.android.testutils.filesystemdiff
 
SymbolicLinkEntry(Path, Path) - Constructor for class com.android.testutils.filesystemdiff.SymbolicLinkEntry
 
SystemPropertyOverrides - Class in com.android.testutils
Utility to make it easier for tests to override system properties (instead of directly using System.setProperty(String, String)).
SystemPropertyOverrides() - Constructor for class com.android.testutils.SystemPropertyOverrides
 

T

TEST_SRCDIR_ENV - Static variable in class com.android.testutils.BazelRunfilesManifestProcessor
 
TestClassesGenerator - Class in com.android.testutils
A class generator used to create classes that can be used in tests.
TestClassesGenerator() - Constructor for class com.android.testutils.TestClassesGenerator
 
TestInputsGenerator - Class in com.android.testutils
Utility methods for generating inputs to be used in tests.
TestInputsGenerator() - Constructor for class com.android.testutils.TestInputsGenerator
 
TestResources - Class in com.android.testutils
Util class to help get testing resources.
TestUtils - Class in com.android.testutils
Utility methods to deal with loading the test data.
TestUtils() - Constructor for class com.android.testutils.TestUtils
 
that() - Method in interface com.android.testutils.truth.IndirectSubject
 
toString() - Method in class com.android.testutils.apk.Aar
 
toString() - Method in class com.android.testutils.apk.Apk
 
toString() - Method in class com.android.testutils.apk.Dex
 
toString() - Method in class com.android.testutils.apk.SplitApks
 
toString() - Method in class com.android.testutils.apk.Zip
 
toString() - Method in class com.android.testutils.incremental.FileRecord
 
toString() - Method in class com.android.testutils.MockLog
 
TraverseDirectoryTask(DirectoryEntry) - Constructor for class com.android.testutils.filesystemdiff.TreeBuilder.TraverseDirectoryTask
 
TreeBuilder - Class in com.android.testutils.filesystemdiff
 
TreeBuilder() - Constructor for class com.android.testutils.filesystemdiff.TreeBuilder
 
TreeBuilder.TraverseDirectoryTask - Class in com.android.testutils.filesystemdiff
 
TreeDifferenceEngine - Class in com.android.testutils.filesystemdiff
 
TreeDifferenceEngine() - Constructor for class com.android.testutils.filesystemdiff.TreeDifferenceEngine
 

V

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.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
Future used by the VirtualTimeScheduler to track the actions scheduled on it.
VirtualTimeRepeatKind - Enum in com.android.testutils
Used in the VirtualTimeScheduler and VirtualTimeFuture to determine if and how the scheduled job should be repeated.
VirtualTimeScheduler - Class in com.android.testutils
VirtualTimeScheduler is a ScheduledExecutorService that uses a virtual notion of time.
VirtualTimeScheduler() - Constructor for class com.android.testutils.VirtualTimeScheduler
 

W

waitForFileSystemTick() - Static method in class com.android.testutils.TestUtils
Sleeps the current thread for enough time to ensure that the local file system had enough time to notice a "tick".
waitForFileSystemTick(long) - Static method in class com.android.testutils.TestUtils
Sleeps the current thread for enough time to ensure that the local file system had enough time to notice a "tick".
warning(String, Object...) - Method in class com.android.testutils.MockLog
 
warning(String, Object...) - Method in class com.android.testutils.NoErrorsOrWarningsLogger
 
wasModifiedAt(long) - Method in class com.android.testutils.truth.FileSubject
 
writeJarWithEmptyEntries(Path, Iterable<String>) - Static method in class com.android.testutils.TestInputsGenerator
 

Z

Zip - Class in com.android.testutils.apk
 
Zip(Path) - Constructor for class com.android.testutils.apk.Zip
 
Zip(File) - Constructor for class com.android.testutils.apk.Zip
 
ZipFileSubject - Class in com.android.testutils.truth
Truth support for zip files.
ZipFileSubject(FailureStrategy, Zip) - Constructor for class com.android.testutils.truth.ZipFileSubject
 
A B C D E F G H I J K L M N O P R S T V W Z 
Skip navigation links