Home
last modified time | relevance | path

Searched refs:canCombine (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/foundation/tests/
DFlagged_test.cpp451 static_assert(helper::canCombine(0u, 0u, 0u, 0, 0, 0u), "using no mask is valid"); in TEST_F()
452 static_assert(helper::canCombine(0u, 0u, 0u, 0, 0, 0u), ""); in TEST_F()
453 static_assert(helper::canCombine(0u, 0u, 0u, 4, 0, 0u), ""); in TEST_F()
454 static_assert(!helper::canCombine(0u, 0u, 1u, 0, 0, 0u), in TEST_F()
456 static_assert(helper::canCombine(1u, 0u, 0u, 0, 0, 0u), ""); in TEST_F()
457 static_assert(helper::canCombine(1u, 0u, 0u, 4, 0, 0u), ""); in TEST_F()
458 static_assert(helper::canCombine(3u, 5u, 1u, 0, 0, 5u), ""); in TEST_F()
459 static_assert(!helper::canCombine(3u, 3u, 3u, 1, 0, 3u), "shift must match when sharing mask"); in TEST_F()
460 static_assert(helper::canCombine(3u, 3u, 3u, 1, 1, 6u), ""); in TEST_F()
461 static_assert(!helper::canCombine(3u, 3u, 3u, 1, 2, 12u), "shift must match when sharing mask"); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DFlagged.h168 static constexpr bool canCombine( in canCombine() function
214 (canCombine(mask, baseMask, sharedMask, baseShift /* shift */, in getShift()
311 && canCombine(MASK, mask_of<T, Flag>::value, SHARED_MASK, SHIFT,