Searched defs:fd (Results 226 - 250 of 364) sorted by relevance

1234567891011>>

/frameworks/support/v4/java/android/support/v4/app/
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);
799 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
807 li.dump(innerPrefix, fd, writer, args);
817 li.dump(innerPrefix, fd, writer, args);
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h306 SLint32 fd; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp202 // As FileSource unconditionally takes ownership of the fd and closes it, then
204 int fd = mDataLocator.fdi.fd; local
208 fd = ::dup(fd);
210 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);
H A Dandroid_GenericPlayer.cpp100 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
101 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
105 mDataLocator.fdi.fd = fd;
108 int ret = fstat(fd, &sb);
110 SL_LOGE("GenericPlayer::setDataSource: fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
275 (void) ::close(mDataLocator.fdi.fd);
277 //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/av/drm/common/
H A DIDrmManagerService.cpp314 int fd = -1; local
315 sscanf(value.string(), "FileDescriptor[%d]", &fd);
316 data.writeFileDescriptor(fd);
377 String8 BpDrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
384 int32_t isFdValid = (fd >= 0);
387 data.writeFileDescriptor(fd);
614 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
620 data.writeFileDescriptor(fd);
1013 int fd = data.readFileDescriptor(); local
1014 sprintf(buffer, "%lu", (unsigned long)fd);
613 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
1089 int fd = -1; local
1326 const int fd = data.readFileDescriptor(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp269 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
274 return rDrmEngine.getOriginalMimeType(uniqueId, path, fd);
430 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
443 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
429 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp150 int uniqueId, const String8& path, int fd) {
153 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd);
258 int uniqueId, int fd, off64_t offset,
262 uniqueId, fd, offset, length, mime);
149 getOriginalMimeType( int uniqueId, const String8& path, int fd) argument
257 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp312 String8 FwdLockEngine::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
315 int fileDesc = dup(fd);
468 int fd,
474 int fd,
483 if ((-1 < fd) &&
486 fileDesc = dup(fd);
510 LOG_VERBOSE("FwdLockEngine::onOpenDecryptSession Integrity Check failed for the fd");
538 int fd = open(filePath, O_RDONLY); local
540 if (-1 < fd) {
542 result = onOpenDecryptSession(uniqueId, decryptHandle, fd,
466 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/av/media/libmedia/
H A DIMediaPlayer.cpp98 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument
101 data.writeFileDescriptor(fd);
371 int fd = data.readFileDescriptor(); local
374 reply->writeInt32(setDataSource(fd, offset, length));
H A DSoundPool.cpp216 int SoundPool::load(int fd, int64_t offset, int64_t length, int priority) argument
218 ALOGV("load: fd=%d, offset=%lld, length=%lld, priority=%d",
219 fd, offset, length, priority);
221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length);
461 Sample::Sample(int sampleID, int fd, int64_t offset, int64_t length) argument
465 mFd = dup(fd);
468 ALOGV("create sampleID=%d, fd=%d, offset=%lld, length=%lld", mSampleID, mFd, mLength, mOffset);
486 ALOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd);
H A Dmediaplayer.cpp157 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) argument
159 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
165 (NO_ERROR != player->setDataSource(fd, offset, length))) {
789 /*static*/ sp<IMemory> MediaPlayer::decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat) argument
791 ALOGV("decode(%d, %lld, %lld)", fd, offset, length);
795 p = service->decode(fd, offset, length, pSampleRate, pNumChannels, pFormat);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp135 void NuPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument
138 sp<Source> source = new GenericSource(fd, offset, length);
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp470 MPEG2TSWriter::MPEG2TSWriter(int fd) argument
471 : mFile(fdopen(dup(fd), "wb")),
599 status_t MPEG2TSWriter::dump(int fd, const Vector<String16> &args) { argument
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp468 sp<MediaRecorder> SurfaceMediaSourceGLTest::setUpMediaRecorder(int fd, int videoSource, argument
474 mr->setOutputFile(fd, 0, 0);
740 int fd = open(fileName, O_RDWR | O_CREAT, 0744);
741 if (fd < 0) {
742 ALOGE("ERROR: Could not open the the file %s, fd = %d !!", fileName, fd);
744 CHECK(fd >= 0);
746 sp<MediaRecorder> mr = SurfaceMediaSourceGLTest::setUpMediaRecorder(fd,
770 close(fd);
875 int fd
[all...]
/frameworks/av/media/mtp/
H A DMtpDevice.cpp53 MtpDevice* MtpDevice::open(const char* deviceName, int fd) { argument
54 struct usb_device *device = usb_device_new(deviceName, fd);
670 int fd = ::open(destPath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local
671 if (fd < 0) {
676 fchown(fd, getuid(), group);
679 fchmod(fd, perm);
699 if (write(fd, initialData, initialDataLength) != initialDataLength) {
730 if (write(fd, writeBuffer, writeLength) != writeLength) {
763 ::close(fd);
/frameworks/av/services/camera/libcameraservice/
H A DCameraClient.cpp109 status_t CameraClient::dump(int fd, const Vector<String16>& args) { argument
118 write(fd, buffer, len);
119 return mHardware->dump(fd, args);
/frameworks/base/core/java/android/app/
H A DBackStackRecord.java236 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
/frameworks/base/core/java/android/content/
H A DContentService.java67 protected synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
78 mSyncManager.dump(fd, pw);
85 mRootNode.dumpLocked(fd, pw, args, "", " ", counts, pidCounts);
635 public void dumpLocked(FileDescriptor fd, PrintWriter pw, String[] args, argument
659 public void dumpLocked(FileDescriptor fd, PrintWriter pw, String[] args, argument
670 mObservers.get(i).dumpLocked(fd, pw, args, innerName, prefix,
684 mChildren.get(i).dumpLocked(fd, pw, args, innerName, prefix,
/frameworks/base/core/java/android/service/dreams/
H A DDreamService.java734 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
735 super.dump(fd, pw, args);
/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp521 int fd = dup(origFd); local
522 if (fd < 0) {
528 FILE* fp = fdopen(fd, "w");
530 ALOGW("fdopen(%d) failed: %s\n", fd, strerror(errno));
531 close(fd);
558 int fd = open(fileName8.string(), O_CREAT | O_WRONLY | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local
559 if (fd < 0) {
564 if (lseek(fd, 0, SEEK_END) < 0) {
567 dump_backtrace_to_file(pid, fd);
570 close(fd);
[all...]
H A Dandroid_os_Parcel.cpp364 int fd = parcel->readFileDescriptor(); local
365 if (fd < 0) return NULL;
366 fd = dup(fd);
367 if (fd < 0) return NULL;
368 return jniCreateFileDescriptor(env, fd);
410 int fd = open(name8.string(), flags, realMode); local
411 if (fd < 0) {
415 jobject object = jniCreateFileDescriptor(env, fd);
417 close(fd);
434 int fd = dup(origfd); local
452 int fd = jniGetFDFromFileDescriptor(env, object); local
466 int fd = jniGetFDFromFileDescriptor(env, object); local
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmManagerClient.java593 FileDescriptor fd = null;
597 fd = is.getFD();
599 mime = _getOriginalMimeType(mUniqueId, path, fd);
875 private native String _getOriginalMimeType(int uniqueId, String path, FileDescriptor fd); argument
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp90 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) argument
96 amt = read(fd, &header, sizeof(header));
111 amt = read(fd, &file, sizeof(FileState));
123 amt = read(fd, filename, nameBufSize);
147 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) argument
162 LOGP("write_snapshot_file fd=%d\n", fd);
167 amt = write(fd, &header, sizeof(header));
179 amt = write(fd, &r.s, sizeof(FileState));
186 amt = write(fd, nam
215 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, char const* realFilename) argument
302 int fd = open(realFilename, O_RDONLY); local
313 compute_crc32(int fd) argument
400 int fd = open(g.file.string(), O_RDONLY); local
540 int fd = open(filepath.string(), O_RDONLY); local
741 int fd; local
816 WriteSnapshot(int fd) argument
829 int fd; local
853 int fd; local
[all...]
/frameworks/base/media/java/android/media/
H A DJetPlayer.java227 throw new AndroidRuntimeException("no length for fd");
543 private native final boolean native_loadJetFromFileD(FileDescriptor fd, long offset, long len); argument

Completed in 2770 milliseconds

1234567891011>>