Searched refs:fd (Results 201 - 225 of 1163) sorted by relevance

1234567891011>>

/frameworks/native/cmds/dumpstate/
H A DDumpstateInternal.h58 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
H A DDumpstateService.h39 status_t dump(int fd, const Vector<String16>& args) override;
/frameworks/native/services/inputflinger/host/
H A DInputFlinger.h41 virtual status_t dump(int fd, const Vector<String16>& args);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DDefaultModeManager.java49 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { } argument
/frameworks/av/media/libaaudio/tests/
H A Dtest_marshalling.cpp53 unique_fd fd(ashmem_create_region("TestMarshalling", memSizeBytes));
54 ASSERT_LE(0, fd);
55 sharedMemoryA.setup(fd, memSizeBytes);
86 unique_fd fd(ashmem_create_region("TestMarshalling", memSizeBytes));
87 ASSERT_LE(0, fd);
88 sharedMemories[0].setup(fd, memSizeBytes);
124 unique_fd fd(ashmem_create_region("TestMarshalling Z", memSizeBytes));
125 ASSERT_LE(0, fd);
126 sharedMemories[0].setup(fd, memSizeBytes);
/frameworks/base/libs/androidfw/
H A DApkAssets.cpp47 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, false /*load_as_shared_library*/);
52 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, true /*load_as_shared_library*/);
70 return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(), std::move(idmap_asset),
74 std::unique_ptr<const ApkAssets> ApkAssets::LoadFromFd(unique_fd fd, argument
77 return LoadImpl(std::move(fd), friendly_name, nullptr /*idmap_asset*/, nullptr /*loaded_idmap*/,
82 unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC));
83 if (fd == -1) {
88 const off64_t file_len = lseek64(fd, 0, SEEK_END);
95 if (!file_map->create(path.c_str(), fd, 0, static_cast<size_t>(file_len), true /*readOnly*/)) {
103 unique_fd fd, cons
102 LoadImpl( unique_fd fd, const std::string& path, std::unique_ptr<Asset> idmap_asset, std::unique_ptr<const LoadedIdmap> loaded_idmap, bool system, bool load_as_shared_library) argument
[all...]
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c534 int EffectDumpEffects(int fd) { argument
540 dprintf(fd, "Libraries NOT loaded:\n");
544 dprintf(fd, " Library %s\n", fl->name);
545 dprintf(fd, " path: %s\n", fl->path);
554 dprintf(fd, "Libraries loaded:\n");
558 dprintf(fd, " Library %s\n", l->name);
559 dprintf(fd, " path: %s\n", l->path);
561 dprintf(fd, " (no effects)\n");
566 dprintf(fd, "%s", s);
574 dprintf(fd, "Skippe
[all...]
/frameworks/av/media/mtp/
H A DMtpFfsCompatHandle.cpp71 int MtpFfsCompatHandle::writeHandle(int fd, const void* data, size_t len) { argument
76 int n = TEMP_FAILURE_RETRY(::write(fd, buf, write_len));
79 PLOG(ERROR) << "write ERROR: fd = " << fd << ", n = " << n;
93 int MtpFfsCompatHandle::readHandle(int fd, void* data, size_t len) { argument
98 int n = TEMP_FAILURE_RETRY(::read(fd, buf, read_len));
100 PLOG(ERROR) << "read ERROR: fd = " << fd << ", n = " << n;
171 aio.aio_fildes = mfr.fd;
179 posix_fadvise(mfr.fd,
[all...]
/frameworks/base/cmds/incidentd/src/
H A DReporter.cpp49 : args(a), listener(l), fd(f), err(NO_ERROR) {}
52 if (fd >= 0) {
54 close(fd);
58 bool ReportRequest::ok() { return fd >= 0 && err == NO_ERROR; }
66 // TODO: dedup on exact same args and fd, report the status back to listener!
73 void ReportRequestSet::setMainFd(int fd) { argument
74 mMainFd = fd;
75 mMetadata.set_use_dropbox(fd > 0);
139 if ((*it)->fd < 0 && mainFd < 0) {
262 status_t Reporter::create_file(int* fd) { argument
[all...]
/frameworks/av/include/media/stagefright/
H A DFileSource.h33 // FileSource takes ownership and will close the fd
34 FileSource(int fd, int64_t offset, int64_t length);
52 static bool requiresDrm(int fd, int64_t offset, int64_t length, const char *mime);
/frameworks/av/media/libaaudio/src/binding/
H A DSharedMemoryParcelable.h45 * Make a dup() of the fd and store it for later use.
47 * @param fd
50 void setup(const android::base::unique_fd& fd, int32_t sizeInBytes);
70 aaudio_result_t resolveSharedMemory(const android::base::unique_fd& fd);
/frameworks/av/media/libaudiohal/2.0/
H A DStreamPowerLog.h62 // Dump the power log to fd.
63 void dump(int fd) const {
66 mPowerLog, fd, " " /* prefix */, kPowerLogLines, 0 /* limit_ns */);
/frameworks/av/media/libaudiohal/4.0/
H A DStreamPowerLog.h63 // Dump the power log to fd.
64 void dump(int fd) const {
67 mPowerLog, fd, " " /* prefix */, kPowerLogLines, 0 /* limit_ns */);
/frameworks/av/media/libstagefright/
H A DFileSource.cpp57 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument
58 : mFd(fd),
67 ALOGV("fd=%d (%s), offset=%lld, length=%lld",
68 fd, nameForFd(fd).c_str(), (long long) offset, (long long) length);
80 if (fstat(fd, &s) == 0) {
96 "FileSource(fd(%s), %lld, %lld)",
97 nameForFd(fd).c_str(),
228 bool FileSource::requiresDrm(int fd, int64_t offset, int64_t length, const char *mime) { argument
231 drmClient->openDecryptSession(fd, offse
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DFileSource.h33 // FileSource takes ownership and will close the fd
34 FileSource(int fd, int64_t offset, int64_t length);
52 static bool requiresDrm(int fd, int64_t offset, int64_t length, const char *mime);
/frameworks/av/services/audioflinger/
H A DStateQueue.h111 void dump(int fd);
122 void dump(int fd);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioPolicyMix.h46 status_t dump(int fd, int spaces, int index) const;
83 status_t dump(int fd) const;
H A DEffectDescriptor.h31 status_t dump(int fd);
53 status_t dump(int fd);
/frameworks/av/services/camera/libcameraservice/utils/
H A DTagMonitor.h67 // Dump current event log to the provided fd
68 void dumpMonitoredMetadata(int fd);
72 static void printData(int fd, const uint8_t *data_ptr, uint32_t tag,
/frameworks/base/core/java/android/content/pm/
H A DIPackageInstallerSession.aidl33 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd);
/frameworks/base/core/java/android/os/
H A DIBinder.java211 * @param fd The raw file descriptor that the dump is being sent to.
214 public void dump(@NonNull FileDescriptor fd, @Nullable String[] args) throws RemoteException; argument
221 * @param fd The raw file descriptor that the dump is being sent to.
224 public void dumpAsync(@NonNull FileDescriptor fd, @Nullable String[] args) argument
H A DSharedMemory.java45 private SharedMemory(FileDescriptor fd) { argument
48 if (fd == null) {
52 if (!fd.valid()) {
56 mFileDescriptor = fd;
59 throw new IllegalArgumentException("FileDescriptor is not a valid ashmem fd");
150 * Returns the backing native fd int for this SharedMemory object. The SharedMemory
151 * instance retains ownership of the fd.
153 * This fd is interoperable with the ASharedMemory NDK APIs.
155 * @return Returns the native fd associated with this object, or -1 if it is already closed.
294 private Closer(FileDescriptor fd, MemoryRegistratio argument
361 nGetSize(FileDescriptor fd) argument
362 nSetProt(FileDescriptor fd, int prot) argument
[all...]
H A DTransactionTracker.java57 public void writeTracesToFile(ParcelFileDescriptor fd) { argument
62 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd.getFileDescriptor()));
/frameworks/base/core/java/android/print/
H A DIPrintDocumentAdapter.aidl37 void write(in PageRange[] pages, in ParcelFileDescriptor fd,
/frameworks/base/core/java/android/util/apk/
H A DMemoryMappedFileDataSource.java46 MemoryMappedFileDataSource(FileDescriptor fd, long position, long size) { argument
47 mFd = fd;

Completed in 354 milliseconds

1234567891011>>