Searched refs:fd (Results 1 - 25 of 486) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp463 status_t CameraParameters::dump(int fd, const Vector<String16>& args) const argument
477 write(fd, result.string(), result.size());
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp833 int fd = open(filename, O_RDONLY | O_LARGEFILE); local
834 CHECK_GE(fd, 0);
836 off64_t fileSize = lseek64(fd, 0, SEEK_END);
839 CHECK_EQ(retriever->setDataSource(fd, 0, fileSize), (status_t)OK);
841 close(fd);
842 fd = -1;
H A Dstream.cpp45 // Object assumes ownership of fd.
46 MyStreamSource(int fd);
67 MyStreamSource::MyStreamSource(int fd) argument
68 : mFd(fd),
71 CHECK_GE(fd, 0);
73 mFileSize = lseek64(fd, 0, SEEK_END);
74 lseek64(fd, 0, SEEK_SET);
358 int fd = open(argv[1], O_RDONLY); local
360 if (fd < 0) {
365 source = new MyStreamSource(fd);
[all...]
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp69 String8 DrmEngineBase::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
70 return onGetOriginalMimeType(uniqueId, path, fd);
124 int fd, off64_t offset, off64_t length, const char* mime) {
127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length);
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime);
122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
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...]
H A DReadWriteUtils.cpp41 int fd = fileno(file); local
44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
47 if (length == read(fd, (void*) bytes, length)) {
63 int fd = fileno(file); local
66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
69 if (length != read(fd, (void*) *buffer, length)) {
83 int fd = fileno(file); local
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
100 int fd 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
H A DDrmManagerService.cpp128 String8 DrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
130 return mDrmManager->getOriginalMimeType(uniqueId, path, fd);
203 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
206 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
277 status_t DrmManagerService::dump(int fd, const Vector<String16>& args) argument
297 dumpMemoryAddresses(fd);
301 write(fd, result.string(), result.size());
202 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp67 String8 DrmManagerClient::getOriginalMimeType(const String8& path, int fd) { argument
68 return mDrmManagerClientImpl->getOriginalMimeType(mUniqueId, path, fd);
120 int fd, off64_t offset, off64_t length, const char* mime) {
123 mUniqueId, fd, offset, length, mime);
119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument
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/include/
H A DDrmManager.h88 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
115 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
H A DDrmManagerClientImpl.h151 * @param[in] fd the file descriptor of the protected content
155 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
301 * @param[in] fd File descriptor of the protected content to be decrypted
309 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
H A DDrmManagerService.h75 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
102 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime);
123 virtual status_t dump(int fd, const Vector<String16>& args);
H A DIDrmManagerService.h112 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
144 int uniqueId, int fd, off64_t offset,
203 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
233 int uniqueId, int fd, off64_t offset, off64_t length,
/frameworks/av/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h56 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
84 int fd, off64_t offset, off64_t length, const char* mime);
225 * @param[in] fd descriptor of the protected content as a file source
229 virtual String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
377 * @param[in] fd File descriptor of the protected content to be decrypted
385 int fd, off64_t offset, off64_t length) = 0;
392 * @param[in] fd File descriptor of the protected content to be decrypted
402 int fd, off64_t offset, off64_t length,
400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
H A DIDrmEngine.h169 * @param[in] fd File descriptor of the protected content
173 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
321 * @param[in] fd File descriptor of the protected content to be decrypted
331 int fd, off64_t offset, off64_t length, const char* mime) = 0;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h154 * @param fd descriptor of the protected content as a file source
158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd);
325 * @param fd File descriptor of the protected content to be decrypted
334 int fd, off64_t offset, off64_t length);
338 int fd, int offset, int length);
542 DecodeSession(int fd) { argument
543 fileDesc = fd;
/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/drm/libdrmframework/plugins/passthru/include/
H A DDrmPassthruPlugIn.h50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd);
77 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp166 String8 DrmPassthruPlugIn::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
237 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) {
236 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
/frameworks/av/include/camera/
H A DCameraParameters.h103 status_t dump(int fd, const Vector<String16>& args) const;
/frameworks/av/include/drm/
H A DDrmManagerClient.h66 * @param[in] fd File descriptor of the protected content to be decrypted
73 sp<DecryptHandle> openDecryptSession(int fd, off64_t offset, off64_t length, const char* mime);
282 * @param[in] fd the file descriptor of the protected content
286 String8 getOriginalMimeType(const String8& path, int fd);
/frameworks/av/include/media/
H A DAudioTrack.h452 status_t dump(int fd, const Vector<String16>& args) const;
H A DIMediaMetadataRetriever.h39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
H A DIMediaPlayer.h46 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;

Completed in 1511 milliseconds

1234567891011>>