Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 110) sorted by relevance

12345

/test/framework/harnesses/host_controller/command_processor/
Dcommand_fetch.py109 args = self.arg_parser.ParseLine(arg_line)
111 if args.type not in self.console._build_provider:
112 logging.error("ERROR: uninitialized fetch type %s", args.type)
115 provider = self.console._build_provider[args.type]
116 if args.type == "pab":
118 provider.Authenticate(args.userinfo_file,
119 args.noauth_local_webserver)
120 if not args.fetch_signed_build:
123 account_id=args.account_id,
124 branch=args.branch,
[all …]
Dcommand_build.py202 args = self.arg_parser.ParseLine(arg_line)
203 if args.update == "single":
204 self.UpdateBuild(args.account_id, args.branch, args.target,
205 args.artifact_type, args.method,
206 args.userinfo_file, args.noauth_local_webserver,
207 args.verify_signed_build)
208 elif args.update == "list":
212 elif args.update == "start":
213 if args.interval <= 0:
217 if args.id is None:
[all …]
Dcommand_flash.py106 args = self.arg_parser.ParseLine(arg_line)
110 and args.flasher_path in self.console.tools_info):
111 flasher_path = self.console.tools_info[args.flasher_path]
112 elif args.flasher_path:
113 flasher_path = args.flasher_path
122 if args.serial:
123 flasher_serials = [args.serial]
130 if args.image:
132 partition_image[args.image] = self.console.device_image_info[
133 args.image]
[all …]
Dcommand_config_local.py120 args = self.arg_parser.ParseLine(arg_line)
121 if args.update == "single":
122 self.UpdateConfig(args.path, args.update_build,
123 args.clear_schedule, args.clear_labinfo)
124 elif args.update == "list":
128 elif args.update == "start":
129 if args.interval <= 0:
133 if args.id is None:
135 args.id = 1
137 args.id = max(self.schedule_thread) + 1
[all …]
Dcommand_config.py387 args = self.arg_parser.ParseLine(arg_line)
388 if args.update == "single":
389 self.UpdateConfig(args.account_id, args.branch, args.target,
390 args.config_type, args.method, args.update_build,
391 args.clear_schedule, args.clear_labinfo)
392 elif args.update == "list":
396 elif args.update == "start":
397 if args.interval <= 0:
401 if args.id is None:
403 args.id = 1
[all …]
Dcommand_dut.py86 args = self.arg_parser.ParseLine(arg_line)
88 args.serial, device_callback_port=-1)
91 logging.error("Device %s failed to bootup.", args.serial)
93 args.serial] = common._DEVICE_STATUS_DICT["error"]
98 adb_proxy = adb.AdbProxy(serial=args.serial)
101 if args.operation == "wifi_on":
103 if args.ap:
110 args.ap)
111 elif args.operation == "wifi_off":
113 elif args.operation == "volume_mute":
[all …]
Dcommand_release.py105 args = self.arg_parser.ParseLine(arg_line)
107 if args.print_all:
111 if not args.cancel:
112 if args.schedule_for == "now":
113 self.ReleaseCallback(args.schedule_for, args.account_id,
114 args.branch, args.target, args.dest,
115 args.additional_files_bucket)
118 elif len(args.schedule_for.split(":")) != 2:
122 if (int(args.schedule_for.split(":")[0]) not in range(24)
123 or int(args.schedule_for.split(":")[-1]) not in range(60)):
[all …]
Dcommand_gsispl.py67 args = self.arg_parser.ParseLine(arg_line)
68 if args.gsi:
69 if os.path.isfile(args.gsi):
70 gsi_path = args.gsi
80 if args.version:
83 args.version, "%Y-%m-%d")
89 elif args.version_from_path:
91 if os.path.isabs(args.version_from_path) and os.path.exists(
92 args.version_from_path):
93 img_path = args.version_from_path
[all …]
Dcommand_fastboot.py71 args = self.arg_parser.ParseLine(arg_line)
73 if args.serial:
74 if "," in args.serial:
77 cmd_list.append("-s %s" % args.serial)
78 cmd_list.extend(self.ReplaceVars(args.command))
80 for _ in range(args.retry + 1):
82 if args.timeout == 0:
86 cmd, args.timeout,
87 usb_utils.ResetUsbDeviceOfSerial_Callback, args.serial)
97 if self.console.job_pool and args.serial:
[all …]
Dcommand_device.py307 args = self.arg_parser.ParseLine(arg_line)
308 if args.set_serial:
309 self.console.SetSerials(args.set_serial.split(","))
311 if args.update:
312 if args.host is None:
315 args.host = 0
316 host = self.console._hosts[args.host]
318 if args.suppress_lock_warning:
319 if (type(args.suppress_lock_warning) != str
320 or args.suppress_lock_warning.lower() == "true"):
[all …]
Dcommand_retry.py162 args = self.arg_parser.ParseLine(arg_line)
163 retry_count = args.count
164 force_retry_count = args.force_count
166 if args.suite not in self.console.test_suite_info:
167 logging.error("test_suite_info doesn't have '%s': %s", args.suite,
171 tools_path = os.path.dirname(self.console.test_suite_info[args.suite])
176 if args.result_from_gcs:
178 args.result_from_gcs, results_path)
237 if args.shards:
239 shard_num = args.shards
[all …]
Dcommand_adb.py63 args = self.arg_parser.ParseLine(arg_line)
65 if args.serial:
66 if "," in args.serial:
69 cmd_list.append("-s %s" % args.serial)
70 cmd_list.extend(self.ReplaceVars(args.command))
71 if args.timeout == 0:
76 " ".join(cmd_list), args.timeout,
77 usb_utils.ResetUsbDeviceOfSerial_Callback, args.serial)
82 if self.console.job_pool and args.serial:
84 args.serial] = common._DEVICE_STATUS_DICT["error"]
Dcommand_acloud.py42 args = self.arg_parser.ParseLine(arg_line)
44 if args.provider == "ab":
45 if args.build_id.lower() == "latest":
47 args.branch,
48 args.target)
51 logging.error("Provider %s not supported yet." % args.provider)
55 ac.PrepareConfig(args.config_path)
56 ac.CreateInstance(args.build_id)
/test/vts-testcase/hal/script/
Dlaunch_hal_test.py111 args = parser.parse_args()
114 result = re.match(regex, args.hal_package_name)
119 if not args.hal_package_name.startswith(args.package_root + '.'):
123 if args.test_type != 'target' and args.test_type != 'host':
126 elif args.test_type == 'host' and args.is_replay:
131 result = re.match(regex, args.time_out)
136 if not args.test_config_dir:
137 if args.package_root == Constant.HAL_PACKAGE_PREFIX:
138 args.test_config_dir = Constant.VTS_HAL_TEST_CASE_PATH
140 args.test_config_dir = args.path_root
[all …]
/test/vts/compilation_tools/vtsc/test/golden/PROFILER/
DTestMsgQ.profiler.cpp26 std::vector<void *> *args __attribute__((__unused__))) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ() argument
47 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
55 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
56 …(ERROR) << "Number of arguments does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
60 …__((__unused__)) = reinterpret_cast<::android::hardware::MQDescriptorSync<uint16_t>*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
83 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
84 …OR) << "Number of return values does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
88 … bool *result_val_0 __attribute__((__unused__)) = reinterpret_cast<bool*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
111 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
119 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_msgq_V1_0_ITestMsgQ()
[all …]
DBar.profiler.cpp29 std::vector<void *> *args __attribute__((__unused__))) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar() argument
50 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
58 if ((*args).size() != 2) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
59 …(ERROR) << "Number of arguments does not match. expect: 2, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
63 …d__)) = reinterpret_cast<::android::hardware::tests::foo::V1_0::IFoo::Discriminator*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
71 …t<::android::hardware::hidl_vec<::android::hardware::tests::foo::V1_0::IFoo::Union>*> ((*args)[1]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
89 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
90 …OR) << "Number of return values does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
94 …oid::hardware::hidl_vec<::android::hardware::tests::foo::V1_0::IFoo::ContainsUnion>*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
122 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_bar_V1_0_IBar()
[all …]
DNfc.profiler.cpp18 std::vector<void *> *args __attribute__((__unused__))) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc() argument
39 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
47 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
48 …(ERROR) << "Number of arguments does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
52 …nused__)) = reinterpret_cast<sp<::android::hardware::nfc::V1_0::INfcClientCallback>*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
65 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
66 …OR) << "Number of return values does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
70 …ribute__((__unused__)) = reinterpret_cast<::android::hardware::nfc::V1_0::NfcStatus*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
93 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
101 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfc()
[all …]
DMemoryTest.profiler.cpp21 std::vector<void *> *args __attribute__((__unused__))) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest() argument
42 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
50 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
51 …(ERROR) << "Number of arguments does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
55 …l_0 __attribute__((__unused__)) = reinterpret_cast<::android::hardware::hidl_memory*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
79 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
80 …OR) << "Number of return values does not match. expect: 1, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
84 …l_0 __attribute__((__unused__)) = reinterpret_cast<::android::hardware::hidl_memory*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
118 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
126 if ((*args).size() != 2) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_tests_memory_V1_0_IMemoryTest()
[all …]
DNfcClientCallback.profiler.cpp18 std::vector<void *> *args __attribute__((__unused__))) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback() argument
39 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
47 if ((*args).size() != 2) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
48 …(ERROR) << "Number of arguments does not match. expect: 2, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
52 …tribute__((__unused__)) = reinterpret_cast<::android::hardware::nfc::V1_0::NfcEvent*> ((*args)[0]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
60 …ribute__((__unused__)) = reinterpret_cast<::android::hardware::nfc::V1_0::NfcStatus*> ((*args)[1]); in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
73 if ((*args).size() != 0) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
74 …OR) << "Number of return values does not match. expect: 0, actual: " << (*args).size() << ", metho… in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
93 if (!args) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
101 if ((*args).size() != 1) { in HIDL_INSTRUMENTATION_FUNCTION_android_hardware_nfc_V1_0_INfcClientCallback()
[all …]
/test/framework/harnesses/host_controller/
Dmain.py136 args = parser.parse_args()
137 if args.config_file:
138 config_json = json.load(args.config_file)
154 if args.vti:
155 vti_endpoint = vti_endpoint_client.VtiEndpointClient(args.vti)
160 if args.use_tfc:
161 if args.config_file:
185 if args.poll:
188 args=(lease_interval_sec,))
192 if args.poll:
[all …]
/test/vts-testcase/vndk/golden/
Ddump_abi.py202 args = arg_parser.parse_args()
209 if not all([args.platform_vndk_version,
210 args.binder_bitness,
211 args.target_main_arch,
212 args.target_arch,
213 args.target_arch_variant]):
232 if args.platform_vndk_version:
233 platform_vndk_version = args.platform_vndk_version
235 if args.binder_bitness:
236 binder_bitness = args.binder_bitness
[all …]
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DBusinessLogicHostExecutor.java58 public void logInfo(String format, Object... args) { in logInfo() argument
59 LogUtil.printLog(Log.LogLevel.INFO, LOG_TAG, String.format(format, args)); in logInfo()
66 public void logDebug(String format, Object... args) { in logDebug() argument
67 CLog.d(format, args); in logDebug()
74 protected String formatExecutionString(String method, String... args) { in formatExecutionString() argument
75 return String.format("%s(%s)", method, String.join(", ", formatArgs(args))); in formatExecutionString()
82 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument
91 if (argsUsed == args.length && paramType.equals(String.class)) { in getResolvedMethod()
101 rm.addArg(args[argsUsed++]); in getResolvedMethod()
108 rm.addArg(Arrays.copyOfRange(args, argsUsed, args.length)); in getResolvedMethod()
[all …]
/test/suite_harness/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java41 public static void main(String[] args) { in main() argument
51 for (int i = 0; i < args.length - 1; i++) { in main()
52 if (args[i].equals("-p")) { in main()
53 pkgName = args[++i]; in main()
54 } else if (args[i].equals("-a")) { in main()
55 activities.add(args[++i]); in main()
56 } else if (args[i].equals("-l")) { in main()
57 libraries.add(args[++i]); in main()
58 } else if (args[i].equals("-o")) { in main()
59 output = args[++i]; in main()
[all …]
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBusinessLogicExecutor.java52 public boolean executeCondition(String method, String... args) { in executeCondition() argument
53 logDebug("Executing condition: %s", formatExecutionString(method, args)); in executeCondition()
55 return (Boolean) invokeMethod(method, args); in executeCondition()
60 Arrays.toString(args)), e); in executeCondition()
71 public void executeAction(String method, String... args) { in executeAction() argument
72 logDebug("Executing action: %s", formatExecutionString(method, args)); in executeAction()
74 invokeMethod(method, args); in executeAction()
79 Arrays.toString(args)), e); in executeAction()
99 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() argument
102 protected String[] formatArgs(String[] args) { in formatArgs() argument
[all …]
/test/vts/testcases/template/binary_test/
Dbinary_test_case.py69 args='', argument
81 self.args = args
138 args = ' %s' % self.args if self.args else ''
144 args=args)
230 def args(self): member in BinaryTestCase
234 @args.setter
235 def args(self, args): member in BinaryTestCase
237 self._args = _SafeStrip(args)

12345