Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/tests/os/src/android/os/cts/
DStatFsTest.java27 StatFs stat = new StatFs(path.getPath()); in testStatFs() local
29 assertTrue(stat.getBlockSize() > 0); in testStatFs()
30 assertTrue(stat.getBlockCount() > 0); in testStatFs()
31 assertTrue(stat.getFreeBlocks() >= stat.getAvailableBlocks()); in testStatFs()
32 assertTrue(stat.getAvailableBlocks() > 0); in testStatFs()
34 assertTrue(stat.getBlockSizeLong() > 0); in testStatFs()
35 assertTrue(stat.getBlockCountLong() > 0); in testStatFs()
36 assertTrue(stat.getFreeBlocksLong() >= stat.getAvailableBlocksLong()); in testStatFs()
37 assertTrue(stat.getAvailableBlocksLong() > 0); in testStatFs()
39 assertTrue(stat.getFreeBytes() > 0); in testStatFs()
[all …]
DEnvironmentTest.java106 final StructStatVfs stat = Os.statvfs(file.getAbsolutePath()); in testSaneInodes() local
112 final long maxsize = stat.f_blocks * stat.f_frsize; in testSaneInodes()
123 if (stat.f_ffree >= minInodes && stat.f_ffree <= maxInodes in testSaneInodes()
124 && stat.f_favail <= stat.f_ffree) { in testSaneInodes()
127 fail("Number of inodes " + stat.f_ffree + "/" + stat.f_favail in testSaneInodes()
/cts/tests/simplecpu/src/android/simplecpu/cts/
DSimpleCpuTest.java106 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doTestSort() local
107 if (stat.mDataCount != result.length) { in doTestSort()
108 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doTestSort()
110 … report.setSummary("sorting_time_average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in doTestSort()
131 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doMatrixMultiplication() local
132 if (stat.mDataCount != result.length) { in doMatrixMultiplication()
133 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doMatrixMultiplication()
135 report.setSummary("matrix_mutiplication_time_average", stat.mAverage, in doMatrixMultiplication()
/cts/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java100 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialWrite() local
101 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialWrite()
103 Log.v(TAG, "sequential write " + stat.mAverage + " MBPS"); in testSingleSequentialWrite()
107 assertTrue("measured " + stat.mAverage + " is less than target (" + MIN_WRITE_MBPS + in testSingleSequentialWrite()
108 " MBPS)", stat.mAverage >= MIN_WRITE_MBPS); in testSingleSequentialWrite()
160 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialRead() local
161 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialRead()
163 Log.v(TAG, "sequential read " + stat.mAverage + " MBPS"); in testSingleSequentialRead()
167 assertTrue("measured " + stat.mAverage + " is less than target (" + MIN_READ_MBPS + in testSingleSequentialRead()
168 " MBPS)", stat.mAverage >= MIN_READ_MBPS); in testSingleSequentialRead()
DFileUtil.java312 Stat.StatResult stat = Stat.getStat(mbps); in doRandomReadTest() local
314 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomReadTest()
316 Log.v(TAG, "random read " + stat.mAverage + " MBPS"); in doRandomReadTest()
317 return stat.mAverage; in doRandomReadTest()
366 Stat.StatResult stat = Stat.getStat(mbps); in doRandomWriteTest() local
368 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomWriteTest()
370 Log.v(TAG, "random write " + stat.mAverage + " MBPS"); in doRandomWriteTest()
371 return stat.mAverage; in doRandomWriteTest()
415 Stat.StatResult stat = Stat.getStat(mbpsAll); in doSequentialUpdateTest() local
418 report.addValue("update_throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doSequentialUpdateTest()
/cts/tests/tests/permission/src/android/permission/cts/
DNoReadLogsPermissionTest.java94 StructStat stat = Os.stat(log); in testLogIsSane() local
95 assertEquals("not owned by uid=0", 0, stat.st_uid); in testLogIsSane()
96 assertEquals("not owned by gid=logs", "log", FileUtils.getGroupName(stat.st_gid)); in testLogIsSane()
/cts/tests/tests/security/jni/
Dandroid_security_cts_LinuxRngTest.cpp51 struct stat st; in android_security_cts_LinuxRngTest_getCharDeviceMajor()
52 if (stat(nameStr, &st) == -1) { in android_security_cts_LinuxRngTest_getCharDeviceMajor()
77 struct stat st; in android_security_cts_LinuxRngTest_getCharDeviceMinor()
78 if (stat(nameStr, &st) == -1) { in android_security_cts_LinuxRngTest_getCharDeviceMinor()
Dandroid_security_cts_MMapExecutableTest.cpp48 struct stat stat_buf; in mmap_executable()
/cts/tests/sample/src/android/sample/cts/
DSampleDeviceResultTest.java82 Stat.StatResult stat = Stat.getStat(result); in testSort() local
88 reportLog.addValue("min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
89 reportLog.addValue("max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
91 reportLog.setSummary("average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadMultiViewTest.java49 assertEquals(Os.getuid(), Os.stat(ourCache.getAbsolutePath()).st_uid); in testRWAccess()
50 assertEquals(Os.getuid(), Os.stat(ourTestDir.getAbsolutePath()).st_uid); in testRWAccess()
51 assertEquals(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testRWAccess()
/cts/hostsidetests/ui/src/android/ui/cts/
DInstallTimeTest.java109 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in testInstallTime() local
110 if (stat.mDataCount != result.length) { in testInstallTime()
111 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in testInstallTime()
113 report.setSummary("install_time_average", stat.mAverage, ResultType.LOWER_BETTER, in testInstallTime()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostResultTest.java138 Stat.StatResult stat = Stat.getStat(result); in testTransferTime() local
146 report.addValue("min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
147 report.addValue("max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
149 report.setSummary("average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DHoarder.java68 final StructStatVfs stat = Os.statvfs(dir.getAbsolutePath()); in doBlocks() local
69 size = (stat.f_bfree * stat.f_frsize) / 2; in doBlocks()
DUtilsReceiver.java90 allocated += Os.stat(f.getAbsolutePath()).st_blocks * 512; in doAllocation()
/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java129 StructStatVfs stat; in writeToDisk() local
130 stat = Os.statvfs(dir.getAbsolutePath()); in writeToDisk()
133 long limit = (long) (stat.f_bfree * stat.f_frsize * ((double) 2 / 3)); in writeToDisk()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUtil.java4 import org.apache.commons.math.stat.descriptive.moment.Mean;
5 import org.apache.commons.math.stat.descriptive.moment.StandardDeviation;
6 import org.apache.commons.math.stat.descriptive.rank.Median;
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/
DTaskSwitchingDeviceTest.java70 Stat.StatResult stat = Stat.getStat(results); in testMeasureTaskSwitching() local
71 report.setSummary("task_switching_time_average", stat.mAverage, ResultType.LOWER_BETTER, in testMeasureTaskSwitching()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0426/
Dpoc.c33 struct stat buf; in main()
/cts/tests/tests/media/src/android/media/cts/
DDecoderConformanceTest.java190 Status stat = decodeTestVector(mime, decoderName, vectorName); in decodeTestVectors() local
191 if (stat == Status.PASS) { in decodeTestVectors()
193 } else if (stat == Status.SKIP) { in decodeTestVectors()
/cts/common/device-side/util/jni/
Dandroid_cts_FileUtils.cpp53 struct stat s; in android_cts_FileUtils_getFileStatus()
55 int res = statLinks == true ? lstat(pathStr, &s) : stat(pathStr, &s); in android_cts_FileUtils_getFileStatus()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0477/
Dpoc.c52 struct stat st; in main()
/cts/tests/tests/os/assets/minijail/
Disolated-x86-64.policy40 stat: return EPERM
Disolated-arm.policy73 stat: return EPERM
Disolated-i386.policy79 stat: return EPERM
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp57 struct stat s; in android_permission_cts_FileUtils_getFileStatus()
60 : stat(cPath.c_str(), &s); in android_permission_cts_FileUtils_getFileStatus()

12