Searched refs:fd (Results 151 - 175 of 637) sorted by relevance

1234567891011>>

/frameworks/native/services/surfaceflinger/
H A DMessageQueue.h89 static int cb_eventReceiver(int fd, int events, void* data);
90 int eventReceiver(int fd, int events);
/frameworks/base/core/java/android/app/
H A DApplicationThreadNative.java351 ParcelFileDescriptor fd = data.readFileDescriptor();
354 if (fd != null) {
355 dumpService(fd.getFileDescriptor(), service, args);
357 fd.close();
366 ParcelFileDescriptor fd = data.readFileDescriptor();
369 if (fd != null) {
370 dumpProvider(fd.getFileDescriptor(), service, args);
372 fd.close();
471 ParcelFileDescriptor fd = data.readInt() != 0
473 dumpHeap(managed, path, fd);
1057 dumpService(FileDescriptor fd, IBinder token, String[] args) argument
1068 dumpProvider(FileDescriptor fd, IBinder token, String[] args) argument
1161 dumpHeap(boolean managed, String path, ParcelFileDescriptor fd) argument
1178 dumpActivity(FileDescriptor fd, IBinder token, String prefix, String[] args) argument
1216 dumpMemInfo(FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin, boolean dumpInfo, boolean dumpDalvik, String[] args) argument
1233 dumpGfxInfo(FileDescriptor fd, String[] args) argument
1242 dumpDbInfo(FileDescriptor fd, String[] args) argument
[all...]
H A DIApplicationThread.java110 void dumpService(FileDescriptor fd, IBinder servicetoken, String[] args) argument
112 void dumpProvider(FileDescriptor fd, IBinder servicetoken, String[] args) argument
121 void dumpHeap(boolean managed, String path, ParcelFileDescriptor fd) argument
128 void dumpActivity(FileDescriptor fd, IBinder servicetoken, String prefix, String[] args) argument
133 void dumpMemInfo(FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin, boolean dumpInfo, argument
135 void dumpGfxInfo(FileDescriptor fd, String[] args) throws RemoteException; argument
136 void dumpDbInfo(FileDescriptor fd, String[] args) throws RemoteException; argument
H A DWallpaperManager.java290 ParcelFileDescriptor fd = mService.getWallpaper(this, params);
291 if (fd != null) {
295 fd.getFileDescriptor(), null, options);
300 fd.close();
718 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper(
720 if (fd != null) {
723 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd);
755 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper(null);
756 if (fd == null) {
761 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd);
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManagerService.cpp134 String8 DrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
136 return mDrmManager->getOriginalMimeType(uniqueId, path, fd);
209 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
212 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
283 status_t DrmManagerService::dump(int fd, const Vector<String16>& args) argument
303 dumpMemoryAddresses(fd);
307 write(fd, result.string(), result.size());
208 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/media/mtp/
H A DMtpServer.cpp100 MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, argument
102 : mFD(fd),
156 int fd = mFD; local
158 ALOGV("MtpServer::run fd: %d\n", fd);
161 int ret = mRequest.read(fd);
182 int ret = mData.read(fd);
203 ret = mData.write(fd);
216 ret = mResponse.write(fd);
242 close(fd);
281 addEditObject(MtpObjectHandle handle, MtpString& path, uint64_t size, MtpObjectFormat format, int fd) argument
1280 int fd = open((const char *)path, O_RDWR | O_EXCL); local
[all...]
H A DMtpDataPacket.h99 int read(int fd);
102 int write(int fd);
103 int writeData(int fd, void* data, uint32_t length);
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp506 int fd = fileno(rawFp); local
507 if (isatty(fd)) {
509 ALOGD("raw video output to tty (fd=%d)", fd);
511 if (tcgetattr(fd, &term) == 0) {
513 if (tcsetattr(fd, TCSANOW, &term) == 0) {
770 int fd = open("/dev/null", O_WRONLY); local
771 if (fd >= 0) {
772 dup2(fd, STDOUT_FILENO);
773 dup2(fd, STDERR_FILEN
982 int fd = open(fileName, O_CREAT | O_RDWR, 0644); local
[all...]
/frameworks/av/services/audioflinger/
H A DFastMixer.cpp510 void FastMixerDumpState::dump(int fd) const
513 dprintf(fd, " FastMixer not initialized\n");
547 dprintf(fd, " FastMixer command=%s writeSequence=%u framesWritten=%u\n"
602 dprintf(fd, " Simple moving statistics over last %.1f seconds:\n",
604 dprintf(fd, " wall clock time in ms per mix cycle:\n"
608 dprintf(fd, " raw CPU load in us per mix cycle:\n"
613 dprintf(fd, " No FastMixer statistics available currently\n");
616 dprintf(fd, " CPU clock frequency in MHz:\n"
619 dprintf(fd, " adjusted CPU load in MHz (i.e. normalized for CPU clock frequency):\n"
632 dprintf(fd, " Distributio
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMidiFile.cpp64 mFileLocator.fd = -1;
130 mFileLocator.fd = -1;
149 status_t MidiFile::setDataSource(int fd, int64_t offset, int64_t length) argument
151 ALOGV("MidiFile::setDataSource fd=%d", fd);
160 mFileLocator.fd = dup(fd);
402 if (mFileLocator.fd >= 0) {
403 close(mFileLocator.fd);
405 mFileLocator.fd
[all...]
H A DMediaRecorderClient.cpp168 status_t MediaRecorderClient::setOutputFile(int fd, int64_t offset, int64_t length) argument
170 ALOGV("setOutputFile(%d, %lld, %lld)", fd, offset, length);
176 return mRecorder->setOutputFile(fd, offset, length);
339 status_t MediaRecorderClient::dump(int fd, const Vector<String16>& args) const { argument
341 return mRecorder->dump(fd, args);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java136 * @param fd fd to use for connected socket, or -1 for a new socket
145 /*package*/ BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, argument
147 if (type == BluetoothSocket.TYPE_RFCOMM && uuid == null && fd == -1) {
160 mFd = fd;
188 if (DBG) Log.d(TAG, "socket fd passed by stack fds: " + fds);
190 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds);
204 * @param fd fd to use for connected socket, or -1 for a new socket
212 private BluetoothSocket(int type, int fd, boolea argument
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local
131 if (fd < 0) {
139 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) {
142 close(fd);
231 int fd = mkstemp(localTmpFileName); local
232 if (fd < 0) {
237 if (!zipFile->uncompressEntry(zipEntry, fd)) {
239 close(fd);
244 close(fd);
H A Dandroid_os_Parcel.cpp432 int fd = parcel->readFileDescriptor(); local
433 if (fd < 0) return NULL;
434 fd = dup(fd);
435 if (fd < 0) return NULL;
436 return jniCreateFileDescriptor(env, fd);
478 int fd = open(name8.string(), flags, realMode); local
479 if (fd < 0) {
483 jobject object = jniCreateFileDescriptor(env, fd);
485 close(fd);
502 int fd = dup(origfd); local
520 int fd = jniGetFDFromFileDescriptor(env, object); local
534 int fd = jniGetFDFromFileDescriptor(env, object); local
[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
/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
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp467 sp<MediaRecorder> SurfaceMediaSourceGLTest::setUpMediaRecorder(int fd, int videoSource, argument
473 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,
769 close(fd);
874 int fd
[all...]
/frameworks/base/cmds/idmap/
H A Dinspect.cpp35 int fd; local
42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) {
46 if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) {
47 close(fd);
51 close(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 DslesTestPlayFdPath.cpp111 int fd = open(path, O_RDONLY); local
112 if (fd == -1) {
116 locatorFd.fd = (SLint32) fd;
187 close(fd);
H A DslesTestVirtualizerPath.cpp120 int fd = open(path, O_RDONLY); local
121 if (fd == -1) {
124 locatorFd.fd = (SLint32) fd;
245 close(fd);
/frameworks/base/libs/common_time/
H A Dutils.cpp113 void LogRing::dumpLog(int fd) { argument
130 write(fd, buf, res);
160 write(fd, buf, res);
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java84 private static native long nativeSetup(FileDescriptor fd, int format); argument
131 FileDescriptor fd = file.getFD();
132 mNativeObject = nativeSetup(fd, format);
/frameworks/native/cmds/atrace/
H A Datrace.cpp224 int fd = open(filename, flags); local
225 if (fd == -1) {
233 if (write(fd, str, len) != len) {
239 close(fd);
349 int fd = open(k_traceClockPath, O_RDONLY); local
350 if (fd == -1) {
357 ssize_t n = read(fd, buf, 4096);
358 close(fd);
474 int fd = open(k_ftraceFilterPath, O_RDONLY); local
475 if (fd
[all...]
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp93 const int fd = getFd(); local
111 } while (result != fd);
113 return (result == fd) ? status_t(NO_ERROR) : result;

Completed in 643 milliseconds

1234567891011>>