Lines Matching refs:fd
65 FileDescriptor fd = is.getFD();
66 setDataSource(fd, 0, 0x7ffffffffffffffL);
112 * @param fd the FileDescriptor for the file you want to play
119 public native void setDataSource(FileDescriptor fd, long offset, long length)
128 * @param fd the FileDescriptor for the file you want to play
131 public void setDataSource(FileDescriptor fd)
134 setDataSource(fd, 0, 0x7ffffffffffffffL);
159 AssetFileDescriptor fd = null;
163 fd = resolver.openAssetFileDescriptor(uri, "r");
167 if (fd == null) {
170 FileDescriptor descriptor = fd.getFileDescriptor();
177 if (fd.getDeclaredLength() < 0) {
180 setDataSource(descriptor, fd.getStartOffset(), fd.getDeclaredLength());
186 if (fd != null) {
187 fd.close();