Home
last modified time | relevance | path

Searched refs:lint (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/tools/lint/checks/src/test/java/com/google/android/lint/
DCallingIdentityTokenDetectorTest.kt17 package com.google.android.lint
19 import com.android.tools.lint.checks.infrastructure.LintDetectorTest
20 import com.android.tools.lint.checks.infrastructure.TestFile
21 import com.android.tools.lint.checks.infrastructure.TestLintTask
22 import com.android.tools.lint.detector.api.Detector
23 import com.android.tools.lint.detector.api.Issue
38 override fun lint(): TestLintTask = super.lint().allowMissingSdk(true) in getDetector() method in com.google.android.lint.CallingIdentityTokenDetectorTest
43 lint().files( in getDetector()
78 lint().files( in testDetectsUnusedTokens()
134 lint().files( in testDetectsUnusedTokensInScopes()
[all …]
DCallingSettingsNonUserGetterMethodsIssueDetectorTest.kt17 package com.google.android.lint
19 import com.android.tools.lint.checks.infrastructure.LintDetectorTest
20 import com.android.tools.lint.checks.infrastructure.TestFile
21 import com.android.tools.lint.checks.infrastructure.TestLintTask
22 import com.android.tools.lint.detector.api.Detector
23 import com.android.tools.lint.detector.api.Issue
33 override fun lint(): TestLintTask = super.lint().allowMissingSdk(true) in getDetector() method in com.google.android.lint.CallingSettingsNonUserGetterMethodsIssueDetectorTest
36 lint().files( in getDetector()
56 lint().files( in testDetectsNonUserGetterCalledFromSecure()
85 lint().files( in testDetectsNonUserGetterCalledFromSystem()
[all …]
DEnforcePermissionDetectorTest.kt17 package com.google.android.lint
19 import com.android.tools.lint.checks.infrastructure.LintDetectorTest
20 import com.android.tools.lint.checks.infrastructure.TestFile
21 import com.android.tools.lint.checks.infrastructure.TestLintTask
22 import com.android.tools.lint.detector.api.Detector
23 import com.android.tools.lint.detector.api.Issue
34 override fun lint(): TestLintTask = super.lint().allowMissingSdk(true) in getDetector() method in com.google.android.lint.EnforcePermissionDetectorTest
37 lint().files(java( in getDetector()
52 lint().files(java( in testDoesNotDetectIssuesCorrectAnnotationOnMethod()
69 lint().files(java( in testDetectIssuesMismatchingAnnotationOnClass()
[all …]
/frameworks/base/tools/lint/
DREADME.md3 Custom lint checks written here are going to be executed for modules that opt in to those (e.g. any
6 ## How to add new lint checks
9 `checks/src/main/java/com/google/android/lint`.
12 `checks/test/java/com/google/android/lint`.
13 4. Done! Your lint checks should be applied in lint report builds for modules that include
16 ## How to run lint against your module
18 1. Add the following `lint` attribute to the module definition, e.g. `services.autofill`:
23 lint: {
30 …ermediates/frameworks/base/services/autofill/services.autofill/android_common/lint/lint-report.html
32 (Lint report can be found in the same path, i.e. `out/../lint-report.html`)
[all …]
/frameworks/base/packages/SystemUI/checks/tests/com/android/internal/systemui/lint/
DDemotingTestWithoutBugDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFile
20 import com.android.tools.lint.checks.infrastructure.TestFiles
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Issue
23 import com.android.tools.lint.detector.api.Scope
35 lint() in getDetector()
56 lint() in getDetector()
80 lint() in testMarkFlaky_withoutBugId()
108 lint() in testMarkFlaky_withoutBugId()
[all …]
DDumpableNotRegisteredDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
32 lint() in getDetector()
52 lint() in classIsDumpable_andRegisterIsCalled_noViolation()
83 lint() in classIsDumpable_andRegisterNormalIsCalled_noViolation()
114 lint() in classIsDumpable_andRegisterCriticalIsCalled_noViolation()
145 lint() in classIsDumpable_noRegister_violation()
178 lint() in classIsDumpable_usesNotDumpManagerMethod_violation()
[all …]
DBroadcastSentViaContextDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
34 lint() in getDetector()
66 lint() in testSendBroadcastAsUser()
99 lint() in testSendBroadcastInActivity()
133 lint() in testSuppressSendBroadcastInActivity()
161 lint() in testSendBroadcastInBroadcastSender()
188 lint() in testNoopIfNoCall()
DBindServiceOnMainThreadDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
33 lint() in getDetector()
65 lint() in testBindServiceAsUser()
98 lint() in testUnbindService()
130 lint() in testSuppressUnbindService()
156 lint() in testWorkerMethod()
190 lint() in testWorkerClass()
DSlowUserQueryDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
37 lint() in getDetector()
71 lint() in testGetUserInfo()
105 lint() in testSuppressGetUserInfo()
133 lint() in testUserTrackerGetUserId()
160 lint() in testUserTrackerGetUserInfo()
DNonInjectedMainThreadDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
33 lint() in getDetector()
65 lint() in testSuppressGetMainThreadHandler()
91 lint() in testGetMainLooper()
123 lint() in testGetMainExecutor()
DNonInjectedServiceDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
32 lint() in getDetector()
63 lint() in testGetServiceWithClass()
95 lint() in testSuppressGetServiceWithClass()
121 lint() in testGetAccountManager()
DRegisterReceiverViaContextDetectorTest.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.checks.infrastructure.TestFiles
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Issue
33 lint() in getDetector()
67 lint() in testSuppressRegisterReceiver()
95 lint() in testRegisterReceiverAsUser()
132 lint() in testRegisterReceiverForAllUsers()
DCleanArchitectureDependencyViolationDetectorTest.kt18 package com.android.internal.systemui.lint
20 import com.android.tools.lint.checks.infrastructure.TestFiles
21 import com.android.tools.lint.checks.infrastructure.TestMode
22 import com.android.tools.lint.detector.api.Detector
23 import com.android.tools.lint.detector.api.Issue
42 lint() in No violations()
55 lint() in Violation - domain depends on ui()
90 lint() in Violation - ui depends on data()
125 lint() in Violation - shared depends on all other layers()
170 lint() in Violation - data depends on domain()
/frameworks/base/packages/SystemUI/tools/lint/
DREADME1 This directory contains configuration files for lint, which is run
4 lint.xml contains checks that are turned on or off, or whitelisted /
8 baseline.xml contains the list of existing "grandfathered" lint
9 errors in the codebase. It is generated using ./tools/lint/update_baseline.sh
11 When you hit a lint error that should not be triggered, there are 3
14 for cases where the lint violation is intended, so that reviewers
16 2. Use tools/lint.xml to ignore a lint check which we don't care
19 3. If there are lint errors that should be fixed, but cannot be done
25 - https://developer.android.com/studio/write/lint.html
26 - http://tools.android.com/tips/lint-checks
Dupdate_baseline.sh9 echo '' > tools/lint/baseline.xml
11 lint . -Werror --exitcode --config tools/lint/lint.xml --html /tmp/lint_output.html \
12 --baseline tools/lint/baseline.xml --remove-fixed &
16 rm tools/lint/baseline.xml
/frameworks/base/packages/SystemUI/checks/src/com/android/internal/systemui/lint/
DDumpableNotRegisteredDetector.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.detector.api.Category
20 import com.android.tools.lint.detector.api.Context
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Location
26 import com.android.tools.lint.detector.api.Scope
27 import com.android.tools.lint.detector.api.Severity
[all …]
DSoftwareBitmapDetector.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.detector.api.Category
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Implementation
22 import com.android.tools.lint.detector.api.Issue
23 import com.android.tools.lint.detector.api.JavaContext
24 import com.android.tools.lint.detector.api.Scope
25 import com.android.tools.lint.detector.api.Severity
26 import com.android.tools.lint.detector.api.SourceCodeScanner
DRegisterReceiverViaContextDetector.kt17 package com.android.internal.systemui.lint
20 import com.android.tools.lint.detector.api.Category
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Scope
26 import com.android.tools.lint.detector.api.Severity
27 import com.android.tools.lint.detector.api.SourceCodeScanner
DNonInjectedMainThreadDetector.kt17 package com.android.internal.systemui.lint
20 import com.android.tools.lint.detector.api.Category
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Scope
26 import com.android.tools.lint.detector.api.Severity
27 import com.android.tools.lint.detector.api.SourceCodeScanner
DStaticSettingsProviderDetector.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.detector.api.Category
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Implementation
22 import com.android.tools.lint.detector.api.Issue
23 import com.android.tools.lint.detector.api.JavaContext
24 import com.android.tools.lint.detector.api.Scope
25 import com.android.tools.lint.detector.api.Severity
26 import com.android.tools.lint.detector.api.SourceCodeScanner
DBroadcastSentViaContextDetector.kt17 package com.android.internal.systemui.lint
20 import com.android.tools.lint.detector.api.Category
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Scope
26 import com.android.tools.lint.detector.api.Severity
27 import com.android.tools.lint.detector.api.SourceCodeScanner
DNonInjectedServiceDetector.kt17 package com.android.internal.systemui.lint
20 import com.android.tools.lint.detector.api.Category
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Scope
26 import com.android.tools.lint.detector.api.Severity
27 import com.android.tools.lint.detector.api.SourceCodeScanner
DDemotingTestWithoutBugDetector.kt17 package com.android.internal.systemui.lint
19 import com.android.tools.lint.client.api.UElementHandler
20 import com.android.tools.lint.detector.api.Category
21 import com.android.tools.lint.detector.api.Detector
22 import com.android.tools.lint.detector.api.Implementation
23 import com.android.tools.lint.detector.api.Issue
24 import com.android.tools.lint.detector.api.JavaContext
25 import com.android.tools.lint.detector.api.Scope
26 import com.android.tools.lint.detector.api.Severity
27 import com.android.tools.lint.detector.api.SourceCodeScanner
/frameworks/base/tools/lint/checks/src/main/java/com/google/android/lint/
DCallingSettingsNonUserGetterMethodsDetector.kt17 package com.google.android.lint
19 import com.android.tools.lint.detector.api.Category
20 import com.android.tools.lint.detector.api.Detector
21 import com.android.tools.lint.detector.api.Implementation
22 import com.android.tools.lint.detector.api.Issue
23 import com.android.tools.lint.detector.api.JavaContext
24 import com.android.tools.lint.detector.api.Scope
25 import com.android.tools.lint.detector.api.Severity
26 import com.android.tools.lint.detector.api.SourceCodeScanner
DEnforcePermissionDetector.kt17 package com.google.android.lint
19 import com.android.tools.lint.detector.api.AnnotationInfo
20 import com.android.tools.lint.detector.api.AnnotationOrigin
21 import com.android.tools.lint.detector.api.AnnotationUsageInfo
22 import com.android.tools.lint.detector.api.AnnotationUsageType
23 import com.android.tools.lint.detector.api.ConstantEvaluator
24 import com.android.tools.lint.detector.api.Category
25 import com.android.tools.lint.detector.api.Detector
26 import com.android.tools.lint.detector.api.Implementation
27 import com.android.tools.lint.detector.api.Issue
[all …]

123