/test/vts-testcase/security/poc/target/kernel_wifi/32402310/ |
D | poc.cpp | 79 struct nl_msg *msg; in send_testmode() local 92 msg = nlmsg_alloc(); in send_testmode() 95 genlmsg_put(msg, nlmsg_pid, 0, nlmsg_type, 0, 0, genl_cmd, genl_version); in send_testmode() 96 nla_put_u32(msg, NL80211_ATTR_IFINDEX, if_index); in send_testmode() 97 nla_put_u32(msg, NL80211_ATTR_VENDOR_ID, QCA_NL80211_VENDOR_ID); in send_testmode() 98 nla_put_u32(msg, NL80211_ATTR_VENDOR_SUBCMD, QCA_NL80211_VENDOR_SUBCMD_ROAM); in send_testmode() 100 rret = nla_nest_start(msg, NL80211_ATTR_VENDOR_DATA); in send_testmode() 107 nla_put_u32(msg, QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in send_testmode() 110 nla_put_u32(msg, QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, 123); in send_testmode() 111 nla_put_u32(msg, QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID, in send_testmode() [all …]
|
/test/vts/compilation_tools/vtsc/test/golden/PROFILER/ |
D | TestMsgQ.profiler.cpp | 44 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() local 45 msg.set_name("configureFmqSyncReadWrite"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 59 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 87 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 105 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 108 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() local 109 msg.set_name("getFmqUnsyncWrite"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 123 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 141 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() 149 auto *result_1 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() [all …]
|
D | Bar.profiler.cpp | 47 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() local 48 msg.set_name("convertToBoolIfSmall"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 62 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 70 auto *arg_1 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 93 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 116 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 119 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() local 120 msg.set_name("doThis"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 134 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() 162 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() [all …]
|
D | Nfc.profiler.cpp | 36 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() local 37 msg.set_name("open"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 51 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 69 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 87 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 90 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() local 91 msg.set_name("write"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 105 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 128 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() 146 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() [all …]
|
D | MemoryTest.profiler.cpp | 39 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() local 40 msg.set_name("haveSomeMemory"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 54 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 83 auto *result_0 __attribute__((__unused__)) = msg.add_return_type_hidl(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 112 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 115 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() local 116 msg.set_name("fillMemory"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 130 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 149 auto *arg_1 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() 177 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() [all …]
|
D | NfcClientCallback.profiler.cpp | 36 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() local 37 msg.set_name("sendEvent"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 51 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 59 auto *arg_1 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 87 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 90 FunctionSpecificationMessage msg; in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() local 91 msg.set_name("sendData"); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 105 auto *arg_0 __attribute__((__unused__)) = msg.add_arg(); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() 138 profiler.AddTraceEvent(event, package, version, interface, msg); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
|
/test/vti/test_serving/gae/webapp/src/handlers/ |
D | errors.py | 28 def __init__(self, code=None, msg=None): argument 30 self.msg = msg or httplib.responses[self.code] 31 super(Error, self).__init__(self.code, self.msg) 34 return repr([self.code, self.msg]) 40 def __init__(self, code=None, msg=None, errors=None): argument 42 self.msg = msg or httplib.responses[self.code] 44 super(FormValidationError, self).__init__(self.code, self.msg) 47 return repr([self.code, self.msg, self.errors]) 55 self.msg = httplib.responses[code] 56 super(AclError, self).__init__(self.code, self.msg) [all …]
|
/test/vts/runners/host/ |
D | asserts.py | 35 def assertEqual(first, second, msg=None, extras=None): argument 51 if msg: 52 my_msg = "%s %s" % (my_msg, msg) 56 def assertNotEqual(first, second, msg=None, extras=None): argument 73 if msg: 74 my_msg = "%s %s" % (my_msg, msg) 125 def assertTrue(expr, msg, extras=None): argument 135 fail(msg, extras) 138 def assertFalse(expr, msg, extras=None): argument 148 fail(msg, extras) [all …]
|
D | test_runner.py | 235 msg = ("Encountered error importing test class %s, " 240 logging.exception(msg) 241 raise USERError(msg) 312 msg = "No corresponding config found for %s" % module_config_name 313 event.Remove(msg) 314 raise signals.ControllerError(msg) 332 msg = "Failed to initialize objects for controller %s, abort!" % module_config_name 333 event.Remove(msg) 334 logging.error(msg) 337 msg = "Controller module %s did not return a list of objects, abort." % module_ref_name [all …]
|
D | base_test.py | 355 msg = ("Missing user param '%s' in test configuration.\n" 358 raise errors.BaseTestError(msg) 360 logging.warn(msg) 403 msg = ("Config key %s not found in user config type %s.\n" 406 raise errors.BaseTestError(msg) 408 logging.warn(msg) 639 msg = 'Framework self diagnose didn\'t pass for %s. Marking test as fail.' % test_name 640 logging.error(msg) 641 event.Remove(msg) 642 asserts.fail(msg) [all …]
|
/test/vts-testcase/security/poc/target/kernel_wifi/32219453/ |
D | poc.cpp | 168 struct nl_msg *msg; in send_testmode() local 178 msg = nlmsg_alloc(); in send_testmode() 180 genlmsg_put(msg, nlmsg_pid, 0, nlmsg_type, 0, 0, genl_cmd, genl_version); in send_testmode() 182 nla_put_u32(msg, NL80211_ATTR_IFINDEX, if_index); in send_testmode() 184 nla_put_u32(msg, NL80211_ATTR_VENDOR_ID, OUI_GOOGLE); in send_testmode() 186 nla_put_u32(msg, NL80211_ATTR_VENDOR_SUBCMD, GSCAN_SUBCMD_ANQPO_CONFIG); in send_testmode() 187 rret = nla_nest_start(msg, NL80211_ATTR_VENDOR_DATA); in send_testmode() 194 nla_put_u32(msg, GSCAN_ATTRIBUTE_ANQPO_HS_LIST_SIZE, 1); in send_testmode() 196 rret2 = nla_nest_start(msg, GSCAN_ATTRIBUTE_ANQPO_HS_LIST); in send_testmode() 204 rret3 = nla_nest_start(msg, GSCAN_ATTRIBUTE_ANQPO_HS_LIST); in send_testmode() [all …]
|
/test/vts/utils/python/mirror/ |
D | hal_mirror.py | 149 msg = self._if_spec_msg 151 interface_name, msg.component_class, msg.component_type, 152 msg.component_type_version_major, msg.component_type_version_minor, 153 msg.package) 198 msg = self._if_spec_msg 201 msg.component_class, 202 msg.component_type, 203 msg.component_type_version_major, 204 msg.component_type_version_minor, 205 msg.package,
|
/test/vti/test_serving/gae/webapp/src/utils/ |
D | logger.py | 40 def Println(self, msg): argument 43 if msg and type(msg) is not str: 44 msg = str(msg) 45 self.log_message.append(indent + msg)
|
/test/vts/drivers/hal/libdatatype/ |
D | hal_camera.cpp | 203 VariableSpecificationMessage* msg) { in ConvertCameraInfoToProtobuf() argument 206 if (msg->struct_value_size() > 0) msg->clear_struct_value(); in ConvertCameraInfoToProtobuf() 212 msg->set_type(TYPE_STRUCT); in ConvertCameraInfoToProtobuf() 216 sub_msg = msg->add_struct_value(); in ConvertCameraInfoToProtobuf() 221 sub_msg = msg->add_struct_value(); in ConvertCameraInfoToProtobuf() 226 sub_msg = msg->add_struct_value(); in ConvertCameraInfoToProtobuf() 233 sub_msg = msg->add_struct_value(); in ConvertCameraInfoToProtobuf() 241 sub_msg = msg->add_struct_value(); in ConvertCameraInfoToProtobuf()
|
D | hal_light.cpp | 59 const VariableSpecificationMessage& msg) { in GenerateLightStateUsingMessage() argument 65 state->color = msg.struct_value(0).scalar_value().uint32_t(); in GenerateLightStateUsingMessage() 67 state->flashMode = msg.struct_value(1).scalar_value().int32_t(); in GenerateLightStateUsingMessage() 69 state->flashOnMS = msg.struct_value(2).scalar_value().int32_t(); in GenerateLightStateUsingMessage() 71 state->flashOffMS = msg.struct_value(3).scalar_value().int32_t(); in GenerateLightStateUsingMessage() 73 state->brightnessMode = msg.struct_value(4).scalar_value().int32_t(); in GenerateLightStateUsingMessage()
|
/test/vti/dashboard/src/main/java/com/android/vts/util/ |
D | EmailHelper.java | 141 Message msg = new MimeMessage(session); in composeEmail() local 144 msg.addRecipient(Message.RecipientType.TO, new InternetAddress(email, email)); in composeEmail() 150 msg.setFrom(new InternetAddress(SENDER_EMAIL, VTS_EMAIL_NAME)); in composeEmail() 151 msg.setSubject(subject); in composeEmail() 152 msg.setContent(body, "text/html; charset=utf-8"); in composeEmail() 153 return msg; in composeEmail() 162 public static boolean send(Message msg) { in send() argument 164 Transport.send(msg); in send() 178 for (Message msg : messages) { in sendAll() 179 send(msg); in sendAll() [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | PropertyCheck.java | 68 String msg = in run() local 73 throw new TargetSetupError(msg, device.getDeviceDescriptor()); in run() 75 logWarning(msg); in run() 89 String msg = String.format("Expected \"%s\" but found \"%s\" for property: %s", in run() local 93 throw new TargetSetupError(msg, device.getDeviceDescriptor()); in run() 95 CLog.w(msg); in run()
|
D | DeviceInteractionHelperInstaller.java | 139 String msg = device.uninstallPackage(pkg); in tearDown() local 140 if (msg != null) { in tearDown() 141 CLog.w(String.format("Error uninstalling package '%s': %s", pkg, msg)); in tearDown() 197 String msg = device.installPackage(apkFile, true, extraArgs.toArray(new String[] {})); in installHelperApk() local 198 if (msg != null) { in installHelperApk() 200 String.format("Failed to install %s: %s", apkFile.getName(), msg), in installHelperApk()
|
/test/vts/drivers/hal/replayer/ |
D | VtsHidlHalReplayer.cpp | 53 VtsProfilingRecord msg; in ListTestServices() local 55 while (readOneDelimited(&msg, &input)) { in ListTestServices() 56 string package_name = msg.package(); in ListTestServices() 57 int version_major = msg.version_major(); in ListTestServices() 58 int version_minor = msg.version_minor(); in ListTestServices() 62 string version_str = GetVersionString(msg.version()); in ListTestServices() 66 string interface_name = msg.interface(); in ListTestServices() 70 msg.Clear(); in ListTestServices()
|
/test/framework/harnesses/host_controller/utils/parser/ |
D | pb2_utils.py | 25 def FillDictAndPost(msg, argument 46 for field in msg.DESCRIPTOR.fields: 49 for sub_msg in msg.__getattribute__(field.name): 61 msg.__getattribute__(field.name)) 63 dict_to_fill[filtered_key] = msg.__getattribute__(field.name)
|
/test/vts-testcase/kernel/encryption/ |
D | adiantum.cpp | 187 static void Poly1305(const uint8_t key[kPoly1305KeySize], const uint8_t *msg, in Poly1305() argument 200 CRYPTO_poly1305_update(&state, msg, msglen); in Poly1305() 214 static uint64_t NH_Pass(const uint32_t *key, const uint8_t *msg, int msglen) { in NH_Pass() argument 219 sum += NH_Add(msg + 0, key[0]) * NH_Add(msg + 8, key[2]); in NH_Pass() 220 sum += NH_Add(msg + 4, key[1]) * NH_Add(msg + 12, key[3]); in NH_Pass() 222 msg += kNHMessageUnit; in NH_Pass() 229 static void NH(const uint32_t *key, const uint8_t *msg, int msglen, in NH() argument 234 put_unaligned_le64(NH_Pass(key, msg, msglen), &result[i]); in NH() 243 const uint8_t iv[kAdiantumIVSize], const uint8_t *msg, in AdiantumHash() argument 268 memcpy(padded_msg.get(), msg, msglen); in AdiantumHash()
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | BusinessLogic.java | 137 StringBuilder msg = new StringBuilder(""); in throwAggregatedException() local 138 msg.append(String.format("Test %s for cases: ", (failed) ? "failed" : "skipped")); in throwAggregatedException() 139 msg.append(Arrays.toString(descriptions)); in throwAggregatedException() 140 msg.append("\nReasons include:"); in throwAggregatedException() 143 msg.append(String.format("\nMessage [%s]: %s", description, re.getMessage())); in throwAggregatedException() 147 msg.append(String.format("\nStack Trace: %s", sw.toString())); in throwAggregatedException() 151 throw new RuntimeException(msg.toString()); in throwAggregatedException() 153 throw new AssumptionViolatedException(msg.toString()); in throwAggregatedException()
|
/test/vts/drivers/hal/common/driver_base/ |
D | DriverBase.cpp | 221 FunctionSpecificationMessage* msg) { in ReadGcdaFile() argument 230 msg->mutable_processed_coverage_data()->Add(data); in ReadGcdaFile() 257 msg->mutable_raw_coverage_data()->Add(); in ReadGcdaFile() 279 FunctionSpecificationMessage* msg) { in ScanAllGcdaFiles() argument 300 ScanAllGcdaFiles(basepath + "/" + dent->d_name, msg); in ScanAllGcdaFiles() 302 ReadGcdaFile(basepath, dent->d_name, msg); in ScanAllGcdaFiles() 312 bool DriverBase::FunctionCallEnd(FunctionSpecificationMessage* msg) { in FunctionCallEnd() argument 318 return ScanAllGcdaFiles(default_gcov_output_basepath, msg); in FunctionCallEnd() 339 ReadGcdaFile(gcov_output_basepath_, dent->d_name, msg)) { in FunctionCallEnd()
|
/test/vts/compilation_tools/vtsc/code_gen/driver/ |
D | HalCodeGen.cpp | 379 string msg = msg_ss.str(); in GenerateCppBodyFuzzFunction() local 382 out << "(" << msg << ".type() == TYPE_SCALAR)? "; in GenerateCppBodyFuzzFunction() 391 out << "(" << msg << ".scalar_value()"; in GenerateCppBodyFuzzFunction() 417 cerr << __func__ << " unknown type " << msg << "\n"; in GenerateCppBodyFuzzFunction() 420 out << "( (" << msg << ".type() == TYPE_PREDEFINED || " << msg in GenerateCppBodyFuzzFunction() 421 << ".type() == TYPE_STRUCT || " << msg in GenerateCppBodyFuzzFunction() 423 out << GetCppInstanceType(arg, msg); in GenerateCppBodyFuzzFunction() 565 string msg = msg_ss.str(); in GenerateCppBodyFuzzFunction() local 568 out << "(" << msg << ".type() == TYPE_SCALAR && " << msg in GenerateCppBodyFuzzFunction() 580 out << "(" << msg << ".scalar_value()"; in GenerateCppBodyFuzzFunction() [all …]
|
/test/vts/drivers/libdrivercomm/ |
D | VtsDriverCommUtil.cpp | 137 char* msg = (char*)malloc(msg_len + 1); in VtsSocketRecvBytes() local 138 if (!msg) { in VtsSocketRecvBytes() 145 int result = read(sockfd_, &msg[bytes_read], msg_len - bytes_read); in VtsSocketRecvBytes() 152 msg[msg_len] = '\0'; in VtsSocketRecvBytes() 153 return string(msg, msg_len); in VtsSocketRecvBytes()
|