Home
last modified time | relevance | path

Searched refs:CAP_TO_INDEX (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/
DOsConstantsTest.java20 import static android.system.OsConstants.CAP_TO_INDEX;
122 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_CHOWN)); in test_CAP_TO_INDEX()
123 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_DAC_OVERRIDE)); in test_CAP_TO_INDEX()
124 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_DAC_READ_SEARCH)); in test_CAP_TO_INDEX()
125 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_FOWNER)); in test_CAP_TO_INDEX()
126 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_FSETID)); in test_CAP_TO_INDEX()
127 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_KILL)); in test_CAP_TO_INDEX()
128 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_SETGID)); in test_CAP_TO_INDEX()
129 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_SETUID)); in test_CAP_TO_INDEX()
130 assertEquals(0, CAP_TO_INDEX(OsConstants.CAP_SETPCAP)); in test_CAP_TO_INDEX()
[all …]
/frameworks/native/services/vr/performanced/
Dmain.cpp20 constexpr int kMaxCapNumber = (CAP_TO_INDEX(CAP_LAST_CAP) + 1);
53 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SYS_NICE); in main()
54 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].permitted |= CAP_TO_MASK(CAP_SYS_NICE); in main()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp110 const uint32_t cap_syslog_index = CAP_TO_INDEX(CAP_SYSLOG); in DropRootUser()
121 const uint32_t cap_block_suspend_index = CAP_TO_INDEX(CAP_BLOCK_SUSPEND); in DropRootUser()
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java215 int dataIndex = OsConstants.CAP_TO_INDEX(i); in preserveCapabilities()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/android/system/
DOsConstants.java45 public static int CAP_TO_INDEX(int x) { return x >>> 5; } in CAP_TO_INDEX() method in OsConstants