/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ObbFile.h | 40 bool readFrom(int fd); 42 bool writeTo(int fd); 44 bool removeFrom(int fd); 134 bool parseObbFile(int fd);
|
H A D | StreamingZipInflater.h | 33 // 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 D | ZipFileRO.h | 153 bool uncompressEntry(ZipEntryRO entry, int fd) const;
|
H A D | ZipUtils.h | 41 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ApkAssets_test.cpp | 82 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 D | BackupData_test.cpp | 60 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 D | ObbFile_test.cpp | 46 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 D | common_clock_service.cpp | 36 status_t CommonClockService::dump(int fd, const Vector<String16>& args) { argument 38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size());
|
H A D | common_clock_service.h | 32 virtual status_t dump(int fd, const Vector<String16>& args);
|
H A D | common_time_config_service.cpp | 34 status_t CommonTimeConfigService::dump(int fd, const Vector<String16>& args) { argument 35 return mTimeServer.dumpConfigInterface(fd, args);
|
H A D | common_time_config_service.h | 31 virtual status_t dump(int fd, const Vector<String16>& args);
|
H A D | common_time_server.cpp | 216 pfds[eventCnt].fd = mWakeupThreadFD; 224 pfds[eventCnt].fd = mSocket;
|
H A D | common_time_server.h | 81 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 D | common_time_server_api.cpp | 286 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 D | diag_thread.cpp | 38 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 D | utils.cpp | 113 void LogRing::dumpLog(int fd) { argument 130 write(fd, buf, res); 160 write(fd, buf, res);
|
H A D | utils.h | 59 // Dump the log to an fd (dumpsys style) 60 void dumpLog(int fd);
|
/frameworks/base/libs/hwui/ |
H A D | FrameInfoVisualizer.cpp | 241 void FrameInfoVisualizer::dumpData(int fd) { argument 248 FILE *file = fdopen(fd, "a");
|
H A D | FrameInfoVisualizer.h | 51 void dumpData(int fd);
|
H A D | JankTracker.cpp | 184 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 D | JankTracker.h | 85 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 D | Bitmap.cpp | 281 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 D | Bitmap.h | 67 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, 137 int fd; member in struct:android::Bitmap::__anon1236::__anon1238
|
H A D | Typeface.cpp | 182 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 D | CanvasContext.cpp | 599 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);
|