Lines Matching refs:mode
241 * {@link Uri}, using the desired mode flags. This grants temporary access permission for the
512 * @param mode Access mode for the file. May be "r" for read-only access, "rw" for read and
517 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
520 final int fileMode = modeToMode(mode);
727 private static int modeToMode(String mode) {
729 if ("r".equals(mode)) {
731 } else if ("w".equals(mode) || "wt".equals(mode)) {
735 } else if ("wa".equals(mode)) {
739 } else if ("rw".equals(mode)) {
742 } else if ("rwt".equals(mode)) {
747 throw new IllegalArgumentException("Invalid mode: " + mode);