Home
last modified time | relevance | path

Searched refs:last_valid_cap (Results 1 – 2 of 2) sorted by relevance

/system/core/init/
Dcapabilities.cpp81 unsigned int last_valid_cap = CAP_WAKE_ALARM; in ComputeLastValidCap() local
82 for (; prctl(PR_CAPBSET_READ, last_valid_cap, 0, 0, 0) >= 0; ++last_valid_cap); in ComputeLastValidCap()
85 return last_valid_cap - 1; in ComputeLastValidCap()
89 unsigned int last_valid_cap = GetLastValidCap(); in DropBoundingSet() local
96 for (size_t cap = 0; cap <= last_valid_cap; ++cap) { in DropBoundingSet()
168 static unsigned int last_valid_cap = ComputeLastValidCap(); in GetLastValidCap() local
169 return last_valid_cap; in GetLastValidCap()
Dservice.cpp363 unsigned int last_valid_cap = GetLastValidCap(); in ParseCapabilities() local
364 if (last_valid_cap >= capabilities_.size()) { in ParseCapabilities()
376 if (cap > last_valid_cap) { in ParseCapabilities()