Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 94) sorted by relevance

1234

/tools/loganalysis/src/com/android/loganalysis/item/
DGenericItem.java50 public IItem merge(IItem other) throws ConflictingItemException { in merge() argument
51 if (this == other) { in merge()
54 if (other == null || getClass() != other.getClass()) { in merge()
58 return new GenericItem(mAllowedAttributes, mergeAttributes(other, mAllowedAttributes)); in merge()
71 protected Map<String, Object> mergeAttributes(IItem other, Set<String> attributes) in mergeAttributes() argument
73 if (this == other) { in mergeAttributes()
76 if (other == null || getClass() != other.getClass()) { in mergeAttributes()
80 GenericItem item = (GenericItem) other; in mergeAttributes()
91 public boolean isConsistent(IItem other) { in isConsistent() argument
92 if (this == other) { in isConsistent()
[all …]
DIItem.java36 public IItem merge(IItem other) throws ConflictingItemException; in merge() argument
51 public boolean isConsistent(IItem other); in isConsistent() argument
DGenericMapItem.java32 public IItem merge(IItem other) { in merge() argument
41 public boolean isConsistent(IItem other) { in isConsistent() argument
DLogcatItem.java154 public LogcatItem merge(IItem other) throws ConflictingItemException { in merge() argument
155 if (this == other) { in merge()
158 if (other == null || !(other instanceof LogcatItem)) { in merge()
162 LogcatItem logcat = (LogcatItem) other; in merge()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DDataSlice.kt49 override fun equals(other: Any?): Boolean { in equals()
50 if (other === this) return true in equals()
51 if (other !is DataSlice) return false in equals()
52 if (length != other.length) return false in equals()
53 if (_hasCachedHashCode && other._hasCachedHashCode in equals()
54 && hashCode() != other.hashCode()) return false in equals()
56 var otherIndex = other.startIndex in equals()
58 if (buffer[myIndex] != other.buffer[otherIndex]) { in equals()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextPropertyItem.kt38 override fun equals(other: Any?): Boolean { in equals()
39 if (this === other) return true in equals()
40 if (other !is FieldItem) return false in equals()
42 if (name() != other.name()) { in equals()
46 return containingClass() == other.containingClass() in equals()
DTextFieldItem.kt39 override fun equals(other: Any?): Boolean { in equals()
40 if (this === other) return true in equals()
41 if (other !is FieldItem) return false in equals()
43 if (name() != other.name()) { in equals()
47 return containingClass() == other.containingClass() in equals()
DTextParameterItem.kt56 override fun equals(other: Any?): Boolean { in type()
57 if (this === other) return true in type()
58 if (other !is ParameterItem) return false in type()
60 return parameterIndex == other.parameterIndex in type()
DTextPackageItem.kt60 override fun equals(other: Any?): Boolean { in classList()
61 if (this === other) return true in classList()
62 if (other !is PackageItem) return false in classList()
64 return name == other.qualifiedName() in classList()
DTextMethodItem.kt48 override fun equals(other: Any?): Boolean { in equals()
49 if (this === other) return true in equals()
50 if (other !is MethodItem) return false in equals()
52 if (name() != other.name()) { in equals()
56 if (containingClass() != other.containingClass()) { in equals()
61 val parameters2 = other.parameters() in equals()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DPair.java64 Pair other = (Pair) obj; in equals() local
66 if (other.mFirst != null) { in equals()
69 } else if (!mFirst.equals(other.mFirst)) { in equals()
73 if (other.mSecond != null) { in equals()
76 } else if (!mSecond.equals(other.mSecond)) { in equals()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DProcessModelFragment.kt63 fun merge(other: trebuchet.model.fragments.ProcessModelFragment) { in <lambda>()
64 if (other === this) return in <lambda>()
65 if (id != -1 && id != other.id) { in <lambda>()
68 hint(name = other.name) in <lambda>()
69 other._threads.forEach { (key, value) -> in <lambda>()
75 other._counters.forEach { (key, value) -> in <lambda>()
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/power/
Dpower_metrics.py94 def __eq__(self, other): argument
95 return self.value == other.to_unit(self._unit).value
97 def __lt__(self, other): argument
98 return self.value < other.to_unit(self._unit).value
100 def __le__(self, other): argument
101 return self == other or self < other
105 def __add__(self, other): argument
109 return Measurement(self.value + other.to_unit(self._unit).value,
112 def __sub__(self, other): argument
116 return Measurement(self.value - other.to_unit(self._unit).value,
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DFailureDescription.java190 FailureDescription other = (FailureDescription) obj; in equals()
191 if (mActionInProgress != other.mActionInProgress) return false; in equals()
193 if (other.mDebugHelpMessage != null) return false; in equals()
194 } else if (!mDebugHelpMessage.equals(other.mDebugHelpMessage)) return false; in equals()
196 if (other.mErrorMessage != null) return false; in equals()
197 } else if (!mErrorMessage.equals(other.mErrorMessage)) return false; in equals()
198 if (mFailureStatus != other.mFailureStatus) return false; in equals()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiPropertyItem.kt60 override fun equals(other: Any?): Boolean { in equals()
61 if (this === other) { in equals()
64 … return other is FieldItem && name == other.name() && containingClass == other.containingClass() in equals()
DPsiFieldItem.kt102 override fun equals(other: Any?): Boolean { in equals()
103 if (this === other) { in equals()
106 … return other is FieldItem && name == other.name() && containingClass == other.containingClass() in equals()
DPsiPackageItem.kt104 override fun equals(other: Any?): Boolean { in qualifiedName()
105 if (this === other) { in qualifiedName()
108 return other is PackageItem && qualifiedName == other.qualifiedName() in qualifiedName()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsTest.java96 Metrics other = new Metrics(false); in testCrossValidate() local
101 other.addRunMetric("metric1", e); in testCrossValidate()
104 Arrays.asList("2.0", "2.1", "2.2").forEach(e -> other.addRunMetric("metric5", e)); in testCrossValidate()
110 other.addTestMetric(id1, "metric1", e); in testCrossValidate()
118 other.addTestMetric(id2, "metric1", e); in testCrossValidate()
120 Arrays.asList("3.0", "3.1", "3.3").forEach(e -> other.addTestMetric(id2, "metric2", e)); in testCrossValidate()
121 mMetrics.crossValidate(other); in testCrossValidate()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DSourcePositionInfo.kt26 override fun compareTo(other: SourcePositionInfo): Int { in compareTo()
27 val r = file.compareTo(other.file) in compareTo()
28 return if (r != 0) r else line - other.line in compareTo()
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/hvpm/
Dtransformers.py357 def __add__(self, other): argument
359 self.main_current + other.main_current,
360 self.usb_current + other.usb_current,
361 self.aux_current + other.aux_current,
362 self.main_voltage + other.main_voltage,
363 self.usb_voltage + other.usb_voltage,
364 ], self.sample_time + other.sample_time)
366 def __truediv__(self, other): argument
368 self.main_current / other,
369 self.usb_current / other,
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/
Dtransformers_test.py35 def __add__(self, other): argument
36 return HvpmReading([self.main_current + other.main_current],
37 self.sample_time + other.sample_time)
39 def __truediv__(self, other): argument
40 return HvpmReading([self.main_current / other],
41 self.sample_time / other)
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/lvpm_stock/
Dstock_transformers.py296 def __add__(self, other): argument
298 self.main_current + other.main_current,
299 self.usb_current + other.usb_current,
300 self.aux_current + other.aux_current,
302 sample_time = self.sample_time + other.sample_time
306 def __truediv__(self, other): argument
308 self.main_current / other,
309 self.usb_current / other,
310 self.aux_current / other,
312 sample_time = self.sample_time / other
/tools/tradefederation/core/common_util/com/android/tradefed/testtype/
DAbi.java70 Abi other = (Abi) obj; in equals() local
71 if (!mName.equals(other.mName)) { in equals()
74 if (!mBitness.equals(other.mBitness)) { in equals()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFat.java396 final Fat other = (Fat) obj; in equals()
397 if (this.fatType != other.fatType) return false; in equals()
398 if (this.sectorCount != other.sectorCount) return false; in equals()
399 if (this.sectorSize != other.sectorSize) return false; in equals()
400 if (this.lastClusterIndex != other.lastClusterIndex) return false; in equals()
401 if (!Arrays.equals(this.entries, other.entries)) return false; in equals()
402 if (this.getMediumDescriptor() != other.getMediumDescriptor()) in equals()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_contacts_utils.py143 def __eq__(self, other): argument
144 return (self.phone_type == other.phone_type and
145 self.phone_number == other.phone_number)
163 def __lt__(self, other): argument
164 return self.name < other.name
172 def __eq__(self, other): argument
173 return hash(self) == hash(other)
175 def __ne__(self, other): argument
176 return not self.__eq__(other)

1234