/system/core/debuggerd/crasher/ |
D | crasher.cpp | 63 int do_action(const char* arg); 105 const char* arg = reinterpret_cast<const char*>(raw_arg); in thread_callback() local 106 return reinterpret_cast<void*>(static_cast<uintptr_t>(do_action(arg))); in thread_callback() 109 noinline int do_action_on_thread(const char* arg) { in do_action_on_thread() argument 111 pthread_create(&t, nullptr, thread_callback, const_cast<char*>(arg)); in do_action_on_thread() 228 noinline int do_action(const char* arg) { in do_action() argument 230 if (!strncmp(arg, "wait-", strlen("wait-"))) { in do_action() 233 return do_action(arg + strlen("wait-")); in do_action() 234 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { in do_action() 239 return do_action(arg + strlen("exhaustfd-")); in do_action() [all …]
|
/system/testing/gtest_extras/ |
D | Options.cpp | 81 static void PrintError(const std::string& arg, std::string msg, bool from_env) { in PrintError() argument 83 std::string variable(arg); in PrintError() 87 } else if (arg[0] == '-') { in PrintError() 88 printf("%s %s\n", arg.c_str(), msg.c_str()); in PrintError() 90 printf("--%s %s\n", arg.c_str(), msg.c_str()); in PrintError() 95 static bool GetNumeric(const std::string& arg, const std::string& value, IntType* numeric_value, in GetNumeric() argument 99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric() 103 PrintError(arg, std::string("value is not formatted as a numeric value (") + value + ")", in GetNumeric() 117 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument 118 uint64_t* numeric = &numerics_.find(arg)->second; in SetNumeric() [all …]
|
/system/logging/logcat/ |
D | logcatd | 12 for arg in "$@"; do 13 if [ "$arg" == "-L" -o "$arg" == "--last" ]; then 23 for arg in "$@"; do 24 if [ "$arg" != "-L" -a "$arg" != "--last" ]; then 25 ARGS+=("$arg")
|
/system/libufdt/utils/src/ |
D | mkdtimg_create.c | 31 const char *arg = argv[i]; in calculate_args_entry_count() local 32 char c = arg[0]; in calculate_args_entry_count() 41 static int parse_arg(char **option, char **value, char *arg) { in parse_arg() argument 42 if (arg[0] != '-') { in parse_arg() 49 if (arg[1] != '-') { in parse_arg() 53 return parse_option(option, value, arg + 2); in parse_arg() 63 char *arg = argv[i]; in output_img_with_args() local 65 if (parse_arg(&option, &value, arg) != 0) { in output_img_with_args() 66 fprintf(stderr, "Wrong syntax: %s\n", arg); in output_img_with_args() 72 if (dt_image_writer_add_entry(writer, arg) != 0) { in output_img_with_args()
|
/system/iorap/src/prefetcher/ |
D | main_client.cc | 63 for (int arg = 1; arg < argc; ++arg) { in MainClient() local 64 std::string argstr = argv[arg]; in MainClient() 65 bool has_arg_next = (arg+1)<argc; in MainClient() 66 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in MainClient() 68 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in MainClient() 102 for (int arg = 1; arg < argc; ++arg) { in MainClient() local 103 std::string argstr = argv[arg]; in MainClient() 105 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in MainClient()
|
D | main.cc | 67 for (int arg = 1; arg < argc; ++arg) { in Main() local 68 std::string argstr = argv[arg]; in Main() 69 bool has_arg_next = (arg+1)<argc; in Main() 70 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in Main() 72 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in Main() 129 for (int arg = 1; arg < argc; ++arg) { in Main() local 130 std::string argstr = argv[arg]; in Main() 132 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in Main()
|
/system/bt/gd/facade/ |
D | facade_main.cc | 115 std::string arg = argv[i]; in main() local 116 if (arg.find(arg_grpc_root_server_port) == 0) { in main() 117 auto port_number = arg.substr(arg_grpc_root_server_port.size()); in main() 120 if (arg.find(arg_grpc_server_port) == 0) { in main() 121 auto port_number = arg.substr(arg_grpc_server_port.size()); in main() 124 if (arg.find(arg_rootcanal_port) == 0) { in main() 125 auto port_number = arg.substr(arg_rootcanal_port.size()); in main() 128 if (arg.find(arg_btsnoop_path) == 0) { in main() 129 auto btsnoop_path = arg.substr(arg_btsnoop_path.size()); in main() 134 if (arg.find(arg_btsnooz_path) == 0) { in main() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | root_canal_main.cc | 91 for (int arg = 0; arg < argc; arg++) { in main() local 92 int port = atoi(argv[arg]); in main() 93 LOG_INFO("%d: %s (%d)", arg, argv[arg], port); in main() 95 LOG_WARN("%s out of range", argv[arg]); in main() 97 switch (arg) { in main() 110 LOG_WARN("Ignored option %s", argv[arg]); in main()
|
/system/vold/ |
D | KeyUtil.cpp | 245 fscrypt_add_key_arg* arg) { in installFsKeyringKey() argument 246 if (options.use_hw_wrapped_key) arg->__flags |= __FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED; in installFsKeyringKey() 254 if (ioctl(fd, FS_IOC_ADD_ENCRYPTION_KEY, arg) != 0) { in installFsKeyringKey() 268 struct fscrypt_add_key_arg* arg = (struct fscrypt_add_key_arg*)arg_buf.data(); in installKey() local 280 if (!buildKeySpecifier(&arg->key_spec, *policy)) { in installKey() 290 arg->key_spec.type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in installKey() 297 arg->raw_size = key.size(); in installKey() 298 memcpy(arg->raw, key.data(), key.size()); in installKey() 300 if (!installFsKeyringKey(mountpoint, options, arg)) return false; in installKey() 302 if (arg->key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in installKey() [all …]
|
/system/bt/gd/packet/parser/ |
D | main.cc | 149 std::string arg = argv[i]; in main() local 150 if (arg.find(arg_source_root) == 0) { in main() 151 source_root = std::filesystem::path(arg.substr(arg_source_root.size())); in main() 156 std::string arg = argv[i]; in main() local 157 if (arg.find(arg_out) == 0) { in main() 158 out_dir = cwd / std::filesystem::path(arg.substr(arg_out.size())); in main() 159 } else if (arg.find(arg_include) == 0) { in main() 160 include_dir = source_root / std::filesystem::path(arg.substr(arg_include.size())); in main() 161 } else if (arg.find(arg_namespace) == 0) { in main() 162 root_namespace = arg.substr(arg_namespace.size()); in main() [all …]
|
/system/core/fastboot/fuzzy_fastboot/ |
D | test_utils.cpp | 94 std::string arg(argv[i]); in ParseArgs() local 98 if (!arg.find("-h") || in ParseArgs() 99 (!arg.find("--") && arg.find("--gtest") && arg.find("=") != arg.npos)) { in ParseArgs() 100 const std::string start(arg.begin() + 2, arg.begin() + arg.find("=")); in ParseArgs() 101 const std::string end(arg.begin() + arg.find("=") + 1, arg.end()); in ParseArgs() 103 } else if (arg.find("--gtest") != 0) { in ParseArgs() 104 *err_msg = android::base::StringPrintf("Illegal argument '%s'\n", arg.c_str()); in ParseArgs()
|
/system/iorap/src/db/ |
D | main.cc | 85 for (int arg = 1; arg < argc; ++arg) { in Main() local 86 std::string argstr = argv[arg]; in Main() 87 bool has_arg_next = (arg+1)<argc; in Main() 88 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in Main() 90 bool has_arg_next_next = (arg+2)<argc; in Main() 91 std::string arg_next_next = has_arg_next_next ? argv[arg+2] : ""; in Main() 93 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in Main() 146 for (int arg = 1; arg < argc; ++arg) { in Main() local 147 std::string argstr = argv[arg]; in Main() 149 LOG(VERBOSE) << "argparse: argv[" << arg << "]=" << argstr; in Main()
|
/system/iorap/src/maintenance/ |
D | main.cc | 75 for (int arg = 1; arg < argc; ++arg) { in Main() local 76 std::string argstr = argv[arg]; in Main() 77 bool has_arg_next = (arg+1)<argc; in Main() 78 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in Main() 88 ++arg; in Main() 100 ++arg; in Main() 107 ++arg; in Main() 114 ++arg; in Main() 121 ++arg; in Main() 134 ++arg; in Main()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 105 void ParseFileEncryption(const std::string& arg, FstabEntry* entry) { in ParseFileEncryption() argument 107 entry->encryption_options = arg; in ParseFileEncryption() 131 const auto arg = flag.substr(equal_sign + 1); in ParseMountFlags() local 133 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags() 134 LWARNING << "Warning: reserve_root= flag malformed: " << arg; in ParseMountFlags() 139 entry->lowerdir = std::move(arg); in ParseMountFlags() 150 std::string arg; in ParseFsMgrFlags() local 152 arg = flag.substr(equal_sign + 1); in ParseFsMgrFlags() 191 entry->key_loc = arg; in ParseFsMgrFlags() 196 auto parts = Split(arg, ":"); in ParseFsMgrFlags() [all …]
|
/system/core/libcutils/ |
D | android_reboot.cpp | 26 int android_reboot(unsigned cmd, int /*flags*/, const char* arg) { in android_reboot() argument 44 if (arg && arg[0]) { in android_reboot() 45 ret = asprintf(&prop_value, "%s,%s", restart_cmd, arg); in android_reboot()
|
/system/chre/apps/test/common/chre_cross_validator_sensor/inc/ |
D | chre_cross_validator_sensor_manager.h | 125 void *const *arg); 137 void *const *arg); 149 void *const *arg); 161 void *const *arg); 173 void *const *arg); 185 void *const *arg); 199 void *const *arg); 212 void *const *arg);
|
/system/bt/osi/test/ |
D | reactor_test.cc | 77 unregister_arg_t* arg = (unregister_arg_t*)context; in unregister_cb() local 78 reactor_unregister(arg->object); in unregister_cb() 79 reactor_stop(arg->reactor); in unregister_cb() 86 unregister_arg_t arg; in TEST_F() local 87 arg.reactor = reactor; in TEST_F() 88 arg.object = reactor_register(reactor, fd, &arg, unregister_cb, NULL); in TEST_F()
|
/system/tools/hidl/ |
D | generateCpp.cpp | 431 static std::string wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg, in wrapPassthroughArg() argument 433 if (!arg->type().isInterface()) { in wrapPassthroughArg() 437 const Interface &iface = static_cast<const Interface &>(arg->type()); in wrapPassthroughArg() 482 for (const auto &arg : method->args()) { in generatePassthroughMethod() local 483 std::string name = wrapPassthroughArg(out, arg, arg->name(), [&] { in generatePassthroughMethod() 503 for (const std::string& arg : wrappedArgNames) { in generatePassthroughMethod() local 504 out << ", " << arg; in generatePassthroughMethod() 514 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument 515 out << (arg->type().isInterface() ? "_hidl_wrapped_" : "") << arg->name(); in generatePassthroughMethod() 533 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument [all …]
|
D | generateJavaImpl.cpp | 68 for (const auto& arg : method->results()) { in generateJavaImpl() local 69 arg->type().emitJavaFieldInitializer(out, arg->name()); in generateJavaImpl() 77 [&](auto& arg) { out << arg->name(); }); in generateJavaImpl() argument
|
/system/bt/tools/scripts/ |
D | dump_hearingaid_audio.py | 550 arg = argv_parser.parse_args() 552 if arg.folder is not None: 554 folder = arg.folder 556 if arg.connection_handle1 is not None and arg.connection_handle2 is not None \ 557 and arg.connection_handle1 == arg.connection_handle2: 562 if not (arg.no_start.lower() == "true" or arg.no_start.lower() == "false"): 566 if arg.connection_handle1 is not None: 567 fake_name = "ConnectionHandle" + str(arg.connection_handle1) 569 update_audio_data(PEER_ADDRESS, fake_name, CONNECTION_HANDLE, arg.connection_handle1) 570 if arg.no_start.lower() == "true": [all …]
|
/system/netd/libnetdutils/ |
D | LogTest.cpp | 116 .arg("hello") in TEST() 117 .arg(42) in TEST() 118 .arg(true); in TEST() 125 .arg('A') in TEST() 126 .arg(100U) in TEST() 127 .arg(-1000LL); in TEST() 133 const LogEntry entry = LogEntry().function("testFunc").arg(buf); in TEST()
|
/system/tools/aidl/ |
D | generate_rust.cpp | 60 string BuildArg(const AidlArgument& arg, const AidlTypenames& typenames) { in BuildArg() argument 63 auto arg_mode = ArgumentStorageMode(arg, typenames); in BuildArg() 64 auto arg_type = RustNameOf(arg.GetType(), typenames, arg_mode); in BuildArg() 65 return kArgumentPrefix + arg.GetName() + ": " + arg_type; in BuildArg() 72 for (const std::unique_ptr<AidlArgument>& arg : method.GetArguments()) { in BuildMethod() local 74 parameters += BuildArg(*arg, typenames); in BuildMethod() 120 for (const std::unique_ptr<AidlArgument>& arg : method.GetArguments()) { in GenerateClientMethod() local 121 auto arg_name = kArgumentPrefix + arg->GetName(); in GenerateClientMethod() 122 if (arg->IsIn()) { in GenerateClientMethod() 125 auto ref_mode = ArgumentReferenceMode(*arg, typenames); in GenerateClientMethod() [all …]
|
/system/bt/gd/rust/packets/ |
D | build.rs | 38 .arg("--source_root=".to_owned() + gd_root.as_os_str().to_str().unwrap()) in main() 39 .arg("--out=".to_owned() + out_dir.as_os_str().to_str().unwrap()) in main() 40 .arg("--include=bt/gd") in main() 41 .arg("--rust") in main() 42 .arg(input_files[i].as_os_str().to_str().unwrap()) in main()
|
/system/chre/apps/test/common/chre_cross_validator_sensor/src/ |
D | chre_cross_validator_sensor_manager.cc | 110 void *const *arg) { in encodeThreeAxisSensorDatapointValues() argument 112 const chreSensorThreeAxisData::chreSensorThreeAxisSampleData *>(*arg); in encodeThreeAxisSensorDatapointValues() 136 .arg = const_cast<void *>(sampleDataFromChre)}}; in makeDatapoint() 141 void *const *arg) { in encodeFloatSensorDatapointValue() argument 143 static_cast<const chreSensorFloatData::chreSensorFloatSampleData *>(*arg); in encodeFloatSensorDatapointValue() 158 void *const *arg) { in encodeProximitySensorDatapointValue() argument 160 static_cast<const chreSensorByteData::chreSensorByteSampleData *>(*arg); in encodeProximitySensorDatapointValue() 176 void *const *arg) { in encodeStepCounterSensorDatapointValue() argument 179 *arg); in encodeStepCounterSensorDatapointValue() 197 void *const *arg) { in encodeThreeAxisSensorDatapoints() argument [all …]
|
/system/iorap/src/perfetto/ |
D | main.cc | 160 for (int arg = 1; arg < argc; ++arg) { in main() local 161 std::string argstr = argv[arg]; in main() 162 bool has_arg_next = (arg+1)<argc; in main() 163 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in main() 173 ++arg; in main() 181 ++arg; in main() 191 ++arg; in main()
|