/art/runtime/base/ |
to_str.h | 35 const char* c_str() const { function in class:art::ToStr 36 return s_.c_str();
|
/bootable/recovery/tests/unit/ |
ziputil_test.cpp | 34 ASSERT_EQ(0, OpenArchive(zip_path.c_str(), &handle)); 49 ASSERT_EQ(0, OpenArchive(zip_path.c_str(), &handle)); 57 ASSERT_EQ(0, access((path + "/a.txt").c_str(), F_OK)); 58 ASSERT_EQ(0, access((path + "/b.txt").c_str(), F_OK)); 59 ASSERT_EQ(0, access((path + "/b/c.txt").c_str(), F_OK)); 60 ASSERT_EQ(0, access((path + "/b/d.txt").c_str(), F_OK)); 72 ASSERT_EQ(0, unlink((path + "/a.txt").c_str())); 73 ASSERT_EQ(0, unlink((path + "/b.txt").c_str())); 74 ASSERT_EQ(0, unlink((path + "/b/c.txt").c_str())); 75 ASSERT_EQ(0, unlink((path + "/b/d.txt").c_str())); [all...] |
dirutil_test.cpp | 54 ASSERT_EQ(0, dirCreateHierarchy(path.c_str(), mode, nullptr, false, nullptr)); 58 ASSERT_EQ(0, stat(path.c_str(), &sb)) << strerror(errno); 64 ASSERT_EQ(0, rmdir((prefix + "/a/b").c_str())); 65 ASSERT_EQ(0, rmdir((prefix + "/a").c_str())); 72 ASSERT_EQ(0, dirCreateHierarchy(path.c_str(), 0755, nullptr, true, nullptr)); 76 ASSERT_EQ(0, stat((prefix + "/a").c_str(), &sb)) << strerror(errno); 79 ASSERT_EQ(-1, stat(path.c_str(), &sb)); 83 ASSERT_EQ(0, rmdir((prefix + "/a").c_str())); 93 ASSERT_EQ(0, dirCreateHierarchy(path.c_str(), mode, ×tamp, false, nullptr)); 97 ASSERT_EQ(0, stat(path.c_str(), &sb)) << strerror(errno) [all...] |
zip_test.cpp | 35 ASSERT_EQ(0, OpenArchive(zip_path.c_str(), &handle)); 44 ASSERT_EQ(0, access((path + "/a.txt").c_str(), F_OK)); 45 ASSERT_EQ(0, access((path + "/b.txt").c_str(), F_OK)); 46 ASSERT_EQ(0, access((path + "/b/c.txt").c_str(), F_OK)); 47 ASSERT_EQ(0, access((path + "/b/d.txt").c_str(), F_OK)); 61 ASSERT_EQ(0, unlink((path + "/a.txt").c_str())); 62 ASSERT_EQ(0, unlink((path + "/b.txt").c_str())); 63 ASSERT_EQ(0, unlink((path + "/b/c.txt").c_str())); 64 ASSERT_EQ(0, unlink((path + "/b/d.txt").c_str())); 65 ASSERT_EQ(0, rmdir((path + "/b").c_str())); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/ |
vktTestGroupUtil.cpp | 33 : tcu::TestCaseGroup (testCtx, name.c_str(), description.c_str())
|
/external/pdfium/core/fpdfdoc/ |
cpdf_formfield_unittest.cpp | 20 EXPECT_STREQ("foo", name.UTF8Encode().c_str()); 26 EXPECT_STREQ("bar.foo", name.UTF8Encode().c_str()); 30 EXPECT_STREQ("bar.foo", name.UTF8Encode().c_str()); 37 EXPECT_STREQ("qux.bar.foo", name.UTF8Encode().c_str()); 41 EXPECT_STREQ("qux.bar.foo", name.UTF8Encode().c_str()); 43 EXPECT_STREQ("foo.qux.bar", name.UTF8Encode().c_str()); 45 EXPECT_STREQ("bar.foo.qux", name.UTF8Encode().c_str()); 47 EXPECT_STREQ("bar.foo.qux", name.UTF8Encode().c_str());
|
/build/kati/ |
exec.cc | 58 needed_by ? needed_by->output.c_str() : "(null)", 59 n->output.c_str()); 64 double output_ts = GetTimestamp(n->output.c_str()); 67 n->output.c_str(), 68 needed_by ? needed_by->output.c_str() : "(null)"); 73 n->output.c_str(), needed_by->output.c_str()); 75 ERROR("*** No rule to make target '%s'.", n->output.c_str()); 105 printf("%s\n", command->cmd.c_str()); 111 command->cmd.c_str(), [all...] |
/external/clang/test/SemaCXX/ |
vararg-class.cpp | 6 class C { char *c_str(); }; 7 struct D { char *c_str(); }; 9 struct F { F(); char *c_str(); }; 17 v(c); // expected-warning {{passing object of class type 'C' through variadic function; did you mean to call '.c_str()'?}} 18 v(d); // expected-warning {{passing object of class type 'D' through variadic function; did you mean to call '.c_str()'?}} 26 // expected-warning@-6 {{passing object of class type 'F' through variadic function; did you mean to call '.c_str()'?}} 29 v(d.c_str()); 30 v(f.c_str()); 43 // expected-note@-4 {{did you mean to call the c_str() method?}}
|
/external/skia/debugger/ |
debuggermain.cpp | 44 usage(commandName.c_str()); 49 usage(commandName.c_str()); 57 if (SkStrEndsWith(input.c_str(), ".skp")) { 58 w.openFile(input.c_str()); 60 w.setupDirectoryWidget(input.c_str());
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
arguments_parser.cpp | 30 AKLOGE("minCount = maxCount = 0 for %s.", mArgumentSpecs[i].getName().c_str()); 36 mArgumentSpecs[i].getName().c_str()v ); 41 mArgumentSpecs[i].getName().c_str()); 51 printf("Usage: %s", commandName.c_str()); 55 printf(" [-%s", optionName.c_str()); 57 printf(" <%s>", spec.getValueName().c_str()); 63 printf(" [<%s>]", argSpec.getName().c_str()); 65 printf(" <%s>", argSpec.getName().c_str()); 67 printf(" [<%s>...]", argSpec.getName().c_str()); 69 printf(" <%s>...", argSpec.getName().c_str()); [all...] |
/external/skia/tests/ |
GrGLSLPrettyPrintTest.cpp | 94 testStr.push_back(input1.c_str()); 96 testStr.push_back(input2.c_str()); 98 testStr.push_back(input3.c_str()); 100 testStr.push_back(input4.c_str()); 102 testStr.push_back(input5.c_str()); 104 testStr.push_back(input6.c_str()); 113 testStr.push_back(neg1.c_str()); 115 testStr.push_back(neg2.c_str()); 117 testStr.push_back(neg3.c_str()); 122 true).c_str() != nullptr) [all...] |
/external/webrtc/webrtc/libjingle/xmpp/ |
xmppstanzaparser_unittest.cc | 60 parser.Parse(fragment.c_str(), fragment.length(), false); 70 parser.Parse(fragment.c_str(), fragment.length(), false); 75 parser.Parse(fragment.c_str(), fragment.length(), false); 80 parser.Parse(fragment.c_str(), fragment.length(), false); 84 parser.Parse(fragment.c_str(), fragment.length(), false); 89 parser.Parse(fragment.c_str(), fragment.length(), false); 99 parser.Parse(fragment.c_str(), fragment.length(), false); 103 parser.Parse(fragment.c_str(), fragment.length(), false); 109 parser.Parse(fragment.c_str(), fragment.length(), false); 115 parser.Parse(fragment.c_str(), fragment.length(), false) [all...] |
/system/core/debuggerd/libdebuggerd/test/ |
dump_memory_test.cpp | 160 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...] |
/system/tpm/attestation/common/ |
print_interface_proto.cc | 72 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...] |
/bionic/tests/ |
dl_test.cpp | 86 eth.Run([&]() { execve(kPathToLinker, eth.GetArgs(), eth.GetEnv()); }, 0, expected_output.c_str()); 94 chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607 96 eth.SetArgs({ helper.c_str(), nullptr }); 97 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); 105 chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607 107 eth.SetArgs({ helper.c_str(), nullptr }); 108 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
|
gtest_globals.cpp | 34 if (!android::base::Realpath(path.c_str(), &out_path)) { 35 printf("Failed to get realpath for \"%s\"", path.c_str()); 43 printf("\"%s\": does not exists", out_path.c_str());
|
system_properties_test2.cpp | 53 ASSERT_EQ(0, __system_property_set(property_name.c_str(), "value1")); 54 ASSERT_EQ(6, __system_property_get(property_name.c_str(), propvalue)); 65 ASSERT_EQ(-1, __system_property_set(property_name.c_str(), long_value.c_str())); 66 ASSERT_EQ(6, __system_property_get(property_name.c_str(), propvalue)); 70 ASSERT_EQ(0, __system_property_set(property_name.c_str(), "value1-1")); 71 ASSERT_EQ(8, __system_property_get(property_name.c_str(), propvalue)); 84 ASSERT_EQ(0, __system_property_set(long_property_name.c_str(), "value2")); 85 ASSERT_EQ(6, __system_property_get(long_property_name.c_str(), propvalue)); 89 const prop_info* pi = __system_property_find(property_name.c_str()); [all...] |
/external/webrtc/webrtc/tools/frame_editing/ |
frame_editing.cc | 84 const char* in_path = parser.GetFlag("in_path").c_str(); 85 int width = strtol((parser.GetFlag("width")).c_str(), NULL, 10); 86 int height = strtol((parser.GetFlag("height")).c_str(), NULL, 10); 87 int first_frame_to_cut = strtol((parser.GetFlag("f")).c_str(), NULL, 10); 88 int interval = strtol((parser.GetFlag("interval")).c_str(), NULL, 10); 89 int last_frame_to_cut = strtol((parser.GetFlag("l")).c_str(), NULL, 10); 91 const char* out_path = parser.GetFlag("out_path").c_str();
|
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/ |
file_test.cc | 46 TEST_LOG("Recording to %s for 3 seconds.\n", recording_filename.c_str()); 47 EXPECT_EQ(0, voe_file_->StartRecordingMicrophone(recording_filename.c_str())); 51 TEST_LOG("Playing back %s.\n", recording_filename.c_str()); 53 channel_, recording_filename.c_str())); 70 TEST_LOG("Recording playout to %s.\n", recording_filename.c_str()); 72 channel_, recording_filename.c_str(), &send_codec)); 78 channel_, recording_filename.c_str(), true, false,
|
/system/core/adb/sysdeps/ |
stat_test.cpp | 34 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));
|
/external/skia/src/ports/ |
SkFontMgr_custom_directory.cpp | 49 SkOSFile::Iter iter(directory.c_str(), suffix); 53 SkString filename(SkOSPath::Join(directory.c_str(), name.c_str())); 54 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(filename.c_str()); 56 SkDebugf("---- failed to open <%s>\n", filename.c_str()); 62 SkDebugf("---- failed to open <%s> as a font\n", filename.c_str()); 74 filename.c_str(), faceIndex); 78 SkFontStyleSet_Custom* addTo = find_family(*families, realname.c_str()); 84 realname, filename.c_str(), 89 SkOSFile::Iter dirIter(directory.c_str()); [all...] |
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
Usage.cpp | 32 ALOGD("%s: Usage %s has identifier 0x%X", __FUNCTION__, getName().c_str(), identifier); 42 ALOGD("%s: %d for Usage %s", __FUNCTION__, strategy, getName().c_str()); 50 ALOGD("%s: %d for Usage %s", __FUNCTION__, mApplicableStrategy, getName().c_str());
|
/frameworks/base/media/mca/filterfw/native/core/ |
native_program.cpp | 47 lib_handle_ = dlopen(lib_name.c_str(), RTLD_NOW); 49 ALOGE("NativeProgram: Error opening library: '%s': %s", lib_name.c_str(), dlerror()); 60 process_function_ = reinterpret_cast<ProcessFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 62 ALOGE("NativeProgram: Could not find process function symbol: '%s'!", func_name.c_str()); 71 init_function_ = reinterpret_cast<InitFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 78 setvalue_function_ = reinterpret_cast<SetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 85 getvalue_function_ = reinterpret_cast<GetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 92 reset_function_ = reinterpret_cast<ResetFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 99 teardown_function_ = reinterpret_cast<TeardownFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 128 setvalue_function_(key.c_str(), value.c_str(), user_data_) [all...] |
/system/vold/ |
EmulatedVolume.cpp | 64 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...] |
/external/skia/src/gpu/effects/ |
GrBezierEffect.cpp | 137 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); 138 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); 140 dfdx.c_str(), 141 v.fsIn(), dklmdx.c_str(), 142 v.fsIn(), dklmdx.c_str(), 143 v.fsIn(), dklmdx.c_str()); 145 dfdy.c_str(), 146 v.fsIn(), dklmdy.c_str(), 147 v.fsIn(), dklmdy.c_str(), 148 v.fsIn(), dklmdy.c_str()); [all...] |