/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 90 protected fun addError(error: String) { in <lambda>() 94 protected fun runDriver(vararg args: String, expectedFail: String = ""): String { in <lambda>() 189 private fun findKotlinStdlibPath(): List<String> { in <lambda>() 190 val classPath: String = System.getProperty("java.class.path") in <lambda>() 191 val paths = mutableListOf<String>() in <lambda>() 208 protected fun getJdkPath(): String? { in <lambda>() 224 private fun <T> buildOptionalArgs(option: T?, converter: (T) -> Array<String>): Array<String> { in <lambda>() 234 val fromApi: String, in <lambda>() 235 val outputFile: String, in <lambda>() 236 val baseApi: String? = null, in <lambda>() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | ApiFile.java | 89 final String apiText; in parseApi() 105 public static TextCodebase parseApi(@Nonnull String filename, @Nonnull String apiText, in parseApi() 114 public static TextCodebase parseApi(@Nonnull String filename, @Nonnull String apiText, in parseApi() 123 …tatic void parseApiSingleFile(TextCodebase api, boolean appending, String filename, String apiText, in parseApiSingleFile() 135 throw new ApiParseException(String.format( in parseApiSingleFile() 167 String token = tokenizer.getToken(); in parseApiSingleFile() 182 String token; in parsePackage() 183 String name; in parsePackage() 189 List<String> annotations = getAnnotations(tokenizer, token); in parsePackage() 215 throw new ApiParseException(String.format( in parsePackage() [all …]
|
/tools/carrier_settings/java/ |
D | CarrierConfigConverterV2.java | 88 private String assetsDirName = "/tmp/carrierconfig/assets"; 95 private List<String> vendorXmlFiles = ImmutableList.of("/tmp/carrierconfig/vendor.xml"); 100 private String outputDir = "/tmp/carrierconfig/out"; 106 private static final String RESOURCE_CARRIER_LIST = 110 private static final String XML_SUFFIX = ".xml"; 111 private static final String CARRIER_CONFIG_MCCMNC_XML_PREFIX = "carrier_config_mccmnc_"; 112 private static final String CARRIER_CONFIG_CID_XML_PREFIX = "carrier_config_carrierid_"; 113 private static final String KEY_MCCMNC_PREFIX = "mccmnc_"; 114 private static final String KEY_CID_PREFIX = "cid_"; 115 private static final String TAG_CARRIER_CONFIG = "carrier_config"; [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 106 Map<Integer, String> supportedApkSigSchemeNames, in verify() 120 Set<String> cdEntryNames = checkForDuplicateEntries(cdRecords, result); in verify() 144 private static Set<String> checkForDuplicateEntries( in checkForDuplicateEntries() 146 Set<String> cdEntryNames = new HashSet<>(cdRecords.size()); in checkForDuplicateEntries() 147 Set<String> duplicateCdEntryNames = null; in checkForDuplicateEntries() 149 String entryName = cdRecord.getName(); in checkForDuplicateEntries() 173 public static Pair<ManifestParser.Section, Map<String, ManifestParser.Section>> parseManifest( in parseManifest() 174 byte[] manifestBytes, Set<String> cdEntryNames, Result result) { in parseManifest() 178 Map<String, ManifestParser.Section> entryNameToManifestSection = in parseManifest() 183 String entryName = manifestSection.getName(); in parseManifest() [all …]
|
D | V1SchemeSigner.java | 62 public static final String MANIFEST_ENTRY_NAME = V1SchemeConstants.MANIFEST_ENTRY_NAME; 66 private static final String ATTRIBUTE_VALUE_MANIFEST_VERSION = "1.0"; 67 private static final String ATTRIBUTE_VALUE_SIGNATURE_VERSION = "1.0"; 77 public String name; 113 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureDigestAlgorithm() 141 public static String getSafeSignerName(String name) { in getSafeSignerName() 169 String jcaAlgorithm = digestAlgorithm.getJcaMessageDigestAlgorithm(); in getMessageDigestInstance() 177 public static String getJcaMessageDigestAlgorithm(DigestAlgorithm digestAlgorithm) { in getJcaMessageDigestAlgorithm() 185 public static boolean isJarEntryDigestNeededInManifest(String entryName) { in isJarEntryDigestNeededInManifest() 209 String fileNameLowerCase = in isJarEntryDigestNeededInManifest() [all …]
|
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | ApkInfo.java | 24 public static final String APK_LIST_LOCATION = 38 private String mKey; 39 private String mValue; 42 public Argument(String key, String value, Type type) { in Argument() 48 public String getKey() { in getKey() 52 public String getValue() { in getValue() 61 private String mName; 62 private String mFileName; 63 private String mPackageName; 64 private String mActivityName; [all …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | X509CertificateUtilsTest.java | 43 public static final String RSA_2048_VALID_PEM_ENCODING = "rsa-2048.x509.pem"; 44 public static final String RSA_2048_VALID_DER_ENCODING = "rsa-2048.x509.der"; 45 public static final String RSA_2048_VALID_DIGEST_HEX_ENCODING = 51 public static final String RSA_2048_REDUNDANT_LEN_BYTES_PEM_ENCODING = 53 public static final String RSA_2048_REDUNDANT_LEN_BYTES_DER_ENCODING = 55 public static final String RSA_2048_REDUNDANT_LEN_DIGEST_HEX_ENCODING = 59 public static final String RSA_2048_TWO_CERTS_PEM_ENCODING = "rsa-2048-2-certs.x509.pem"; 60 public static final String RSA_2048_TWO_CERTS_DER_ENCODING = "rsa-2048-2-certs.x509.der"; 101 List<String> encodedCerts = getHexEncodedDigestsOfCertsFromResources( in testGenerateCertificatesWithTwoPEMEncodedCerts() 103 Set<String> expectedEncodings = createSetOfValues(RSA_2048_VALID_DIGEST_HEX_ENCODING, in testGenerateCertificatesWithTwoPEMEncodedCerts() [all …]
|
/tools/platform-compat/javatest/com/android/class2nonsdklist/ |
D | UnsupportedAppUsageAnnotationHandlerTest.java | 49 private static final String ANNOTATION = "Lannotation/Anno;"; 51 private static final Map<Integer, String> NULL_SDK_MAP; 53 Map<Integer, String> map = new HashMap<>(); 80 Map<Integer, String> validMaxTargetSdkValues) { in createGreylistHandler() 101 ArgumentCaptor<String> greylist = ArgumentCaptor.forClass(String.class); in testGreylistMethod() 122 ArgumentCaptor<String> greylist = ArgumentCaptor.forClass(String.class); in testGreylistConstructor() 143 ArgumentCaptor<String> greylist = ArgumentCaptor.forClass(String.class); in testGreylistField() 164 ArgumentCaptor<String> greylist = ArgumentCaptor.forClass(String.class); in testGreylistImplicit() 184 ArgumentCaptor<String> format = ArgumentCaptor.forClass(String.class); in testGreylistImplicit_Invalid_MissingOnClass() 206 ArgumentCaptor<String> format = ArgumentCaptor.forClass(String.class); in testGreylistImplicit_Invalid_PresentOnMember() [all …]
|
/tools/platform-compat/java/android/processor/compat/changeid/ |
D | Change.java | 24 final String name; 29 final String description; 34 final String javaPackage; 38 final String className; 42 final String qualifiedClass; 46 final String sourcePosition; 48 Change(Long id, String name, boolean disabled, boolean loggingOnly, Integer enabledAfter, in Change() 49 Integer enabledSince, String description, boolean overridable, String javaPackage, in Change() 50 String className, in Change() 51 String qualifiedClass, String sourcePosition) { in Change() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/oid/ |
D | OidConstants.java | 28 public static final String OID_DIGEST_MD5 = "1.2.840.113549.2.5"; 29 public static final String OID_DIGEST_SHA1 = "1.3.14.3.2.26"; 30 public static final String OID_DIGEST_SHA224 = "2.16.840.1.101.3.4.2.4"; 31 public static final String OID_DIGEST_SHA256 = "2.16.840.1.101.3.4.2.1"; 32 public static final String OID_DIGEST_SHA384 = "2.16.840.1.101.3.4.2.2"; 33 public static final String OID_DIGEST_SHA512 = "2.16.840.1.101.3.4.2.3"; 35 public static final String OID_SIG_RSA = "1.2.840.113549.1.1.1"; 36 public static final String OID_SIG_MD5_WITH_RSA = "1.2.840.113549.1.1.4"; 37 public static final String OID_SIG_SHA1_WITH_RSA = "1.2.840.113549.1.1.5"; 38 public static final String OID_SIG_SHA224_WITH_RSA = "1.2.840.113549.1.1.14"; [all …]
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | SignerParams.java | 52 private String name; 54 private String keystoreFile; 55 private String keystoreKeyAlias; 56 private String keystorePasswordSpec; 57 private String keyPasswordSpec; 59 private String keystoreType; 60 private String keystoreProviderName; 61 private String keystoreProviderClass; 62 private String keystoreProviderArg; 64 private String keyFile; [all …]
|
D | OptionsParser.java | 36 private final String[] mParams; 39 private String mLastOptionValue; 40 private String mPutBackLastOptionValue; 41 private String mLastOptionOriginalForm; 42 private String mPutBackLastOptionOriginalForm; 47 public OptionsParser(String[] params) { in OptionsParser() 58 public String nextOption() { in nextOption() 63 String param = mParams[mIndex]; in nextOption() 108 public String getOptionOriginalForm() { in getOptionOriginalForm() 115 public String getRequiredValue(String valueDescription) throws OptionsException { in getRequiredValue() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | TypeItem.kt | 58 ): String in <lambda>() 61 fun toErasedTypeString(context: Item? = null): String in <lambda>() 68 fun internalName(context: Item? = null): String { in <lambda>() 78 fun toSimpleType(): String { in <lambda>() 87 fun toCanonicalType(context: Item? = null): String { in <lambda>() 112 fun convertType(replacementMap: Map<String, String>?, owner: Item? = null): TypeItem in <lambda>() 114 fun convertTypeString(replacementMap: Map<String, String>?): String { in <lambda>() 142 fun defaultValueString(): String = defaultValue()?.toString() ?: "null" in <lambda>() 175 fun shortenTypes(type: String): String { in <lambda>() 203 fun stripJavaLangPrefix(type: String): String { in <lambda>() [all …]
|
D | AnnotationItem.kt | 49 fun isNullableAnnotation(qualifiedName: String): Boolean { in <lambda>() 53 fun isNonNullAnnotation(qualifiedName: String): Boolean { in isNonNullAnnotation() 63 fun qualifiedName(): String? in qualifiedName() 66 fun originalName(): String? in qualifiedName() 72 ): String in qualifiedName() 126 fun findAttribute(name: String?): AnnotationAttribute? { in findAttribute() 160 fun simpleName(item: AnnotationItem): String { in simpleName() 171 qualifiedName: String?, in mapName() 174 ): String? { in mapName() 415 classFinder: (String) -> ClassItem? in nullableAnnotationName() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiClass.java | 46 private final Map<String, ApiElement> mFields = new HashMap<>(); 47 private final Map<String, ApiElement> mMethods = new HashMap<>(); 49 public ApiClass(String name, int version, boolean deprecated) { in ApiClass() 53 public void addField(String name, int version, boolean deprecated) { in addField() 57 public void addMethod(String name, int version, boolean deprecated) { in addMethod() 65 public ApiElement addSuperClass(String superClass, int since) { in addSuperClass() 69 public ApiElement removeSuperClass(String superClass) { in removeSuperClass() 102 public void addInterface(String interfaceClass, int since) { in addInterface() 110 …private void addToMap(Map<String, ApiElement> elements, String name, int version, boolean deprecat… in addToMap() argument 120 private ApiElement addToArray(Collection<ApiElement> elements, String name, int version) { in addToArray() [all …]
|
/tools/metalava/src/main/java/com/android/resources/ |
D | ResourceType.java | 113 private final String mName; 115 private final String mDisplayName; 116 private final String[] mAlternateXmlNames; 119 String name, in ResourceType() 120 String displayName, in ResourceType() 121 String... alternateXmlNames) { in ResourceType() 128 ResourceType(String name, String displayName, Kind kind) { in ResourceType() 132 mAlternateXmlNames = new String[0]; in ResourceType() 140 private static final ImmutableMap<String, ResourceType> TAG_NAMES; 141 private static final ImmutableMap<String, ResourceType> CLASS_NAMES; [all …]
|
/tools/platform-compat/java/com/android/class2nonsdklist/ |
D | Class2NonSdkList.java | 54 private static final String UNSUPPORTED_APP_USAGE_ANNOTATION = 57 private static final String FLAG_UNSUPPORTED = "unsupported"; 58 private static final String FLAG_BLOCKED = "blocked"; 59 private static final String FLAG_MAX_TARGET_O = "max-target-o"; 60 private static final String FLAG_MAX_TARGET_P = "max-target-p"; 61 private static final String FLAG_MAX_TARGET_Q = "max-target-q"; 62 private static final String FLAG_MAX_TARGET_R = "max-target-r"; 64 private static final String FLAG_PUBLIC_API = "public-api"; 66 private static final Map<Integer, String> TARGET_SDK_TO_LIST_MAP; 68 Map<Integer, String> map = new HashMap<>(); [all …]
|
D | ApiComponents.java | 28 private static final String PRIMITIVE_TYPES = "ZBCSIJFD"; 31 private final String mMemberName; 33 private final String mMethodParameterTypes; 35 private ApiComponents(PackageAndClassName packageAndClassName, String memberName, in ApiComponents() 36 String methodParameterTypes) { in ApiComponents() 43 public String toString() { in toString() 59 public String getMemberName() { in getMemberName() 63 public String getMethodParameterTypes() { in getMethodParameterTypes() 74 private static String parseJNIClassDescriptor(StringCursor sc) in parseJNIClassDescriptor() 88 String jniClassDescriptor = sc.next(semiColonPos); in parseJNIClassDescriptor() [all …]
|
D | AnnotationPropertyWriter.java | 21 private static final String SIGNATURE_COLUMN = "signature"; 23 private final List<Map<String, String>> mContents; 24 private final Set<String> mColumns; 26 public AnnotationPropertyWriter(String csvFile) throws FileNotFoundException { in AnnotationPropertyWriter() 38 public void consume(String apiSignature, Map<String, String> annotationProperties, in consume() argument 39 Set<String> parsedFlags) { in consume() 41 Map<String, String> contents = new HashMap<>(annotationProperties); in consume() 51 private static String escapeCsvColumn(String column) { in escapeCsvColumn() 60 List<String> columns = new ArrayList<>(mColumns); in close() 69 mOutput.println(String.join(",", columns)); in close() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/jar/ |
D | ManifestWriter.java | 45 String manifestVersion = attributes.getValue(Attributes.Name.MANIFEST_VERSION); in writeMainSection() 53 SortedMap<String, String> namedAttributes = getAttributesSortedByName(attributes); in writeMainSection() 60 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection() 74 static void writeAttribute(OutputStream out, Attributes.Name name, String value) in writeAttribute() 79 private static void writeAttribute(OutputStream out, String name, String value) in writeAttribute() 84 private static void writeLine(OutputStream out, String line) throws IOException { in writeLine() 108 static SortedMap<String, String> getAttributesSortedByName(Attributes attributes) { in getAttributesSortedByName() 110 SortedMap<String, String> namedAttributes = new TreeMap<String, String>(); in getAttributesSortedByName() 112 String attrName = attribute.getKey().toString(); in getAttributesSortedByName() 113 String attrValue = attribute.getValue().toString(); in getAttributesSortedByName() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZipToolsTest.java | 53 public String mZipFile; 57 public List<String> mUnzipCommand; 61 public String mUnzipLineRegex; 67 public String mName; 107 … private static void assertFileInZip(@Nonnull ZFile zfile, @Nonnull String name) throws Exception { in assertFileInZip() 146 String unzipcmd = mUnzipCommand.get(0); in testReadZFile() 170 List<String> command = Lists.newArrayList(mUnzipCommand); in testReadZFile() 176 String text = new String(output, Charsets.US_ASCII); in testReadZFile() 177 String lines[] = text.split("\n"); in testReadZFile() 178 Map<String, Integer> sizes = Maps.newHashMap(); in testReadZFile() [all …]
|
/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/ |
D | LibraryBuildInfo.kt | 36 abstract val artifactId: Property<String> 38 abstract val groupId: Property<String> 40 abstract val version: Property<String> 42 abstract val sha: Property<String> 62 val serializedInfo: String = gson.toJson(info) in createFile() 79 it.artifactId.set(project.provider<String> { project.name }) in configureBuildInfoTask() 80 it.groupId.set(project.provider<String> { project.group as String }) in configureBuildInfoTask() 81 it.version.set(project.provider<String> { project.version as String }) in configureBuildInfoTask() 83 it.sha.set(project.provider<String> { if (inCI) getGitSha(project.projectDir) else "" }) in configureBuildInfoTask() 96 fun getGitSha(directory: File): String { in getGitSha() [all …]
|
/tools/dexter/testdata/expected/ |
D | entry_hooks.entry_hook | 16 method Base.foo(int, java.lang.String):int 23 0| invoke-static/range {v10..v12}, Tracer.OnEntry(Base, int, java.lang.String):void 29 .local v2, "msg", java.lang.String 48 …31| invoke-virtual {v3,v4,v5}, java.io.PrintStream.printf(java.lang.String, java.lang.Object[]):ja… 71 method Derived.foo(int, java.lang.String):int 78 0| invoke-static/range {v10..v12}, Tracer.OnEntry(Derived, int, java.lang.String):void 84 .local v2, "msg", java.lang.String 103 …31| invoke-virtual {v3,v4,v5}, java.io.PrintStream.printf(java.lang.String, java.lang.Object[]):ja… 128 method Target.main(java.lang.String[]):void 135 0| invoke-static/range {v8..v8}, Tracer.OnEntry(java.lang.String[]):void [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Reporter.kt | 47 enum class Severity(private val displayName: String) { in <lambda>() 76 override fun toString(): String = displayName in <lambda>() 88 private val errorMessage: String? 90 private var errors = mutableListOf<String>() 104 fun report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in hasErrors() 119 fun report(id: Issues.Issue, file: File?, message: String): Boolean { in report() 134 fun report(id: Issues.Issue, item: Item?, message: String, psi: PsiElement? = null): Boolean { in report() 141 … which: (severity: Severity, location: String?, message: String, id: Issues.Issue) -> Boolean in report() 147 else -> which(severity, null as String?, message, id) in report() 179 fun isSuppressed(id: Issues.Issue, item: Item? = null, message: String? = null): Boolean { in isSuppressed() [all …]
|
/tools/ndkports/src/main/kotlin/com/android/ndkports/ |
D | Port.kt | 23 args: List<String>, in executeProcessStep() 25 additionalEnvironment: Map<String, String>? = null in executeProcessStep() 26 ): Result<Unit, String> { in executeProcessStep() 47 name: String, in installDirectoryForPort() 69 val name: String, in installDirectoryForPort() 71 val dependencies: List<String> = emptyList() in installDirectoryForPort() 81 abstract val name: String in installDirectoryForPort() 89 abstract val version: String in installDirectoryForPort() 119 open val mavenVersion: String in installDirectoryForPort() 127 open val licensePath: String = "LICENSE" in installDirectoryForPort() [all …]
|