Lines Matching refs:fd
69 FileDescriptor fd = is.getFD();
70 setDataSource(fd, 0, 0x7ffffffffffffffL);
116 * @param fd the FileDescriptor for the file you want to play
123 public native void setDataSource(FileDescriptor fd, long offset, long length)
132 * @param fd the FileDescriptor for the file you want to play
135 public void setDataSource(FileDescriptor fd)
138 setDataSource(fd, 0, 0x7ffffffffffffffL);
163 AssetFileDescriptor fd = null;
167 fd = resolver.openAssetFileDescriptor(uri, "r");
171 if (fd == null) {
174 FileDescriptor descriptor = fd.getFileDescriptor();
181 if (fd.getDeclaredLength() < 0) {
184 setDataSource(descriptor, fd.getStartOffset(), fd.getDeclaredLength());
190 if (fd != null) {
191 fd.close();