/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/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/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/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 …]
|
D | Configuration.java | 781 private void addToDefaultDeviceConfig(Object obj) { in addToDefaultDeviceConfig() argument 783 getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME).addSpecificConfig(obj); in addToDefaultDeviceConfig() 1055 for (Object obj : ((IDeviceConfiguration) configObject).getAllObjects()) { in addObject() 1056 if (obj instanceof IConfigurationReceiver) { in addObject() 1057 ((IConfigurationReceiver) obj).setConfiguration(this); in addObject() 1200 Object obj) throws ConfigurationException { in printCommandUsageForObject() argument 1201 String optionHelp = printOptionsForObject(importantOnly, key, obj); in printCommandUsageForObject() 1205 if (obj.getClass().isAnnotationPresent(OptionClass.class)) { in printCommandUsageForObject() 1206 final OptionClass classAnnotation = obj.getClass().getAnnotation( in printCommandUsageForObject()
|
D | DynamicRemoteFileResolver.java | 138 final Object obj = fieldEntry.getKey(); in validateRemoteFilePath() local 148 value = field.get(obj); in validateRemoteFilePath() 158 if (fieldSeen.get(field) != null && fieldSeen.get(field).equals(obj)) { in validateRemoteFilePath() 162 fieldSeen.put(field, obj); in validateRemoteFilePath() 180 field.set(obj, downloadedFile); in validateRemoteFilePath()
|
D | OptionSetter.java | 115 public boolean equals(Object obj) { in equals() argument 116 if (obj == this) { in equals() 120 if (obj instanceof FieldDef) { in equals() 121 FieldDef other = (FieldDef)obj; in equals() 721 final Object obj = fieldEntry.getKey(); in getUnsetMandatoryOptions() local 734 value = field.get(obj); in getUnsetMandatoryOptions()
|
/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() 562 Object obj, Field field, Asn1Type type, BerDataValue dataValue) in setFieldValue() argument 569 field.set(obj, convert(type, dataValue, field.getType())); in setFieldValue() 571 field.set(obj, parseSetOf(dataValue, getElementType(field))); in setFieldValue() 575 field.set(obj, convert(type, dataValue, field.getType())); in setFieldValue() [all …]
|
D | Asn1DerEncoder.java | 336 private static Object getMemberFieldValue(Object obj, Field field) in getMemberFieldValue() argument 339 return field.get(obj); in getMemberFieldValue() 342 "Failed to read " + obj.getClass().getName() + "." + field.getName(), e); in getMemberFieldValue() 358 public AnnotatedField(Object obj, Field field, Asn1Field annotation) in AnnotatedField() argument 360 mObject = obj; in AnnotatedField()
|
/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/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/test_framework/com/android/tradefed/testtype/ |
D | HostTest.java | 610 for (Object obj : getTestMethods()) { in runTestCases() 611 if (IRemoteTest.class.isInstance(obj)) { in runTestCases() 612 IRemoteTest test = (IRemoteTest) obj; in runTestCases() 614 } else if (TestSuite.class.isInstance(obj)) { in runTestCases() 615 TestSuite junitTest = (TestSuite) obj; in runTestCases() 619 } else if (Description.class.isInstance(obj)) { in runTestCases() 621 Description desc = (Description) obj; in runTestCases() 637 String.format("%s is not a supported test", obj)); in runTestCases() 1342 private Set<File> resolveRemoteFileForObject(Object obj) { in resolveRemoteFileForObject() argument 1344 OptionSetter setter = new OptionSetter(obj); in resolveRemoteFileForObject()
|
/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/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/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/test_result_interfaces/com/android/tradefed/result/ |
D | MultiFailureDescription.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 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/common_util/com/android/tradefed/util/ |
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/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/test/connectivity/acts/framework/acts/test_utils/wifi/aware/ |
D | aware_test_utils.py | 186 for obj in list_of_objects: 187 if obj is None: 188 obj = bytes() 189 if isinstance(obj, str): 191 base64.b64encode(bytes(obj, 'utf-8')).decode('utf-8')) 193 encoded_list.append(base64.b64encode(obj).decode('utf-8'))
|
/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)
|