Searched refs:c_str (Results 1 - 25 of 447) sorted by relevance

1234567891011>>

/system/core/libcutils/tests/
H A Dtrace-dev_test.cpp60 ASSERT_STREQ(expected.c_str(), actual.c_str());
66 atrace_begin_body(name.c_str());
74 ASSERT_STREQ(expected.c_str(), actual.c_str());
79 atrace_begin_body(name.c_str());
83 ASSERT_STREQ(expected.c_str(), actual.c_str());
89 atrace_begin_body(name.c_str());
97 expected += android::base::StringPrintf("%.*s", expected_len, name.c_str());
[all...]
H A Dandroid_get_control_file_test.cpp40 EXPECT_EQ(unsetenv(key.c_str()), 0);
43 EXPECT_EQ(setenv(key.c_str(), android::base::StringPrintf("%d", tf.fd).c_str(), true), 0);
48 EXPECT_EQ(unsetenv(key.c_str()), 0);
/system/core/debuggerd/libdebuggerd/test/
H A Ddump_memory_test.cpp160 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str());
163 ASSERT_STREQ("", getFakeLogBuf().c_str());
164 ASSERT_STREQ("", getFakeLogPrint().c_str());
180 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str());
183 ASSERT_STREQ("", getFakeLogBuf().c_str());
184 ASSERT_STREQ("", getFakeLogPrint().c_str());
199 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str());
202 ASSERT_STREQ("", getFakeLogBuf().c_str());
203 ASSERT_STREQ("", getFakeLogPrint().c_str());
249 ASSERT_STREQ(expected_dump, tombstone_contents.c_str());
[all...]
H A Dtombstone_test.cpp122 ASSERT_STREQ(expected_dump, tombstone_contents.c_str());
124 ASSERT_STREQ("", amfd_data_.c_str());
127 ASSERT_STREQ("", getFakeLogBuf().c_str());
128 ASSERT_STREQ("", getFakeLogPrint().c_str());
157 ASSERT_STREQ(expected_dump, tombstone_contents.c_str());
159 ASSERT_STREQ("", amfd_data_.c_str());
162 ASSERT_STREQ("", getFakeLogBuf().c_str());
163 ASSERT_STREQ("", getFakeLogPrint().c_str());
198 ASSERT_STREQ(expected_dump, tombstone_contents.c_str());
200 ASSERT_STREQ("", amfd_data_.c_str());
[all...]
/system/tpm/attestation/common/
H A Dprint_interface_proto.cc72 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str());
76 base::StringAppendF(&output, "%s", value.key_label().c_str());
83 .c_str());
90 .c_str());
98 .c_str());
103 base::StringAppendF(&output, "%s", value.username().c_str());
108 base::StringAppendF(&output, "%s", value.origin().c_str());
124 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str());
130 GetProtoDebugStringWithIndent(value.status(), indent_size + 2).c_str());
135 base::StringAppendF(&output, "%s", value.server_error().c_str());
[all...]
H A Dprint_common_proto.cc90 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str());
96 base::HexEncode(value.quote().data(), value.quote().size()).c_str());
104 .c_str());
112 .c_str());
120 .c_str());
135 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str());
142 .c_str());
149 base::HexEncode(value.iv().data(), value.iv().size()).c_str());
156 base::HexEncode(value.mac().data(), value.mac().size()).c_str());
164 .c_str());
[all...]
/system/core/adb/sysdeps/
H A Dstat_test.cpp34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st));
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st));
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st));
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st));
50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st));
58 ASSERT_EQ(-1, stat((std::string(tf.path) + '/').c_str(), &st));
62 ASSERT_EQ(-1, stat((std::string(tf.path) + '\\').c_str(), &st));
/system/vold/
H A DEmulatedVolume.cpp64 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", label.c_str());
65 mFuseRead = StringPrintf("/mnt/runtime/read/%s", label.c_str());
66 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", label.c_str());
69 setPath(StringPrintf("/storage/%s", label.c_str()));
71 if (fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) ||
72 fs_prepare_dir(mFuseRead.c_str(), 0700, AID_ROOT, AID_ROOT) ||
73 fs_prepare_dir(mFuseWrite.c_str(), 0700, AID_ROOT, AID_ROOT)) {
86 mRawPath.c_str(),
87 label.c_str(),
125 rmdir(mFuseDefault.c_str());
[all...]
H A DPublicVolume.cpp47 mDevPath = StringPrintf("/dev/block/vold/%s", getId().c_str());
66 if (!access(legacyPath.c_str(), R_OK | X_OK)
67 && access(securePath.c_str(), R_OK | X_OK)) {
68 if (rename(legacyPath.c_str(), securePath.c_str())) {
73 if (TEMP_FAILURE_RETRY(mkdir(securePath.c_str(), 0700))) {
113 mRawPath = StringPrintf("/mnt/media_rw/%s", stableName.c_str());
115 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", stableName.c_str());
116 mFuseRead = StringPrintf("/mnt/runtime/read/%s", stableName.c_str());
117 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", stableName.c_str());
[all...]
/system/netd/server/
H A DLocalNetwork.cpp41 if (int ret = RouteController::addInterfaceToLocalNetwork(mNetId, interface.c_str())) {
42 ALOGE("failed to add interface %s to local netId %u", interface.c_str(), mNetId);
53 if (int ret = RouteController::removeInterfaceFromLocalNetwork(mNetId, interface.c_str())) {
54 ALOGE("failed to remove interface %s from local netId %u", interface.c_str(), mNetId);
H A DVirtualNetwork.cpp62 add ? "adding" : "removing", uidRanges.toString().c_str(), mNetId, strerror(-ret));
73 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure,
75 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId);
88 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(),
90 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId);
106 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure,
108 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId);
119 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(),
121 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId);
H A DPhysicalNetwork.cpp32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) {
33 ALOGE("failed to add interface %s to default netId %u", interface.c_str(), netId);
45 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(),
47 ALOGE("failed to remove interface %s from default netId %u", interface.c_str(), netId);
100 if (int ret = RouteController::modifyPhysicalNetworkPermission(mNetId, interface.c_str(),
103 interface.c_str(), mNetId, mPermission, permission);
159 if (int ret = RouteController::addInterfaceToPhysicalNetwork(mNetId, interface.c_str(),
161 ALOGE("failed to add interface %s to netId %u", interface.c_str(), mNetId);
186 if (int ret = RouteController::removeInterfaceFromPhysicalNetwork(mNetId, interface.c_str(),
188 ALOGE("failed to remove interface %s from netId %u", interface.c_str(), mNetI
[all...]
/system/core/base/
H A Dparsenetaddress.cpp39 *error = StringPrintf("bad IPv6 address '%s'", address.c_str());
60 *error = StringPrintf("no host in '%s'", address.c_str());
65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 ||
67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(),
68 address.c_str());
75 StringPrintf(ipv6 ? "[%s]:%d" : "%s:%d", host->c_str(), *port);
/system/bt/osi/test/
H A Dwakelock_test.cc58 char* buffer = const_cast<char*>(tmp_dir_.c_str());
68 creat(lock_path_.c_str(), S_IRWXU);
69 creat(unlock_path_.c_str(), S_IRWXU);
78 unlink(lock_path_.c_str());
79 unlink(unlock_path_.c_str());
80 rmdir(tmp_dir_.c_str());
91 int lock_fd = open(lock_path_.c_str(), O_RDONLY);
94 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY);
146 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str());
[all...]
/system/extras/simpleperf/
H A Dcmd_help.cpp76 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str());
81 printf("%s\n", command.LongHelpString().c_str());
/system/nfc/halimpl/bcm2079x/adaptation/
H A DNonVolatileStore.cpp74 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block);
127 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block);
199 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), DH_NV_BLOCK);
201 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F3_NV_BLOCK);
203 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F4_NV_BLOCK);
205 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F2_NV_BLOCK);
207 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F5_NV_BLOCK);
234 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), DH_NV_BLOCK);
236 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F3_NV_BLOCK);
238 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F4_NV_BLOC
[all...]
/system/core/libunwindstack/
H A DLog.cpp48 vprintf(real_format.c_str(), args);
50 LOG_PRI_VA(ANDROID_LOG_INFO, LOG_TAG, real_format.c_str(), args);
/system/update_engine/
H A Dmain.cc46 if (utils::FileExists(symlink_path.c_str()) &&
47 !utils::IsSymlink(symlink_path.c_str())) {
53 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) {
72 kLogsDir.c_str(),
73 GetTimeAsString(::time(nullptr)).c_str());
74 mkdir(kLogsDir.c_str(), 0755);
91 log_settings.log_file = log_file.c_str();
/system/core/bootstat/
H A Duptime_parser.cpp35 return static_cast<time_t>(strtod(uptime_str.c_str(), NULL));
/system/core/debuggerd/libdebuggerd/
H A Dopen_files_list.cpp40 std::unique_ptr<DIR, int (*)(DIR*)> dir(opendir(fd_dir_name.c_str()), closedir);
42 ALOGE("failed to open directory %s: %s", fd_dir_name.c_str(), strerror(errno));
58 ALOGE("failed to readlink %s: %s", path.c_str(), strerror(errno));
66 _LOG(log, logtype::OPEN_FILES, "%sfd %i: %s\n", prefix, file.first, file.second.c_str());
/system/core/init/
H A Dkeyword_map.h41 *err = StringPrintf("invalid keyword '%s'", keyword.c_str());
51 keyword.c_str(), min_args,
59 keyword.c_str(), min_args,
63 keyword.c_str(), min_args, max_args);
/system/libhidl/transport/include/hidl/
H A DLegacySupport.h40 Interface::descriptor, name.c_str());
45 Interface::descriptor, name.c_str());
51 Interface::descriptor, name.c_str());
54 Interface::descriptor, name.c_str(), status);
/system/tools/aidl/
H A Dtype_namespace.cpp108 filename.c_str(), raw_type.GetLine(),
109 raw_type.ToString().c_str())
122 filename.c_str(), a.GetLine(), a.GetName().c_str(), arg_index);
137 a.GetType().ToString().c_str());
145 a.ToString().c_str());
150 if (is_java_keyword(a.GetName().c_str())) {
/system/core/adb/
H A Dsocket_spec.cpp70 *error = StringPrintf("specification is not tcp: '%s'", spec.c_str());
97 *error = StringPrintf("missing port in specification: '%s'", spec.c_str());
121 if (StartsWith(spec, prefix.c_str())) {
131 if (StartsWith(spec, prefix.c_str())) {
173 if (StartsWith(spec, prefix.c_str())) {
176 it.first.c_str());
185 *error = StringPrintf("unknown socket specification '%s'", spec.c_str());
216 if (StartsWith(spec, prefix.c_str())) {
219 spec.c_str());
228 *error = StringPrintf("unknown socket specification '%s'", spec.c_str());
[all...]
/system/tools/aidl/tests/
H A Dfake_io_delegate.cpp105 package.c_str(), class_name.c_str());
108 package.c_str(), class_name.c_str(),
109 cpp_header.c_str());
118 package.c_str(), class_name.c_str());
126 string contents = StringPrintf("package %s;\n", package.c_str());
129 class_name.c_str(), subclass.c_str());
[all...]

Completed in 554 milliseconds

1234567891011>>