/tools/metalava/src/test/java/com/android/tools/metalava/apilevels/ |
D | ApiGeneratorTest.kt | 85 assertTrue(xml.contains("<class name=\"android/Manifest\$permission\" since=\"1\">")) in Extract API levels() 86 …assertTrue(xml.contains("<field name=\"BIND_CARRIER_MESSAGING_SERVICE\" since=\"22\" deprecated=\"… in Extract API levels() 87 assertTrue(xml.contains("<class name=\"android/pkg/MyTest\" since=\"90\"")) in Extract API levels() 88 assertFalse(xml.contains("<implements name=\"java/lang/annotation/Annotation\" removed=\"")) in Extract API levels() 89 assertFalse(xml.contains("<extends name=\"java/lang/Enum\" removed=\"")) in Extract API levels() 90 assertFalse(xml.contains("<method name=\"append(C)Ljava/lang/AbstractStringBuilder;\"")) in Extract API levels() 93 assertFalse(xml.contains("<extends name=\"android/icu/util/CECalendar\"")) in Extract API levels() 139 assertTrue(xml.contains("<api version=\"2\" min=\"21\">")) in Extract System API() 140 assertTrue(xml.contains("<class name=\"android/Manifest\" since=\"21\">")) in Extract System API() 141 assertTrue(xml.contains("<field name=\"showWhenLocked\" since=\"27\"/>")) in Extract System API() [all …]
|
/tools/loganalysis/javatests/com/android/loganalysis/parser/ |
D | MonkeyLogParserTest.java | 82 assertTrue(monkeyLog.getPackages().contains("com.google.android.browser")); in testParse_success() 84 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_success() 188 assertTrue(monkeyLog.getPackages().contains("com.google.android.youtube")); in testParse_anr() 190 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_anr() 261 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_java_crash() 263 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_java_crash() 333 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_java_crash_mixed() 335 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_java_crash_mixed() 424 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_native_crash() 426 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_native_crash() [all …]
|
/tools/loganalysis/javatests/com/android/loganalysis/util/config/ |
D | ArgsOptionParserTest.java | 369 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_mismatchKeyType() 371 expectedKey, e.getMessage()), e.getMessage().contains(expectedKey)); in testParseMapArg_mismatchKeyType() 389 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_mismatchValueType() 391 expectedValue, e.getMessage()), e.getMessage().contains(expectedValue)); in testParseMapArg_mismatchValueType() 407 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_missingKey() 424 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_missingValue() 463 assertTrue(leftOver.contains(posArg)); in testParse_posArgs() 554 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp() 555 assertTrue(help.contains(InheritedOptionSource.OPTION_DESC)); in testGetOptionHelp() 556 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp() [all …]
|
D | OptionSetterTest.java | 293 assertTrue(object1.mEnumCollection.contains(expectedValue)); in testOptionSetter_sharedEnumCollection() 297 assertTrue(object2.mEnumCollection.contains(expectedValue)); in testOptionSetter_sharedEnumCollection() 482 assertTrue(optionSource.mStringCollection.contains(expectedValue)); in testSetOptionValue_collection() 764 assertTrue(optionSource.mEnumCollection.contains(expectedValue)); in testSetOptionValue_enumCollection()
|
D | OptionUpdateRuleTest.java | 75 assertTrue(msg.contains("Integer")); in testInvalidComparison() 76 assertTrue(msg.contains("String")); in testInvalidComparison()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | InterruptParser.java | 73 if (interruptName.contains("bcmsdh_sdmmc") || interruptName.contains("msm_pcie_wake")) { in getInterruptCategory() 75 } else if (interruptName.contains("smd-modem") || in getInterruptCategory() 76 interruptName.contains("smsm-modem")) { in getInterruptCategory() 78 } else if (interruptName.contains("smd-adsp")) { in getInterruptCategory() 80 } else if (interruptName.contains("max77686-irq") || in getInterruptCategory() 81 interruptName.contains("cpcap-irq") || in getInterruptCategory() 82 interruptName.contains("TWL6030-PIH")) { in getInterruptCategory()
|
D | JavaCrashParser.java | 63 if (line.contains(BEGIN_MARKER)) { in parse() 72 if (line.contains(END_MARKER)) { in parse()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | AndroidApiChecks.kt | 60 if (field.name().contains("ACTION")) { in check() 171 if (item.documentation.contains("TODO:") || item.documentation.contains("TODO(")) { in checkTodos() 196 if (text.contains(perm)) { in checkRequiresPermission() 207 … } else if (text.contains("android.Manifest.permission") || text.contains("android.permission.")) { in checkRequiresPermission() 227 if (text.contains("Broadcast Action:") || in checkIntentAction() 228 text.contains("protected intent") && text.contains("system") in checkIntentAction() 245 if (text.contains("Activity Action:")) { in checkIntentAction()
|
D | ApiLint.kt | 372 val name = if (method.isKotlin() && method.name().contains("-")) { in <lambda>() 608 if (!(name.contains("_ACTION") || name.contains("ACTION_") || value.contains(".action."))) { in <lambda>() 648 if (!(name.contains("_EXTRA") || name.contains("EXTRA_") || value.contains(".extra"))) { in <lambda>() 1069 returnTypeBounds.contains(clsType.toTypeString()) || returnType == clsType in <lambda>() 1508 if (name.contains("Google", ignoreCase = true)) { in <lambda>() 1828 packageName.contains(segment) && in <lambda>() 1829 (packageName.contains(".$segment.") || packageName.endsWith(".$segment")) in <lambda>() 1857 if (fullName.contains("ActionBar") || in <lambda>() 1858 fullName.contains("Dialog") || in <lambda>() 1859 fullName.contains("Application") || in <lambda>() [all …]
|
D | DocAnalyzer.kt | 213 if (text.isBlank() || item.documentation.contains(text)) { in <lambda>() 238 if (doc.contains("null") && mentionsNull.matcher(doc).find()) { in <lambda>() 578 if (s.contains("*")) { in <lambda>() 605 if (string.contains("@hide") || string.contains("@remove")) { in <lambda>() 634 if (doc.contains(typo)) { in <lambda>() 722 if (!item.documentation.contains("@apiSince")) { in <lambda>() 755 if (!item.documentation.contains("@deprecatedSince")) { in <lambda>()
|
D | ApiAnalyzer.kt | 378 if (!hiddenSuperClasses.contains(currentClass)) { in <lambda>() 546 options.hidePackages.contains(pkg.qualifiedName()) -> pkg.hidden = true in <lambda>() 729 if (level.contains("normal") || level.contains("dangerous") || in <lambda>() 730 level.contains("ephemeral") in <lambda>() 784 if (item.deprecated && !item.documentation.contains("@deprecated") && in <lambda>() 803 if (item.documentation.contains("@deprecated")) { in <lambda>() 1101 …if (stubImportPackages != null && stubImportPackages.contains(cl.containingPackage().qualifiedName… in <lambda>() 1295 …if (stubImportPackages != null && stubImportPackages.contains(ci.containingPackage().qualifiedName… in <lambda>()
|
D | Options.kt | 692 if (args.contains(ARG_NO_COLOR)) { in <lambda>() 694 } else if (args.contains(ARG_COLOR) || args.contains("-android")) { in <lambda>() 700 if (args.isNotEmpty() && !args.contains(ARG_QUIET) && !args.contains(ARG_NO_BANNER) && in <lambda>() 701 !args.contains(ARG_VERSION) in <lambda>() 1130 applyApiLevelsXml = if (args.contains(ARG_GENERATE_API_LEVELS)) { in <lambda>() 2360 if (id.contains(",")) { // Handle being passed in multiple comma separated id's in <lambda>()
|
D | ExtractAnnotations.kt | 196 … } else if (annotation.targets.contains(AnnotationTarget.EXTERNAL_ANNOTATIONS_FILE) && in <lambda>() 304 if (names.isNotEmpty() && !names.contains(name)) { in <lambda>() 379 return s.contains(SOURCE) in <lambda>() 401 (value.constantValue as? String)?.contains(SOURCE) ?: false in <lambda>()
|
D | FileFormat.kt | 140 if (!fileContents.contains("<api")) { in parseHeader() 147 if (fileContents.contains("since=")) { in parseHeader()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | ManifestGenerationTest.java | 74 assertTrue(linesSet.contains("Built-By: Me, of course")); in elementaryManifestGeneration() 75 assertTrue(linesSet.contains("Created-By: Myself")); in elementaryManifestGeneration() 110 assertTrue(linesSet.contains("Built-By: Me, of course")); in manifestGenerationOnHalfWrittenFile() 111 assertTrue(linesSet.contains("Created-By: Myself")); in manifestGenerationOnHalfWrittenFile() 148 assertTrue(linesSet.contains("Built-By: Me, of course")); in manifestGenerationOnExistingFile() 149 assertTrue(linesSet.contains("Created-By: Myself")); in manifestGenerationOnExistingFile()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiItem.kt | 45 override var docOnly = documentation.contains("@doconly") 47 override var removed = documentation.contains("@removed") 73 documentation.contains('@') && in <lambda>() 76 documentation.contains("@hide") || in <lambda>() 77 documentation.contains("@pending") || in <lambda>() 79 documentation.contains("@suppress") in <lambda>()
|
D | Javadoc.kt | 560 if (documentation.startsWith("//") && documentation.contains("/**")) { in toFullyQualifiedDocumentation() 598 if (text.startsWith("R.styleable#") && owner.documentation.contains("@attr")) { in expand() 739 if (suffix.contains("(") && suffix.contains(")")) { in handleTag() 772 if (suffix.contains("(") && suffix.contains(")")) { in handleTag()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceImporter.kt | 29 import trebuchet.util.contains in <lambda>() 66 if (buffer.contains("# tracer: nop\n", 1000) in <lambda>() 67 || buffer.contains(" trace-cmd", 1000)) { in <lambda>()
|
/tools/trebuchet/trebuchet/user-switch-analyzer/src/ |
D | UserSwitchAnalyzer.kt | 64 it.name.contains("ssm." + item + "User-" + userId) && !it.name.contains("ssm.on") in measureServiceStartup() 70 it.name.contains("ssm.on" + item + "User-" + userId) in measureServiceStartup()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | TypeItem.kt | 88 while (s.contains(JAVA_LANG_PREFIX)) { in <lambda>() 91 if (s.contains("...")) { in <lambda>() 143 fun hasTypeArguments(): Boolean = toTypeString().contains("<") in <lambda>() 176 if (cleaned.contains("@androidx.annotation.")) { in <lambda>()
|
D | AnnotationItem.kt | 184 if (options.passThroughAnnotations.contains(qualifiedName)) { in mapName() 187 if (options.excludeAnnotations.contains(qualifiedName)) { in mapName() 376 if (options.passThroughAnnotations.contains(qualifiedName)) { in nullableAnnotationName() 808 if (valueSource.contains(".")) { in toString()
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiTypePrinterTest.kt | 827 if (results.contains(key)) { in <lambda>() 831 if (skip.contains(key) || skip.contains(canonical)) { in <lambda>() 834 if (include.isNotEmpty() && !(include.contains(key) || include.contains(canonical))) { in <lambda>()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 1447 assertTrue(vl.getLogs().get(0).contains("CRC32")); in detectIncorrectCRC32InLocalHeader() 1484 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("version")); in detectIncorrectVersionToExtractInCentralDirectory() 1485 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("extract")); in detectIncorrectVersionToExtractInCentralDirectory() 1489 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("version")); in detectIncorrectVersionToExtractInCentralDirectory() 1490 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("extract")); in detectIncorrectVersionToExtractInCentralDirectory() 1525 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("version")); in detectIncorrectVersionToExtractInLocalHeader() 1526 assertTrue(vl.getLogs().get(0).toLowerCase(Locale.US).contains("extract")); in detectIncorrectVersionToExtractInLocalHeader() 1793 assertTrue(Throwables.getStackTraceAsString(e).contains("overlapping/bbb")); 1794 assertTrue(Throwables.getStackTraceAsString(e).contains("overlapping/ddd")); 1795 assertFalse(Throwables.getStackTraceAsString(e).contains("Central Directory")); [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextCodebase.kt | 111 return mClassToInterface[classInfo]?.contains(iface) ?: false in implementsInterface() 228 if (fullName.contains('.')) { in getOrCreateClass() 315 val isMethodTypeVar = methodTypeParameterList.typeParameterNames().contains(name) in obtainTypeFromString() 316 val isClassTypeVar = cl.typeParameterList().typeParameterNames().contains(name) in obtainTypeFromString()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/ |
D | SystraceExtractor.kt | 21 import trebuchet.util.contains in <lambda>() 82 if (buffer.contains("<html>", 1000)) { in <lambda>()
|