Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 11 of 11) sorted by relevance

/frameworks/compile/mclinker/lib/Support/Windows/
DPathV3.inc26 size_t canonicalize(std::string& pathname) {
44 if (pathname.empty())
50 while (handler < pathname.size()) {
51 if (separator == pathname[handler]) { // handler = 1st '/'
53 if (next >= pathname.size())
55 switch (pathname[next]) { // next = handler + 1;
57 while (next < pathname.size() && separator == pathname[next])
60 pathname.erase(handler, next - handler - 1);
67 if (next >= pathname.size()) // '/.'
69 switch (pathname[next]) {
[all …]
/frameworks/compile/mclinker/lib/Support/Unix/
DPathV3.inc32 size_t canonicalize(std::string& pathname) {
50 if (pathname.empty())
56 while (handler < pathname.size()) {
57 if (separator == pathname[handler]) { // handler = 1st '/'
59 if (next >= pathname.size())
61 switch (pathname[next]) { // next = handler + 1;
63 while (next < pathname.size() && separator == pathname[next])
66 pathname.erase(handler, next - handler - 1);
73 if (next >= pathname.size()) // '/.'
75 switch (pathname[next]) {
[all …]
/frameworks/base/core/java/android/os/
DSELinux.java139 public static boolean restorecon(String pathname) throws NullPointerException { in restorecon() argument
140 if (pathname == null) { throw new NullPointerException(); } in restorecon()
141 return native_restorecon(pathname, 0); in restorecon()
154 private static native boolean native_restorecon(String pathname, int flags); in native_restorecon() argument
/frameworks/native/cmds/installd/
Dutils.h115 int create_dir_if_needed(const std::string& pathname, mode_t mode);
117 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false);
118 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false);
120 int delete_dir_contents(const char *pathname,
Dutils.cpp542 int create_dir_if_needed(const std::string& pathname, mode_t perms) { in create_dir_if_needed() argument
546 if ((rc = stat(pathname.c_str(), &st)) != 0) { in create_dir_if_needed()
548 return mkdir(pathname.c_str(), perms); in create_dir_if_needed()
553 LOG(DEBUG) << pathname << " is not a folder"; in create_dir_if_needed()
559 LOG(WARNING) << pathname << " permissions " << actual_perms << " expected " << perms; in create_dir_if_needed()
566 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument
567 return delete_dir_contents(pathname.c_str(), 0, nullptr, ignore_if_missing); in delete_dir_contents()
570 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents_and_dir() argument
571 return delete_dir_contents(pathname.c_str(), 1, nullptr, ignore_if_missing); in delete_dir_contents_and_dir()
574 int delete_dir_contents(const char *pathname, in delete_dir_contents() argument
[all …]
/frameworks/base/core/jni/
Dandroid_os_SELinux.cpp391 ScopedUtfChars pathname(env, pathnameStr); in native_restorecon() local
392 if (pathname.c_str() == NULL) { in native_restorecon()
397 int ret = selinux_android_restorecon(pathname.c_str(), flags); in native_restorecon()
398 ALOGV("restorecon(%s) => %d", pathname.c_str(), ret); in native_restorecon()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java361 public boolean accept(File pathname) { in clearDexDir()
362 return !pathname.getName().equals(LOCK_FILENAME); in clearDexDir()
/frameworks/wilhelm/tests/sandbox/
Dreverb.c285 char *pathname = argv[i]; in main() local
402 SLDataLocator_URI locURI = {SL_DATALOCATOR_URI, (SLchar *) pathname}; in main()
/frameworks/native/cmds/dumpstate/
Ddumpstate.h582 bool is_dir(const char* pathname);
Ddumpstate.cpp3778 bool is_dir(const char* pathname) { in is_dir() argument
3780 if (stat(pathname, &info) == -1) { in is_dir()
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1767 const char *pathname = uri; in android_audioPlayer_realize() local
1769 if (!strncasecmp(pathname, "file://", 7)) { in android_audioPlayer_realize()
1770 pathname += 7; in android_audioPlayer_realize()
1773 int fd = ::open(pathname, O_RDONLY); in android_audioPlayer_realize()