Home
last modified time | relevance | path

Searched refs:isAllow (Results 1 - 2 of 2) sorted by relevance

/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dinput_method_ext_seccomp_test.cpp91 static int CheckStatus(int status, bool isAllow) in CheckStatus() argument
100 return isAllow ? -1 : 0; in CheckStatus()
104 return isAllow ? 0 : -1; in CheckStatus()
110 static int CheckSyscall(SeccompFilterType type, const char *filterName, SyscallFunc func, bool isAllow) in CheckSyscall() argument
156 return CheckStatus(status, isAllow); in CheckSyscall()
/base/startup/init/test/unittest/seccomp/
H A Dseccomp_unittest.cpp90 static int CheckStatus(int status, bool isAllow) in CheckStatus() argument
99 return isAllow ? -1 : 0; in CheckStatus()
103 return isAllow ? 0 : -1; in CheckStatus()
109 static int CheckSyscall(SeccompFilterType type, const char *filterName, SyscallFunc func, bool isAllow) in CheckSyscall() argument
159 return CheckStatus(status, isAllow); in CheckSyscall()

Completed in 3 milliseconds