/test/framework/harnesses/host_controller/command_processor/ |
D | command_fetch.py | 109 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 …]
|
D | command_build.py | 202 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 …]
|
D | command_flash.py | 106 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 …]
|
D | command_config_local.py | 120 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 …]
|
D | command_config.py | 387 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 …]
|
D | command_release.py | 105 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 …]
|
D | command_dut.py | 86 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 …]
|
D | command_gsispl.py | 67 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 …]
|
D | command_device.py | 307 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 …]
|
D | command_retry.py | 162 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 …]
|
D | command_fastboot.py | 71 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 …]
|
D | command_adb.py | 63 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"]
|
/test/vts-testcase/hal/script/ |
D | launch_hal_test.py | 111 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/ |
D | TestMsgQ.profiler.cpp | 26 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 …]
|
D | Bar.profiler.cpp | 29 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 …]
|
D | Nfc.profiler.cpp | 18 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 …]
|
D | MemoryTest.profiler.cpp | 21 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 …]
|
D | NfcClientCallback.profiler.cpp | 18 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/ |
D | main.py | 136 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/ |
D | dump_abi.py | 202 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/manifest-generator/src/com/android/compatibility/common/generator/ |
D | ManifestGenerator.java | 41 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/host-side/util/src/com/android/compatibility/common/util/ |
D | BusinessLogicHostExecutor.java | 56 public void logInfo(String format, Object... args) { in logInfo() argument 57 LogUtil.printLog(Log.LogLevel.INFO, LOG_TAG, String.format(format, args)); in logInfo() 64 public void logDebug(String format, Object... args) { in logDebug() argument 65 CLog.d(format, args); in logDebug() 72 protected String formatExecutionString(String method, String... args) { in formatExecutionString() argument 73 return String.format("%s(%s)", method, String.join(", ", args)); in formatExecutionString() 80 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument 89 if (argsUsed == args.length && paramType.equals(String.class)) { in getResolvedMethod() 99 rm.addArg(args[argsUsed++]); in getResolvedMethod() 106 rm.addArg(Arrays.copyOfRange(args, argsUsed, args.length)); in getResolvedMethod() [all …]
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | BusinessLogicExecutor.java | 46 public boolean executeCondition(String method, String... args) { in executeCondition() argument 47 logDebug("Executing condition: %s", formatExecutionString(method, args)); in executeCondition() 49 return (Boolean) invokeMethod(method, args); in executeCondition() 54 Arrays.toString(args)), e); in executeCondition() 65 public void executeAction(String method, String... args) { in executeAction() argument 66 logDebug("Executing action: %s", formatExecutionString(method, args)); in executeAction() 68 invokeMethod(method, args); in executeAction() 73 Arrays.toString(args)), e); in executeAction() 93 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() argument 103 protected Object invokeMethod(String method, String... args) throws ClassNotFoundException, in invokeMethod() argument [all …]
|
/test/vts/runners/target/gtest/ |
D | gtest_main.cpp | 78 va_list args; in ColoredPrintf() local 79 va_start(args, fmt); in ColoredPrintf() 82 vprintf(fmt, args); in ColoredPrintf() 85 vprintf(fmt, args); in ColoredPrintf() 89 va_end(args); in ColoredPrintf() 965 static void AddPathSeparatorInTestProgramPath(std::vector<char*>& args) { in AddPathSeparatorInTestProgramPath() argument 975 if (strchr(args[0], '/') == NULL) { in AddPathSeparatorInTestProgramPath() 983 args[0] = strdup(path); in AddPathSeparatorInTestProgramPath() 987 static void AddGtestFilterSynonym(std::vector<char*>& args) { in AddGtestFilterSynonym() argument 989 for (size_t i = 1; i < args.size(); ++i) { in AddGtestFilterSynonym() [all …]
|
/test/vts/testcases/template/binary_test/ |
D | binary_test_case.py | 68 args='', argument 80 self.args = args 136 args = ' %s' % self.args if self.args else '' 142 args=args) 228 def args(self): member in BinaryTestCase 232 @args.setter 233 def args(self, args): argument 235 self._args = _SafeStrip(args)
|