Lines Matching refs:fd
115 AssetFileDescriptor fd = null;
118 fd = resolver.openAssetFileDescriptor(uri, "r");
119 if (fd == null) {
125 if (fd.getDeclaredLength() < 0) {
126 setDataSource(fd.getFileDescriptor());
129 fd.getFileDescriptor(),
130 fd.getStartOffset(),
131 fd.getDeclaredLength());
137 if (fd != null) {
138 fd.close();
234 * @param fd the FileDescriptor for the file you want to extract from.
236 public final void setDataSource(@NonNull FileDescriptor fd) throws IOException {
237 setDataSource(fd, 0, 0x7ffffffffffffffL);
245 * @param fd the FileDescriptor for the file you want to extract from.
250 @NonNull FileDescriptor fd, long offset, long length) throws IOException;