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

1234567891011>>

/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp167 String8 DrmPassthruPlugIn::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { argument
238 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) {
237 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
/frameworks/av/include/media/
H A DMediaPlayerInterface.h146 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
222 virtual status_t dump(int fd, const Vector<String16> &args) const { argument
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp171 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument
172 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
175 data.writeFileDescriptor(fd);
403 int fd = dup(data.readFileDescriptor()); local
406 reply->writeInt32(setOutputFile(fd, offset, length));
407 ::close(fd);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDriver.cpp100 status_t NuPlayerDriver::setDataSource(int fd, int64_t offset, int64_t length) { argument
101 ALOGV("setDataSource(%p) file(%d)", this, fd);
110 mPlayer->setDataSourceAsync(fd, offset, length);
614 int fd, const Vector<String16> & /* args */) const {
619 FILE *out = fdopen(dup(fd), "w");
613 dump( int fd, const Vector<String16> & ) const argument
/frameworks/av/media/libstagefright/
H A DNuMediaExtractor.cpp130 status_t NuMediaExtractor::setDataSource(int fd, off64_t offset, off64_t size) { argument
138 sp<FileSource> fileSource = new FileSource(dup(fd), offset, size);
H A DStagefrightMetadataRetriever.cpp90 int fd, int64_t offset, int64_t length) {
91 fd = dup(fd);
93 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
100 mSource = new FileSource(fd, offset, length);
89 setDataSource( int fd, int64_t offset, int64_t length) argument
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp47 ARTPWriter::ARTPWriter(int fd) argument
49 mFd(dup(fd)),
52 CHECK_GE(fd, 0);
320 int fd = isRTCP ? mRTCPFd : mRTPFd; local
324 write(fd, &ms, sizeof(ms));
325 write(fd, &length, sizeof(length));
326 write(fd, buffer->data(), buffer->size());
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp111 int WebmElement::write(int fd, uint64_t& size) { argument
114 off64_t off = ::lseek64(fd, (size - 1), SEEK_CUR) - (size - 1);
115 ::write(fd, buf, 1); // extend file
121 void *dst = ::mmap64(NULL, mapSize, PROT_WRITE, MAP_SHARED, fd, alignedOff);
124 ALOGE("fd %d; flags: %o", fd, ::fcntl(fd, F_GETFL, 0));
H A DWebmFrameThread.cpp65 const int& fd,
70 : mFd(fd),
79 const int& fd,
84 : mFd(fd),
64 WebmFrameSinkThread( const int& fd, const uint64_t& off, sp<WebmFrameSourceThread> videoThread, sp<WebmFrameSourceThread> audioThread, List<sp<WebmElement> >& cues) argument
78 WebmFrameSinkThread( const int& fd, const uint64_t& off, LinkedBlockingQueue<const sp<WebmFrame> >& videoSource, LinkedBlockingQueue<const sp<WebmFrame> >& audioSource, List<sp<WebmElement> >& cues) argument
H A DWebmWriter.cpp55 WebmWriter::WebmWriter(int fd) argument
56 : mFd(dup(fd)),
102 ALOGV("fd %d; flags: %o", mFd, fcntl(mFd, F_GETFL, 0));
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp73 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, off64_t length) { argument
74 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
75 return translate_error(mData->mImpl->setDataSource(fd, offset, length));
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DStreamingProcessor.cpp904 status_t StreamingProcessor::dump(int fd, const Vector<String16>& /*args*/) { argument
910 write(fd, result.string(), result.size());
911 mPreviewRequest.dump(fd, 2, 6);
919 write(fd, result.string(), result.size());
920 mRecordingRequest.dump(fd, 2, 6);
933 write(fd, result.string(), result.size());
/frameworks/base/core/java/android/app/
H A DLoaderManager.java184 * @param fd The raw file descriptor that the dump is being sent to.
188 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); argument
506 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
512 mLoader.dump(prefix + " ", fd, writer, args);
528 mPendingLoader.dump(prefix + " ", fd, writer, args);
858 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
866 li.dump(innerPrefix, fd, writer, args);
876 li.dump(innerPrefix, fd, writer, args);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealth.java438 ParcelFileDescriptor fd, int channelId) {
439 mCallback.onHealthChannelStateChange(config, device, prevState, newState, fd,
436 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
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/java/android/content/pm/
H A DRegisteredServicesCache.java200 public void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId) { argument
/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java41 private FileDescriptor fd; field in class:LocalSocketImpl
42 /** whether fd is created internally */
59 FileDescriptor myFd = fd;
76 FileDescriptor myFd = fd;
94 FileDescriptor myFd = fd;
129 FileDescriptor myFd = fd;
143 FileDescriptor myFd = fd;
157 FileDescriptor myFd = fd;
169 private native int pending_native(FileDescriptor fd) throws IOException; argument
170 private native int available_native(FileDescriptor fd) throw argument
171 read_native(FileDescriptor fd) argument
172 readba_native(byte[] b, int off, int len, FileDescriptor fd) argument
174 writeba_native(byte[] b, int off, int len, FileDescriptor fd) argument
176 write_native(int b, FileDescriptor fd) argument
178 connectLocal(FileDescriptor fd, String name, int namespace) argument
180 bindLocal(FileDescriptor fd, String name, int namespace) argument
182 listen_native(FileDescriptor fd, int backlog) argument
184 shutdown(FileDescriptor fd, boolean shutdownInput) argument
185 getPeerCredentials_native( FileDescriptor fd) argument
187 getOption_native(FileDescriptor fd, int optID) argument
189 setOption_native(FileDescriptor fd, int optID, int b, int value) argument
202 accept(FileDescriptor fd, LocalSocketImpl s) argument
219 LocalSocketImpl(FileDescriptor fd) argument
[all...]
/frameworks/base/core/java/android/view/
H A DHardwareRenderer.java281 abstract void dumpGfxInfo(PrintWriter pw, FileDescriptor fd); argument
H A DWindowManagerGlobal.java462 public void dumpGfxInfo(FileDescriptor fd) { argument
463 FileOutputStream fout = new FileOutputStream(fd);
479 renderer.dumpGfxInfo(pw, fd);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java203 FileDescriptor fd = sServerSocket.getFileDescriptor();
205 if (fd != null) {
206 Os.close(fd);
850 * @param fd non-null; file descriptor
854 static native void setCloseOnExec(FileDescriptor fd, boolean flag) argument
868 * Creates a file descriptor from an int fd.
870 * @param fd integer OS file descriptor
872 * @throws IOException if fd is invalid
874 static native FileDescriptor createFileDescriptor(int fd) argument
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp71 const int fd = reinterpret_cast<intptr_t>(param); local
72 const int readCount = pread(fd, outBuffer, size, position);
80 static jlong nativeOpen(JNIEnv* env, jclass thiz, jint fd, jlong size) { argument
85 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd));
131 static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCount) { argument
135 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes);
160 static void nativeWrite(JNIEnv* env, jclass thiz, jlong documentPtr, jint fd) { argument
163 writer.dstFd = fd;
168 "cannot write to fd. Error:" + errno);
H A DPdfRenderer.cpp64 const int fd = reinterpret_cast<intptr_t>(param); local
65 const int readCount = pread(fd, outBuffer, size, position);
73 static jlong nativeCreate(JNIEnv* env, jclass thiz, jint fd, jlong size) { argument
78 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd));
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp162 virtual int handleEvent(int fd, int events, void* data) { argument
H A Dandroid_net_LocalSocketImpl.cpp48 /* private native void connectLocal(FileDescriptor fd,
56 int fd; local
58 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
67 fd,
80 /* private native void bindLocal(FileDescriptor fd, String name, namespace)
89 int fd; local
96 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
104 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId);
112 /* private native void listen_native(int fd, int backlog) throws IOException; */
117 int fd; local
147 int fd; local
183 int fd; local
238 int fd; local
287 int fd; local
352 int fd; local
377 int fd; local
491 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
549 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
631 int fd; local
665 int fd; local
710 int fd; local
732 int fd; local
771 int fd; local
[all...]
/frameworks/base/libs/androidfw/
H A DAsset.cpp126 int fd; local
128 fd = open(fileName, O_RDONLY | O_BINARY);
129 if (fd < 0)
140 length = lseek64(fd, 0, SEEK_END);
142 ::close(fd);
145 (void) lseek64(fd, 0, SEEK_SET);
148 if (fstat(fd, &st) < 0) {
149 ::close(fd);
154 ::close(fd);
160 result = pAsset->openChunk(fileName, fd,
187 int fd; local
373 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument
698 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument
[all...]

Completed in 356 milliseconds

1234567891011>>