/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 72 if ((params.length == 0) || ("--help".equals(params[0])) || ("-h".equals(params[0]))) { in main() 75 } else if ("--version".equals(params[0])) { in main() 82 if ("sign".equals(cmd)) { in main() 85 } else if ("verify".equals(cmd)) { in main() 88 } else if ("rotate".equals(cmd)) { in main() 91 } else if ("lineage".equals(cmd)) { in main() 94 } else if ("help".equals(cmd)) { in main() 97 } else if ("version".equals(cmd)) { in main() 137 if (("help".equals(optionName)) || ("h".equals(optionName))) { in sign() 140 } else if ("out".equals(optionName)) { in sign() [all …]
|
D | OptionsParser.java | 77 if ("--".equals(param)) { in nextOption() 127 if ("--".equals(param)) { in getRequiredValue() 160 if ("true".equals(stringValue)) { in getOptionalBooleanValue() 162 } else if ("false".equals(stringValue)) { in getOptionalBooleanValue() 176 if ("true".equals(stringValue)) { in getOptionalBooleanValue() 179 } else if ("false".equals(stringValue)) { in getOptionalBooleanValue() 196 if ("--".equals(param)) { in getRemainingParams()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | ApiFile.java | 134 if (!format.equals(api.getFormat())) { in parseApiSingleFile() 172 if ("package".equals(token)) { in parseApiSingleFile() 214 if (!pkg.getModifiers().toString().equals(existing.getModifiers().toString())) { in parsePackage() 223 if (!"{".equals(token)) { in parsePackage() 228 if ("}".equals(token)) { in parsePackage() 254 if ("class".equals(token)) { in parseClass() 256 } else if ("interface".equals(token)) { in parseClass() 260 } else if ("@interface".equals(token)) { in parseClass() 265 } else if ("enum".equals(token)) { in parseClass() 299 if ("extends".equals(token)) { in parseClass() [all …]
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiUtil.java | 62 if (!"REL".equals(Build.VERSION.CODENAME)) { in onCreate() 185 if ("addOpenNetwork".equals(method)) { in onStart() 191 } else if ("addWpaPskNetwork".equals(method)) { in onStart() 198 } else if ("associateNetwork".equals(method)) { in onStart() 204 } else if ("disconnect".equals(method)) { in onStart() 207 } else if ("disableNetwork".equals(method)) { in onStart() 212 } else if ("isWifiEnabled".equals(method)) { in onStart() 215 } else if ("getIpAddress".equals(method)) { in onStart() 227 } else if ("getSSID".equals(method)) { in onStart() 232 } else if ("getBSSID".equals(method)) { in onStart() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 300 if (ByteBuffer.class.equals(elementClass)) { in parseSetOf() 302 } else if (Asn1OpaqueObject.class.equals(elementClass)) { in parseSetOf() 568 if (Asn1OpaqueObject.class.equals(field.getType())) { in setFieldValue() 593 if (ByteBuffer.class.equals(targetType)) { in convert() 595 } else if (byte[].class.equals(targetType)) { in convert() 603 } else if (Asn1OpaqueObject.class.equals(targetType)) { in convert() 609 if ((int.class.equals(targetType)) || (Integer.class.equals(targetType))) { in convert() 611 } else if ((long.class.equals(targetType)) || (Long.class.equals(targetType))) { in convert() 613 } else if (BigInteger.class.equals(targetType)) { in convert() 618 if (String.class.equals(targetType)) { in convert() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceSelectionOptions.java | 261 return mRequestedType.equals(DeviceRequestedType.LOCAL_EMULATOR); in emulatorRequested() 272 return mRequestedType.equals(DeviceRequestedType.LOCAL_EMULATOR); in stubEmulatorRequested() 283 return mRequestedType.equals(DeviceRequestedType.NULL_DEVICE); in nullDeviceRequested() 292 return mRequestedType.equals(DeviceRequestedType.TCP_DEVICE); in tcpDeviceRequested() 301 return mRequestedType.equals(DeviceRequestedType.GCE_DEVICE); in gceDeviceRequested() 307 return DeviceRequestedType.REMOTE_DEVICE.equals(mRequestedType); in remoteDeviceRequested() 311 return DeviceRequestedType.LOCAL_VIRTUAL_DEVICE.equals(mRequestedType); in localVirtualDeviceRequested() 479 if (!propEntry.getValue().equals(device.getProperty(propEntry.getKey()))) { in matches() 570 if (!device.getClass().equals(classNeeded)) { in checkDeviceTypeRequested() 581 if (tcpDeviceRequested() != TcpDevice.class.equals(device.getClass())) { in checkDeviceTypeRequested() [all …]
|
D | NativeDevice.java | 422 if (!getIDevice().equals(newDevice)) { in setIDevice() 473 if (!TestDeviceState.ONLINE.equals(getDeviceState())) { in getProperty() 480 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in getProperty() 535 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in setProperty() 1235 if (SyncError.TRANSFER_PROTOCOL_ERROR.equals(e.getErrorCode())) { in pushFile() 1400 if (unitType.equals("M")) { in parseFreeSpaceFromFree() 1402 } else if (unitType.equals("G")) { in parseFreeSpaceFromFree() 1474 if (mountpoint.equals(info.mountpoint)) return info; in getMountPointInfo() 1875 AdbAction adbAction = new AdbAction(timeout, fullCmd, "shell".equals(cmdArgs[0])); in executeAdbCommand() 1988 if (fastbootResult.getStatus().equals(CommandStatus.TIMED_OUT)) { in isRecoveryNeeded() [all …]
|
/tools/tradefederation/core/util-apps/ContentProvider/main/java/android/tradefed/contentprovider/ |
D | ManagedFileContentProvider.java | 96 if ("/".equals(file.getAbsolutePath())) { in query() 213 if (COLUMN_NAME.equals(columnName)) { in getColumnValue() 215 } else if (COLUMN_ABSOLUTE_PATH.equals(columnName)) { in getColumnValue() 217 } else if (COLUMN_DIRECTORY.equals(columnName)) { in getColumnValue() 219 } else if (COLUMN_METADATA.equals(columnName)) { in getColumnValue() 221 } else if (COLUMN_MIME_TYPE.equals(columnName)) { in getColumnValue() 259 if ("r".equals(mode)) { in modeToMode() 261 } else if ("w".equals(mode) || "wt".equals(mode)) { in modeToMode() 266 } else if ("wa".equals(mode)) { in modeToMode() 271 } else if ("rw".equals(mode)) { in modeToMode() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestInfo.java | 105 mName.equals(test.getName()), "Only TestInfo for the same module can be merged."); in merge() 172 && !OPTION_INCLUDE_ANNOTATION.equals( in merge() 177 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 184 && !OPTION_EXCLUDE_ANNOTATION.equals( in merge() 189 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge() 198 && !OPTION_INCLUDE_ANNOTATION.equals( in merge() 204 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 212 && !OPTION_EXCLUDE_ANNOTATION.equals( in merge() 218 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge() 260 public boolean equals(Object o) { in equals() method in TestInfo [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/item/ |
D | GenericItemTest.java | 143 assertTrue(mEmptyItem1.equals(mEmptyItem1)); in testEquals() 144 assertFalse(mEmptyItem1.equals(null)); in testEquals() 145 assertTrue(mEmptyItem1.equals(mEmptyItem2)); in testEquals() 146 assertTrue(mEmptyItem2.equals(mEmptyItem1)); in testEquals() 147 assertFalse(mEmptyItem1.equals(mStringItem)); in testEquals() 148 assertFalse(mStringItem.equals(mEmptyItem1)); in testEquals() 149 assertFalse(mIntegerItem.equals(mStringItem)); in testEquals() 150 assertFalse(mEmptyItem1.equals(mFullItem1)); in testEquals() 151 assertFalse(mFullItem1.equals(mEmptyItem1)); in testEquals() 152 assertTrue(mFullItem1.equals(mFullItem2)); in testEquals() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | LogcatParser.java | 217 if ("".equals(line.trim())) { in parseLine() 255 if ("I".equals(level) && "ShutdownThread".equals(tag) && in parseLine() 278 if ("E".equals(level) && "ActivityManager".equals(tag)) { in parseLine() 345 if ("E".equals(data.mLevel) && "ActivityManager".equals(data.mTag)) { in commit() 495 public boolean equals(Object otherObj) { in equals() method in LogcatParser.ExtrasPattern 500 if ((mLevel == null || other.mLevel == null || mLevel.equals(other.mLevel)) && in equals() 501 (mTag == null || other.mTag == null || mTag.equals(other.mTag))) { in equals() 611 return mLevel.equals(level) && mTag.equals(tag); in matches()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ZipUtilTest.java | 231 .filter(e -> e.getFileName().equals("empty_file")) in testPartipUnzip() 251 .filter(e -> e.getFileName().equals("large_text/file.txt")) in testPartipUnzip() 282 .filter(e -> e.getFileName().equals("executable/executable_file")) in testPartipUnzip() 301 .filter(e -> e.getFileName().equals("read_only/readonly_file")) in testPartipUnzip() 320 .filter(e -> e.getFileName().equals("read_only/")) in testPartipUnzip() 339 .filter(e -> e.getFileName().equals("large_text/")) in testPartipUnzip() 392 .filter(e -> e.getFileName().equals("empty_file")) in testPartialUnzipWithUseZip64() 412 .filter(e -> e.getFileName().equals("large_text/file.txt")) in testPartialUnzipWithUseZip64() 443 .filter(e -> e.getFileName().equals("executable/executable_file")) in testPartialUnzipWithUseZip64() 462 .filter(e -> e.getFileName().equals("read_only/readonly_file")) in testPartialUnzipWithUseZip64() [all …]
|
D | PairTest.java | 29 Assert.assertFalse(p1.equals(obj1)); in testPairs() 33 Assert.assertFalse(p1.equals(p2)); in testPairs() 38 Assert.assertTrue(p1.equals(p2)); in testPairs() 41 Assert.assertFalse(p1.equals(null)); in testPairs() 46 Assert.assertFalse(p1.equals(p2)); in testPairs() 51 Assert.assertTrue(p1.equals(p2)); in testPairs() 57 Assert.assertTrue(p1.equals(p2)); in testPairs() 61 Assert.assertTrue(p3.equals(p4)); in testPairs()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationXmlParser.java | 109 if (OBJECT_TAG.equals(localName)) { in startElement() 121 } else if (DEVICE_TAG.equals(localName)) { in startElement() 132 if (deviceName.equals(ConfigurationDef.DEFAULT_DEVICE_NAME)) { in startElement() 190 } else if (OPTION_TAG.equals(localName)) { in startElement() 216 } else if (CONFIG_TAG.equals(localName)) { in startElement() 226 } else if (INCLUDE_TAG.equals(localName)) { in startElement() 249 } else if (TEMPLATE_INCLUDE_TAG.equals(localName)) { in startElement() 291 if (OBJECT_TAG.equals(localName) || Configuration.isBuiltInObjType(localName) in endElement() 295 if (DEVICE_TAG.equals(localName) && !mInsideParentDeviceTag) { in endElement() 299 if (mCurrentObjectType != null && mCurrentObjectType.equals(localName)) { in endElement() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 234 if ((manifestEntry == null) && (MANIFEST_ENTRY_NAME.equals(entryName))) { in verify() 491 if (!Pkcs7Constants.OID_SIGNED_DATA.equals(contentInfo.contentType)) { in verifySigBlockAgainstSigFile() 718 if (!contentType.equals(signedData.encapContentInfo.contentType)) { in verifySignerInfoAgainstSigFile() 736 if (!Arrays.equals( in verifySignerInfoAgainstSigFile() 815 while (!root.getSubjectDN().equals(root.getIssuerDN())) { in getCertificateChain() 820 if (targetDn.equals(unusedCert.getSubjectDN())) { in getCertificateChain() 845 return idSerialNumber.equals(cert.getSerialNumber()) in isMatchingCerticicate() 846 && idIssuer.equals(cert.getIssuerX500Principal()); in isMatchingCerticicate() 1304 if (OID_SIG_RSA.equals(signatureAlgorithmOid)) { in getJcaSignatureAlgorithm() 1306 } else if (OID_SIG_DSA.equals(signatureAlgorithmOid)) { in getJcaSignatureAlgorithm() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDevice.java | 129 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in preInvocationSetup() 130 if (mGceAvd != null && GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in preInvocationSetup() 186 if (!GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in postInvocationTearDown() 229 if (InstanceType.GCE.equals(type) || InstanceType.REMOTE_AVD.equals(type)) { in getSshBugreport() 267 if (GceAvdInfo.GceStatus.BOOT_FAIL.equals(mGceAvd.getStatus())) { in launchGce() 364 if (InstanceType.CUTTLEFISH.equals(type) || InstanceType.REMOTE_NESTED_AVD.equals(type)) { in getTombstones() 400 if (!GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in getAvdInfo() 440 if (!getInitialSerial().equals(descriptor.getSerial())) { in getDeviceDescriptor()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 140 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in checkGSUtil() 186 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in copy() 286 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in makeBucket() 324 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in ls() 358 return files.get(0).equals(getUriForGcsPath(Paths.get(path))); in isFile() 386 if ("Hash (md5)".equals(key)) { in parseStat() 431 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in stat() 467 if (CommandStatus.SUCCESS.equals(res.getStatus())) { in md5Hash() 591 if (!force && !CommandStatus.SUCCESS.equals(res.getStatus())) { in remove() 650 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in removeBucket()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FastbootDeviceFlasher.java | 171 if ("flash".equals(action) || "update".equals(action)) { in buildFastbootCommand() 205 if (UserDataFlashOption.FORCE_WIPE.equals(mUserDataFlashOption) || in handleUserDataFlashing() 206 UserDataFlashOption.WIPE.equals(mUserDataFlashOption)) { in handleUserDataFlashing() 255 if (!CommandStatus.SUCCESS.equals(result.getStatus()) in hasPartition() 390 !deviceBuild.getBootloaderVersion().equals(currentBootloaderVersion)) { in checkAndFlashBootloader() 476 !deviceBuild.getBasebandVersion().equals(currentBasebandVersion)); in checkShouldFlashBaseband() 503 if (!mUserDataFlashOption.equals(UserDataFlashOption.RETAIN)) { in wipeCache() 659 if (systemBuildId.equals(deviceBuild.getDeviceBuildId()) && in shouldFlashSystem() 745 if (device.getDeviceState().equals(TestDeviceState.FASTBOOT)) { in getCurrentSlot()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileParser.java | 100 public boolean equals(Object o) { in equals() method in CommandFileParser.CommandLine 103 return super.equals(o) && in equals() 104 Objects.equals(otherLine.getFile(), mFile) && in equals() 206 return line.size() >= 4 && "MACRO".equals(line.get(0)) && "=".equals(line.get(2)); in isLineMacro() 216 return line.size() == 3 && "LONG".equals(line.get(0)) && "MACRO".equals(line.get(1)); in isLineLongMacro() 225 return line.size() == 2 && "INCLUDE".equals(line.get(0)); in isLineIncludeDirective() 296 while (!"END MACRO".equals(inputLine)) { in scanFile()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | RunUtil.java | 98 if (this.equals(sDefaultInstance)) { in setWorkingDir() 109 if (this.equals(sDefaultInstance)) { in setEnvVariable() 125 if (this.equals(sDefaultInstance)) { in unsetEnvVariable() 134 if (this.equals(sDefaultInstance)) { in setRedirectStderrToStdout() 186 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdRetry() 215 if (EnvPriority.UNSET.equals(mEnvVariablePriority)) { in createProcessBuilder() 302 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdSilentlyRetry() 412 if (CommandStatus.TIMED_OUT.equals(status) || CommandStatus.EXCEPTION.equals(status)) { in runTimed() 834 if (this.equals(sDefaultInstance)) { in setEnvVariablePriority()
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 292 if (ANDROID_MANIFEST_ZIP_ENTRY_NAME.equals(cdRecord.getName())) { in getAndroidManifest() 350 && ("uses-sdk".equals(parser.getName())) in getMinSdkVersionFromBinaryAndroidManifest() 506 && ("application".equals(parser.getName())) in getDebuggableFromBinaryAndroidManifest() 516 return ("true".equals(value)) in getDebuggableFromBinaryAndroidManifest() 517 || ("TRUE".equals(value)) in getDebuggableFromBinaryAndroidManifest() 518 || ("1".equals(value)); in getDebuggableFromBinaryAndroidManifest() 581 && ("manifest".equals(parser.getName())) in getPackageNameFromBinaryAndroidManifest() 584 if ("package".equals(parser.getAttributeName(i)) in getPackageNameFromBinaryAndroidManifest()
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 341 if (TestStatus.IGNORED.equals(status)) { in serializeTestCases() 617 if (parser.getName().equals(MODULES_NOT_DONE_REASON)) { in handleModuleLevel() 645 if (TestStatus.IGNORED.equals(status)) { in handleTestCaseLevel() 650 if (parser.getName().equals(FAILURE_TAG)) { in handleTestCaseLevel() 657 if (TestStatus.FAILURE.equals(status)) { in handleTestCaseLevel() 659 } else if (TestStatus.ASSUMPTION_FAILURE.equals(status)) { in handleTestCaseLevel() 676 if (parser.getName().equals(BUGREPORT_TAG)) { in parseLoggedFiles() 678 } else if (parser.getName().equals(LOGCAT_TAG)) { in parseLoggedFiles() 680 } else if (parser.getName().equals(SCREENSHOT_TAG)) { in parseLoggedFiles() 697 if (parser.getName().equals(METRIC_TAG)) { in parseMetrics()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | RebootReasonCollectorTest.java | 131 .equals(2)); in testAddingMetrics_singleDevice() 146 .equals(1)); in testAddingMetrics_singleDevice() 153 entry.getKey().equals(RebootReasonCollector.COUNT_KEY) in testAddingMetrics_singleDevice() 158 .equals(3)); in testAddingMetrics_singleDevice() 231 .equals(1)); in testAddingMetrics_multiDevice() 244 .equals(1)); in testAddingMetrics_multiDevice() 259 .equals(1)); in testAddingMetrics_multiDevice() 272 .equals(1)); in testAddingMetrics_multiDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 185 assertFalse(config1a.equals(config2)); in testConfigId_equals() 186 assertFalse(config1a.equals(config3a)); in testConfigId_equals() 187 assertFalse(config1a.equals(config4)); in testConfigId_equals() 189 assertFalse(config2.equals(config1a)); in testConfigId_equals() 190 assertFalse(config2.equals(config3a)); in testConfigId_equals() 191 assertFalse(config2.equals(config4)); in testConfigId_equals() 193 assertFalse(config3a.equals(config1a)); in testConfigId_equals() 194 assertFalse(config3a.equals(config2)); in testConfigId_equals() 195 assertFalse(config3a.equals(config4)); in testConfigId_equals() 197 assertFalse(config4.equals(config1a)); in testConfigId_equals() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/ |
D | CentralDirectoryInfo.java | 220 if (!Arrays.equals( in CentralDirectoryInfo() 241 if (Long.toHexString(mUncompressedSize).equals("ffffffff") || in CentralDirectoryInfo() 242 Long.toHexString(mCompressedSize).equals("ffffffff") || in CentralDirectoryInfo() 243 Long.toHexString(mLocalHeaderOffset).equals("ffffffff")) { in CentralDirectoryInfo() 250 if (!Arrays.equals(ZIP64_FILE_FIELD_ID, zip64FieldId)) { in CentralDirectoryInfo() 264 public boolean equals(Object o) { in equals() method in CentralDirectoryInfo 265 return this.toString().equals(o.toString()); in equals()
|