Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 39) 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.java103 final StructStatVfs stat = Os.statvfs(file.getAbsolutePath()); in testSaneInodes() local
109 final long maxsize = stat.f_blocks * stat.f_frsize; in testSaneInodes()
120 if (stat.f_ffree >= minInodes && stat.f_ffree <= maxInodes in testSaneInodes()
121 && stat.f_favail <= stat.f_ffree) { in testSaneInodes()
124 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/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadMultiViewTest.java54 assertEquals(Os.getuid(), Os.stat(ourCache.getAbsolutePath()).st_uid); in testRWAccess()
55 assertEquals(Os.getuid(), Os.stat(ourTestDir.getAbsolutePath()).st_uid); in testRWAccess()
56 assertEquals(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testRWAccess()
70 assertNotEqual(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testROAccess()
71 assertNotEqual(Os.getuid(), Os.stat(otherCache.getAbsolutePath()).st_uid); in testROAccess()
72 assertNotEqual(Os.getuid(), Os.stat(otherTestDir.getAbsolutePath()).st_uid); in testROAccess()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteMultiViewTest.java50 assertEquals(Os.getuid(), Os.stat(ourCache.getAbsolutePath()).st_uid); in testMoveAway()
51 assertEquals(Os.getuid(), Os.stat(ourTestDir.getAbsolutePath()).st_uid); in testMoveAway()
52 assertEquals(Os.getuid(), Os.stat(afterFile.getAbsolutePath()).st_uid); in testMoveAway()
72 assertNotEqual(Os.getuid(), Os.stat(otherCache.getAbsolutePath()).st_uid); in testMoveBack()
73 assertNotEqual(Os.getuid(), Os.stat(otherTestDir.getAbsolutePath()).st_uid); in testMoveBack()
74 assertNotEqual(Os.getuid(), Os.stat(afterFile.getAbsolutePath()).st_uid); in testMoveBack()
DWriteExternalStorageTest.java332 assertEquals(Os.getuid(), Os.stat(before.getAbsolutePath()).st_uid); in testMovePackageSpecificPaths()
333 assertEquals(Os.getuid(), Os.stat(beforeFile.getAbsolutePath()).st_uid); in testMovePackageSpecificPaths()
347 assertNotEqual(Os.getuid(), Os.stat(after.getAbsolutePath()).st_uid); in testMovePackageSpecificPaths()
348 assertNotEqual(Os.getuid(), Os.stat(afterFile.getAbsolutePath()).st_uid); in testMovePackageSpecificPaths()
/cts/tests/tests/permission/src/android/permission/cts/
DNoReadLogsPermissionTest.java96 StructStat stat = Os.stat(log); in testLogIsSane() local
97 assertEquals("not owned by uid=0", 0, stat.st_uid); in testLogIsSane()
98 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/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/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java81 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialWrite() local
82 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialWrite()
135 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialRead() local
136 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialRead()
DFileUtil.java311 Stat.StatResult stat = Stat.getStat(mbps); in doRandomReadTest() local
313 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomReadTest()
362 Stat.StatResult stat = Stat.getStat(mbps); in doRandomWriteTest() local
364 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomWriteTest()
409 Stat.StatResult stat = Stat.getStat(mbpsAll); in doSequentialUpdateTest() local
412 report.addValue("update_throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doSequentialUpdateTest()
/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()
/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/tests/tests/media/src/android/media/cts/
DDecoderConformanceTest.java177 Status stat = decodeTestVector(mime, decoderName, vectorName); in decodeTestVectors() local
178 if (stat == Status.PASS) { in decodeTestVectors()
180 } else if (stat == Status.SKIP) { in decodeTestVectors()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0426/
Dpoc.c33 struct stat buf; in main()
/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/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()
/cts/tests/tests/os/assets/minijail/
Disolated-x86-64.policy40 stat: return EPERM
Disolated-arm.policy73 stat: return EPERM
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java447 final StructStat internal = Os.stat(Environment.getDataDirectory().getAbsolutePath()); in testDataInternal()
448 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataInternal()
456 final StructStat internal = Os.stat(Environment.getDataDirectory().getAbsolutePath()); in testDataNotInternal()
457 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataNotInternal()

12