Home
last modified time | relevance | path

Searched refs:minMask (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libstagefright/foundation/tests/
DFlagged_test.cpp152 kSafeMask = _Flagged_helper::minMask(kSafe), in TEST_F()
170 kOriginMask = _Flagged_helper::minMask(kBinder), in TEST_F()
190 kValidatedMask = _Flagged_helper::minMask(kValidated), in TEST_F()
281 static_assert(helper::minMask(0U) == 0U, "lowest 0 bits"); in TEST_F()
282 static_assert(helper::minMask(1U) == 1U, "lowest 1 bit"); in TEST_F()
283 static_assert(helper::minMask(2U) == 3U, "lowest 2 bits"); in TEST_F()
284 static_assert(helper::minMask(3U) == 3U, "lowest 2 bits"); in TEST_F()
285 static_assert(helper::minMask(4U) == 7U, "lowest 3 bits"); in TEST_F()
286 static_assert(helper::minMask(~0U) == ~0U, "all bits"); in TEST_F()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceUtils.cpp182 T minMask = min(); in contains() local
183 if (~value & minMask) { in contains()
186 value &= ~minMask; in contains()
214 T minMask = min() | limit.min(); in limitedTo() local
216 if (limit.contains(minMask) && contains(minMask)) { in limitedTo()
217 values[0] = minMask; in limitedTo()
219 …std::remove_if(values.begin(), values.end(), [&limit, minMask](const C2Value::Primitive &v) -> boo… in limitedTo()
220 T value = v.ref<ValueType>() | minMask; in limitedTo()
221 return value == minMask || !limit.contains(value); }); in limitedTo()
224 T value = v.ref<ValueType>() | minMask; in limitedTo()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DFlagged.h132 static constexpr Flag minMask(Flag maxValue, int shift=sizeof(Flag) * 4) {
135 return shift ? minMask<Flag>(Flag(maxValue | (maxValue >> shift)), shift >> 1) : maxValue;
DAData.h583 static constexpr Flag mask = _Flagged_helper::minMask<Flag>(count); ///< flag mask
664 _Flagged_helper::minMask<Flag>(count * max_size_stored); ///< flag mask