/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() 223 noinline int do_action(const char* arg) { in do_action() argument 225 if (!strncmp(arg, "wait-", strlen("wait-"))) { in do_action() 228 return do_action(arg + strlen("wait-")); in do_action() 229 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { in do_action() 234 return do_action(arg + strlen("exhaustfd-")); in do_action() [all …]
|
/system/testing/gtest_extras/ |
D | Options.cpp | 76 static void PrintError(const std::string& arg, std::string msg, bool from_env) { in PrintError() argument 78 std::string variable(arg); in PrintError() 82 } else if (arg[0] == '-') { in PrintError() 83 printf("%s %s\n", arg.c_str(), msg.c_str()); in PrintError() 85 printf("--%s %s\n", arg.c_str(), msg.c_str()); in PrintError() 90 static bool GetNumeric(const char* arg, const char* value, IntType* numeric_value, bool from_env) { in GetNumeric() argument 99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric() 101 PrintError(arg, std::string("value is not formatted as a numeric value (") + value + ")", in GetNumeric() 116 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument 117 uint64_t* numeric = &numerics_.find(arg)->second; in SetNumeric() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | root_canal_main.cc | 39 for (int arg = 0; arg < argc; arg++) { in main() local 40 int port = atoi(argv[arg]); in main() 41 ALOGI("%d: %s (%d)", arg, argv[arg], port); in main() 43 ALOGW("%s out of range", argv[arg]); in main() 45 switch (arg) { in main() 58 ALOGW("Ignored option %s", argv[arg]); in main()
|
/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/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 113 void ParseFileEncryption(const std::string& arg, FstabEntry* entry) { in ParseFileEncryption() argument 119 auto parts = Split(arg, ":"); in ParseFileEncryption() 121 LWARNING << "Warning: fileencryption= flag malformed: " << arg; in ParseFileEncryption() 133 << arg; in ParseFileEncryption() 143 << arg; in ParseFileEncryption() 182 std::string arg; in ParseFsMgrFlags() local 184 arg = flag.substr(equal_sign + 1); in ParseFsMgrFlags() 221 entry->key_loc = arg; in ParseFsMgrFlags() 226 auto parts = Split(arg, ":"); in ParseFsMgrFlags() 228 LWARNING << "Warning: voldmanaged= flag malformed: " << arg; in ParseFsMgrFlags() [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/tools/hidl/ |
D | generateCpp.cpp | 435 static std::string wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg, in wrapPassthroughArg() argument 437 if (!arg->type().isInterface()) { in wrapPassthroughArg() 441 const Interface &iface = static_cast<const Interface &>(arg->type()); in wrapPassthroughArg() 490 for (const auto &arg : method->args()) { in generatePassthroughMethod() local 491 std::string name = wrapPassthroughArg(out, arg, arg->name(), [&] { in generatePassthroughMethod() 511 for (const std::string& arg : wrappedArgNames) { in generatePassthroughMethod() local 512 out << ", " << arg; in generatePassthroughMethod() 522 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument 523 out << (arg->type().isInterface() ? "_hidl_wrapped_" : "") << arg->name(); in generatePassthroughMethod() 541 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument [all …]
|
D | generateJava.cpp | 31 const NamedReference<Type>* arg, bool isReader, in emitJavaReaderWriter() argument 34 out << arg->type().getJavaType() in emitJavaReaderWriter() 37 << arg->name() in emitJavaReaderWriter() 41 arg->type().emitJavaReaderWriter(out, parcelObj, in emitJavaReaderWriter() 42 (addPrefixToName ? "_hidl_out_" : "") + arg->name(), in emitJavaReaderWriter() 385 for (const auto &arg : method->args()) { in generateJava() local 389 arg, in generateJava() 422 for (const auto &arg : method->results()) { in generateJava() local 426 arg, in generateJava() 435 for (const auto &arg : method->results()) { in generateJava() local [all …]
|
/system/core/adb/ |
D | socket_test.cpp | 112 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/bt/tools/scripts/ |
D | dump_hearingaid_audio.py | 454 arg = argv_parser.parse_args() 456 if arg.folder is not None: 458 folder = arg.folder 460 if arg.connection_handle1 is not None and arg.connection_handle2 is not None \ 461 and arg.connection_handle1 == arg.connection_handle2: 466 if not (arg.no_start.lower() == "true" or arg.no_start.lower() == "false"): 470 if arg.connection_handle1 is not None: 471 fake_name = "ConnectionHandle" + str(arg.connection_handle1) 474 arg.connection_handle1) 475 if arg.no_start.lower() == "true": [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/tools/hidl/docs/src/writer/elements/ |
D | MethodElement.kt | 37 declarationParser.params.forEachIndexed { i, arg -> in <lambda>() method 44 declarationParser.returns.forEachIndexed { i, arg -> in <lambda>() method 61 private fun getDocAnnotationDesc(tag: TokenGrammar, arg: ArgEntry): String { in <lambda>() 64 .firstOrNull { it.arg == arg.name } in <lambda>() 109 declarationParser.params.forEach { arg -> in <lambda>() method 138 declarationParser.returns.forEach { arg -> in <lambda>() method
|
D | CompoundElement.kt | 32 declarationParser.members.forEachIndexed { i, arg -> in <lambda>() method 33 val typedef = if (arg is CompoundMemberDeclaration) "${arg.typeDef.value} " else "" in <lambda>() 52 declarationParser.members.forEach { arg -> in <lambda>() method 53 …val fieldDesc = arg.docParser?.description?.let { formatTextasHTML(it, useParagraphs = false) } ?:… in <lambda>()
|
/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/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/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()
|
/system/libufdt/tests/ |
D | verifyDTBO.sh | 32 arg="" 35 arg="${arg}dumped_dtbo.${idx} " 40 $verify_bin_path final_dt $arg
|
/system/chre/platform/slpi/see/ |
D | see_helper.cc | 140 void *const *arg) { in copyPayload() argument 143 auto *data = static_cast<const SeeBufArg *>(*arg); in copyPayload() 216 .data_type.arg = &data, in encodeSnsSuidReq() 385 req->request.payload.arg = data; in prepSnsClientReq() 398 void **arg) { in decodeStringField() argument 399 auto *data = static_cast<SeeBufArg *>(*arg); in decodeStringField() 414 void **arg) { in decodeSnsSuidEventSuid() argument 420 auto *suids = static_cast<DynamicVector<sns_std_suid> *>(*arg); in decodeSnsSuidEventSuid() 427 void **arg) { in decodeSnsSuidEvent() argument 428 auto *info = static_cast<SeeInfoArg *>(*arg); in decodeSnsSuidEvent() [all …]
|
/system/nvram/core/include/nvram/core/ |
D | logger.h | 61 #define NVRAM_STR(arg) #arg argument 62 #define NVRAM_STRINGIFY(arg) NVRAM_STR(arg) argument
|
/system/core/adb/daemon/ |
D | services.cpp | 106 for (const std::string& arg : android::base::Split(service_args, ",")) { in ShellService() local 107 if (arg == kShellServiceArgRaw) { in ShellService() 109 } else if (arg == kShellServiceArgPty) { in ShellService() 111 } else if (arg == kShellServiceArgShellProtocol) { in ShellService() 113 } else if (arg.starts_with("TERM=")) { in ShellService() 114 terminal_type = arg.substr(strlen("TERM=")); in ShellService() 115 } else if (!arg.empty()) { in ShellService() 117 LOG(WARNING) << "Ignoring unknown shell service argument: " << arg; in ShellService() 254 std::string arg(name); in daemon_service_to_fd() local 256 std::bind(remount_service, std::placeholders::_1, arg)); in daemon_service_to_fd() [all …]
|
/system/core/libbacktrace/ |
D | backtrace_testlib.cpp | 80 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/ |
D | main.cc | 55 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/chre/platform/linux/include/chre/target_platform/ |
D | atomic_base_impl.h | 64 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()
|
/system/core/base/include/android-base/ |
D | collections.h | 36 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/slpi/include/chre/target_platform/ |
D | atomic_base_impl.h | 77 inline uint32_t AtomicUint32::fetch_add(uint32_t arg) { in fetch_add() argument 79 return qurt_atomic_add_return(&mValue, arg); in fetch_add() 87 inline uint32_t AtomicUint32::fetch_sub(uint32_t arg) { in fetch_sub() argument 89 return qurt_atomic_sub_return(&mValue, arg); in fetch_sub()
|