Searched refs:modeBits (Results 1 – 3 of 3) sorted by relevance
211 final int modeBits; in parseMode() local213 modeBits = ParcelFileDescriptor.MODE_READ_ONLY; in parseMode()215 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in parseMode()219 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in parseMode()223 modeBits = ParcelFileDescriptor.MODE_READ_WRITE in parseMode()226 modeBits = ParcelFileDescriptor.MODE_READ_WRITE in parseMode()232 return modeBits; in parseMode()
369 int modeBits = ParcelFileDescriptor.parseMode(mode); in openFile() local371 return ParcelFileDescriptor.open(mTemporaryFolder.newFile(), modeBits); in openFile()
4681 final int modeBits = ParcelFileDescriptor.parseMode(mode); in openFileAndEnforcePathPermissionsHelper() local4685 checkAccess(uri, file, modeBits); in openFileAndEnforcePathPermissionsHelper()4689 if (modeBits == MODE_READ_ONLY) { in openFileAndEnforcePathPermissionsHelper()4693 return ParcelFileDescriptor.open(file, modeBits); in openFileAndEnforcePathPermissionsHelper()4706 private void checkAccess(Uri uri, File file, int modeBits) throws FileNotFoundException { in checkAccess() argument4707 final boolean isWrite = (modeBits & MODE_WRITE_ONLY) != 0; in checkAccess()