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

1234567891011>>

/frameworks/av/camera/
H A DCameraMetadata.cpp396 void CameraMetadata::dump(int fd, int verbosity, int indentation) const { argument
397 dump_indented_camera_metadata(mBuffer, fd, verbosity, indentation);
H A DCameraParameters.cpp469 status_t CameraParameters::dump(int fd, const Vector<String16>& /*args*/) const argument
483 write(fd, result.string(), result.size());
H A DCameraParameters2.cpp363 status_t CameraParameters2::dump(int fd, const Vector<String16>& args) const
378 write(fd, result.string(), result.size());
H A DVendorTagDescriptor.cpp306 void VendorTagDescriptor::dump(int fd, int verbosity, int indentation) const { argument
310 dprintf(fd, "%*sDumping configured vendor tag descriptors: None set\n",
315 dprintf(fd, "%*sDumping configured vendor tag descriptors: %zu entries\n",
321 dprintf(fd, "%*s0x%x\n", indentation + 2, "", tag);
330 dprintf(fd, "%*s0x%x (%s) with type %d (%s) defined in section %s\n", indentation + 2,
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp509 int fd = fileno(rawFp); local
510 if (isatty(fd)) {
512 ALOGD("raw video output to tty (fd=%d)", fd);
514 if (tcgetattr(fd, &term) == 0) {
516 if (tcsetattr(fd, TCSANOW, &term) == 0) {
643 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
644 if (fd < 0) {
648 muxer = new MediaMuxer(fd, MediaMuxer::OUTPUT_FORMAT_MPEG_4);
649 close(fd);
779 int fd = open("/dev/null", O_WRONLY); local
991 int fd = open(fileName, O_CREAT | O_RDWR, 0644); local
[all...]
/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp119 int fd = open(fileOut, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
120 if (fd < 0) {
123 sp<AMRWriter> writer = new AMRWriter(fd);
124 close(fd);
H A Dmuxer.cpp79 int fd = open(outputFileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
81 if (fd < 0) {
83 return fd;
85 sp<MediaMuxer> muxer = new MediaMuxer(fd, container);
86 close(fd);
H A Drecordvideo.cpp311 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
312 if (fd < 0) {
316 sp<MPEG4Writer> writer = new MPEG4Writer(fd);
317 close(fd);
H A Dstagefright.cpp515 int fd = open(gWriteMP4Filename.string(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
516 if (fd < 0) {
521 new MPEG2TSWriter(fd);
857 int fd = open(filename, O_RDONLY | O_LARGEFILE); local
858 CHECK_GE(fd, 0);
860 off64_t fileSize = lseek64(fd, 0, SEEK_END);
863 CHECK_EQ(retriever->setDataSource(fd, 0, fileSize), (status_t)OK);
865 close(fd);
866 fd = -1;
H A Dstream.cpp47 // Object assumes ownership of fd.
48 MyStreamSource(int fd);
69 MyStreamSource::MyStreamSource(int fd) argument
70 : mFd(fd),
73 CHECK_GE(fd, 0);
75 mFileSize = lseek64(fd, 0, SEEK_END);
76 lseek64(fd, 0, SEEK_SET);
362 int fd = open(argv[1], O_RDONLY); local
364 if (fd < 0) {
369 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.cpp305 int fd = -1; local
306 if (sscanf(value.string(), "FileDescriptor[%d]", &fd) != 1) {
307 sscanf(value.string(), "%d", &fd);
309 data.writeFileDescriptor(fd);
370 String8 BpDrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
377 int32_t isFdValid = (fd >= 0);
380 data.writeFileDescriptor(fd);
607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
613 data.writeFileDescriptor(fd);
1005 int fd local
606 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
1086 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.cpp244 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
249 return rDrmEngine.getOriginalMimeType(uniqueId, path, fd);
405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
H A DDrmManagerService.cpp191 String8 DrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
193 return mDrmManager->getOriginalMimeType(uniqueId, path, fd);
266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
340 status_t DrmManagerService::dump(int fd, const Vector<String16>& args) argument
368 write(fd, result.string(), result.size());
265 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.cpp152 int uniqueId, const String8& path, int fd) {
155 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd);
260 int uniqueId, int fd, off64_t offset,
264 uniqueId, fd, offset, length, mime);
151 getOriginalMimeType( int uniqueId, const String8& path, int fd) argument
259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/include/
H A DDrmManager.h86 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
113 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 virtual 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.h92 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
119 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime);
140 virtual status_t dump(int fd, const Vector<String16>& args);
H A DIDrmManagerService.h110 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
142 int uniqueId, int fd, off64_t offset,
199 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
229 int uniqueId, int fd, off64_t offset, off64_t length,
H A DNoOpDrmManagerClientImpl.h41 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
56 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
/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 */,
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;

Completed in 133 milliseconds

1234567891011>>