Home
last modified time | relevance | path

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

/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 = nullptr) {
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.h28 #define POINTER_TYPE(T) T* /* NOLINT */ argument
34 #define REFERENCE_TYPE(T) T& /* NOLINT */ argument
/libnativehelper/include_platform_header_only/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/tests/
DJniSafeRegisterNativeMethods_test.cpp35 template <typename T> in DEFINE_JNI_TYPE_TRAIT()
36 std::string stringify_helper(const T& val) { in DEFINE_JNI_TYPE_TRAIT()
241 template <typename T>
242 operator T() const { // NOLINT in operator T()
243 return T{}; in operator T()
526 template <typename T>
529 return sizeof(T) == sizeof(int); in operator ()()
558 template <typename T, size_t kMaxSize>
559 constexpr size_t SumUpVector(const nativehelper::detail::ConstexprVector<T, kMaxSize>& vec) { in SumUpVector() argument
561 for (const T& elem : vec) { in SumUpVector()
[all …]