Lines Matching refs:element
37 * Collection of policy element as a map indexed with a their UID type.
39 * @tparam Key type of the policy element indexing the collection.
61 * Add a policy element to the collection. Policy elements are streams, strategies, input
63 * It also set the key as the unique identifier of the policy element.
65 * @tparam Key indexing the collection of policy element.
66 * @param[in] name of the policy element to find.
67 * @param[in] key to be used to index this new policy element.
69 * @return NO_ERROR if the policy element has been successfully added to the collection.
74 ALOGW("%s: element %s already added", __FUNCTION__, name.c_str());
78 ALOGD("%s: adding element %s to collection", __FUNCTION__, name.c_str());
83 * Get a policy element from the collection by its key. Policy elements are streams, strategies,
86 * @tparam Key indexing the collection of policy element.
87 * @param[in] key of the policy element to find.
89 * @return valid pointer on policy element if found, NULL otherwise.
98 * Find a policy element from the collection by its name. Policy elements are streams,
102 * @tparam Key indexing the collection of policy element.
103 * @param[in] name of the policy element to find.
106 * @return valid pointer on element if found, NULL otherwise.
113 T *element = it->second;
114 if (element->getName() == name) {
115 return element;