Searched refs:W_OK (Results 1 – 9 of 9) sorted by relevance
39 import static android.system.OsConstants.W_OK;560 assertEquals(O_WRONLY, translateModeAccessToPosix(W_OK)); in testTranslateMode_Access()561 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK)); in testTranslateMode_Access()562 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK | X_OK)); in testTranslateMode_Access()
111 return access(path, W_OK) == 0; in verify_directory_writable()
38 import static android.system.OsConstants.W_OK;1400 } else if ((mode & (R_OK | W_OK)) == (R_OK | W_OK)) { in translateModeAccessToPosix()1404 } else if ((mode & W_OK) == W_OK) { in translateModeAccessToPosix()
29 if (access(path, R_OK | W_OK | X_OK) == 0) { in ensureCacheDirExists()
90 #ifndef W_OK91 #define W_OK 02 // not defined by MSVC for whatever reason macro
337 return access((g_traceFolder + filename).c_str(), W_OK) != -1; in fileIsWritable()
123 bool ffs_ok = access(FFS_MTP_EP0, W_OK) == 0; in MtpServer()
28022 field public static final int W_OK;
42802 field public static final int W_OK;