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

1234567891011>>

/frameworks/base/cmds/incident_helper/tests/
H A DCpuFreqParser_test.cpp42 ASSERT_TRUE(tf.fd != -1);
116 int fd = open(testFile.c_str(), O_RDONLY); local
117 ASSERT_TRUE(fd != -1);
120 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO));
122 close(fd);
H A DEventLogTagsParser_test.cpp42 ASSERT_TRUE(tf.fd != -1);
118 int fd = open(testFile.c_str(), O_RDONLY); local
119 ASSERT_TRUE(fd != -1);
122 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO));
124 close(fd);
H A DPageTypeInfoParser_test.cpp42 ASSERT_TRUE(tf.fd != -1);
99 int fd = open(testFile.c_str(), O_RDONLY); local
100 ASSERT_TRUE(fd != -1);
103 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO));
105 close(fd);
/frameworks/minikin/tests/util/
H A DFreeTypeMinikinFontForTest.cpp63 int fd = open(font_path.c_str(), O_RDONLY); local
64 LOG_ALWAYS_FATAL_IF(fd == -1, "Open failed: %s", font_path.c_str());
66 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0);
68 mFontData = mmap(NULL, mFontSize, PROT_READ, MAP_SHARED, fd, 0);
70 close(fd);
/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 !
488 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/services/medialog/
H A DMediaLogService.cpp96 status_t MediaLogService::dump(int fd, const Vector<String16>& args __unused) argument
102 dprintf(fd, "Permission Denial: can't dump media.log from pid=%d, uid=%d\n",
117 if (fd >= 0) {
118 write(fd, result.string(), result.size());
127 if (fd >= 0) {
128 dprintf(fd, "\n%s:\n", namedReader.name());
136 mMergeReader.dump(fd);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteServer.java91 FileDescriptor fd = new FileDescriptor();
92 fd.setInt$(fileDesc);
93 mServerSocket = new LocalServerSocket(fd);
143 FileDescriptor fd = mServerSocket.getFileDescriptor();
145 if (fd != null && mCloseSocketFd) {
146 Os.close(fd);
184 pollFds[i].fd = fds.get(i);
/frameworks/base/tools/aapt2/io/
H A DFileStream.cpp51 FileInputStream::FileInputStream(int fd, size_t buffer_capacity) argument
52 : fd_(fd), buffer_capacity_(buffer_capacity) {
123 FileOutputStream::FileOutputStream(unique_fd fd, size_t buffer_capacity) argument
124 : FileOutputStream(fd.get(), buffer_capacity) {
125 owned_fd_ = std::move(fd);
128 FileOutputStream::FileOutputStream(int fd, size_t buffer_capacity) argument
129 : fd_(fd), buffer_capacity_(buffer_capacity) {
H A DFileStream.h38 // Take ownership of `fd`.
39 explicit FileInputStream(int fd, size_t buffer_capacity = kDefaultBufferCapacity);
68 // Does not take ownership of `fd`.
69 explicit FileOutputStream(int fd, size_t buffer_capacity = kDefaultBufferCapacity);
71 // Takes ownership of `fd`.
72 explicit FileOutputStream(android::base::unique_fd fd,
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DHwModule.cpp221 void HwModule::dump(int fd) argument
233 write(fd, result.string(), result.size());
235 write(fd, " - outputs:\n", strlen(" - outputs:\n"));
238 write(fd, buffer, strlen(buffer));
239 mOutputProfiles[i]->dump(fd);
243 write(fd, " - inputs:\n", strlen(" - inputs:\n"));
246 write(fd, buffer, strlen(buffer));
247 mInputProfiles[i]->dump(fd);
250 mDeclaredDevices.dump(fd, String8("Declared"), 2, true);
251 mRoutes.dump(fd,
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_NetUtils.cpp85 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
86 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)) != 0) {
119 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
120 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)) != 0) {
194 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
195 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)) != 0) {
206 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
213 if (setsockopt(fd, IPPROTO_ICMPV6, ICMP6_FILTER, &rs_only, len) != 0) {
228 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &hops, len) != 0) {
237 if (setsockopt(fd, IPPROTO_IPV
[all...]
H A Dandroid_os_MessageQueue.cpp50 void setFileDescriptorEvents(int fd, int events);
52 virtual int handleEvent(int fd, int events, void* data);
125 void NativeMessageQueue::setFileDescriptorEvents(int fd, int events) { argument
134 mLooper->addFd(fd, Looper::POLL_CALLBACK, looperEvents, this,
137 mLooper->removeFd(fd);
141 int NativeMessageQueue::handleEvent(int fd, int looperEvents, void* data) { argument
154 gMessageQueueClassInfo.dispatchEvents, fd, events);
156 return 0; // unregister the fd
159 setFileDescriptorEvents(fd, newWatchedEvents);
205 jlong ptr, jint fd, jin
204 android_os_MessageQueue_nativeSetFileDescriptorEvents(JNIEnv* env, jclass clazz, jlong ptr, jint fd, jint events) argument
[all...]
H A Dandroid_text_Hyphenator.cpp40 const int fd = open(hyFilePath.c_str(), O_RDONLY); local
41 if (fd == -1) {
46 if (fstat(fd, &st) == -1) { // Unlikely to happen.
47 close(fd);
51 void* ptr = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0 /* offset */);
52 close(fd);
H A Dandroid_backup_BackupDataOutput.cpp31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
32 if (fd == -1) {
36 return (jlong)new BackupDataWriter(fd);
/frameworks/base/media/java/android/media/
H A DMediaMetadataRetriever.java73 FileDescriptor fd = is.getFD();
74 setDataSource(fd, 0, 0x7ffffffffffffffL);
119 * @param fd the FileDescriptor for the file you want to play
126 public native void setDataSource(FileDescriptor fd, long offset, long length) argument
135 * @param fd the FileDescriptor for the file you want to play
138 public void setDataSource(FileDescriptor fd) argument
141 setDataSource(fd, 0, 0x7ffffffffffffffL);
166 AssetFileDescriptor fd = null;
170 fd = resolver.openAssetFileDescriptor(uri, "r");
174 if (fd
[all...]
H A DMediaExtractor.java115 AssetFileDescriptor fd = null;
118 fd = resolver.openAssetFileDescriptor(uri, "r");
119 if (fd == null) {
125 if (fd.getDeclaredLength() < 0) {
126 setDataSource(fd.getFileDescriptor());
129 fd.getFileDescriptor(),
130 fd.getStartOffset(),
131 fd.getDeclaredLength());
137 if (fd != null) {
138 fd
236 setDataSource(@onNull FileDescriptor fd) argument
249 setDataSource( @onNull FileDescriptor fd, long offset, long length) argument
[all...]
/frameworks/base/core/java/android/app/
H A DIApplicationThread.aidl80 void dumpService(in ParcelFileDescriptor fd, IBinder servicetoken,
98 in ParcelFileDescriptor fd);
99 void dumpActivity(in ParcelFileDescriptor fd, IBinder servicetoken, in String prefix,
107 void dumpMemInfo(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem, boolean checkin,
110 void dumpMemInfoProto(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem,
113 void dumpGfxInfo(in ParcelFileDescriptor fd, in String[] args);
114 void dumpProvider(in ParcelFileDescriptor fd, IBinder servicetoken,
116 void dumpDbInfo(in ParcelFileDescriptor fd, in String[] args);
127 void stopBinderTrackingAndDump(in ParcelFileDescriptor fd);
/frameworks/av/media/libaaudio/src/binding/
H A DSharedMemoryParcelable.cpp44 void SharedMemoryParcelable::setup(const unique_fd& fd, int32_t sizeInBytes) { argument
45 mFd.reset(dup(fd.get())); // store a duplicate fd
46 ALOGV("setup(%d -> %d, %d) this = %p\n", fd.get(), mFd.get(), sizeInBytes, this);
103 aaudio_result_t SharedMemoryParcelable::resolveSharedMemory(const unique_fd& fd) { argument
105 MAP_SHARED, fd.get(), 0);
107 ALOGE("mmap() failed for fd = %d, errno = %s", fd.get(), strerror(errno));
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3BufferManager.h179 void dump(int fd, const Vector<String16> &args) const;
204 explicit GraphicBufferEntry(const sp<GraphicBuffer>& gb = 0, int fd = -1) :
206 fenceFd(fd) {}
H A DCamera3DummyStream.cpp68 void Camera3DummyStream::dump(int fd, const Vector<String16> &args) const { argument
72 write(fd, lines.string(), lines.size());
74 Camera3IOStreamBase::dump(fd, args);
/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/services/coverage/java/com/android/server/coverage/
H A DCoverageService.java115 ParcelFileDescriptor fd = openFileForSystem(dest, "w");
116 if (fd == null) {
122 new ParcelFileDescriptor.AutoCloseOutputStream(fd))) {
/frameworks/base/tools/incident_report/
H A Dprinter.cpp29 Out::Out(int fd) argument
30 :mOut(fd == STDOUT_FILENO ? stdout : fdopen(fd, "w")),
/frameworks/compile/mclinker/unittests/
H A DFileHandleTest.cpp62 int fd = ::open(path.native().c_str(), O_RDONLY); local
64 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly));
78 int close_result = ::close(fd);

Completed in 471 milliseconds

1234567891011>>