/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandEventTest.java | 44 JSONObject obj = event.toJSON(); in testToJSON() local 45 Assert.assertEquals("InvocationStarted", obj.getString("type")); in testToJSON() 46 Assert.assertEquals("task_id", obj.getString("task_id")); in testToJSON() 47 Assert.assertEquals("attempt_id", obj.getString("attempt_id")); in testToJSON() 48 Assert.assertEquals("host", obj.getString("hostname")); in testToJSON() 49 Assert.assertEquals(100, obj.getLong("time")); in testToJSON() 50 Assert.assertEquals("s1", obj.getString("device_serial")); in testToJSON() 51 Assert.assertEquals(1, obj.getJSONArray("device_serials").length()); in testToJSON() 52 Assert.assertEquals("s1", obj.getJSONArray("device_serials").getString(0)); in testToJSON() 65 JSONObject obj = event.toJSON(); in testToJSON_noDeviceSerial() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | TestEnvironment.java | 210 void addTradefedConfigObject(TradefedConfigObject obj) { in addTradefedConfigObject() argument 211 mTradefedConfigObjects.add(obj); in addTradefedConfigObject() 215 TestEnvironment obj = new TestEnvironment(); in fromJson() local 220 obj.addEnvVar(envVar.getString("key"), envVar.getString("value")); in fromJson() 228 obj.addJvmOption(jvmOptions.getString(i)); in fromJson() 237 obj.addJavaProperty(javaProperty.getString("key"), javaProperty.getString("value")); in fromJson() 245 obj.addSetupScripts(scripts.getString(i)); in fromJson() 253 obj.addOutputFilePattern(patterns.getString(i)); in fromJson() 260 obj.setOutputFileUploadUrl(url); in fromJson() 264 obj.mUseSubprocessReporting = json.optBoolean("use_subprocess_reporting"); in fromJson() [all …]
|
D | ClusterCommandEvent.java | 169 final ClusterCommandEvent obj = new ClusterCommandEvent(); in build() local 170 obj.mTimestamp = mTimestamp; in build() 171 obj.mType = mType; in build() 172 obj.mCommandTaskId = mCommandTaskId; in build() 173 obj.mAttemptId = mAttemptId; in build() 174 obj.mHostName = mHostName; in build() 175 obj.mInvocationStatus = mInvocationStatus; in build() 176 obj.mData = new HashMap<>(mData); in build() 177 obj.mDeviceSerials = mDeviceSerials; in build() 178 return obj; in build()
|
D | TestContext.java | 65 final TestContext obj = new TestContext(); in fromJson() local 66 obj.mCommandLine = json.optString("command_line"); in fromJson() 71 obj.mEnvVars.put(pair.getString("key"), pair.getString("value")); in fromJson() 76 obj.mTestResources.addAll(TestResource.fromJsonArray(testResources)); in fromJson() 78 return obj; in fromJson() 93 for (TestResource obj : mTestResources) { in toJson() 94 testResources.put(obj.toJson()); in toJson()
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | ota_tool_test.py | 30 obj = 'some object' 32 ota_tool.OtaTool('').update(obj) 35 obj = 'some object' 37 ota_tool.OtaTool('').cleanup(obj)
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | Pair.java | 53 public boolean equals(Object obj) { in equals() argument 54 if (this == obj) { in equals() 57 if (obj == null) { in equals() 60 if (getClass() != obj.getClass()) { in equals() 64 Pair other = (Pair) obj; in equals()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SubprocessExceptionParser.java | 53 Throwable obj = (Throwable) SerializationUtil.deserialize(exception, true); in handleStderrException() local 54 if (obj instanceof DeviceNotAvailableException) { in handleStderrException() 55 throw (DeviceNotAvailableException) obj; in handleStderrException() 57 if (obj instanceof IHarnessException) { in handleStderrException() 58 throw new HarnessRuntimeException(message, (IHarnessException) obj); in handleStderrException() 61 message, obj, InfraErrorIdentifier.UNDETERMINED); in handleStderrException()
|
/tools/test/connectivity/acts/framework/acts/event/ |
D | subscription_bundle.py | 103 def create_from_static(obj): argument 113 return _create_from_object(obj, obj, StaticSubscriptionHandle) 129 def _create_from_object(obj, obj_to_search, subscription_handle_type): argument 149 bundle.add_subscription(getattr(obj, attr_name).subscription) 151 if isinstance(getattr(obj, attr_name), subscription_handle_type): 152 bundle.add_subscription(getattr(obj, attr_name).subscription)
|
D | decorators.py | 60 def register_instance_subscriptions(obj): argument 63 old_init = obj.__init__ 69 obj.__init__ = init_replacement 70 return obj
|
/tools/tradefederation/core/common_util/com/android/tradefed/testtype/ |
D | Abi.java | 60 public boolean equals(Object obj) { in equals() argument 61 if (this == obj) { in equals() 64 if (obj == null) { in equals() 67 if (getClass() != obj.getClass()) { in equals() 70 Abi other = (Abi) obj; in equals()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationUtil.java | 81 Object obj, in dumpClassToXml() argument 89 obj, in dumpClassToXml() 112 Object obj, in dumpClassToXml() argument 121 if (excludeClassFilter.contains(obj.getClass().getName())) { in dumpClassToXml() 127 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml() 128 dumpOptionsToXml(serializer, obj, printDeprecatedOptions, printUnchangedOptions); in dumpClassToXml() 132 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml() 133 dumpOptionsToXml(serializer, obj, printDeprecatedOptions, printUnchangedOptions); in dumpClassToXml() 149 Object obj, in dumpOptionsToXml() argument 156 comparisonBaseObj = obj.getClass().getDeclaredConstructor().newInstance(); in dumpOptionsToXml() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | MultiFailureDescription.java | 126 public boolean equals(Object obj) { in equals() argument 127 if (this == obj) return true; in equals() 128 if (obj == null) return false; in equals() 129 if (getClass() != obj.getClass()) return false; in equals() 130 MultiFailureDescription other = (MultiFailureDescription) obj; in equals()
|
D | TestDescription.java | 130 public boolean equals(Object obj) { in equals() argument 131 if (this == obj) return true; in equals() 132 if (obj == null) return false; in equals() 133 if (getClass() != obj.getClass()) return false; in equals() 134 TestDescription other = (TestDescription) obj; in equals()
|
D | FailureDescription.java | 186 public boolean equals(Object obj) { in equals() argument 187 if (this == obj) return true; in equals() 188 if (obj == null) return false; in equals() 189 if (getClass() != obj.getClass()) return false; in equals() 190 FailureDescription other = (FailureDescription) obj; in equals()
|
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestOption.java | 88 public boolean equals(Object obj) { in equals() argument 89 return mName.equals(((TestOption) obj).getName()) in equals() 90 && mValue.equals(((TestOption) obj).getValue()); in equals()
|
/tools/asuite/aidegen/lib/ |
D | ide_util_unittest.py | 482 obj = ide_util.IdeStudio() 483 obj._installed_path = False 485 obj.project_abspath = os.path.realpath(__file__) 486 obj.apply_optional_config() 487 self.assertEqual(obj.config_folders, []) 490 obj.project_abspath = IdeUtilUnittests._TEST_DIR 491 obj.apply_optional_config() 492 self.assertEqual(obj.config_folders, []) 495 self.assertIsNone(obj.apply_optional_config()) 501 obj = ide_util.IdeStudio() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1DerEncoderTest.java | 213 private static byte[] encode(Object obj) throws Asn1EncodingException { in encode() argument 214 return Asn1DerEncoder.encode(obj); in encode() 217 private static String encodeToHex(Object obj) throws Asn1EncodingException { in encodeToHex() argument 218 return HexEncoding.encode(encode(obj)); in encodeToHex() 332 public Asn1OpaqueObject obj; field in Asn1DerEncoderTest.SequenceWithOpaque 334 public SequenceWithOpaque(Asn1OpaqueObject obj) { in SequenceWithOpaque() argument 335 this.obj = obj; in SequenceWithOpaque()
|
/tools/tradefederation/core/ |
D | CleanSpec.mk | 47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/GoogleTradeFed_intermedia… 48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/GoogleTradeFedTests_inter…
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | ArrayUtil.java | 86 Object obj = iter.next(); in internalJoin() local 87 if (obj == null) { in internalJoin() 90 sb.append(obj.toString()); in internalJoin()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ArrayUtil.java | 85 Object obj = iter.next(); in internalJoin() local 86 if (obj == null) { in internalJoin() 89 sb.append(obj.toString()); in internalJoin()
|
D | MultiMap.java | 237 public boolean equals(Object obj) { in equals() argument 238 if (this == obj) { in equals() 241 if (obj == null) { in equals() 244 if (getClass() != obj.getClass()) { in equals() 247 MultiMap<?, ?> other = (MultiMap<?, ?>) obj; in equals()
|
/tools/test/connectivity/acts/framework/tests/ |
D | mock_controller.py | 39 for obj in objs: 40 infos.append(obj.who_am_i())
|
/tools/test/connectivity/acts/framework/tests/event/ |
D | decorators_test.py | 78 obj = Mock() 79 returned_value = register_static_subscriptions(obj) 80 self.assertEqual(obj, returned_value,
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestResult.java | 158 public boolean equals(Object obj) { in equals() argument 159 if (this == obj) { in equals() 162 if (obj == null) { in equals() 165 if (getClass() != obj.getClass()) { in equals() 168 TestResult other = (TestResult) obj; in equals()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 175 T obj; in parseChoice() local 177 obj = containerClass.getConstructor().newInstance(); in parseChoice() 184 field.setValueFrom(dataValue, obj); in parseChoice() 185 return obj; in parseChoice() 416 public void setValueFrom(BerDataValue dataValue, Object obj) throws Asn1DecodingException { in setValueFrom() argument 446 BerToJavaConverter.setFieldValue(obj, mField, mDataType, dataValue); in setValueFrom() 561 Object obj, Field field, Asn1Type type, BerDataValue dataValue) in setFieldValue() argument 568 field.set(obj, convert(type, dataValue, field.getType())); in setFieldValue() 570 field.set(obj, parseSetOf(dataValue, getElementType(field))); in setFieldValue() 574 field.set(obj, convert(type, dataValue, field.getType())); in setFieldValue() [all …]
|