Home
last modified time | relevance | path

Searched refs:T (Results 1 – 6 of 6) sorted by relevance

/libnativehelper/platform_include/nativehelper/detail/
Dsignature_checker.h172 template<typename T, size_t kMaxSize>
218 T _value;
242 constexpr void push_back(const T& value) { in push_back()
253 constexpr const T& operator[](size_t i) const {
257 constexpr T& operator[](size_t i) {
300 template<typename T>
307 constexpr ConstexprOptional(const T& value) // NOLINT(google-explicit-constructor) in ConstexprOptional()
319 constexpr const T& value() const { in value()
324 constexpr const T* operator->() const {
328 constexpr const T& operator*() const {
[all …]
/libnativehelper/header_only_include/nativehelper/
Dscoped_local_ref.h26 template<typename T>
29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
42 void reset(T ptr = NULL) {
51 T release() __attribute__((warn_unused_result)) { in release()
52 T localRef = mLocalRef; in release()
57 T get() const { in get()
86 T mLocalRef;
Dscoped_primitive_array.h26 #define POINTER_TYPE(T) T* /* NOLINT */ argument
32 #define REFERENCE_TYPE(T) T& /* NOLINT */ argument
/libnativehelper/tests/
DJniSafeRegisterNativeMethods_test.cpp36 template <typename T> in DEFINE_JNI_TYPE_TRAIT()
37 std::string stringify_helper(const T& val) { in DEFINE_JNI_TYPE_TRAIT()
242 template <typename T>
243 operator T() const { // NOLINT in operator T()
244 return T{}; in operator T()
527 template <typename T>
530 return sizeof(T) == sizeof(int); in operator ()()
559 template <typename T, size_t kMaxSize>
560 constexpr size_t SumUpVector(const nativehelper::detail::ConstexprVector<T, kMaxSize>& vec) { in SumUpVector() argument
562 for (const T& elem : vec) { in SumUpVector()
[all …]
/libnativehelper/
DJNIHelp.cpp31 template<typename T>
34 explicit scoped_local_ref(C_JNIEnv* env, T localRef = NULL) in scoped_local_ref()
43 void reset(T localRef = NULL) { in reset()
50 T get() const { in get()
56 T mLocalRef;
DJniInvocation.cpp41 template <typename T>
42 void UNUSED(const T&) {} in UNUSED() argument