Searched refs:fd (Results 76 - 100 of 637) sorted by relevance

1234567891011>>

/frameworks/opt/bitmap/src/com/android/bitmap/
H A DDecodeTask.java121 ParcelFileDescriptor fd = null;
126 Trace.beginSection("create fd");
127 fd = mFactory.createFileDescriptor();
154 if (fd != null) {
155 byteSize = fd.getStatSize();
164 if (fd != null) {
167 Trace.beginSection("create orientation fd and stream");
173 if (fd != null) {
200 if (fd == null) {
212 if (fd !
485 decode(ParcelFileDescriptor fd, InputStream in) argument
[all...]
/frameworks/base/libs/common_time/
H A Ddiag_thread.cpp38 static bool setNonblocking(int fd) { argument
39 int flags = fcntl(fd, F_GETFL);
40 if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) < 0) {
42 fd, errno);
49 static bool setNodelay(int fd) { argument
51 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &tmp, sizeof(tmp)) < 0) {
53 fd, errno);
213 poll_fds[0].fd = listen_fd_;
216 poll_fds[0].fd = data_fd_;
231 if (poll_fds[0].fd
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp123 int fd,
126 GET_PLAYER_TYPE_IMPL(client, fd, offset, length);
183 int fd,
188 sp<DataSource> source = new FileSource(dup(fd), offset, length);
198 lseek(fd, offset, SEEK_SET);
199 read(fd, buf, sizeof(buf));
200 lseek(fd, offset, SEEK_SET);
316 int fd,
330 locator.fd = fd;
122 getPlayerType(const sp<IMediaPlayer>& client, int fd, int64_t offset, int64_t length) argument
182 scoreFactory(const sp<IMediaPlayer>& , int fd, int64_t offset, int64_t length, float ) argument
315 scoreFactory(const sp<IMediaPlayer>& , int fd, int64_t offset, int64_t length, float curScore) argument
[all...]
H A DMidiMetadataRetriever.h39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DMetadataRetrieverClient.h51 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
56 virtual status_t dump(int fd, const Vector<String16>& args) const;
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
47 fd = dup(fd);
48 if (fd < 0)
52 struct usb_device* device = usb_device_new(deviceNameStr, fd);
57 close(fd);
90 int fd = android_hardware_UsbDeviceConnection_get_fd(env, thiz); local
91 if (fd < 0) return NULL;
92 lseek(fd, 0, SEEK_SET);
93 int length = read(fd, buffe
[all...]
H A Dandroid_backup_BackupDataOutput.cpp31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
32 if (fd == -1) {
36 return (jlong)new BackupDataWriter(fd);
H A Dandroid_ddm_DdmHandleNativeHeap.cpp57 int fd = open(path, O_RDONLY); local
58 if (fd != -1) {
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
64 close(fd);
/frameworks/av/include/media/
H A DMediaRecorderBase.h47 virtual status_t setOutputFile(int fd, int64_t offset, int64_t length) = 0;
48 virtual status_t setOutputFileAuxiliary(int fd) {return INVALID_OPERATION;} argument
58 virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelperBase.java104 public void writeNewStateDescription(ParcelFileDescriptor fd) { argument
105 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor());
124 private static native int writeSnapshot_native(long ptr, FileDescriptor fd); argument
/frameworks/base/core/java/com/android/internal/os/
H A DWrapperInit.java65 FileDescriptor fd = ZygoteInit.createFileDescriptor(fdNum);
66 DataOutputStream os = new DataOutputStream(new FileOutputStream(fd));
69 IoUtils.closeQuietly(fd);
/frameworks/base/include/androidfw/
H A DBackupHelpers.h68 BackupDataWriter(int fd);
69 // does not close fd
105 BackupDataReader(int fd);
106 // does not close fd
147 status_t WriteSnapshot(int fd);
/frameworks/compile/mclinker/unittests/
H A DFileHandleTest.cpp66 int fd = ::open(path.native().c_str(), O_RDONLY); local
68 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly));
82 int close_result = ::close(fd);
/frameworks/av/include/ndk/
H A DNdkMediaMuxer.h52 AMediaMuxer* AMediaMuxer_new(int fd, OutputFormat format);
/frameworks/av/media/mtp/
H A DMtpServer.h82 MtpObjectFormat format, int fd)
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) {
93 MtpServer(int fd, MtpDatabase* database, bool ptp,
115 uint64_t size, MtpObjectFormat format, int fd);
81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
/frameworks/av/services/audioflinger/
H A DStateQueue.cpp29 void StateQueueObserverDump::dump(int fd) argument
31 dprintf(fd, "State queue observer: stateChanges=%u\n", mStateChanges);
34 void StateQueueMutatorDump::dump(int fd) argument
36 dprintf(fd, "State queue mutator: pushDirty=%u pushAck=%u blockedSequence=%u\n",
H A DStateQueue.h111 void dump(int fd);
122 void dump(int fd);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DZslProcessorInterface.h58 virtual void dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/base/location/lib/java/com/android/location/provider/
H A DLocationProviderBase.java108 public void dump(FileDescriptor fd, String[] args) { argument
109 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd));
110 onDump(fd, pw, args);
171 public void onDump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationProviderInterface.java41 public void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp126 status_t Camera2ClientBase<TClientBase>::dump(int fd, argument
135 write(fd, result.string(), result.size());
138 return dumpDevice(fd, args);
143 int fd,
148 write(fd, result.string(), result.size());
152 write(fd, result.string(), result.size());
156 status_t res = mDevice->dump(fd, args);
160 write(fd, result.string(), result.size());
142 dumpDevice( int fd, const Vector<String16>& args) argument
/frameworks/base/core/java/android/app/
H A DIUiAutomationConnection.aidl46 void executeShellCommand(String command, in ParcelFileDescriptor fd);
H A DProfilerInfo.java42 public ProfilerInfo(String filename, ParcelFileDescriptor fd, int interval, boolean autoStop) { argument
44 profileFd = fd;
/frameworks/base/core/java/android/os/
H A DMemoryFile.java46 private static native long native_mmap(FileDescriptor fd, int length, int mode) argument
49 private static native void native_close(FileDescriptor fd); argument
50 private static native int native_read(FileDescriptor fd, long address, byte[] buffer, argument
52 private static native void native_write(FileDescriptor fd, long address, byte[] buffer, argument
54 private static native void native_pin(FileDescriptor fd, boolean pin) throws IOException; argument
55 private static native int native_get_size(FileDescriptor fd) throws IOException; argument
253 * @throws IOException If <code>fd</code> is not a valid file descriptor.
257 public static int getSize(FileDescriptor fd) throws IOException { argument
258 return native_get_size(fd);
/frameworks/base/core/java/android/print/
H A DIPrintDocumentAdapter.aidl37 void write(in PageRange[] pages, in ParcelFileDescriptor fd,

Completed in 6542 milliseconds

1234567891011>>