/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/doclava1/ |
D | ApiFile.java | 106 if ("package".equals(token)) { in parseApi() 140 if (!"{".equals(token)) { in parsePackage() 145 if ("}".equals(token)) { in parsePackage() 171 if ("class".equals(token)) { in parseClass() 173 } else if ("interface".equals(token)) { in parseClass() 177 } else if ("@interface".equals(token)) { in parseClass() 182 } else if ("enum".equals(token)) { in parseClass() 211 if ("extends".equals(token)) { in parseClass() 219 if ("implements".equals(token) || "extends".equals(token) || in parseClass() 220 isInterface && ext != null && !token.equals("{")) { 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/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestInfo.java | 107 mName.equals(test.getName()), "Only TestInfo for the same module can be merged."); in merge() 174 && !OPTION_INCLUDE_ANNOTATION.equals( in merge() 179 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 186 && !OPTION_EXCLUDE_ANNOTATION.equals( in merge() 191 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge() 200 && !OPTION_INCLUDE_ANNOTATION.equals( in merge() 206 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 214 && !OPTION_EXCLUDE_ANNOTATION.equals( in merge() 220 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge() 262 public boolean equals(Object o) { in equals() method in TestInfo [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
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/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/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/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/util/net/ |
D | XmlRpcHelper.java | 174 if (!mInParams && !PARAMS_TAG.equals(localName)) { in startElement() 177 } else if (PARAMS_TAG.equals(localName)) { in startElement() 180 } else if (VALUE_TAG.equals(localName) || PARAM_TAG.equals(localName)) { in startElement() 192 if (PARAMS_TAG.equals(localName)) { in endElement() 194 } else if (VALUE_TAG.equals(localName) || PARAM_TAG.equals(localName)) { in endElement() 197 } else if (mType != null && mType.equals(localName)) { in endElement()
|
/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/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()
|
D | KernelLogParser.java | 128 if ("".equals(line.trim())) { in parseLine() 161 if (category.equals(KERNEL_RESET) || category.equals(NORMAL_REBOOT)) { in checkAndAddKernelEvent() 165 if (category.equals(NORMAL_REBOOT)) { in checkAndAddKernelEvent() 170 if (category.equals(SELINUX_DENIAL)) { in checkAndAddKernelEvent() 177 } else if (category.equals(PAGE_ALLOC_FAILURE)) { in checkAndAddKernelEvent() 184 } else if (category.equals(LOW_MEMORY_KILLER)) { in checkAndAddKernelEvent()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceSelectionOptions.java | 259 return mRequestedType.equals(DeviceRequestedType.LOCAL_EMULATOR); in emulatorRequested() 270 return mRequestedType.equals(DeviceRequestedType.LOCAL_EMULATOR); in stubEmulatorRequested() 281 return mRequestedType.equals(DeviceRequestedType.NULL_DEVICE); in nullDeviceRequested() 290 return mRequestedType.equals(DeviceRequestedType.TCP_DEVICE); in tcpDeviceRequested() 299 return mRequestedType.equals(DeviceRequestedType.GCE_DEVICE); in gceDeviceRequested() 305 return DeviceRequestedType.REMOTE_DEVICE.equals(mRequestedType); in remoteDeviceRequested() 473 if (!propEntry.getValue().equals(device.getProperty(propEntry.getKey()))) { in matches() 564 if (!(device.getClass().equals(classNeeded))) { in checkDeviceTypeRequested() 575 if (tcpDeviceRequested() != (TcpDevice.class.equals(device.getClass()))) { in checkDeviceTypeRequested() 579 if (gceDeviceRequested() != (RemoteAvdIDevice.class.equals(device.getClass()))) { in checkDeviceTypeRequested() [all …]
|
D | RemoteAndroidDevice.java | 100 if (InstanceType.CUTTLEFISH.equals(type) in postAdbReboot() 101 || InstanceType.REMOTE_NESTED_AVD.equals(type) in postAdbReboot() 102 || InstanceType.EMULATOR.equals(type)) { in postAdbReboot() 181 if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect() 192 } else if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect() 206 if (CommandStatus.SUCCESS.equals(resultConfirmation.getStatus()) in confirmAdbTcpConnect() 230 return CommandStatus.SUCCESS.equals(result.getStatus()); in adbTcpDisconnect()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | MultiUserSetupUtil.java | 49 if (!CommandStatus.SUCCESS.equals(createUserRes.getStatus())) { in prepareRemoteUser() 69 if (!CommandStatus.SUCCESS.equals(createUserRes.getStatus())) { in addExtraCvdUser() 99 if (!CommandStatus.SUCCESS.equals(addNetworkInterfaceRes.getStatus())) { in setupNetworkInterface() 107 if (!CommandStatus.SUCCESS.equals(addNetworkInterfaceRes.getStatus())) { in setupNetworkInterface() 133 if (!CommandStatus.SUCCESS.equals(cpRes.getStatus())) { in prepareRemoteHomeDir() 141 if (!CommandStatus.SUCCESS.equals(chownRes.getStatus())) { in prepareRemoteHomeDir() 151 if (!CommandStatus.SUCCESS.equals(copyRes.getStatus())) { in prepareRemoteHomeDir()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ListInstrumentationParser.java | 71 public boolean equals(Object object) { in equals() method in ListInstrumentationParser.InstrumentationTarget 74 return Objects.equals(this.packageName, that.packageName) in equals() 75 && Objects.equals(this.runnerName, that.runnerName) in equals() 76 && Objects.equals(this.targetName, that.targetName); in equals() 94 if (!this.packageName.equals(o.packageName)) { in compareTo() 96 } else if (!this.runnerName.equals(o.runnerName)) { in compareTo()
|
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()
|
D | RunUtil.java | 96 if (this.equals(sDefaultInstance)) { in setWorkingDir() 107 if (this.equals(sDefaultInstance)) { in setEnvVariable() 123 if (this.equals(sDefaultInstance)) { in unsetEnvVariable() 132 if (this.equals(sDefaultInstance)) { in setRedirectStderrToStdout() 184 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdRetry() 204 if (EnvPriority.UNSET.equals(mEnvVariablePriority)) { in createProcessBuilder() 287 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdSilentlyRetry() 383 if (CommandStatus.TIMED_OUT.equals(status) || CommandStatus.EXCEPTION.equals(status)) { in runTimed() 783 if (this.equals(sDefaultInstance)) { in setEnvVariablePriority()
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiGenerator.java | 46 if (arg.equals("--pattern")) { in main() 54 } else if (arg.equals("--current-version")) { in main() 66 } else if (arg.equals("--current-codename")) { in main() 74 } else if (arg.equals("--current-jar")) { in main() 87 } else if (arg.equals("--min-api")) { in main() 95 } else if (arg.length() >= 2 && arg.substring(0, 2).equals("--")) { in main() 129 if (currentCodename != null && !"REL".equals(currentCodename)) { in main()
|
/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/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarder.java | 60 if (NULL_STRING.equals(testId.getTestName())) { in testStarted() 79 if (NULL_STRING.equals(testId.getTestName())) { in testStarted() 98 if (mNullMethod != null && mNullMethod.equals(testId)) { in testAssumptionFailure() 116 if (mNullMethod != null && mNullMethod.equals(testId)) { in testFailed() 133 if (mNullMethod != null && mNullMethod.equals(testId)) { in testIgnored() 151 if (mNullMethod != null && mNullMethod.equals(testId)) { in testEnded() 171 if (mNullMethod != null && mNullMethod.equals(testId)) { in testEnded()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | GranularRetriableTestWrapper.java | 236 if (RetryStrategy.RERUN_UNTIL_FAILURE.equals(mRetryStrategy)) { in run() 280 if (RetryStrategy.RETRY_TEST_RUN_FAILURE.equals(mRetryStrategy) in run() 281 || RetryStrategy.RETRY_ANY_FAILURE.equals(mRetryStrategy)) { in run() 288 if (RetryStrategy.RETRY_TEST_CASE_FAILURE.equals(mRetryStrategy) in run() 289 || RetryStrategy.RETRY_ANY_FAILURE.equals(mRetryStrategy)) { in run() 330 if (RetryStrategy.RERUN_UNTIL_FAILURE.equals(mRetryStrategy)) { in run() 353 return RetryStrategy.RETRY_ANY_FAILURE.equals(retryStrategy) in shouldHandleFailure() 354 || RetryStrategy.RETRY_TEST_RUN_FAILURE.equals(retryStrategy) in shouldHandleFailure() 355 || RetryStrategy.RETRY_TEST_CASE_FAILURE.equals(retryStrategy); in shouldHandleFailure()
|
/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/targetprep/ |
D | FastbootDeviceFlasher.java | 169 if ("flash".equals(action) || "update".equals(action)) { in buildFastbootCommand() 198 if (UserDataFlashOption.FORCE_WIPE.equals(mUserDataFlashOption) || in handleUserDataFlashing() 199 UserDataFlashOption.WIPE.equals(mUserDataFlashOption)) { in handleUserDataFlashing() 246 if (!CommandStatus.SUCCESS.equals(result.getStatus()) in hasPartition() 377 !deviceBuild.getBootloaderVersion().equals(currentBootloaderVersion)) { in checkAndFlashBootloader() 460 !deviceBuild.getBasebandVersion().equals(currentBasebandVersion)); in checkShouldFlashBaseband() 487 if (!mUserDataFlashOption.equals(UserDataFlashOption.RETAIN)) { in wipeCache() 634 if (systemBuildId.equals(deviceBuild.getDeviceBuildId()) && in shouldFlashSystem() 716 if (device.getDeviceState().equals(TestDeviceState.FASTBOOT)) { in getCurrentSlot()
|