Lines Matching refs:mode

735      * @param mode May be "w", "wa", "rw", or "rwt".
740 public final @Nullable OutputStream openOutputStream(@NonNull Uri uri, @NonNull String mode)
742 AssetFileDescriptor fd = openAssetFileDescriptor(uri, mode, null);
771 * of data. Opening with the "rw" mode implies a file on disk that supports
772 * seeking. If possible, always use an exclusive mode to give the underlying
779 * @param mode The file mode to use, as per {@link ContentProvider#openFile
784 * file exists under the URI or the mode is invalid.
788 @NonNull String mode) throws FileNotFoundException {
789 return openFileDescriptor(uri, mode, null);
813 * of data. Opening with the "rw" mode implies a file on disk that supports
814 * seeking. If possible, always use an exclusive mode to give the underlying
821 * @param mode The file mode to use, as per {@link ContentProvider#openFile
829 * file exists under the URI or the mode is invalid.
833 @NonNull String mode, @Nullable CancellationSignal cancellationSignal)
835 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal);
890 * <p>Note that if this function is called for read-only input (mode is "r")
896 * @param mode The file mode to use, as per {@link ContentProvider#openAssetFile
901 * file exists under the URI or the mode is invalid.
904 @NonNull String mode) throws FileNotFoundException {
905 return openAssetFileDescriptor(uri, mode, null);
943 * <p>Note that if this function is called for read-only input (mode is "r")
949 * @param mode The file mode to use, as per {@link ContentProvider#openAssetFile
957 * file exists under the URI or the mode is invalid.
960 @NonNull String mode, @Nullable CancellationSignal cancellationSignal)
963 Preconditions.checkNotNull(mode, "mode");
967 if (!"r".equals(mode)) {
978 new File(uri.getPath()), ParcelFileDescriptor.parseMode(mode));
981 if ("r".equals(mode)) {
1001 mPackageName, uri, mode, remoteCancellationSignal);
1016 mPackageName, uri, mode, remoteCancellationSignal);