Searched refs:fd (Results 301 - 325 of 1163) sorted by relevance

<<11121314151617181920>>

/frameworks/av/services/camera/libcameraservice/utils/
H A DLatencyHistogram.cpp53 void CameraLatencyHistogram::dump(int fd, const char* name) const { argument
69 write(fd, lines.string(), lines.size());
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java778 * @param fd The file descriptor containing the bitmap data to decode
792 public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) { argument
798 if (nativeIsSeekable(fd)) {
799 bm = nativeDecodeFileDescriptor(fd, outPadding, opts);
801 FileInputStream fis = new FileInputStream(fd);
827 * @param fd The file descriptor containing the bitmap data to decode
830 public static Bitmap decodeFileDescriptor(FileDescriptor fd) { argument
831 return decodeFileDescriptor(fd, null, null);
836 private static native Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, argument
841 private static native boolean nativeIsSeekable(FileDescriptor fd); argument
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A DApkAssets.h61 static std::unique_ptr<const ApkAssets> LoadFromFd(base::unique_fd fd,
83 static std::unique_ptr<const ApkAssets> LoadImpl(base::unique_fd fd, const std::string& path,
/frameworks/base/libs/androidfw/tests/
H A DObbFile_test.cpp46 int fd = ::open(mFileName.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local
47 if (fd < 0) {
/frameworks/base/libs/services/include/android/os/
H A DDropBoxManager.h63 Status addFile(const String16& tag, int fd, int flags);
80 Entry(const String16& tag, int32_t flags, int fd);
/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
H A DFragmentService.java73 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
76 state.mFragmentHostManager.getFragmentManager().dump(" ", fd, pw, args);
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeUI.java66 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
69 getVolumeComponent().dump(fd, pw, args);
/frameworks/base/services/core/java/com/android/server/audio/
H A DFocusRequester.java142 boolean hasSameDispatcher(IAudioFocusDispatcher fd) { argument
143 return (mFocusDispatcher != null) && mFocusDispatcher.equals(fd);
323 final IAudioFocusDispatcher fd = mFocusDispatcher;
324 if (fd != null) {
330 fd.dispatchAudioFocusChange(focusGain, mClientId);
408 final IAudioFocusDispatcher fd = mFocusDispatcher;
409 if (fd != null) {
417 fd.dispatchAudioFocusChange(mFocusLossReceived, mClientId);
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp58 * We also need an extra CLOCK_REALTIME fd which exists specifically to be
93 for (auto fd : fds) {
94 epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, nullptr);
95 close(fd);
125 int fd; local
141 fd = open(rtc_dev.string(), O_RDWR);
142 if (fd < 0) {
164 res = ioctl(fd, RTC_SET_TIME, &rtc);
168 close(fd);
/frameworks/ex/framesequence/jni/
H A DStream.h65 FileStream(FILE* fd) : mFd(fd) {} argument
/frameworks/native/cmds/dumpstate/
H A DDumpstateUtil.h49 * Defines what should happen with the main output stream (`stdout` or fd) of a command.
173 * |fd| file descriptor that receives the command's 'stdout'.
180 int RunCommandToFd(int fd, const std::string& title, const std::vector<std::string>& full_command,
186 * |fd| file descriptor where the file is dumped into.
191 int DumpFileToFd(int fd, const std::string& title, const std::string& path);
H A Ddumpstate.h128 void Dump(int fd, const std::string& prefix) const;
170 android::base::unique_fd fd; member in struct:DumpData
240 * |fd| file descriptor to read from.
244 android::status_t AddZipEntryFromFd(const std::string& entry_name, int fd,
390 /* prints the contents of the fd
391 * fd must have been opened with the flag O_NONBLOCK.
393 int dump_file_from_fd(const char *title, const char *path, int fd);
402 int (*dump_from_fd)(const char* title, const char* path, int fd));
450 time_t get_mtime(int fd, time_t default_mtime);
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatApi21Impl.java49 private File getFile(ParcelFileDescriptor fd) { argument
51 final String path = Os.readlink("/proc/self/fd/" + fd.getFd());
/frameworks/support/wear/src/main/java/androidx/wear/ambient/
H A DAmbientDelegate.java161 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
163 mWearableController.dump(prefix, fd, writer, args);
/frameworks/base/cmds/incident_helper/tests/
H A Dih_util_test.cpp157 ASSERT_NE(tf.fd, -1);
160 Reader r(tf.fd);
174 ASSERT_NE(tf.fd, -1);
177 Reader r(tf.fd);
186 ASSERT_NE(tf.fd, -1);
189 Reader r(tf.fd);
205 EXPECT_THAT(line, StrEq("Invalid fd -123"));
213 EXPECT_THAT(line, StrEq("Invalid fd 1231432"));
/frameworks/base/core/java/android/net/
H A DNetworkUtils.java46 public native static void attachDhcpFilter(FileDescriptor fd) throws SocketException; argument
50 * @param fd the socket's {@link FileDescriptor}.
53 public native static void attachRaFilter(FileDescriptor fd, int packetType) throws SocketException; argument
60 * @param fd the socket's {@link FileDescriptor}.
63 public native static void attachControlPacketFilter(FileDescriptor fd, int packetType) argument
68 * @param fd the socket's {@link FileDescriptor}.
71 public native static void setupRaSocket(FileDescriptor fd, int ifIndex) throws SocketException; argument
107 * Protect {@code fd} from VPN connections. After protecting, data sent through
111 public static boolean protectFromVpn(FileDescriptor fd) { argument
112 return protectFromVpn(fd
[all...]
/frameworks/base/media/java/android/media/
H A DDataSourceDesc.java355 * @param fd the FileDescriptor for the file you want to play
357 * @throws NullPointerException if fd is null.
359 public Builder setDataSource(FileDescriptor fd) { argument
360 Preconditions.checkNotNull(fd);
363 mFD = fd;
375 * @param fd the FileDescriptor for the file you want to play
379 * @throws NullPointerException if fd is null.
381 public Builder setDataSource(FileDescriptor fd, long offset, long length) { argument
382 Preconditions.checkNotNull(fd);
391 mFD = fd;
[all...]
/frameworks/support/media/src/main/java/androidx/media/
H A DDataSourceDesc.java349 * @param fd the FileDescriptor for the file you want to play
351 * @throws NullPointerException if fd is null.
353 public @NonNull Builder setDataSource(@NonNull FileDescriptor fd) { argument
354 Preconditions.checkNotNull(fd);
357 mFD = fd;
369 * @param fd the FileDescriptor for the file you want to play
373 * @throws NullPointerException if fd is null.
375 public @NonNull Builder setDataSource(@NonNull FileDescriptor fd, long offset, argument
377 Preconditions.checkNotNull(fd);
386 mFD = fd;
[all...]
/frameworks/base/cmds/incidentd/tests/
H A DSection_test.cpp52 virtual void SetUp() override { ASSERT_NE(tf.fd, -1); }
102 requests.add(new ReportRequest(args2, new SimpleListener(), tf.fd));
165 requests.setMainFd(tf.fd);
300 ASSERT_TRUE(output1.fd != -1);
301 ASSERT_TRUE(output2.fd != -1);
302 ASSERT_TRUE(output3.fd != -1);
311 requests.add(new ReportRequest(args1, l, output1.fd));
312 requests.add(new ReportRequest(args2, l, output2.fd));
313 requests.add(new ReportRequest(args3, l, output3.fd));
340 ASSERT_TRUE(output1.fd !
[all...]
/frameworks/base/cmds/incidentd/src/
H A DSection.cpp67 static status_t write_section_header(int fd, int sectionId, size_t size) { argument
70 return WriteFully(fd, buf, p - buf) ? NO_ERROR : -errno;
107 err = write_section_header(request->fd, id, privacyBuffer.size());
112 err = privacyBuffer.flush(request->fd);
118 VLOG("Section %d flushed %zu bytes to fd %d with spec %d", id, privacyBuffer.size(),
119 request->fd, spec.dest);
149 // only returns error if there is no fd to write to.
176 // So the idea is only requests with negative fd are written to dropbox file.
177 int fd = request->fd > local
323 unique_fd fd; local
[all...]
/frameworks/base/core/java/android/os/
H A DMessageQueue.java68 private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events); argument
176 * @param fd The file descriptor for which a listener will be registered.
187 public void addOnFileDescriptorEventListener(@NonNull FileDescriptor fd, argument
190 if (fd == null) {
191 throw new IllegalArgumentException("fd must not be null");
198 updateOnFileDescriptorEventListenerLocked(fd, events, listener);
209 * @param fd The file descriptor whose listener will be unregistered.
214 public void removeOnFileDescriptorEventListener(@NonNull FileDescriptor fd) { argument
215 if (fd == null) {
216 throw new IllegalArgumentException("fd mus
224 updateOnFileDescriptorEventListenerLocked(FileDescriptor fd, int events, OnFileDescriptorEventListener listener) argument
262 dispatchEvents(int fd, int events) argument
894 onFileDescriptorEvents(@onNull FileDescriptor fd, @Events int events) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DExifInterfaceTest.java344 FileDescriptor fd = null;
346 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600);
347 exifInterface = new ExifInterface(fd);
352 IoUtils.closeQuietly(fd);
382 FileDescriptor fd = null;
384 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600);
385 ExifInterface exifInterface = new ExifInterface(fd);
387 Os.lseek(fd, 0, OsConstants.SEEK_SET);
388 exifInterface = new ExifInterface(fd);
395 Os.lseek(fd,
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioInputDescriptor.cpp279 status_t AudioInputDescriptor::dump(int fd) argument
296 write(fd, result.string(), result.size());
298 mSessions.dump(fd, 1);
362 status_t AudioInputCollection::dump(int fd) const
368 write(fd, buffer, strlen(buffer));
371 write(fd, buffer, strlen(buffer));
372 valueAt(i)->dump(fd);
/frameworks/native/libs/binder/
H A DIMemory.cpp265 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d",
293 int fd = fcntl(heap->mHeapId.load(memory_order_relaxed), F_DUPFD_CLOEXEC, 0); local
294 ALOGE_IF(fd==-1, "cannot dup fd=%d",
296 mHeapId.store(fd, memory_order_release);
322 ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%zd, err=%d (%s)",
328 int fd = fcntl(parcel_fd, F_DUPFD_CLOEXEC, 0); local
329 ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%zd, err=%d (%s)",
337 mBase = mmap(0, size, access, MAP_SHARED, fd, offse
[all...]
/frameworks/av/cmds/stagefright/
H A Dmuxer.cpp78 int fd = open(outputFileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
80 if (fd < 0) {
82 return fd;
84 sp<MediaMuxer> muxer = new MediaMuxer(fd, container);
85 close(fd);

Completed in 496 milliseconds

<<11121314151617181920>>