Home
last modified time | relevance | path

Searched refs:issues (Results 1 – 25 of 76) sorted by relevance

1234

/packages/modules/Bluetooth/tools/lint/checks/tests/com/android/bluetooth/lint/test/
DLogEnforcementVariableCreationDetectorTest.kt61 .issues(LogEnforcementVariableCreationDetector.ISSUE) in getDetector()
93 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithVVar_issueFound()
125 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithDbgVar_issueFound()
157 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithVdbgVar_issueFound()
189 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithDebugVar_issueFound()
221 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithVerboseVar_issueFound()
253 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithDbgEndingVar_issueFound()
285 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithVdbgEndingVar_issueFound()
319 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithMemberDbgVar_issueFound()
351 .issues(LogEnforcementVariableCreationDetector.ISSUE) in testClassWithMemberDebugVar_issueFound()
[all …]
DGuardedLogLineDetectorTest.kt137 .issues(GuardedLogLineDetector.WARNING) in testGuardedLogWithIsLoggable_warningFound()
171 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogWithDbgVariable_issueFound()
205 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogWithUnaryDbgVariable_issueFound()
239 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogWithBinaryDbgVariable_issueFound()
273 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogWithPolyadicDbgVariable_issueFound()
307 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogWithParenthesizedDbgVariable_issueFound()
343 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogInNestedIfWithDbgVariable_issueFound()
379 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogInIfElseWithDbgVariableInElseIf_issueFound()
415 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogInIfElseWithDbgVariableInIf_issueFound()
451 .issues(GuardedLogLineDetector.ISSUE) in testGuardedLogInNestedIfWithDbgVariableOuterIfAndLogInInner_issueFound()
[all …]
/packages/modules/AdServices/adservices/linter/tests/java/android/adservices/lint/test/
DDeviceConfigUsageDetectorTest.kt51 .issues(DeviceConfigUsageDetector.ISSUE) in getDetector()
76 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getBoolean_throws()
101 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getInt_throws()
126 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getLong_throws()
152 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getFloat_throws()
177 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getProperty_throws()
202 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getProperties_throws()
227 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getString_pass()
246 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getBoolean_pass()
265 .issues(DeviceConfigUsageDetector.ISSUE) in applicableMethodCalls_getInt_pass()
[all …]
DRoomDatabaseMigrationDetectorTest.kt80 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in getDetector()
117 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_missingDatabaseAnnotationError()
159 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_missingMigrationPathAttribute()
203 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_incompleteMigrationPath()
247 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_missingDatabaseVersionFieldInClass()
290 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_missingDatabaseVersionAnnotationField()
338 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_failedToReferenceDatabaseVersionError()
386 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_schemaExportFalseError()
432 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_schemaExportTrue_happyCase()
475 .issues(RoomDatabaseMigrationDetector.ISSUE_ERROR) in testMigrationPath_databaseNotRegistered()
[all …]
DBackCompatNewFileDetectorTest.kt52 .issues(BackCompatNewFileDetector.ISSUE) in getDetector()
85 .issues(BackCompatNewFileDetector.ISSUE) in otherFileMethods_doesNotThrow()
107 .issues(BackCompatNewFileDetector.ISSUE) in applicableMethodCalls_throws()
142 .issues(BackCompatNewFileDetector.ISSUE) in sameMethodNames_differentClasses_doesNotThrow()
DPreconditionsCheckStateDetectorTest.kt60 .issues(PreconditionsCheckStateDetector.ISSUE) in applicableMethodCalls_throws()
88 .issues(PreconditionsCheckStateDetector.ISSUE) in applicableMethodCalls_noPreconditionsCheckState_pass()
110 .issues(PreconditionsCheckStateDetector.ISSUE) in applicableMethodCalls_usingSharedUtilClass_pass()
DBackCompatJobServiceDetectorTest.kt169 .issues(BackCompatJobServiceDetector.ISSUE) in invalidJobService_throws()
210 .issues(BackCompatJobServiceDetector.ISSUE) in invalidJobService_getLogger_throws()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetySourceData.java163 List<SafetySourceIssue> issues =
166 for (int i = 0; i < issues.size(); i++) {
167 builder.addIssue(issues.get(i));
190 @NonNull List<SafetySourceIssue> issues, in SafetySourceData() argument
193 this.mIssues = issues; in SafetySourceData()
345 List<SafetySourceIssue> issues = unmodifiableList(new ArrayList<>(mIssues)); in build() local
346 int issuesMaxSeverityLevel = getIssuesMaxSeverityLevelEnforcingUniqueIds(issues); in build()
348 return new SafetySourceData(null, issues, mExtras); in build()
359 return new SafetySourceData(mStatus, issues, mExtras); in build()
363 @NonNull List<SafetySourceIssue> issues) { in getIssuesMaxSeverityLevelEnforcingUniqueIds()
[all …]
DSafetyCenterData.java71 List<SafetyCenterIssue> issues =
83 for (int i = 0; i < issues.size(); i++) {
84 builder.addIssue(issues.get(i));
101 status, issues, entryOrGroups, staticEntryGroups);
121 @NonNull List<SafetyCenterIssue> issues, in SafetyCenterData() argument
125 mIssues = unmodifiableList(new ArrayList<>(requireNonNull(issues))); in SafetyCenterData()
134 @NonNull List<SafetyCenterIssue> issues, in SafetyCenterData() argument
140 mIssues = issues; in SafetyCenterData()
495 List<SafetyCenterIssue> issues = unmodifiableList(new ArrayList<>(mIssues)); in build() local
504 mStatus, issues, entriesOrGroups, staticEntryGroups, dismissedIssues, mExtras); in build()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyCenterIssueRepository.java95 List<SafetySourceIssueInfo> issues = in updateIssues() local
98 issues.sort(SAFETY_SOURCE_ISSUES_INFO_BY_SEVERITY_DESCENDING); in updateIssues()
100 mUserIdToDedupInfo.put(userId, produceDedupInfo(issues)); in updateIssues()
103 private DeduplicationInfo produceDedupInfo(List<SafetySourceIssueInfo> issues) { in produceDedupInfo() argument
105 return mSafetyCenterIssueDeduplicator.deduplicateIssues(issues); in produceDedupInfo()
107 return new DeduplicationInfo(issues, emptyList(), emptyMap()); in produceDedupInfo()
173 private List<SafetySourceIssueInfo> filterOutHiddenIssues(List<SafetySourceIssueInfo> issues) { in filterOutHiddenIssues() argument
175 for (int i = 0; i < issues.size(); i++) { in filterOutHiddenIssues()
176 SafetySourceIssueInfo issueInfo = issues.get(i); in filterOutHiddenIssues()
247 List<SafetySourceIssueInfo> issues = new ArrayList<>(); in getIssuesFor() local
[all …]
DSafetyEventFix.java104 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in getSourceIssueIds() local
105 ArraySet<String> issueIds = new ArraySet<>(issues.size()); in getSourceIssueIds()
106 for (int i = 0; i < issues.size(); i++) { in getSourceIssueIds()
107 issueIds.add(issues.get(i).getId()); in getSourceIssueIds()
DDefaultActionOverrideFix.java98 List<SafetySourceIssue> issues = safetySourceData.getIssues(); in applyFix() local
99 for (int i = 0; i < issues.size(); i++) { in applyFix()
102 issues.get(i), actionsToOverride, defaultIntentForSource)); in applyFix()
DAndroidLockScreenFix.java91 List<SafetySourceIssue> issues = data.getIssues(); in applyFix() local
92 for (int i = 0; i < issues.size(); i++) { in applyFix()
93 overriddenData.addIssue(overrideTiramisuIssue(context, issues.get(i))); in applyFix()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DCollapsableIssuesCardHelper.kt102 issues: List<SafetyCenterIssue>?, in <lambda>()
108 maybeReorderFocusedSafetyCenterIssueInList(issues) in <lambda>()
224 val issues: List<SafetyCenterIssue>, in <lambda>() constant in com.android.permissioncontroller.safetycenter.ui.CollapsableIssuesCardHelper.ReorderedSafetyCenterIssueList
228 issues: List<SafetyCenterIssue>? in <lambda>()
230 if (issues == null) { in <lambda>()
236 val mutableIssuesList = issues.toMutableList() in <lambda>()
251 return ReorderedSafetyCenterIssueList(issues, DEFAULT_NUMBER_SHOWN_ISSUES_COLLAPSED) in <lambda>()
256 issues: MutableList<SafetyCenterIssue> in <lambda>()
258 issues.forEachIndexed { index, issue -> in <lambda>()
262 issues.removeAt(index) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/
DSafetyCenterUiDataTest.kt68 createSafetyCenterData(issues = listOf(defaultMatchingIssue, nonMatchingIssue)) in getMatchingIssues_defaultMatchingIssue_noExtras_returnsListOfIssues()
81 issues = listOf(defaultMatchingIssue, nonMatchingIssue), in getMatchingIssues_defaultMatchingIssue_unrelatedExtras_returnsListOfIssues()
104 issues = listOf(mappingMatchingIssue, nonMatchingIssue), in getMatchingIssues_mappingMatchingIssue_returnsListOfIssues()
127 issues = listOf(nonMatchingIssue), in getMatchingIssues_noDefaultMatchingIssue_returnsEmptyList()
205 issues = listOf(nonDismissedIssue), in getMatchingDismissedIssues_noDefaultMatchingDismissedIssue_returnsEmptyList()
258 issues: List<SafetyCenterIssue> = listOf(), in createSafetyCenterData()
266 for (issue in issues) { in createSafetyCenterData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterUiData.kt38 return safetyCenterData.issues.find { in getMatchingIssue()
57 selectMatchingIssuesForGroup(groupId, safetyCenterData.issues) in getMatchingIssues()
70 issues: List<SafetyCenterIssue> in getMatchingIssues()
73 return issues.filter { in getMatchingIssues()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/
DDefaultPolicyConformanceCheck.kt29 val issues = in <lambda>() constant
32 if (issues.isNotEmpty()) { in <lambda>()
33 throw MalformedPolicySet(issues.joinToString(", ", prefix = "Malformed policies found: ")) in <lambda>()
/packages/modules/AdServices/adservices/linter/java/android/adservices/lint/prod/
DBackCompatAndroidProcessDetector.kt47 var issues : List<Int> in <lambda>() variable
48 stream.use { s -> issues = AndroidManifestParser.findComponentsMissingAdservicesProcess(s) } in <lambda>()
50 for (issue: Int in issues) { in <lambda>()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSafetyCenterUtils.kt109 val issues = ArrayList<SafetyCenterIssue>() in getSafetyCenterIssues() constant
112 issues.addAll(safetyCenterData.issues) in getSafetyCenterIssues()
114 return issues in getSafetyCenterIssues()
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/
DSafetyCenterSubpagesTest.kt438 val issue = sourceData.issues[0] in issueCard_withMultipleGroups_onlyRelevantSubpageHasIssueCard()
471 waitSourceIssueDisplayed(initialDataToDisplay.issues[0]) in issueCard_updateSafetySourceData_subpageDisplaysUpdatedIssue()
475 waitSourceIssueDisplayed(updatedDataToDisplay.issues[0]) in issueCard_updateSafetySourceData_subpageDisplaysUpdatedIssue()
486 val issue = sourceData.issues[0] in issueCard_resolveIssueOnSubpage_issueDismisses()
513 val issue = sourceData.issues[0] in issueCard_confirmDismissalOnSubpage_dismissesIssue()
534 val issue = sourceData.issues[0] in issueCard_dismissOnSubpageWithRotation_cancellationPersistsIssue()
562 waitCollapsedIssuesDisplayed(firstSourceData.issues[0], secondSourceData.issues[0]) in moreIssuesCard_expandOnSubpage_showsAdditionalCard()
566 waitExpandedIssuesDisplayed(firstSourceData.issues[0], secondSourceData.issues[0]) in moreIssuesCard_expandOnSubpage_showsAdditionalCard()
577 val issue = sourceData.issues[0] in dismissedIssuesCard_expandWithOnlyDismissedIssues_showsAdditionalCard()
601 val issue = sourceData.issues[0] in dismissedIssuesCard_collapseWithOnlyDismissedIssues_hidesAdditionalCard()
[all …]
DPrivacySubpageTest.kt137 waitSourceIssueDisplayed(firstSourceData.issues[0]) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards()
139 waitSourceIssueNotDisplayed(secondSourceData.issues[0]) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards()
143 waitSourceIssueDisplayed(firstSourceData.issues[0]) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards()
145 waitSourceIssueDisplayed(secondSourceData.issues[0]) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetySourceDataFixesTest.kt120 .issues[0] in defaultActionOverride_issue_overridesMatchingActions()
159 .issues[0] in defaultActionOverride_notification_overridesMatchingActions()
201 .issues[0] in defaultActionOverride_sameActionIdDifferentSource_doesNotOverride()
234 .issues[0] in defaultActionOverride_sameSourceDifferentActionId_doesNotOverride()
268 .issues[0] in defaultActionOverride_noDefaultIntent_doesNotOverride()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetySourceDataTest.kt70 assertThat(safetySourceData.issues).isEmpty() in getIssues_withDefaultBuilder_returnsEmptyList()
80 assertThat(safetySourceData.issues).containsExactly(firstIssue, secondIssue).inOrder() in getIssues_whenSetExplicitly_returnsIssues()
91 val mutatedIssues = data.issues in getIssues_mutationsAreNotAllowed()
141 val issues = safetySourceDataBuilder.build().issues in builder_addIssue_doesNotMutatePreviouslyBuiltInstance() constant
145 assertThat(issues).containsExactly(firstIssue) in builder_addIssue_doesNotMutatePreviouslyBuiltInstance()
160 assertThat(safetySourceData.issues).isEmpty() in clearIssues_removesAllIssues()
DSafetyCenterDataTest.kt179 assertThat(safetyCenterData.issues).isEmpty() in getIssues_withDefaultBuilder_returnsEmptyList()
188 assertThat(safetyCenterData.issues).containsExactly(issue1, issue2).inOrder() in getIssues_whenSetExplicitly_returnsIssues()
297 assertThat(data1.issues).containsExactly(issue1) in getIssues_returnsIssues()
298 assertThat(data2.issues).containsExactly(issue2) in getIssues_returnsIssues()
320 val mutatedIssues = data1.issues in getIssues_mutationsAreNotAllowed()
359 val issues = safetyCenterDataBuilder.build().issues in builder_addIssue_doesNotMutatePreviouslyBuiltInstance() constant
363 assertThat(issues).containsExactly(issue1) in builder_addIssue_doesNotMutatePreviouslyBuiltInstance()
376 assertThat(safetyCenterData.issues).isEmpty() in builder_clearIssues_removesAllIssues()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestData.kt529 this.issues.map { in SafetyCenterData()
532 copy(issues = issuesWithAttributionTitle) in SafetyCenterData()
547 issues: List<SafetyCenterIssue> = this.issues, in SafetyCenterData()
553 issues.forEach(::addIssue) in SafetyCenterData()

1234