Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 199) sorted by relevance

12345678

/system/core/debuggerd/crasher/
Dcrasher.cpp63 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()
224 noinline int do_action(const char* arg) { in do_action() argument
226 if (!strncmp(arg, "wait-", strlen("wait-"))) { in do_action()
229 return do_action(arg + strlen("wait-")); in do_action()
230 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { in do_action()
235 return do_action(arg + strlen("exhaustfd-")); in do_action()
[all …]
/system/testing/gtest_extras/
DOptions.cpp81 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/core/logcat/
Dlogcatd12 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/
Dmkdtimg_create.c31 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/bt/vendor_libs/test_vendor_lib/desktop/
Droot_canal_main.cc78 for (int arg = 0; arg < argc; arg++) { in main() local
79 int port = atoi(argv[arg]); in main()
80 LOG_INFO("%d: %s (%d)", arg, argv[arg], port); in main()
82 LOG_WARN("%s out of range", argv[arg]); in main()
84 switch (arg) { in main()
97 LOG_WARN("Ignored option %s", argv[arg]); in main()
/system/vold/
DKeyUtil.cpp243 fscrypt_add_key_arg* arg) { in installFsKeyringKey() argument
244 if (options.use_hw_wrapped_key) arg->__flags |= __FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED; in installFsKeyringKey()
252 if (ioctl(fd, FS_IOC_ADD_ENCRYPTION_KEY, arg) != 0) { in installFsKeyringKey()
266 struct fscrypt_add_key_arg* arg = (struct fscrypt_add_key_arg*)arg_buf.data(); in installKey() local
278 if (!buildKeySpecifier(&arg->key_spec, *policy)) { in installKey()
288 arg->key_spec.type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in installKey()
295 arg->raw_size = key.size(); in installKey()
296 memcpy(arg->raw, key.data(), key.size()); in installKey()
298 if (!installFsKeyringKey(mountpoint, options, arg)) return false; in installKey()
300 if (arg->key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in installKey()
[all …]
/system/bt/gd/facade/
Dfacade_main.cc103 std::string arg = argv[i]; in main() local
104 if (arg.find(arg_grpc_root_server_port) == 0) { in main()
105 auto port_number = arg.substr(arg_grpc_root_server_port.size()); in main()
108 if (arg.find(arg_grpc_server_port) == 0) { in main()
109 auto port_number = arg.substr(arg_grpc_server_port.size()); in main()
112 if (arg.find(arg_rootcanal_port) == 0) { in main()
113 auto port_number = arg.substr(arg_rootcanal_port.size()); in main()
116 if (arg.find(arg_btsnoop_path) == 0) { in main()
117 btsnoop_path = arg.substr(arg_btsnoop_path.size()); in main()
120 if (arg.find(arg_signal_port) == 0) { in main()
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.cpp94 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/core/fs_mgr/
Dfs_mgr_fstab.cpp104 void ParseFileEncryption(const std::string& arg, FstabEntry* entry) { in ParseFileEncryption() argument
106 entry->encryption_options = arg; in ParseFileEncryption()
130 std::string arg; in ParseMountFlags() local
132 arg = flag.substr(equal_sign + 1); in ParseMountFlags()
134 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags()
135 LWARNING << "Warning: reserve_root= flag malformed: " << arg; in ParseMountFlags()
148 std::string arg; in ParseFsMgrFlags() local
150 arg = flag.substr(equal_sign + 1); in ParseFsMgrFlags()
189 entry->key_loc = arg; in ParseFsMgrFlags()
194 auto parts = Split(arg, ":"); in ParseFsMgrFlags()
[all …]
/system/core/adb/
Dsocket_test.cpp112 static void CreateCloser(CloseWithPacketArg* arg) { in CreateCloser() argument
113 fdevent_run_on_main_thread([arg]() { in CreateCloser()
114 asocket* s = create_local_socket(std::move(arg->socket_fd)); in CreateCloser()
116 arg->bytes_written = 0; in CreateCloser()
126 arg->bytes_written += data.size(); in CreateCloser()
138 asocket* cause_close_s = create_local_socket(std::move(arg->cause_close_fd)); in CreateCloser()
156 CloseWithPacketArg arg; in TEST_F() local
157 arg.socket_fd.reset(socket_fd[1]); in TEST_F()
158 arg.cause_close_fd.reset(cause_close_fd[1]); in TEST_F()
161 CreateCloser(&arg); in TEST_F()
[all …]
/system/core/libcutils/
Dandroid_reboot.cpp26 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/bt/osi/test/
Dreactor_test.cc77 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/
DgenerateCpp.cpp431 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 …]
DgenerateJavaImpl.cpp68 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
DgenerateJava.cpp32 const NamedReference<Type>* arg, bool isReader, in emitJavaReaderWriter() argument
35 out << arg->type().getJavaType() in emitJavaReaderWriter()
38 << arg->name() in emitJavaReaderWriter()
42 arg->type().emitJavaReaderWriter(out, parcelObj, in emitJavaReaderWriter()
43 (addPrefixToName ? "_hidl_out_" : "") + arg->name(), in emitJavaReaderWriter()
348 for (const auto &arg : method->args()) { in generateJava() local
352 arg, in generateJava()
385 for (const auto &arg : method->results()) { in generateJava() local
389 arg, in generateJava()
398 for (const auto &arg : method->results()) { in generateJava() local
[all …]
/system/bt/tools/scripts/
Ddump_hearingaid_audio.py550 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/
DLogTest.cpp116 .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/iorap/src/perfetto/
Dmain.cc160 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()
/system/libufdt/tests/
DverifyDTBO.sh32 arg=""
35 arg="${arg}dumped_dtbo.${idx} "
40 $verify_bin_path final_dt $arg
/system/chre/platform/slpi/see/
Dsee_helper.cc144 void *const *arg) { in copyPayload() argument
147 auto *data = static_cast<const SeeBufArg *>(*arg); in copyPayload()
220 .data_type.arg = &data, in encodeSnsSuidReq()
389 req->request.payload.arg = data; in prepSnsClientReq()
402 void **arg) { in decodeStringField() argument
403 auto *data = static_cast<SeeBufArg *>(*arg); in decodeStringField()
418 void **arg) { in decodeSnsSuidEventSuid() argument
424 auto *suids = static_cast<DynamicVector<sns_std_suid> *>(*arg); in decodeSnsSuidEventSuid()
431 void **arg) { in decodeSnsSuidEvent() argument
432 auto *info = static_cast<SeeInfoArg *>(*arg); in decodeSnsSuidEvent()
[all …]
/system/nvram/core/include/nvram/core/
Dlogger.h61 #define NVRAM_STR(arg) #arg argument
62 #define NVRAM_STRINGIFY(arg) NVRAM_STR(arg) argument
/system/core/libbacktrace/
Dbacktrace_testlib.cpp80 GetContextArg* arg = reinterpret_cast<GetContextArg*>(data); in GetContextAndExit() local
128 arg->ucontext->resize(sizeof(ucontext)); in GetContextAndExit()
129 memcpy(arg->ucontext->data(), &ucontext, sizeof(ucontext)); in GetContextAndExit()
132 while (*arg->exit_flag == 0) { in GetContextAndExit()
137 GetContextArg arg; in test_get_context_and_wait() local
138 arg.ucontext = reinterpret_cast<std::vector<uint8_t>*>(ucontext); in test_get_context_and_wait()
139 arg.exit_flag = exit_flag; in test_get_context_and_wait()
140 test_level_one(1, 2, 3, 4, GetContextAndExit, &arg); in test_get_context_and_wait()
/system/iorap/src/inode2filename/
Dmain.cc55 for (int arg = 1; arg < argc; ++arg) { in main() local
56 std::string argstr = argv[arg]; in main()
57 bool has_arg_next = (arg+1)<argc; in main()
58 std::string arg_next = has_arg_next ? argv[arg+1] : ""; in main()
68 ++arg; in main()
/system/libbase/include/android-base/
Dcollections.h36 void Append(CollectionType& collection, T&& arg) { in Append() argument
37 collection.push_back(std::forward<T>(arg)); in Append()
41 void Append(CollectionType& collection, T&& arg, Args&&... args) { in Append() argument
42 collection.push_back(std::forward<T>(arg)); in Append()
/system/chre/platform/linux/include/chre/target_platform/
Datomic_base_impl.h64 inline uint32_t AtomicUint32::fetch_add(uint32_t arg) { in fetch_add() argument
65 return mAtomic.fetch_add(arg); in fetch_add()
72 inline uint32_t AtomicUint32::fetch_sub(uint32_t arg) { in fetch_sub() argument
73 return mAtomic.fetch_sub(arg); in fetch_sub()

12345678