Lines Matching refs:fd
68 FileDescriptor fd = is.getFD();
69 setDataSource(fd, 0, 0x7ffffffffffffffL);
114 * @param fd the FileDescriptor for the file you want to play
121 public native void setDataSource(FileDescriptor fd, long offset, long length)
130 * @param fd the FileDescriptor for the file you want to play
133 public void setDataSource(FileDescriptor fd)
136 setDataSource(fd, 0, 0x7ffffffffffffffL);
161 AssetFileDescriptor fd = null;
165 fd = resolver.openAssetFileDescriptor(uri, "r");
169 if (fd == null) {
172 FileDescriptor descriptor = fd.getFileDescriptor();
179 if (fd.getDeclaredLength() < 0) {
182 setDataSource(descriptor, fd.getStartOffset(), fd.getDeclaredLength());
188 if (fd != null) {
189 fd.close();