Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 14 of 14) sorted by relevance

/system/core/base/
Dtest_utils_test.cpp48 CapturedStdout cap; in TEST() local
50 cap.Stop(); in TEST()
52 ASSERT_EQ("This should be captured.\n", cap.str()); in TEST()
54 cap.Start(); in TEST()
56 cap.Stop(); in TEST()
57 ASSERT_EQ("This should be captured.\nAnd this text should be captured too.\n", cap.str()); in TEST()
60 cap.Reset(); in TEST()
61 cap.Start(); in TEST()
63 ASSERT_EQ("Only this will be captured.\n", cap.str()); in TEST()
67 CapturedStderr cap; in TEST() local
[all …]
Dlogging_test.cpp232 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage() argument
234 cap.Stop(); in CheckMessage()
235 std::string output = cap.str(); in CheckMessage()
411 CapturedStderr cap; \ in TEST()
416 cap, (use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING, \ in TEST()
419 cap.Stop(); \ in TEST()
420 ASSERT_EQ("", cap.str()); \ in TEST()
434 CapturedStderr cap; in TEST() local
439 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
443 CapturedStderr cap; in TEST() local
[all …]
/system/core/init/
Dcapabilities.cpp25 #define CAP_MAP_ENTRY(cap) { #cap, CAP_##cap } argument
103 for (size_t cap = 0; cap <= last_valid_cap; ++cap) { in DropBoundingSet() local
104 if (cap < to_keep.size() && to_keep.test(cap)) { in DropBoundingSet()
108 if (cap_drop_bound(cap) == -1) { in DropBoundingSet()
109 PLOG(ERROR) << "cap_drop_bound(" << cap << ") failed"; in DropBoundingSet()
121 for (size_t cap = 0; cap < to_keep.size(); ++cap) { in SetProcCaps() local
122 if (to_keep.test(cap)) { in SetProcCaps()
123 value[0] = cap; in SetProcCaps()
126 PLOG(ERROR) << "cap_set_flag(INHERITABLE|PERMITTED, " << cap << ") failed"; in SetProcCaps()
150 for (size_t cap = 0; cap < to_raise.size(); ++cap) { in SetAmbientCaps() local
[all …]
Dservice.cpp436 unsigned int cap = static_cast<unsigned int>(res); // |res| is >= 0. in ParseCapabilities() local
437 if (cap > last_valid_cap) { in ParseCapabilities()
441 (*capabilities_)[cap] = true; in ParseCapabilities()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h100 inline std::string CapabilityText(const Capability& cap) { in CapabilityText() argument
101 switch (cap) { in CapabilityText()
105 return "Unknown Capability: " + loghex((uint8_t)cap); in CapabilityText()
109 inline std::ostream& operator<<(std::ostream& os, const Capability& cap) {
110 return os << CapabilityText(cap);
/system/sepolicy/prebuilts/api/29.0/private/
Daccess_vectors84 common cap
400 inherits cap
566 inherits cap
/system/sepolicy/prebuilts/api/26.0/private/
Daccess_vectors82 common cap
391 inherits cap
547 inherits cap
/system/sepolicy/prebuilts/api/27.0/private/
Daccess_vectors84 common cap
395 inherits cap
551 inherits cap
/system/sepolicy/reqd_mask/
Daccess_vectors84 common cap
400 inherits cap
566 inherits cap
/system/sepolicy/prebuilts/api/28.0/private/
Daccess_vectors84 common cap
404 inherits cap
560 inherits cap
/system/sepolicy/private/
Daccess_vectors84 common cap
400 inherits cap
566 inherits cap
/system/sepolicy/prebuilts/api/28.0/public/
Dproperty_contexts68 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact string
/system/sepolicy/prebuilts/api/29.0/public/
Dproperty_contexts74 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact string
/system/sepolicy/public/
Dproperty_contexts74 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact string