/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 | 115 public static boolean restorecon(String pathname) throws NullPointerException { in restorecon() argument 116 if (pathname == null) { throw new NullPointerException(); } in restorecon() 117 return native_restorecon(pathname, 0); in restorecon() 130 private static native boolean native_restorecon(String pathname, int flags); in native_restorecon() argument
|
/frameworks/native/cmds/installd/ |
D | utils.h | 108 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false); 109 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false); 111 int delete_dir_contents(const char *pathname,
|
D | utils.cpp | 375 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument 376 return delete_dir_contents(pathname.c_str(), 0, NULL, ignore_if_missing); in delete_dir_contents() 379 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents_and_dir() argument 380 return delete_dir_contents(pathname.c_str(), 1, NULL, ignore_if_missing); in delete_dir_contents_and_dir() 383 int delete_dir_contents(const char *pathname, in delete_dir_contents() argument 391 d = opendir(pathname); in delete_dir_contents() 396 ALOGE("Couldn't opendir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents() 402 if (rmdir(pathname)) { in delete_dir_contents() 403 ALOGE("Couldn't rmdir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
|
/frameworks/base/core/jni/ |
D | android_os_SELinux.cpp | 309 ScopedUtfChars pathname(env, pathnameStr); in native_restorecon() local 310 if (pathname.c_str() == NULL) { in native_restorecon() 315 int ret = selinux_android_restorecon(pathname.c_str(), flags); in native_restorecon() 316 ALOGV("restorecon(%s) => %d", pathname.c_str(), ret); in native_restorecon()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.h | 200 bool is_dir(const char* pathname);
|
D | utils.cpp | 1240 bool is_dir(const char* pathname) { in is_dir() argument 1242 if (stat(pathname, &info) == -1) { in is_dir()
|
/frameworks/multidex/library/src/android/support/multidex/ |
D | MultiDexExtractor.java | 310 public boolean accept(File pathname) { in prepareDexDir() 311 String name = pathname.getName(); in prepareDexDir()
|
/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/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 1719 const char *pathname = uri; in android_audioPlayer_realize() local 1721 if (!strncasecmp(pathname, "file://", 7)) { in android_audioPlayer_realize() 1722 pathname += 7; in android_audioPlayer_realize() 1725 int fd = ::open(pathname, O_RDONLY); in android_audioPlayer_realize()
|