Searched refs:fd (Results 1 - 25 of 637) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL_Android.h164 XAint32 fd; member in struct:XADataLocator_AndroidFD_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h328 SLint32 fd; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp41 // bufferqueue and uri/fd playback are moved under the GenericPlayer C++ object
1086 // fd is already non null
1579 int fd = ::open(pathname, O_RDONLY); local
1580 if (fd >= 0) {
1583 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) {
1585 // let setDataSource take responsibility for closing fd
1586 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true);
1590 (void) ::close(fd);
1599 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd,
1641 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd,
[all...]
H A DMediaPlayer_to_android.cpp438 (int)mp->mDataSource.mLocator.mFD.fd,
H A Dandroid_AudioSfDecoder.cpp204 // As FileSource unconditionally takes ownership of the fd and closes it, then
206 int fd = mDataLocator.fdi.fd; local
210 fd = ::dup(fd);
212 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);
H A Dandroid_GenericPlayer.cpp101 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
102 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
106 mDataLocator.fdi.fd = fd;
109 int ret = fstat(fd, &sb);
111 SL_LOGE("GenericPlayer::setDataSource: fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
276 (void) ::close(mDataLocator.fdi.fd);
278 //mDataLocator.fdi.fd = -1;
H A Dandroid_GenericPlayer.h67 void setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse = false);
H A Dandroid_LocAVPlayer.cpp70 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset,
75 // Binder dups the fd for use by mediaserver, so if we own the fd then OK to close now
77 (void) ::close(mDataLocator.fdi.fd);
78 mDataLocator.fdi.fd = -1;
H A Dandroid_defs.h189 kDataLocatorFd = 'fd',
193 int fd; member in struct:android::FdInfo
196 bool mCloseAfterUse; // whether to close fd after last reference to fd
/frameworks/wilhelm/src/
H A Ddata.c216 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd,
218 // NTH check against process fd limit
219 if (0 > pDataLocator->mFD.fd) {
220 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd);
/frameworks/wilhelm/tests/examples/
H A DslesTestBassBoostPath.cpp119 int fd = open(path, O_RDONLY); local
120 if (fd == -1) {
123 locatorFd.fd = (SLint32) fd;
243 close(fd);
H A DslesTestDecodeAac.cpp414 void TestDecToBuffQueue( SLObjectItf sl, const char *path, int fd) argument
419 ok = fstat(fd, &statbuf);
432 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
870 int fd; local
871 fd = open(argv[1], O_RDONLY);
872 if (fd < 0) {
888 TestDecToBuffQueue(sl, argv[1], fd);
894 (void) close(fd);
H A DslesTestEqFdPath.cpp124 int fd = open(path, O_RDONLY); local
125 if (fd == -1) {
128 locatorFd.fd = (SLint32) fd;
272 close(fd);
H A DslesTestEqOutputPath.cpp131 int fd = open(path, O_RDONLY); local
132 if (fd == -1) {
135 locatorFd.fd = (SLint32) fd;
276 close(fd);
H A DslesTestPlayFdPath.cpp111 int fd = open(path, O_RDONLY); local
112 if (fd == -1) {
116 locatorFd.fd = (SLint32) fd;
187 close(fd);
H A DslesTestSendToPresetReverb.cpp178 int fd = open(path, O_RDONLY); local
179 if (fd == -1) {
183 locatorFd.fd = (SLint32) fd;
188 fprintf(stderr, "option --fd is not supported\n");
322 close(locatorFd.fd);
352 } else if (!strcmp(arg, "--fd")) {
362 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
H A DslesTestVirtualizerPath.cpp120 int fd = open(path, O_RDONLY); local
121 if (fd == -1) {
124 locatorFd.fd = (SLint32) fd;
245 close(fd);
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c314 int fd = -1; local
316 fd = open(uri, O_RDONLY);
317 if (fd < 0) {
323 ok = fstat(fd, &statbuf);
333 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
858 if (fd >= 0) {
859 (void) close(fd);
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentManager.java348 * @param fd The raw file descriptor that the dump is being sent to.
352 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); argument
636 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
651 f.dump(innerPrefix, fd, writer, args);
689 bs.dump(innerPrefix, fd, writer, args);
H A DLoaderManager.java165 * @param fd The raw file descriptor that the dump is being sent to.
169 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); argument
450 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
456 mLoader.dump(prefix + " ", fd, writer, args);
472 mPendingLoader.dump(prefix + " ", fd, writer, args);
800 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
808 li.dump(innerPrefix, fd, writer, args);
818 li.dump(innerPrefix, fd, writer, args);
/frameworks/support/v4/java/android/support/v4/content/
H A DAsyncTaskLoader.java267 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
268 super.dump(prefix, fd, writer, args);
H A DCursorLoader.java195 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
196 super.dump(prefix, fd, writer, args);
H A DLoader.java388 * @param fd The raw file descriptor that the dump is being sent to.
392 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
/frameworks/rs/cpu_ref/linkloader/android/
H A Dtest-librsloader.c74 int fd = open(argv[1], O_RDONLY); local
75 if (fd < 0) {
81 if (fstat(fd, &sb) != 0) {
83 close(fd);
88 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
92 close(fd);
99 close(fd);
113 close(fd);
/frameworks/rs/cpu_ref/linkloader/
H A Dmain.cpp34 int &fd,
38 void close_mmap_file(int fd,
56 int fd = -1; local
60 if (!open_mmap_file(filename, fd, image, image_size)) {
68 close_mmap_file(fd, image, image_size);
210 int &fd,
228 fd = open(filename, O_RDONLY);
229 if (fd < 0) {
236 mmap(0, size, PROT_READ, MAP_PRIVATE, fd, 0));
240 close(fd);
209 open_mmap_file(char const *filename, int &fd, unsigned char const *&image, size_t &size) argument
247 close_mmap_file(int fd, unsigned char const *image, size_t size) argument
[all...]

Completed in 595 milliseconds

1234567891011>>