Lines Matching refs:mode

295                 String callingPkg, Uri uri, String mode, ICancellationSignal cancellationSignal)
297 enforceFilePermission(callingPkg, uri, mode);
301 uri, mode, CancellationSignal.fromTransport(cancellationSignal));
309 String callingPkg, Uri uri, String mode, ICancellationSignal cancellationSignal)
311 enforceFilePermission(callingPkg, uri, mode);
315 uri, mode, CancellationSignal.fromTransport(cancellationSignal));
380 private void enforceFilePermission(String callingPkg, Uri uri, String mode)
382 if (mode != null && mode.indexOf('w') != -1) {
1066 * @param mode Access mode for the file. May be "r" for read-only access,
1074 * no file associated with the given URI or the mode is invalid.
1083 public ParcelFileDescriptor openFile(Uri uri, String mode)
1129 * @param mode Access mode for the file. May be "r" for read-only access,
1135 * file from the network to service a "rw" mode request, you
1144 * no file associated with the given URI or the mode is invalid.
1153 public ParcelFileDescriptor openFile(Uri uri, String mode, CancellationSignal signal)
1155 return openFile(uri, mode);
1191 * @param mode Access mode for the file. May be "r" for read-only access,
1201 * no file associated with the given URI or the mode is invalid.
1209 public AssetFileDescriptor openAssetFile(Uri uri, String mode)
1211 ParcelFileDescriptor fd = openFile(uri, mode);
1248 * @param mode Access mode for the file. May be "r" for read-only access,
1255 * file from the network to service a "rw" mode request, you
1264 * no file associated with the given URI or the mode is invalid.
1272 public AssetFileDescriptor openAssetFile(Uri uri, String mode, CancellationSignal signal)
1274 return openAssetFile(uri, mode);
1282 * @param mode The file mode. May be "r" for read-only access,
1292 String mode) throws FileNotFoundException {
1315 int modeBits = ParcelFileDescriptor.parseMode(mode);
1377 * no file associated with the given URI or the mode is invalid.
1435 * file from the network to service a "rw" mode request, you
1444 * no file associated with the given URI or the mode is invalid.