/cts/tests/tests/os/src/android/os/cts/ |
D | StatFsTest.java | 27 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 …]
|
D | EnvironmentTest.java | 103 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/ |
D | SimpleCpuTest.java | 106 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/ |
D | ReadMultiViewTest.java | 54 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/ |
D | WriteMultiViewTest.java | 50 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()
|
D | WriteExternalStorageTest.java | 332 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/ |
D | NoReadLogsPermissionTest.java | 96 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/ |
D | android_security_cts_LinuxRngTest.cpp | 51 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()
|
D | android_security_cts_MMapExecutableTest.cpp | 48 struct stat stat_buf; in mmap_executable()
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceResultTest.java | 82 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/ |
D | InstallTimeTest.java | 109 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/ |
D | SampleHostResultTest.java | 138 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/ |
D | SequentialRWTest.java | 81 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()
|
D | FileUtil.java | 311 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/ |
D | Hoarder.java | 68 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/ |
D | Util.java | 4 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/ |
D | TaskSwitchingDeviceTest.java | 70 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/ |
D | DecoderConformanceTest.java | 177 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/ |
D | poc.c | 33 struct stat buf; in main()
|
/cts/common/device-side/util/jni/ |
D | android_cts_FileUtils.cpp | 53 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/ |
D | poc.c | 52 struct stat st; in main()
|
/cts/tests/tests/permission/jni/ |
D | android_permission_cts_FileUtils.cpp | 57 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/ |
D | isolated-x86-64.policy | 40 stat: return EPERM
|
D | isolated-arm.policy | 73 stat: return EPERM
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 447 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()
|