/frameworks/compile/mclinker/lib/Support/Windows/ |
D | PathV3.inc | 26 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/ |
D | PathV3.inc | 32 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/ |
D | SELinux.java | 139 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/ |
D | utils.h | 115 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,
|
D | utils.cpp | 542 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/ |
D | android_os_SELinux.cpp | 391 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/ |
D | MultiDexExtractor.java | 361 public boolean accept(File pathname) { in clearDexDir() 362 return !pathname.getName().equals(LOCK_FILENAME); in clearDexDir()
|
/frameworks/wilhelm/tests/sandbox/ |
D | reverb.c | 285 char *pathname = argv[i]; in main() local 402 SLDataLocator_URI locURI = {SL_DATALOCATOR_URI, (SLchar *) pathname}; in main()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.h | 582 bool is_dir(const char* pathname);
|
D | dumpstate.cpp | 3778 bool is_dir(const char* pathname) { in is_dir() argument 3780 if (stat(pathname, &info) == -1) { in is_dir()
|
/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 1767 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()
|