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

A

add(LintDetectorTest.TestFile, String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
add(LintDetectorTest.TestFile) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
addCleanupDir(File) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
addSelection(String, int, int) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
allowAndroidBuildEnvironment() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
Normally having $ANDROID_BUILD_TOP set when running lint is a bad idea (because it enables some special support in lint for checking code in AOSP itself.) However, some lint tests (particularly custom lint checks) may not care about this.
allowAndroidBuildEnvironment() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
Normally having $ANDROID_BUILD_TOP set when running lint is a bad idea (because it enables some special support in lint for checking code in AOSP itself.) However, some lint tests (particularly custom lint checks) may not care about this.
allowAndroidBuildEnvironment() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
Normally having $ANDROID_BUILD_TOP set when running lint is a bad idea (because it enables some special support in lint for checking code in AOSP itself.) However, some lint tests (particularly custom lint checks) may not care about this.
allowCompilationErrors() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
allowCompilationErrors() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to allow compilation errors in the test files (normally not allowed)
allowCompilationErrors(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Sets whether the test task should allow compilation errors in the test files
allowSystemErrors(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Sets whether the test task should silently ignore lint infrastructure errors (such as missing .class files etc)
allowUnrecognizedConstructs() - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
analyze(List<File>) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
analyze(List<File>, List<Issue>) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
assertEqualsGolden(String, String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
assertEqualsGolden(String, String, String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 

B

base64(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
Creates a test file from the given base64 data.
base64(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
Creates a test file from the given base64 data.
base64gzip(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
Decodes base64 strings into gzip data, then decodes that into a data file.
base64gzip(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
Decodes base64 strings into gzip data, then decodes that into a data file.
BaseLintDetectorTest - Class in com.android.tools.lint.checks.infrastructure
Base test case for lint tests.
BaseLintDetectorTest() - Constructor for class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
BinaryTestFile(String, TestFile.BytecodeProducer) - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.BinaryTestFile
 
bytecode(String, TestFile.BytecodeProducer) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
bytecode(String, TestFile.BytecodeProducer) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
BytecodeProducer() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.BytecodeProducer
 
ByteProducer() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.ByteProducer
 
bytes(String, byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
bytes - Variable in class com.android.tools.lint.checks.infrastructure.TestFile
 
bytes(String, byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 

C

checkLint(List<File>) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
checkLint(LintDetectorTest.TestLintClient, List<File>) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
checkLint(List<File>, List<Issue>) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
checkMessage(TestLintTask.ErrorMessageChecker) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures a custom error message checker to invoke on each reported error.
checkReportedError(Context, Issue, Severity, Location, String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
checkReportedError(Context, Issue, Severity, Location, String) - Method in interface com.android.tools.lint.checks.infrastructure.TestLintTask.ErrorMessageChecker
 
classpath(String...) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
classpath(String...) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
cleanup(String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
cleanup(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
cleanup(String) - Static method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
client(TestLintClient) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures lint to run with a custom lint client instead of the default one.
com.android.tools.lint.checks.infrastructure - package com.android.tools.lint.checks.infrastructure
 
compileSdk(int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
configure(LintDriver) - Method in interface com.android.tools.lint.checks.infrastructure.TestLintTask.LintDriverConfigurator
 
configureDriver(LintDriver) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
configureDriver(TestLintTask.LintDriverConfigurator) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Registers a hook to initialize the lint driver during test execution
contents - Variable in class com.android.tools.lint.checks.infrastructure.TestFile
 
copy(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
copy(String, String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
copy(String, TestResourceProvider) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
copy(String, TestResourceProvider) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
copy(String, TestResourceProvider) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
copy(String, String, TestResourceProvider) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
create(String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFile.JavaTestFile
 
create(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFile.JavaTestFile
 
createClient() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
createFile(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.BinaryTestFile
 
createFile(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
createFile(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
createFile(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
createFile(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
createProject(File, File) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
createProject(File, File) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
createProjects(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Creates lint test projects according to the configured project descriptions.
CustomIssueRegistry() - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest.CustomIssueRegistry
 
CustomIssueRegistry(List<Issue>) - Constructor for class com.android.tools.lint.checks.infrastructure.TestLintClient.CustomIssueRegistry
 
customRules(File...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to look for issues in the given set of custom rule jars
customScope(EnumSet<Scope>) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures a custom scope to use when lint is run instead of the default one

D

deleteFile(File) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
dependsOn(ProjectDescription) - Method in class com.android.tools.lint.checks.infrastructure.ProjectDescription
Adds the given project description as a direct dependency for this project
dependsOn(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
detector(Detector) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to use the given detector when determining which issues to run.

E

expect(String) - Method in class com.android.tools.lint.checks.infrastructure.TestLintResult
Checks that the lint result had the expected report format.
expectClean() - Method in class com.android.tools.lint.checks.infrastructure.TestLintResult
Checks that there were no errors or exceptions.

F

file() - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
file() - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
files(TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.ProjectDescription
Sets the given set of test files as the project contents
files(LintDetectorTest.TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
files(TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to check the given test files
fill(int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
fill(int, int, int, int, int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
fillOval(int, int, int, int, int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
findGlobalRuleJars() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
findGlobalRuleJars() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
findResource(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
findResource(String) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
findSrcDir() - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
Get the location to write missing golden files to
findSrcRelativeDir(String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
forceErrors() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
If true, simulate symbol resolutions when JavaParser.prepareJavaParse(List) is called
forceSymbolResolutionErrors - Variable in class com.android.tools.lint.checks.infrastructure.TestLintTask
 
forceSymbolResolutionErrors() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Tells the lint infrastructure to simulate symbol resolution errors.
format(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
from(String, TestResourceProvider) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
from(String, TestResourceProvider) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 

G

getBinaryContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.BinaryTestFile
 
getBinaryContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
getBuildSdk() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getCaretContext(String, int) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getCaretOffset(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getCheckedIssues() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Returns the list of issues to be checked by this run.
getClientRevision() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getClientRevision() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getCompileTarget(Project) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getCompileTarget(Project) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getConfiguration(LintClient, Project) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getConfiguration(Project, LintDriver) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getConfiguration(Project, LintDriver) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.BinaryTestFile
 
getContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
getContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
getContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
getContents() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
getCurrentVariant() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getDefaultSeverity(Issue) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
getDefaultSeverity(Issue) - Method in class com.android.tools.lint.checks.infrastructure.TestConfiguration
 
getDetector() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getDetectorInstance() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getErrors() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getErrors() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getGradleProjectModel() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getIssues() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.CustomIssueRegistry
 
getIssues() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getIssues() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.CustomIssueRegistry
 
getJavaParser(Project) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getJavaParser(Project) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getJavaSourceFolders() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getLintScope(List<File>) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getManifestFiles() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getMocker(File) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.GradleTestFile
 
getProject() - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
getProjectDir() - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
getProjectDir(String, String...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
getProjectDir(String, LintDetectorTest.TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
Creates a project directory structure from the given files
getProjectResourceLibraryName() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getProjectResourceLibraryName() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getReportIssues() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getResourceFolders() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
getResourceRepository(Project, boolean, boolean) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getResourceRepository(Project, boolean, boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getSdkHome() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getSuperClass(Project, String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getSuperClass(Project, String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getTargetDir() - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
Get the location to write missing golden files to
getTargetDir() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getTargetPath() - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
getTempDir() - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getTestDataRelPath() - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getTestfile(File, String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getTestResource(String, boolean) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
getTestResource(String, boolean) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
getTestResource(String, boolean) - Method in interface com.android.tools.lint.checks.infrastructure.TestResourceProvider
 
getTestSourceFolders(Project) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
getTestSourceFolders(Project) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
getVariant() - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
gradle(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
gradle(String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
gradle(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
gradle(String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
GradleModelMocker - Class in com.android.tools.lint.checks.infrastructure
A utility class which builds mocks for the Gradle builder-model API, by loosely interpreting .gradle files and building models based on recognizing common patterns there.
GradleModelMocker(String) - Constructor for class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
GradleTestFile(String, String) - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.GradleTestFile
 

I

ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.checks.infrastructure.TestConfiguration
 
ignoreSystemErrors() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
ignoreUnknownGradleConstructs() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Tells the lint infrastructure to silently ignore any unknown Gradle constructs it encounters when processing a Gradle file and attempting to build up mocks for the Gradle builder model
image(String, int, int) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
image(String, int, int) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
imageFormatSupported(String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
ImageTestFile(String, int, int) - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
includeParentPath() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
incremental(String) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to run incrementally, with the given file as the current file
incremental() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to run incrementally.
incrementalCheck - Variable in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
incrementalCheck - Variable in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
isAndroidProject() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
isEnabled(Issue) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
isEnabled(Issue) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
isEnabled(Issue) - Method in class com.android.tools.lint.checks.infrastructure.TestConfiguration
 
isGradleProject() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
isLibrary() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
issueIds(String...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to look for the given set of issue ids.
issues(Issue...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to look for the given set of issues.

J

jar(String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
jar(String, LintDetectorTest.TestFile...) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
jar(String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
jar(String, LintDetectorTest.TestFile...) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
JarTestFile(String) - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
java(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
java(String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
java(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
java(String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
JavaTestFile() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.JavaTestFile
 

L

library(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
lint() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
lint() - Static method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Creates a new lint test task
LintDetectorTest - Class in com.android.tools.lint.checks.infrastructure
Test case for lint detectors.
LintDetectorTest() - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
LintDetectorTest.CustomIssueRegistry - Class in com.android.tools.lint.checks.infrastructure
 
LintDetectorTest.TestConfiguration - Class in com.android.tools.lint.checks.infrastructure
 
LintDetectorTest.TestFile - Class in com.android.tools.lint.checks.infrastructure
Test file description, which can copy from resource directory or from a specified hardcoded string literal, and copy into a target directory
LintDetectorTest.TestLintClient - Class in com.android.tools.lint.checks.infrastructure
 
lintFiles(LintDetectorTest.TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
lintFiles(String...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
lintProject(String...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
lintProject(LintDetectorTest.TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
Run lint on the given files when constructed as a separate project
lintProjectIncrementally(String, String...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
lintProjectIncrementally(String, LintDetectorTest.TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
listener(LintListener) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the lint task to notify the given {@link LintListener during execution.
log(Throwable, String, Object...) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
log(Throwable, String, Object...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 

M

makeTestFile(File, String, String, InputStream) - Static method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
manifest() - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
manifest(String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
manifest() - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
manifestMerger(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
ManifestTestFile() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
minSdk - Variable in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
minSdk(int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
mocker - Variable in class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
modify(AndroidProject, Variant) - Method in interface com.android.tools.lint.checks.infrastructure.TestLintTask.GradleMockModifier
 
modifyGradleMocks(TestLintTask.GradleMockModifier) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
This method allows you to add a hook which you can run on a mock builder model to tweak it, such as changing or augmenting the builder model classes

N

name(String) - Method in class com.android.tools.lint.checks.infrastructure.ProjectDescription
Names the project; most useful in multi-project tests where the project name will be part of the error output

P

permissions - Variable in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
permissions(String...) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
pkg - Variable in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
pkg(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
populateProjectDirectory(File, LintDetectorTest.TestFile...) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
populateProjectDirectory(ProjectDescription, File, TestFile...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
 
produce() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.BytecodeProducer
Typically generated by first getting asm output like this:
produce() - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ByteProducer
 
project(LintDetectorTest.TestFile...) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
ProjectDescription - Class in com.android.tools.lint.checks.infrastructure
A description of a lint test project
ProjectDescription() - Constructor for class com.android.tools.lint.checks.infrastructure.ProjectDescription
Creates a new project description
ProjectDescription(TestFile...) - Constructor for class com.android.tools.lint.checks.infrastructure.ProjectDescription
Creates a new project with the given set of files
ProjectDescription.Type - Enum in com.android.tools.lint.checks.infrastructure
Describes different types of lint test projects
projectProperties() - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
projectProperties() - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
projects - Variable in class com.android.tools.lint.checks.infrastructure.TestLintTask
 
projects(ProjectDescription...) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the test task to check the given test projects
property(String, String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
PropertyTestFile() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 

R

readTestFile(String, boolean) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
removeSessionData(String) - Method in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
report(Context, Issue, Severity, Location, String, TextFormat) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
report(boolean) - Method in class com.android.tools.lint.checks.infrastructure.ProjectDescription
Marks this project as reportable (the default) or non-reportable.
report(Context, Issue, Severity, Location, String, TextFormat) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
reset() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
reset() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
run() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Performs the lint check, returning the results of the lint check.

S

sCleanDirs - Static variable in class com.android.tools.lint.checks.infrastructure.BaseLintDetectorTest
 
sdkHome - Variable in class com.android.tools.lint.checks.infrastructure.TestLintTask
 
sdkHome(File) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Configures the lint task with a given SDK home to use instead of the default one.
setIncremental(File) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
setIncremental(File) - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 
setSeverity(Issue, Severity) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
setSeverity(Issue, Severity) - Method in class com.android.tools.lint.checks.infrastructure.TestConfiguration
 
setUp() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
setVariantName(String) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
skipExtraTokenChecks() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
If false (the default), lint will run your detectors twice, first on the plain source code, and then a second time where it has inserted whitespace and parentheses pretty much everywhere, to help catch bugs where your detector is only checking direct parents or siblings rather than properly allowing for whitespace and parenthesis nodes which can be present for example when using PSI inside the IDE.
skipExtraTokenChecks() - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Normally lint will run your detectors twice, first on the plain source code, and then a second time where it has inserted whitespace and parentheses pretty much everywhere, to help catch bugs where your detector is only checking direct parents or siblings rather than properly allowing for whitespace and parenthesis nodes which can be present for example when using PSI inside the IDE.
source(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
source(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
sourceRelativePath - Variable in class com.android.tools.lint.checks.infrastructure.TestFile
 
supportResourceRepository(boolean) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Normally resource repositories are only provided in incremental/single-file lint runs.
supportsProjectResources() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
supportsProjectResources() - Method in class com.android.tools.lint.checks.infrastructure.TestLintClient
 

T

targetRelativePath - Variable in class com.android.tools.lint.checks.infrastructure.TestFile
 
targetRootFolder - Variable in class com.android.tools.lint.checks.infrastructure.TestFile
 
targetSdk - Variable in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
targetSdk(int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ManifestTestFile
 
tearDown() - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
TestConfiguration(LintClient, Project, Configuration) - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
TestConfiguration(LintClient, Project, Configuration, File) - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestConfiguration
 
TestConfiguration - Class in com.android.tools.lint.checks.infrastructure
 
TestConfiguration(TestLintTask, LintClient, Project, Configuration) - Constructor for class com.android.tools.lint.checks.infrastructure.TestConfiguration
 
TestFile() - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
TestFile - Class in com.android.tools.lint.checks.infrastructure
Test file description, which can copy from resource directory or from a specified hardcoded string literal, and copy into a target directory
TestFile() - Constructor for class com.android.tools.lint.checks.infrastructure.TestFile
 
TestFile.BinaryTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.BytecodeProducer - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.ByteProducer - Class in com.android.tools.lint.checks.infrastructure
Produces byte arrays, for use with TestFile.BinaryTestFile
TestFile.GradleTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.ImageTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.JarTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.JavaTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.ManifestTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFile.PropertyTestFile - Class in com.android.tools.lint.checks.infrastructure
 
TestFiles - Class in com.android.tools.lint.checks.infrastructure
A utility class which provides unit test file descriptions
TestLintClient() - Constructor for class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
TestLintClient - Class in com.android.tools.lint.checks.infrastructure
A LintClient class for use in lint unit tests.
TestLintClient() - Constructor for class com.android.tools.lint.checks.infrastructure.TestLintClient
 
TestLintClient.CustomIssueRegistry - Class in com.android.tools.lint.checks.infrastructure
 
TestLintClient.TestProject - Class in com.android.tools.lint.checks.infrastructure
 
TestLintResult - Class in com.android.tools.lint.checks.infrastructure
The result of running a TestLintTask.
TestLintTask - Class in com.android.tools.lint.checks.infrastructure
 
TestLintTask() - Constructor for class com.android.tools.lint.checks.infrastructure.TestLintTask
Creates a new lint test task
TestLintTask(ProjectDescription[]) - Constructor for class com.android.tools.lint.checks.infrastructure.TestLintTask
Creates a new lint test task
TestLintTask.ErrorMessageChecker - Interface in com.android.tools.lint.checks.infrastructure
Interface to implement to configure the lint driver to check all reported error messages.
TestLintTask.GradleMockModifier - Interface in com.android.tools.lint.checks.infrastructure
Interface to implement to modify the Gradle builder model that is mocked from a TestFiles.gradle(String) test file.
TestLintTask.LintDriverConfigurator - Interface in com.android.tools.lint.checks.infrastructure
Interface to implement to configure the lint driver before lint starts running.
TestProject(LintClient, File, File, ProjectDescription, GradleModelMocker) - Constructor for class com.android.tools.lint.checks.infrastructure.TestLintClient.TestProject
 
TestResourceProvider - Interface in com.android.tools.lint.checks.infrastructure
 
text(int, int, String, int) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.ImageTestFile
 
to(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
to(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
toBase64(byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
toBase64(File) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
toBase64(byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
toBase64(File) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
toBase64gzip(byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
toBase64gzip(File) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
toBase64gzip(byte[]) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
toBase64gzip(File) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
type(ProjectDescription.Type) - Method in class com.android.tools.lint.checks.infrastructure.ProjectDescription
Marks the project as an app, library or Java module

V

valueOf(String) - Static method in enum com.android.tools.lint.checks.infrastructure.ProjectDescription.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.android.tools.lint.checks.infrastructure.ProjectDescription.Type
Returns an array containing the constants of this enum type, in the order they are declared.
variant(String) - Method in class com.android.tools.lint.checks.infrastructure.TestLintTask
Tells lint to select a particular Gradle variant.

W

withBuildCache(boolean) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
withBytes(byte[]) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
withBytes(byte[]) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
withDependencyGraph(String) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
within(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
within(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
withLogger(ILogger) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
withModelVersion(String) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
withProjectDir(File) - Method in class com.android.tools.lint.checks.infrastructure.GradleModelMocker
 
withSource(String) - Method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestFile
 
withSource(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.BinaryTestFile
 
withSource(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.JarTestFile
 
withSource(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile.PropertyTestFile
 
withSource(String) - Method in class com.android.tools.lint.checks.infrastructure.TestFile
 
writer - Variable in class com.android.tools.lint.checks.infrastructure.LintDetectorTest.TestLintClient
 
writer - Variable in class com.android.tools.lint.checks.infrastructure.TestLintClient
 

X

xml(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.LintDetectorTest
 
xml(String, String) - Static method in class com.android.tools.lint.checks.infrastructure.TestFiles
 
A B C D E F G I J L M N P R S T V W X 
Skip navigation links