Home
last modified time | relevance | path

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

/system/libbase/
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.cpp248 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage() argument
250 cap.Stop(); in CheckMessage()
251 std::string output = cap.str(); in CheckMessage()
419 CapturedStderr cap; \ in TEST()
424 cap, (use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING, \ in TEST()
427 cap.Stop(); \ in TEST()
428 ASSERT_EQ("", cap.str()); \ in TEST()
442 CapturedStderr cap; in TEST() local
447 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
451 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_parser.cpp72 unsigned int cap = static_cast<unsigned int>(res); // |res| is >= 0. in ParseCapabilities() local
73 if (cap > last_valid_cap) { in ParseCapabilities()
76 (*service_->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/28.0/private/
Daccess_vectors84 common cap
404 inherits cap
560 inherits cap
/system/sepolicy/private/
Daccess_vectors92 common cap
381 inherits cap
546 inherits cap
Dproperty_contexts360 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact stri…
/system/sepolicy/prebuilts/api/27.0/private/
Daccess_vectors84 common cap
395 inherits cap
551 inherits cap
/system/sepolicy/reqd_mask/
Daccess_vectors92 common cap
381 inherits cap
546 inherits cap
/system/sepolicy/prebuilts/api/29.0/private/
Daccess_vectors84 common cap
400 inherits cap
566 inherits cap
/system/sepolicy/prebuilts/api/30.0/private/
Daccess_vectors92 common cap
380 inherits cap
545 inherits cap
/system/sepolicy/prebuilts/api/26.0/private/
Daccess_vectors82 common cap
391 inherits cap
547 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_contexts77 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact string
/system/sepolicy/prebuilts/api/30.0/public/
Dproperty_contexts81 persist.bluetooth.a2dp_offload.cap u:object_r:bluetooth_a2dp_offload_prop:s0 exact string