/system/bt/gd/os/linux_generic/ |
D | files.cc | 37 unlink(temp_path.c_str()); in HandleError() 59 if (std::rename(from.c_str(), to.c_str()) != 0) { in RenameFile() 60 …LOG_ERROR("unable to rename file from '%s' to '%s', error: %s", from.c_str(), to.c_str(), strerror… in RenameFile() 69 LOG_WARN("Failed to open file '%s', error: %s", path.c_str(), strerror(errno)); in ReadSmallFile() 74 LOG_WARN("Failed to get file size for '%s', error: %s", path.c_str(), strerror(errno)); in ReadSmallFile() 79 …LOG_WARN("Failed to go back to the beginning of file '%s', error: %s", path.c_str(), strerror(errn… in ReadSmallFile() 83 LOG_WARN("Failed to read file '%s', error: %s", path.c_str(), strerror(errno)); in ReadSmallFile() 119 LOG_ERROR("error extracting directory from '%s', error: %s", path.c_str(), strerror(errno)); in WriteToFile() 123 int dir_fd = open(directory_path.c_str(), O_RDONLY | O_DIRECTORY); in WriteToFile() 125 LOG_ERROR("unable to open dir '%s', error: %s", directory_path.c_str(), strerror(errno)); in WriteToFile() [all …]
|
/system/core/libcutils/ |
D | trace-dev_test.cpp | 59 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 65 atrace_begin_body(name.c_str()); in TEST_F() 73 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 78 atrace_begin_body(name.c_str()); in TEST_F() 82 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 88 atrace_begin_body(name.c_str()); in TEST_F() 96 expected += android::base::StringPrintf("%.*s", expected_len, name.c_str()); in TEST_F() 97 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 108 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 114 atrace_async_begin_body(name.c_str(), 12345); in TEST_F() [all …]
|
/system/libhidl/transport/ |
D | LegacySupport.cpp | 38 ALOGE("Could not get passthrough implementation for %s/%s.", interfaceName.c_str(), in registerPassthroughServiceImplementation() 39 serviceName.c_str()); in registerPassthroughServiceImplementation() 43 ALOGE("Implementation of %s/%s is remote!", interfaceName.c_str(), serviceName.c_str()); in registerPassthroughServiceImplementation() 51 ALOGE("Error retrieving interface name from %s/%s: %s", interfaceName.c_str(), in registerPassthroughServiceImplementation() 52 serviceName.c_str(), result.description().c_str()); in registerPassthroughServiceImplementation() 56 ALOGE("Implementation of %s/%s is actually %s, not a %s!", interfaceName.c_str(), in registerPassthroughServiceImplementation() 57 serviceName.c_str(), actualName.c_str(), expectInterfaceName.c_str()); in registerPassthroughServiceImplementation() 63 ALOGI("Registration complete for %s/%s.", interfaceName.c_str(), serviceName.c_str()); in registerPassthroughServiceImplementation() 65 ALOGE("Could not register service %s/%s (%d).", interfaceName.c_str(), serviceName.c_str(), in registerPassthroughServiceImplementation()
|
/system/vold/model/ |
D | PublicVolume.cpp | 50 mDevPath = StringPrintf("/dev/block/vold/%s", getId().c_str()); in PublicVolume() 69 if (!access(legacyPath.c_str(), R_OK | X_OK) && access(securePath.c_str(), R_OK | X_OK)) { in initAsecStage() 70 if (rename(legacyPath.c_str(), securePath.c_str())) { in initAsecStage() 75 if (TEMP_FAILURE_RETRY(mkdir(securePath.c_str(), 0700))) { in initAsecStage() 119 mRawPath = StringPrintf("/mnt/media_rw/%s", stableName.c_str()); in doMount() 121 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", stableName.c_str()); in doMount() 122 mFuseRead = StringPrintf("/mnt/runtime/read/%s", stableName.c_str()); in doMount() 123 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", stableName.c_str()); in doMount() 124 mFuseFull = StringPrintf("/mnt/runtime/full/%s", stableName.c_str()); in doMount() 128 setPath(StringPrintf("/storage/%s", stableName.c_str())); in doMount() [all …]
|
D | EmulatedVolume.cpp | 66 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", label.c_str()); in doMount() 67 mFuseRead = StringPrintf("/mnt/runtime/read/%s", label.c_str()); in doMount() 68 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", label.c_str()); in doMount() 69 mFuseFull = StringPrintf("/mnt/runtime/full/%s", label.c_str()); in doMount() 72 setPath(StringPrintf("/storage/%s", label.c_str())); in doMount() 74 if (fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 75 fs_prepare_dir(mFuseRead.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 76 fs_prepare_dir(mFuseWrite.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 77 fs_prepare_dir(mFuseFull.c_str(), 0700, AID_ROOT, AID_ROOT)) { in doMount() 94 mRawPath.c_str(), in doMount() [all …]
|
D | ObbVolume.cpp | 67 if (Devmapper::create(getId().c_str(), mLoopPath.c_str(), mSourceKey.c_str(), nr_sec, tmp, in doCreate() 81 if (!mDmPath.empty() && Devmapper::destroy(getId().c_str())) { in doDestroy() 84 if (!mLoopPath.empty() && Loop::destroyByDevice(mLoopPath.c_str())) { in doDestroy() 93 auto path = StringPrintf("/mnt/obb/%s", getId().c_str()); in doMount() 96 if (fs_prepare_dir(path.c_str(), 0700, AID_ROOT, AID_ROOT)) { in doMount() 115 rmdir(path.c_str()); in doUnmount()
|
/system/netd/server/ |
D | BandwidthController.cpp | 345 "COMMIT\n", chainName, criticalCommands.c_str(), chainName, op); in makeDataSaverCommand() 401 ALOGE("unable to update the Bandwidth Uid Map: %s", toString(status).c_str()); in manipulateSpecialApps() 407 StringAppendF(&cmd, "%s %s -m owner --uid-owner %s%s\n", opToString(op), chain.c_str(), in manipulateSpecialApps() 408 appStrUid.c_str(), jumpToString(jumpHandling)); in manipulateSpecialApps() 438 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota() 439 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota() 440 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota() 441 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota() 482 ALOGE("No such iface %s to delete", iface.c_str()); in removeInterfaceSharedQuota() 488 StringPrintf("-D bw_INPUT -i %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota() [all …]
|
D | VirtualNetwork.cpp | 57 add ? "adding" : "removing", uidRanges.toString().c_str(), mNetId, strerror(-ret)); in maybeCloseSockets() 68 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers() 70 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers() 83 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), in removeUsers() 85 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers() 101 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface() 103 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface() 114 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), in removeInterface() 116 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId); in removeInterface()
|
D | PhysicalNetwork.cpp | 32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { in addToDefault() 33 ALOGE("failed to add interface %s to default netId %u", interface.c_str(), netId); in addToDefault() 44 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), in removeFromDefault() 46 ALOGE("failed to remove interface %s from default netId %u", interface.c_str(), netId); in removeFromDefault() 91 (void)RouteController::addRoute(interface.c_str(), dst, "throw", RouteController::INTERFACE, in invalidateRouteCache() 93 (void) RouteController::removeRoute(interface.c_str(), dst, "throw", in invalidateRouteCache() 109 if (int ret = RouteController::modifyPhysicalNetworkPermission(mNetId, interface.c_str(), in setPermission() 112 interface.c_str(), mNetId, mPermission, permission); in setPermission() 169 if (int ret = RouteController::addInterfaceToPhysicalNetwork(mNetId, interface.c_str(), in addInterface() 171 ALOGE("failed to add interface %s to netId %u", interface.c_str(), mNetId); in addInterface() [all …]
|
/system/core/debuggerd/libdebuggerd/test/ |
D | dump_memory_test.cpp | 212 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str()); in TEST_F() 215 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F() 216 ASSERT_STREQ("", getFakeLogPrint().c_str()); in TEST_F() 232 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str()); in TEST_F() 235 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F() 236 ASSERT_STREQ("", getFakeLogPrint().c_str()); in TEST_F() 251 ASSERT_STREQ(g_expected_full_dump, tombstone_contents.c_str()); in TEST_F() 254 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F() 255 ASSERT_STREQ("", getFakeLogPrint().c_str()); in TEST_F() 264 ASSERT_STREQ("", tombstone_contents.c_str()); in TEST_F() [all …]
|
D | tombstone_test.cpp | 104 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); in TEST_F() 106 ASSERT_STREQ("", amfd_data_.c_str()); in TEST_F() 109 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F() 110 ASSERT_STREQ("", getFakeLogPrint().c_str()); in TEST_F() 144 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); in TEST_F() 146 ASSERT_STREQ("", amfd_data_.c_str()); in TEST_F() 149 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F() 150 ASSERT_STREQ("", getFakeLogPrint().c_str()); in TEST_F() 181 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); in TEST_F() 183 ASSERT_STREQ("", amfd_data_.c_str()); in TEST_F() [all …]
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | fs_avb_test_util.cpp | 61 image_path.value().c_str(), hash_algorithm.c_str(), in CalcVBMetaDigest() 62 vbmeta_digest_path.value().c_str()); in CalcVBMetaDigest() 95 " --chain_partition %s:%u:%s", partition.partition_name.c_str(), in GenerateVBMetaImage() 96 partition.rollback_index_location, partition.key_blob_path.value().c_str()); in GenerateVBMetaImage() 106 rollback_index, signing_options.c_str(), include_descriptor_options.c_str(), in GenerateVBMetaImage() 107 chain_partition_options.c_str(), additional_options.c_str(), in GenerateVBMetaImage() 108 vbmeta_image.path.value().c_str()); in GenerateVBMetaImage() 130 image_path.value().c_str(), vbmeta_image.path.value().c_str(), padding_size); in ExtractVBMetaImage() 182 add_footer_option.c_str(), image_path.value().c_str(), partition_name.c_str(), in AddAvbFooter() 183 partition_size, rollback_index, salt.c_str(), signing_options.c_str(), in AddAvbFooter() [all …]
|
/system/update_engine/ |
D | logging.cc | 44 if (utils::FileExists(symlink_path.c_str()) && in SetupLogSymlink() 45 !utils::IsSymlink(symlink_path.c_str())) { in SetupLogSymlink() 50 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) { in SetupLogSymlink() 61 kLogsDir.c_str(), in SetupLogFile() 62 utils::GetTimeAsString(::time(nullptr)).c_str()); in SetupLogFile() 63 mkdir(kLogsDir.c_str(), 0755); in SetupLogFile() 82 log_settings.log_file = log_file.c_str(); in SetupLogging()
|
/system/tools/sysprop/ |
D | JavaGen.cpp | 300 writer.Write("package %s;\n\n", package_name.c_str()); in GenerateJavaClass() 302 writer.Write("public final class %s {\n", class_name.c_str()); in GenerateJavaClass() 304 writer.Write("private %s () {}\n\n", class_name.c_str()); in GenerateJavaClass() 315 std::string prop_id = ApiNameToIdentifier(prop.api_name()).c_str(); in GenerateJavaClass() 320 GetJavaEnumTypeName(prop).c_str()); in GenerateJavaClass() 325 writer.Write("%s(\"%s\")", ToUpper(name).c_str(), name.c_str()); in GenerateJavaClass() 335 GetJavaEnumTypeName(prop).c_str()); in GenerateJavaClass() 355 writer.Write("public static %s %s() {\n", prop_type.c_str(), in GenerateJavaClass() 356 prop_id.c_str()); in GenerateJavaClass() 358 writer.Write("public static Optional<%s> %s() {\n", prop_type.c_str(), in GenerateJavaClass() [all …]
|
/system/bt/osi/test/ |
D | wakelock_test.cc | 58 char* buffer = const_cast<char*>(tmp_dir_.c_str()); in SetUp() 68 creat(lock_path_.c_str(), S_IRWXU); in SetUp() 69 creat(unlock_path_.c_str(), S_IRWXU); in SetUp() 78 unlink(lock_path_.c_str()); in TearDown() 79 unlink(unlock_path_.c_str()); in TearDown() 80 rmdir(tmp_dir_.c_str()); in TearDown() 91 int lock_fd = open(lock_path_.c_str(), O_RDONLY); in IsFileWakeLockAcquired() 94 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY); in IsFileWakeLockAcquired() 146 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); in TEST_F()
|
/system/bt/gd/dumpsys/bundler/ |
D | bundler.cc | 88 if (!LoadBinarySchema(filename.c_str(), &string_schema)) { in CreateBinarySchemaBundle() 89 fprintf(stderr, "Unable to load binary schema from filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 94 fprintf(stderr, "Failed verification on binary schema filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 100 … fprintf(stderr, "Unable to find root table for binary flatbuffer schema:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 110 fprintf(stdout, "Bundled binary schema file:%s\n", schema->root_table()->name()->c_str()); in CreateBinarySchemaBundle() 152 …n(), namespaces.end(), [fp](const std::string& s) { fprintf(fp, "namespace %s {\n", s.c_str()); }); in WriteHeaderFile() 159 fprintf(fp, "} // namespace %s\n", s.c_str()); in WriteHeaderFile() 165 namespace_prefix.c_str()); in WriteHeaderFile() 180 namespace_prefix.c_str(), in WriteHeaderFile() 181 namespace_prefix.c_str(), in WriteHeaderFile() [all …]
|
/system/bt/gd/common/ |
D | strings.cc | 67 auto ret = std::from_chars(str.c_str() + i, str.c_str() + i + 2, v, 16); in FromHexString() 115 int64_t value = std::strtoll(str.c_str(), &ptr, 10); in Int64FromString() 117 LOG_DEBUG("cannot parse string '%s' with error '%s'", str.c_str(), strerror(errno)); in Int64FromString() 120 if (ptr == str.c_str()) { in Int64FromString() 121 LOG_DEBUG("string '%s' is empty or has wrong format", str.c_str()); in Int64FromString() 124 if (ptr != (str.c_str() + str.size())) { in Int64FromString() 125 LOG_DEBUG("cannot parse whole string '%s'", str.c_str()); in Int64FromString() 137 LOG_DEBUG("string '%s' contains minus sign, this function is for unsigned", str.c_str()); in Uint64FromString() 142 uint64_t value = std::strtoull(str.c_str(), &ptr, 10); in Uint64FromString() 144 LOG_DEBUG("cannot parse string '%s' with error '%s'", str.c_str(), strerror(errno)); in Uint64FromString() [all …]
|
/system/bt/btif/src/ |
D | btif_av.cc | 439 peer_address.ToString().c_str()); in SetSilencePeer() 906 return base::StringPrintf("0x%x(%s)", flags_, result.c_str()); in FlagsToString() 1040 peer_address.ToString().c_str(), bta_handle); in FindOrCreatePeer() 1054 __PRETTY_FUNCTION__, peer_address.ToString().c_str()); in FindOrCreatePeer() 1065 __PRETTY_FUNCTION__, peer_address.ToString().c_str(), peer_id); in FindOrCreatePeer() 1072 __PRETTY_FUNCTION__, peer_address.ToString().c_str(), bta_handle, in FindOrCreatePeer() 1118 peer->PeerAddress().ToString().c_str(), peer->BtaHandle()); in DeleteIdlePeers() 1137 BTA_AvRegister(BTA_AV_CHNL_AUDIO, kBtifAvSourceServiceName.c_str(), peer_id, in RegisterAllBtaHandles() 1160 __PRETTY_FUNCTION__, peer->PeerAddress().ToString().c_str(), in BtaHandleRegistered() 1165 __PRETTY_FUNCTION__, peer->PeerAddress().ToString().c_str(), in BtaHandleRegistered() [all …]
|
/system/nfc/src/adaptation/ |
D | libmain.cc | 35 return StringPrintf("%s/%s%u", nfc_storage_path.c_str(), bin.c_str(), block); in getFilenameForBlock() 88 "%s: buffer len=%u; file=%s", __func__, nbytes, filename.c_str()); in nfa_nv_co_read() 89 int fileStream = open(filename.c_str(), O_RDONLY); in nfa_nv_co_read() 138 "%s: bytes=%u; file=%s", __func__, nbytes, filename.c_str()); in nfa_nv_co_write() 141 open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfa_nv_co_write() 181 if (remove(getFilenameForBlock(DH_NV_BLOCK).c_str())) { in delete_stack_non_volatile_store() 185 if (remove(getFilenameForBlock(HC_F2_NV_BLOCK).c_str())) { in delete_stack_non_volatile_store() 190 if (remove(getFilenameForBlock(HC_F3_NV_BLOCK).c_str())) { in delete_stack_non_volatile_store() 195 if (remove(getFilenameForBlock(HC_F4_NV_BLOCK).c_str())) { in delete_stack_non_volatile_store() 200 if (remove(getFilenameForBlock(HC_F5_NV_BLOCK).c_str())) { in delete_stack_non_volatile_store() [all …]
|
/system/libziparchive/ |
D | ziptool.cpp | 87 if (!fnmatch(exclude.c_str(), name.c_str(), 0)) return false; in ShouldInclude() 96 if (!fnmatch(include.c_str(), name.c_str(), 0)) return true; in ShouldInclude() 104 if (stat(path.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode)) return true; in MakeDirectoryHierarchy() 110 return (mkdir(path.c_str(), 0777) != -1); in MakeDirectoryHierarchy() 169 printf("replace %s? [y]es, [n]o, [A]ll, [N]one: ", dst.c_str()); in PromptOverwrite() 207 die(0, "failed to extract %s: %s", name.c_str(), ErrorCodeString(err)); in ExtractToPipe() 210 die(errno, "failed to write %s to stdout", name.c_str()); in ExtractToPipe() 218 die(0, "bad filename %s", name.c_str()); in ExtractOne() 231 die(errno, "couldn't create directory hierarchy for %s", dst.c_str()); in ExtractOne() 236 if (mkdir(name.c_str(), entry.unix_mode) == -1) { in ExtractOne() [all …]
|
/system/core/adb/sysdeps/ |
D | stat_test.cpp | 34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST() 38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST() 43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST() 46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST() 50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); in TEST() 58 ASSERT_EQ(-1, stat((std::string(tf.path) + '/').c_str(), &st)); in TEST() 62 ASSERT_EQ(-1, stat((std::string(tf.path) + '\\').c_str(), &st)); in TEST()
|
/system/tools/aidl/ |
D | ast_java.cpp | 82 to->Write("%s\n", this->comment.c_str()); in Write() 85 to->Write("%s\n", a.c_str()); in Write() 91 to->Write(" = %s", this->value.c_str()); in Write() 99 to->Write("%s", this->value.c_str()); in Write() 105 to->Write("\"%s\"", this->value.c_str()); in Write() 112 to->Write("%s ", a.c_str()); in WriteDeclaration() 114 to->Write("%s %s", this->type.c_str(), this->name.c_str()); in WriteDeclaration() 117 void Variable::Write(CodeWriter* to) const { to->Write("%s", name.c_str()); } in Write() 127 [&](const std::string& s) { to->Write("%s", s.c_str()); }, [](std::monostate) {}}, in Write() 129 to->Write(".%s", name.c_str()); in Write() [all …]
|
/system/core/cli-test/ |
D | cli-test.cpp | 100 Die(0, "%s:%zu: %s already set to '%s'", g_file, g_line, what, field->c_str()); in SetField() 157 Die(0, "%s:%zu: syntax error: \"%s\"", g_file, g_line, line.c_str()); in CollectTests() 182 V("running %s \"%s\"", what, command.c_str()); in RunCommands() 183 int exit_status = system(command.c_str()); in RunCommands() 186 fprintf(stderr, "Command (%s) \"%s\" %s\n", what, command.c_str(), in RunCommands() 187 ExitStatusToString(exit_status).c_str()); in RunCommands() 200 fprintf(stderr, "Incorrect %s.\nExpected:\n%s\nActual:\n%s\n", what, expected_output.c_str(), in CheckOutput() 201 actual_output.c_str()); in CheckOutput() 214 Print(kGreen, "[ RUN ]", " %s", test.name.c_str()); in RunTests() 219 V("setenv(\"FILES\", \"%s\")", FILES.c_str()); in RunTests() [all …]
|
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer_test.cpp | 62 void TearDown() override { unlink(testfile.c_str()); } in TearDown() 92 EXPECT_EQ(access(testfile.c_str(), F_OK), -1); in TEST_F() 109 EXPECT_EQ(access(testfile.c_str(), F_OK), 0); in TEST_F() 118 ASSERT_EQ(stat(testfile.c_str(), &s), 0); in TEST_F() 161 unique_fd fd(open(testfile.c_str(), O_RDONLY)); in TEST_F() 170 ASSERT_EQ(stat(testfile.c_str(), &sb), 0); in TEST_F() 195 EXPECT_EQ(access(testfile.c_str(), F_OK), -1); in TEST_F() 238 unique_fd fd(open(testfile.c_str(), O_WRONLY | O_CLOEXEC)); in TEST_F() 247 unique_fd bdev(open(fptr->bdev_path().c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 272 EXPECT_EQ(access(path.c_str(), F_OK), 0); in TEST_F() [all …]
|
/system/apex/apexd/ |
D | apexd_private.cpp | 44 if (stat(target.c_str(), &buf) != 0) { in BindMount() 63 if (unlink(target.c_str()) != 0) { in BindMount() 72 if (mkdir(target.c_str(), kMkdirMode) != 0) { in BindMount() 78 int rc = umount2(target.c_str(), UMOUNT_NOFOLLOW); in BindMount() 87 if (mount(source.c_str(), target.c_str(), nullptr, MS_BIND, nullptr) == 0) { in BindMount()
|