Home
last modified time | relevance | path

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

/libnativehelper/include/nativehelper/
DUniquePtr.h24 template <typename T>
26 enum { type_must_be_complete = sizeof(T) };
28 void operator()(T* p) const { in operator()
34 template <typename T>
35 struct DefaultDelete<T[]> {
36 enum { type_must_be_complete = sizeof(T) };
37 void operator()(T* p) const {
50 template <typename T, typename D = DefaultDelete<T> >
54 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
62 T& operator*() const { return *mPtr; }
[all …]
DScopedLocalRef.h26 template<typename T>
29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
36 void reset(T ptr = NULL) {
45 T release() __attribute__((warn_unused_result)) { in release()
46 T localRef = mLocalRef; in release()
51 T get() const { in get()
57 T mLocalRef;
/libnativehelper/
DJNIHelp.cpp38 template<typename T>
41 scoped_local_ref(C_JNIEnv* env, T localRef = NULL) in scoped_local_ref()
50 void reset(T localRef = NULL) { in reset()
57 T get() const { in get()
63 T mLocalRef;
DJniInvocation.cpp58 template<typename T> void UNUSED(const T&) {} in UNUSED() argument