/cts/tests/tests/os/src/android/os/cts/ |
D | StatFsTest.java | 30 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 …]
|
D | EnvironmentTest.java | 120 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/ |
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/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 102 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()
|
D | FileUtil.java | 312 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/ |
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/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadMultiViewTest.java | 49 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/ |
D | SampleDeviceResultTest.java | 85 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/ |
D | InstallTimeTest.java | 114 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/ |
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()
|
D | UtilsReceiver.java | 90 allocated += Os.stat(f.getAbsolutePath()).st_blocks * 512; in doAllocation()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0426/ |
D | poc.c | 33 struct stat buf; in main()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecoderConformanceTest.java | 211 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/ |
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/tests/tests/car/src/android/car/cts/ |
D | CarWatchdogDaemonTest.java | 155 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/ |
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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0477/ |
D | poc.c | 52 struct stat st; 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/tests/tests/os/assets/minijail/ |
D | isolated-x86-64.policy | 40 stat: return EPERM
|
D | isolated-arm.policy | 73 stat: return EPERM
|
D | isolated-i386.policy | 79 stat: return EPERM
|
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/ |
D | RateDistortionCurvePair.java | 22 import org.apache.commons.math3.stat.descriptive.moment.Mean;
|
/cts/apps/CameraITS/tests/scene9/ |
D | test_jpeg_high_entropy.py | 61 jpeg_file_size = os.stat(jpeg_file_with_log_path).st_size
|
/cts/hostsidetests/incrementalinstall/appvalidator/src/android/incrementalinstall/inrementaltestappvalidation/ |
D | AppValidationTest.java | 99 Os.stat(Paths.get(installedAppInfo.installationPath).getParent().toString()); in testInstallationTypeAndVersion()
|