Searched refs:fd (Results 451 - 475 of 1007) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/libs/androidfw/include/androidfw/
H A DObbFile.h40 bool readFrom(int fd);
42 bool writeTo(int fd);
44 bool removeFrom(int fd);
134 bool parseObbFile(int fd);
H A DStreamingZipInflater.h33 // Flavor that pages in the compressed data from a fd
34 StreamingZipInflater(int fd, off64_t compDataStart, size_t uncompSize, size_t compSize);
H A DZipFileRO.h153 bool uncompressEntry(ZipEntryRO entry, int fd) const;
H A DZipUtils.h41 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
/frameworks/base/libs/androidfw/tests/
H A DApkAssets_test.cpp82 base::unique_fd fd(asset->openFileDescriptor(&start, &length));
83 EXPECT_GE(fd.get(), 0);
85 lseek64(fd.get(), start, SEEK_SET);
89 ASSERT_TRUE(base::ReadFully(fd.get(), &*buffer.begin(), length));
H A DBackupData_test.cpp60 int fd = ::open(mFilename.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local
61 if (fd < 0) {
75 int fd = ::open(mFilename.string(), O_WRONLY); local
76 BackupDataWriter* writer = new BackupDataWriter(fd);
83 ::close(fd);
84 fd = ::open(mFilename.string(), O_RDONLY);
85 BackupDataReader* reader = new BackupDataReader(fd);
117 int fd = ::open(mFilename.string(), O_WRONLY); local
118 BackupDataWriter* writer = new BackupDataWriter(fd);
124 ::close(fd);
165 int fd = ::open(mFilename.string(), O_WRONLY); local
220 int fd = ::open(mFilename.string(), O_WRONLY); local
259 int fd = ::open(mFilename.string(), O_WRONLY); local
320 int fd = ::open(mFilename.string(), O_WRONLY); local
388 int fd = ::open(mFilename.string(), O_WRONLY); local
[all...]
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/common_time/
H A Dcommon_clock_service.cpp36 status_t CommonClockService::dump(int fd, const Vector<String16>& args) { argument
38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size());
H A Dcommon_clock_service.h32 virtual status_t dump(int fd, const Vector<String16>& args);
H A Dcommon_time_config_service.cpp34 status_t CommonTimeConfigService::dump(int fd, const Vector<String16>& args) { argument
35 return mTimeServer.dumpConfigInterface(fd, args);
H A Dcommon_time_config_service.h31 virtual status_t dump(int fd, const Vector<String16>& args);
H A Dcommon_time_server.cpp216 pfds[eventCnt].fd = mWakeupThreadFD;
224 pfds[eventCnt].fd = mSocket;
H A Dcommon_time_server.h81 status_t dumpClockInterface(int fd, const Vector<String16>& args,
83 status_t dumpConfigInterface(int fd, const Vector<String16>& args);
99 void dumpLog(int fd, const CommonClock& cclk);
H A Dcommon_time_server_api.cpp286 write(fd, buffer, res); \
290 status_t CommonTimeServer::dumpClockInterface(int fd, argument
302 write(fd, buffer, strlen(buffer));
358 mClient_PacketRTTLog.dumpLog(fd, mCommonClock);
359 mStateChangeLog.dumpLog(fd);
360 mElectionLog.dumpLog(fd);
361 mBadPktLog.dumpLog(fd);
367 status_t CommonTimeServer::dumpConfigInterface(int fd, argument
378 write(fd, buffer, strlen(buffer));
408 void CommonTimeServer::PacketRTTLog::dumpLog(int fd, cons argument
[all...]
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...]
H A Dutils.cpp113 void LogRing::dumpLog(int fd) { argument
130 write(fd, buf, res);
160 write(fd, buf, res);
H A Dutils.h59 // Dump the log to an fd (dumpsys style)
60 void dumpLog(int fd);
/frameworks/base/libs/hwui/
H A DFrameInfoVisualizer.cpp241 void FrameInfoVisualizer::dumpData(int fd) { argument
248 FILE *file = fdopen(fd, "a");
H A DFrameInfoVisualizer.h51 void dumpData(int fd);
H A DJankTracker.cpp184 ALOGW("Failed to get ashmem region size from fd %d, err %d %s", ashmemfd, err, strerror(err));
197 ALOGW("Failed to move profile data to ashmem fd %d, error = %d",
308 void JankTracker::dumpData(int fd, const ProfileDataDescription* description, const ProfileData* data) {
314 dprintf(fd, "\nPackage: %s", description->name.c_str());
317 dprintf(fd, "\nWindow: %s", description->name.c_str());
322 dprintf(fd, "\nNote: Data has been filtered!");
324 dprintf(fd, "\nStats since: %" PRIu64 "ns", data->statStartTime);
325 dprintf(fd, "\nTotal frames rendered: %u", data->totalFrameCount);
326 dprintf(fd, "\nJanky frames: %u (%.2f%%)", data->jankFrameCount,
328 dprintf(fd, "\n50t
[all...]
H A DJankTracker.h85 void dump(int fd) { dumpData(fd, &mDescription, mData); } argument
100 static void dumpData(int fd, const ProfileDataDescription* description, const ProfileData* data);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp281 int fd = ashmem_create_region("bitmap", size); local
282 if (fd < 0) {
286 void* addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
288 close(fd);
292 if (ashmem_set_prot_region(fd, PROT_READ) < 0) {
294 close(fd);
297 return sk_sp<Bitmap>(new Bitmap(addr, fd, size, info, rowBytes, ctable));
380 Bitmap::Bitmap(void* address, int fd, size_t mappedSize, argument
385 mPixelStorage.ashmem.fd = fd;
[all...]
H A DBitmap.h67 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info,
137 int fd; member in struct:android::Bitmap::__anon1236::__anon1238
H A DTypeface.cpp182 int fd = open(kRobotoFont, O_RDONLY); local
183 LOG_ALWAYS_FATAL_IF(fd == -1, "Failed to open file %s", kRobotoFont);
185 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) == -1, "Failed to stat file %s", kRobotoFont);
186 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp599 void CanvasContext::dumpFrames(int fd) { argument
600 mJankTracker.dump(fd);
601 FILE* file = fdopen(fd, "a");
650 int fd = open(path, O_CREAT | O_WRONLY, S_IRWXU | S_IRGRP | S_IROTH); local
651 if (fd == -1) {
659 write(fd, data.c_str(), data.length());
660 close(fd);

Completed in 164 milliseconds

<<11121314151617181920>>