Searched refs:From (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/java/android/animation/
H A DBidirectionalTypeConverter.java55 private static class InvertedConverter<From, To> extends BidirectionalTypeConverter<From, To> {
56 private BidirectionalTypeConverter<To, From> mConverter;
58 public InvertedConverter(BidirectionalTypeConverter<To, From> converter) {
64 public From convertBack(To value) {
69 public To convert(From value) {
/frameworks/av/media/libstagefright/codec2/tests/
H A DC2Param_test.cpp963 EXPECT_EQ(C2NumberTuning::From(nullptr), nullptr);
964 EXPECT_EQ(C2NumberTuning::From(&tun), &tun);
965 EXPECT_EQ(C2NumberPortTuning::From(&tun), nullptr);
966 EXPECT_EQ(C2NumberPortTuning::input::From(&tun), nullptr);
967 EXPECT_EQ(C2NumberPortTuning::output::From(&tun), nullptr);
968 EXPECT_EQ(C2NumberStreamTuning::From(&tun), nullptr);
969 EXPECT_EQ(C2NumberStreamTuning::input::From(&tun), nullptr);
970 EXPECT_EQ(C2NumberStreamTuning::output::From(&tun), nullptr);
1143 EXPECT_EQ(C2NumberPortTuning::From(nullptr), nullptr);
1144 EXPECT_EQ(C2NumberPortTuning::input::From(nullpt
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dvariant.h63 // From.
66 template <typename From, typename To>
67 struct ConstructibleCount<From, To>
69 std::is_constructible<To, From>::value> {};
70 template <typename From, typename First, typename... Rest>
71 struct ConstructibleCount<From, First, Rest...>
73 std::is_constructible<First, From>::value +
74 ConstructibleCount<From, Rest...>::value> {};
/frameworks/av/media/libstagefright/codec2/include/
H A DC2ParamDef.h221 /// Define From() cast operators for params.
223 inline static _type* From(C2Param *other) { \
228 inline static const _type* From(const C2Param *other) { \
229 return const_cast<const _type*>(From(const_cast<C2Param *>(other))); \
231 inline static _type* From(std::nullptr_t) { return nullptr; } \
H A DC2Param.h352 inline static C2Param* From(void *addr, size_t len) { function
367 P *As() { return P::From(this); }
369 const P *As() const { return const_cast<const P*>(P::From(const_cast<C2Param*>(this))); }

Completed in 599 milliseconds