Searched refs:fd (Results 276 - 300 of 759) sorted by relevance

<<11121314151617181920>>

/frameworks/native/libs/gui/
H A DCpuConsumer.cpp225 int fd = -1;
227 err = mAcquiredBuffers[lockedIdx].mGraphicBuffer->unlockAsync(&fd);
234 if (CC_LIKELY(fd != -1)) {
235 sp<Fence> fence(new Fence(fd));
/frameworks/native/services/surfaceflinger/tests/vsync/
H A Dvsync.cpp23 int receiver(int fd, int events, void* data) argument
/frameworks/wilhelm/src/android/
H A Dandroid_defs.h193 int fd; member in struct:android::FdInfo
196 bool mCloseAfterUse; // whether to close fd after last reference to fd
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp317 int fd) {
320 int fileDesc = dup(fd);
474 int fd,
480 int fd,
489 if ((-1 < fd) &&
492 fileDesc = dup(fd);
516 LOG_VERBOSE("FwdLockEngine::onOpenDecryptSession Integrity Check failed for the fd");
544 int fd = open(filePath, O_RDONLY); local
546 if (-1 < fd) {
548 result = onOpenDecryptSession(uniqueId, decryptHandle, fd,
315 onGetOriginalMimeType(int , const String8& , int fd) argument
472 onOpenDecryptSession(int , DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t ) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DZslProcessor.cpp454 void ZslProcessor::dump(int fd, const Vector<String16>& /*args*/) const { argument
458 write(fd, result.string(), result.size());
459 mLatestCapturedRequest.dump(fd, 2, 6);
462 write(fd, result.string(), result.size());
464 dumpZslQueue(fd);
473 void ZslProcessor::dumpZslQueue(int fd) const {
477 if (fd != -1) {
479 write(fd, header.string(), header.size());
497 if (fd != -1) {
499 write(fd, resul
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp164 status_t MediaRecorderClient::setOutputFile(int fd, int64_t offset, int64_t length) argument
166 ALOGV("setOutputFile(%d, %lld, %lld)", fd, (long long)offset, (long long)length);
172 return mRecorder->setOutputFile(fd, offset, length);
394 status_t MediaRecorderClient::dump(int fd, const Vector<String16>& args) { argument
396 return mRecorder->dump(fd, args);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioProfile.h122 void dump(int fd, int spaces) const;
284 void dump(int fd, int spaces) const argument
290 write(fd, buffer, strlen(buffer));
293 write(fd, buffer, strlen(buffer));
294 itemAt(i)->dump(fd, spaces + 8);
/frameworks/wilhelm/tests/examples/
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 DslesTestSendToPresetReverb.cpp177 int fd = open(path, O_RDONLY); local
178 if (fd == -1) {
182 locatorFd.fd = (SLint32) fd;
187 fprintf(stderr, "option --fd is not supported\n");
321 close(locatorFd.fd);
351 } else if (!strcmp(arg, "--fd")) {
361 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp690 int fd = open("/proc/meminfo", O_RDONLY); local
692 if (fd < 0) {
697 int len = read(fd, buffer, sizeof(buffer)-1);
698 close(fd);
985 jniThrowNullPointerException(env, "fd == null");
995 int fd = dup(origFd); local
996 if (fd < 0) {
1002 FILE* fp = fdopen(fd, "w");
1004 ALOGW("fdopen(%d) failed: %s\n", fd, strerror(errno));
1005 close(fd);
1033 int fd = open(fileName8.string(), O_CREAT | O_WRONLY | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local
[all...]
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java105 FileDescriptor fd = stream.getFD();
109 BitmapFactory.decodeFileDescriptor(fd, null, options);
120 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options);
312 FileDescriptor fd = pfd.getFileDescriptor();
315 BitmapFactory.decodeFileDescriptor(fd, null, options);
326 b = BitmapFactory.decodeFileDescriptor(fd, null, options);
/frameworks/native/libs/binder/
H A DIMemory.cpp259 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d",
311 ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%zd, err=%d (%s)",
317 int fd = dup( parcel_fd ); local
318 ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%zd, err=%d (%s)",
327 mBase = mmap(0, size, access, MAP_SHARED, fd, offset);
329 ALOGE("cannot map BpMemoryHeap (binder=%p), size=%zd, fd=%d (%s)",
330 IInterface::asBinder(this).get(), size, fd, strerror(errno));
331 close(fd);
336 android_atomic_write(fd,
[all...]
/frameworks/av/media/mtp/
H A DMtpDevice.cpp57 const int fd = *static_cast<int*>(clientData); local
58 const ssize_t result = write(fd, data, length);
67 MtpDevice* MtpDevice::open(const char* deviceName, int fd) { argument
68 struct usb_device *device = usb_device_new(deviceName, fd);
654 int fd = ::open(destPath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local
655 if (fd < 0) {
660 fchown(fd, getuid(), group);
663 fchmod(fd, perm);
666 bool result = readObject(handle, fd);
667 ::close(fd);
671 readObject(MtpObjectHandle handle, int fd) argument
[all...]
/frameworks/base/core/java/android/app/
H A DVoiceInteractor.java291 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
363 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
364 super.dump(prefix, fd, writer, args);
557 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
558 super.dump(prefix, fd, writer, args);
634 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
635 super.dump(prefix, fd, writer, args);
693 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
694 super.dump(prefix, fd, writer, args);
748 void dump(String prefix, FileDescriptor fd, PrintWrite argument
1052 dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) argument
[all...]
H A DWallpaperManager.java345 ParcelFileDescriptor fd = mService.getWallpaper(this, FLAG_SYSTEM,
347 if (fd != null) {
351 fd.getFileDescriptor(), null, options);
355 IoUtils.closeQuietly(fd);
929 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper(
932 if (fd != null) {
936 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd);
1040 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper(null,
1043 if (fd != null) {
1046 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd);
[all...]
/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);
/frameworks/av/drm/libdrmframework/plugins/common/include/
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/include/media/stagefright/
H A DMPEG4Writer.h36 MPEG4Writer(int fd);
49 virtual status_t dump(int fd, const Vector<String16>& args);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDriver.h38 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
70 virtual status_t dump(int fd, const Vector<String16> &args) const;
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp115 void ALooperRoster::dump(int fd, const Vector<String16>& args) { argument
169 write(fd, s.string(), s.size());
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.h60 const int& fd,
67 const int& fd,
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioGain.cpp101 void AudioGain::dump(int fd, int spaces, int index) const argument
126 write(fd, result.string(), result.size());
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.h75 virtual status_t dump(int fd, const Vector<String16>& args);
77 virtual status_t dumpClient(int fd, const Vector<String16>& args);

Completed in 230 milliseconds

<<11121314151617181920>>