Lines Matching refs:fd
70 FileDescriptor fd = is.getFD();
71 setDataSource(fd, 0, 0x7ffffffffffffffL);
122 * @param fd the FileDescriptor for the file you want to play
129 public native void setDataSource(FileDescriptor fd, long offset, long length)
138 * @param fd the FileDescriptor for the file you want to play
141 public void setDataSource(FileDescriptor fd)
144 setDataSource(fd, 0, 0x7ffffffffffffffL);
169 AssetFileDescriptor fd = null;
173 fd = resolver.openAssetFileDescriptor(uri, "r");
177 if (fd == null) {
180 FileDescriptor descriptor = fd.getFileDescriptor();
187 if (fd.getDeclaredLength() < 0) {
190 setDataSource(descriptor, fd.getStartOffset(), fd.getDeclaredLength());
196 if (fd != null) {
197 fd.close();