Home
last modified time | relevance | path

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

12

/cts/tests/tests/os/src/android/os/cts/
DStatFsTest.java30 StatFs stat = new StatFs(path.getPath()); in testStatFs() local
32 assertTrue(stat.getBlockSize() > 0); in testStatFs()
33 assertTrue(stat.getBlockCount() > 0); in testStatFs()
34 assertTrue(stat.getFreeBlocks() >= stat.getAvailableBlocks()); in testStatFs()
35 assertTrue(stat.getAvailableBlocks() > 0); in testStatFs()
37 assertTrue(stat.getBlockSizeLong() > 0); in testStatFs()
38 assertTrue(stat.getBlockCountLong() > 0); in testStatFs()
39 assertTrue(stat.getFreeBlocksLong() >= stat.getAvailableBlocksLong()); in testStatFs()
40 assertTrue(stat.getAvailableBlocksLong() > 0); in testStatFs()
42 assertTrue(stat.getFreeBytes() > 0); in testStatFs()
[all …]
DEnvironmentTest.java120 final StructStatVfs stat = Os.statvfs(file.getAbsolutePath()); in testSaneInodes() local
126 final long maxsize = stat.f_blocks * stat.f_frsize; in testSaneInodes()
137 if (stat.f_ffree >= minInodes && stat.f_ffree <= maxInodes in testSaneInodes()
138 && stat.f_favail <= stat.f_ffree) { in testSaneInodes()
141 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.java102 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialWrite() local
103 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialWrite()
105 Log.v(TAG, "sequential write " + stat.mAverage + " MBPS"); in testSingleSequentialWrite()
111 r8_2__H_1_1.setFilesystemIoRate(stat.mAverage); in testSingleSequentialWrite()
112 r8_2__H_2_1.setFilesystemIoRate(stat.mAverage); in testSingleSequentialWrite()
167 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialRead() local
168 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialRead()
170 Log.v(TAG, "sequential read " + stat.mAverage + " MBPS"); in testSingleSequentialRead()
176 r8_2__H_1_3.setFilesystemIoRate(stat.mAverage); in testSingleSequentialRead()
177 r8_2__H_2_3.setFilesystemIoRate(stat.mAverage); 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/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/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/tests/sample/src/android/sample/cts/
DSampleDeviceResultTest.java85 Stat.StatResult stat = Stat.getStat(result); in testSort() local
91 reportLog.addValue("min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
92 reportLog.addValue("max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
94 reportLog.setSummary("average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
/cts/hostsidetests/ui/src/android/ui/cts/
DInstallTimeTest.java114 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in testInstallTime() local
115 if (stat.mDataCount != result.length) { in testInstallTime()
116 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in testInstallTime()
120 .setMeasurements(Measurements.newBuilder().setSingleDouble(stat.mAverage)) in testInstallTime()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0426/
Dpoc.c33 struct stat buf; in main()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderConformanceTest.java211 Status stat = Status.PASS; in testDecoderConformance() local
213 stat = decodeTestVector(mMediaType, mDecoderName, mTestVector); in testDecoderConformance()
223 mReportLog.addValue("pass", stat != Status.FAIL, ResultType.NEUTRAL, ResultUnit.NONE); in testDecoderConformance()
227 assumeTrue(mDecoderName + " failed for " + mTestVector, stat != Status.FAIL); in testDecoderConformance()
228 assumeTrue(mDecoderName + " skipped for " + mTestVector, stat != Status.SKIP); in testDecoderConformance()
/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/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java155 StructStatVfs stat; in writeToDisk() local
156 stat = Os.statvfs(dir.getAbsolutePath()); in writeToDisk()
159 long limit = (long) (stat.f_bfree * stat.f_frsize * ((double) 2 / 3)); in writeToDisk()
/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-0477/
Dpoc.c52 struct stat st; 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/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/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/
DRateDistortionCurvePair.java22 import org.apache.commons.math3.stat.descriptive.moment.Mean;
/cts/apps/CameraITS/tests/scene9/
Dtest_jpeg_high_entropy.py61 jpeg_file_size = os.stat(jpeg_file_with_log_path).st_size
/cts/hostsidetests/incrementalinstall/appvalidator/src/android/incrementalinstall/inrementaltestappvalidation/
DAppValidationTest.java99 Os.stat(Paths.get(installedAppInfo.installationPath).getParent().toString()); in testInstallationTypeAndVersion()

12