Searched refs:stat (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/base/core/jni/
H A Dandroid_os_StatFs.cpp45 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
46 return stat->f_bsize;
52 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
53 return stat->f_blocks;
59 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
60 return stat->f_bfree;
66 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
67 return stat->f_bavail;
79 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
80 if (stat
111 struct statfs* stat = new struct statfs; local
123 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); local
[all...]
H A Dandroid_ddm_DdmHandleNativeHeap.cpp30 #include <sys/stat.h>
68 struct stat sb;
69 int ret = stat(path, &sb);
H A Dandroid_os_FileUtils.cpp27 #include <sys/stat.h>
92 struct stat st;
93 if (stat(file8.string(), &st) != 0) {
145 struct stat s;
146 int res = stat(pathStr, &s);
H A Dandroid_os_ParcelFileDescriptor.cpp22 #include <sys/stat.h>
85 struct stat st;
H A Dandroid_os_Debug.cpp229 static jint read_binder_stat(const char* stat) argument
248 // now that we have this process, read until we find the stat that we are looking for
249 len = snprintf(compare, 128, " %s: ", stat);
H A Dandroid_net_TrafficStats.cpp22 #include <sys/stat.h>
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
H A DLowStorageTest.java52 StatFs stat = new StatFs(path.getPath());
53 int totalBlocks = stat.getBlockCount();
54 mBlockSize = (int) (stat.getBlockSize());
80 StatFs stat = new StatFs(path.getPath());
81 int totalBlocks = stat.getBlockCount();
82 int noOfBlockToFill = stat.getAvailableBlocks();
118 // The stat didn't relect the correct data right away
122 StatFs stat = new StatFs(path.getPath());
123 long availableBlocks = stat.getAvailableBlocks();
/frameworks/base/libs/utils/
H A Dmisc.cpp22 #include <sys/stat.h>
121 struct stat sb;
123 if (stat(fileName, &sb) < 0) {
158 struct stat sb;
160 if (stat(fileName, &sb) < 0)
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dofstream.h35 inline void stat (struct stat& rs) const { m_File.stat (rs); } function in class:ustl::ofstream
63 inline void stat (struct stat& rs) const { m_File.stat (rs); } function in class:ustl::ifstream
H A Dfstream.h15 struct stat;
44 void stat (struct stat& rs) const;
H A Dfstream.cpp17 #include <sys/stat.h>
206 struct stat st;
208 stat (st);
219 /// Get the stat structure.
220 void fstream::stat (struct stat& rs) const function in class:ustl::fstream
226 throw file_exception ("stat", name());
/frameworks/base/media/libmedia/
H A DMediaScanner.cpp19 #include <sys/stat.h>
134 // If the type is unknown, stat() the file instead.
137 struct stat statbuf;
138 if (stat(path, &statbuf) == 0) {
145 LOGD("stat() failed for %s: %s", path, strerror(errno) );
172 struct stat statbuf;
173 stat(path, &statbuf);
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_file.c21 #include <sys/stat.h>
82 * Perform a stat() call on the given filename.
86 * @param sbuf stat buffer
90 getFileStat(const uint16_t *name, int32_t nameLen, struct stat *sbuf)
98 else if (stat(tmpPathBuf1, sbuf) != 0)
100 Trace("getFileStat %s: stat() errno=%d", tmpPathBuf1, errno);
134 struct stat stat_buf;
177 exists = stat(path, &stat_buf);
309 struct stat sinfo;
339 Trace("DRM_file_listNextEntry: stat FAILUR
[all...]
/frameworks/base/media/libstagefright/id3/
H A Dtestid3.cpp19 #include <sys/stat.h>
113 struct stat st;
114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
/frameworks/base/cmds/installd/
H A Dcommands.c243 struct stat s;
251 if (stat(pkgpath, &s) < 0) return -1;
266 static int stat_size(struct stat *s)
282 struct stat s;
322 struct stat s;
334 if (stat(apkpath, &s) == 0) {
341 if (stat(fwdlock_apkpath, &s) == 0) {
347 if (stat(path, &s) == 0) {
492 struct stat apk_stat, dex_stat;
512 if (stat(dex_pat
[all...]
H A Dinstalld.h22 #include <sys/stat.h>
/frameworks/base/libs/binder/
H A DMemoryHeapBase.cpp25 #include <sys/stat.h>
119 struct stat sb;
/frameworks/base/cmds/runtime/
H A DServiceManager.cpp23 #include <sys/stat.h>
H A Dmain_runtime.cpp34 #include <sys/stat.h>
246 struct stat s;
247 int res = stat(dir, &s);
/frameworks/base/cmds/dumpstate/
H A Ddumpstate.c24 #include <sys/stat.h>
87 struct stat st;
92 } else if (stat(anr_traces_path, &st)) {
/frameworks/base/tools/localize/
H A DXLIFFFile.cpp590 Stats stat; local
591 stat.config = config;
592 stat.files = m_files.size();
593 stat.toBeTranslated = 0;
594 stat.noComments = 0;
597 stat.toBeTranslated += file->transUnits.size();
602 stat.noComments++;
607 stat.totalStrings = stat.toBeTranslated;
609 return stat;
[all...]
/frameworks/base/tools/aapt/
H A DStringPool.h18 #include <sys/stat.h>
/frameworks/base/media/libmediaplayerservice/
H A DVorbisPlayer.cpp28 #include <sys/stat.h>
153 struct stat sb;
156 ret = stat(path, &sb);
/frameworks/base/cmds/rawbu/
H A Dbackup.cpp15 #include <sys/stat.h>
37 static struct stat statBuffer;
124 fprintf(stderr, "warning -- stat() error on '%s': %s\n",
230 static int write_header(FILE* fh, int type, const char* path, const struct stat* st)
304 fprintf(stderr, "stat() error on '%s': %s\n",
424 static int read_header(FILE* fh, int* type, char** path, struct stat* st)
/frameworks/base/libs/ui/
H A DKeyLayoutMap.cpp5 #include <sys/stat.h>

Completed in 1161 milliseconds

12