Lines Matching refs:Feature
29 static std::function<bool(Feature)> sFeatureEnabledCb;
31 void setFeatureEnabledCallback(std::function<bool(Feature)> cb) { in setFeatureEnabledCallback()
38 std::unordered_map<Feature, bool> enabled{
52 bool feature_is_enabled(Feature feature) { in feature_is_enabled()
55 static_cast<android::featurecontrol::Feature>(feature)); in feature_is_enabled()
60 void feature_set_enabled_override(Feature feature, bool isEnabled) { in feature_set_enabled_override()
64 void feature_reset_enabled_to_default(Feature feature) { in feature_reset_enabled_to_default()
69 void feature_set_if_not_overridden(Feature feature, bool enable) { in feature_set_if_not_overridden()
74 void feature_set_if_not_overridden_or_guest_disabled(Feature feature, bool enable) { in feature_set_if_not_overridden_or_guest_disabled()
83 const char* feature_name(Feature feature) { in feature_name()
84 static const std::unordered_map<Feature, std::string>* const sFeatureNames = [] { in feature_name()
85 return new std::unordered_map<Feature, std::string>({ in feature_name()
102 Feature feature_from_name(const char* name) { in feature_from_name()
107 static const std::unordered_map<std::string, Feature>* const sNameToFeature = [] { in feature_from_name()
108 return new std::unordered_map<std::string, Feature>({ in feature_from_name()