Home
last modified time | relevance | path

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

/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 …]
/cts/suite/cts/deviceTests/simplecpu/src/com/android/cts/simplecpu/
DSimpleCpuTest.java104 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doTestSort() local
105 if (stat.mDataCount != result.length) { in doTestSort()
106 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doTestSort()
108 getReportLog().printSummary("sorting time", stat.mAverage, ResultType.LOWER_BETTER, in doTestSort()
126 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doMatrixMultiplication() local
127 if (stat.mDataCount != result.length) { in doMatrixMultiplication()
128 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doMatrixMultiplication()
130 getReportLog().printSummary("matrix mutiplication time", stat.mAverage, in doMatrixMultiplication()
/cts/suite/cts/deviceTests/dram/src/com/android/cts/dram/
DBandwidthTest.java174 Stat.StatResult stat = Stat.getStatWithOutlierRejection(mbps, OUTLIER_THRESHOLD); in doRunMemcpy() local
175 if (stat.mDataCount != result.length) { in doRunMemcpy()
176 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doRunMemcpy()
184 double screensPerSecAverage = stat.mAverage / pixels * 1024.0 * 1024.0 / 4.0; in doRunMemcpy()
187 getReportLog().printSummary("memcpy throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doRunMemcpy()
207 Stat.StatResult stat = Stat.getStatWithOutlierRejection(mbps, OUTLIER_THRESHOLD); in doRunMemset() local
208 if (stat.mDataCount != result.length) { in doRunMemset()
209 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doRunMemset()
217 double screensPerSecAverage = stat.mAverage / pixels * 1024.0 * 1024.0 / 4.0; in doRunMemset()
220 getReportLog().printSummary("memset throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doRunMemset()
/cts/tests/tests/net/src/android/net/cts/
DMultinetworkSysctlTest.java51 StructStat stat = Os.stat(fileName); in checkSysctlPermissions() local
52 assertEquals("mode of " + fileName + ":", SYSCTL_MODE, stat.st_mode); in checkSysctlPermissions()
53 assertEquals("UID of " + fileName + ":", SYSCTL_UID, stat.st_uid); in checkSysctlPermissions()
54 assertEquals("GID of " + fileName + ":", SYSCTL_GID, stat.st_gid); in checkSysctlPermissions()
/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/sample/src/android/sample/cts/
DSampleDeviceResultTest.java113 Stat.StatResult stat = Stat.getStat(result); in runTest() local
117 log.printValue("Min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in runTest()
118 log.printValue("Max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in runTest()
120 log.printSummary("Average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in runTest()
/cts/tests/tests/security/jni/
Dandroid_security_cts_LinuxRngTest.cpp50 struct stat st; in android_security_cts_LinuxRngTest_getCharDeviceMajor()
51 if (stat(nameStr, &st) == -1) { in android_security_cts_LinuxRngTest_getCharDeviceMajor()
76 struct stat st; in android_security_cts_LinuxRngTest_getCharDeviceMinor()
77 if (stat(nameStr, &st) == -1) { in android_security_cts_LinuxRngTest_getCharDeviceMinor()
Dandroid_security_cts_MMapExecutableTest.cpp48 struct stat stat_buf; in mmap_executable()
/cts/suite/cts/hostTests/uihost/src/com/android/cts/uihost/
DInstallTimeTest.java95 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in testInstallTime() local
96 if (stat.mDataCount != result.length) { in testInstallTime()
97 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in testInstallTime()
99 report.printSummary("install time", stat.mAverage, ResultType.LOWER_BETTER, in testInstallTime()
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DSequentialRWTest.java72 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialWrite() local
73 getReportLog().printSummary("write throughput", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialWrite()
121 Stat.StatResult stat = Stat.getStat(mbps); in testSingleSequentialRead() local
122 getReportLog().printSummary("read throughput", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialRead()
DFileUtil.java310 Stat.StatResult stat = Stat.getStat(mbps); in doRandomReadTest() local
312 report.printSummary("read throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomReadTest()
363 Stat.StatResult stat = Stat.getStat(mbps); in doRandomWriteTest() local
365 report.printSummary("write throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomWriteTest()
404 Stat.StatResult stat = Stat.getStat(mbpsAll); in doSequentialUpdateTest() local
405 report.printSummary("update throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doSequentialUpdateTest()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostResultTest.java134 Stat.StatResult stat = Stat.getStat(result); in testTransferTime() local
139 report.printValue("Min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
140 report.printValue("Max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
142 report.printSummary("Average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
/cts/suite/cts/deviceTests/ui/src/com/android/cts/ui/
DScrollingTest.java71 Stat.StatResult stat = Stat.getStat(results); in testFullScrolling() local
72 getReportLog().printSummary("scrolling time", stat.mAverage, ResultType.LOWER_BETTER, in testFullScrolling()
/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/suite/cts/hostTests/uihost/control/src/com/android/cts/taskswitching/control/
DTaskswitchingDeviceTest.java88 Stat.StatResult stat = Stat.getStat(results); in testMeasureTaskSwitching() local
89 getReportLog().printSummary("taskswitching time", stat.mAverage, in testMeasureTaskSwitching()
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp45 struct stat s; in com_android_cts_verifier_os_FileUtils_getFileStatus()
47 int res = statLinks == true ? lstat(pathStr, &s) : stat(pathStr, &s); in com_android_cts_verifier_os_FileUtils_getFileStatus()
/cts/libs/deviceutil/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/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/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java383 final StructStat internal = Os.stat(Environment.getDataDirectory().getAbsolutePath()); in testDataInternal()
384 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataInternal()
392 final StructStat internal = Os.stat(Environment.getDataDirectory().getAbsolutePath()); in testDataNotInternal()
393 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataNotInternal()
/cts/tools/utils/
Dmonsoon.py42 import stat
/cts/apps/CtsVerifier/assets/scripts/power_monitors/
Dmonsoon.py24 import stat
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dgbemu.js10300 var stat = parentObj.modeSTAT;
10307 parentObj.modeSTAT = stat;
10322 parentObj.modeSTAT = stat;
10489 var stat = parentObj.modeSTAT;
10496 parentObj.modeSTAT = stat;
10511 parentObj.modeSTAT = stat;