Searched refs:translateModeAccessToPosix (Results 1 – 2 of 2) sorted by relevance
57 import static com.android.providers.media.util.FileUtils.translateModeAccessToPosix;293 assertEquals(O_RDONLY, translateModeAccessToPosix(F_OK)); in testTranslateMode_Access()294 assertEquals(O_RDONLY, translateModeAccessToPosix(R_OK)); in testTranslateMode_Access()295 assertEquals(O_WRONLY, translateModeAccessToPosix(W_OK)); in testTranslateMode_Access()296 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK)); in testTranslateMode_Access()297 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK | X_OK)); in testTranslateMode_Access()
310 public static int translateModeAccessToPosix(int mode) { in translateModeAccessToPosix() method in FileUtils