Home
last modified time | relevance | path

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

12

/development/vndk/tools/header-checker/tests/input/
Dexample1.h29 template<typename T>
32 T value_;
33 StackNode<T>* next_;
36 StackNode(T t, StackNode* next = nullptr)
37 : value_(static_cast<T&&>(t)), in value_()
41 template<typename T>
44 StackNode<T>* head_;
49 void push(T t) { in push()
50 head_ = new StackNode<T>(static_cast<T&&>(t), head_); in push()
53 T pop() { in pop()
[all …]
Dexample2.h9 template <typename T, int size>
11 T foor[size];
37 template <typename T>
39 T foo_again;
41 T method_foo(T);
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DPools.java50 public static interface Pool<T> {
55 public T acquire(); in acquire()
65 public boolean release(T instance); in release()
77 public static class SimplePool<T> implements Pool<T> {
98 public T acquire() { in acquire()
101 T instance = (T) mPool[lastPooledIndex]; in acquire()
110 public boolean release(T instance) { in release()
122 private boolean isInPool(T instance) { in isInPool()
137 public static class SynchronizedPool<T> extends SimplePool<T> {
152 public T acquire() { in acquire()
[all …]
/development/tools/mkstubs/tests/data/
DTestTemplateClass.java30 public class TestTemplateClass<T extends InputStream, U> {
32 private final Map<T, U> mMap_T_U = null;
34 public Map<ArrayList<T>, Map<String, ArrayList<U>>> mMap_T_S_U = null;
39 public Map<T, U> getMap_T_U() { in getMap_T_U()
43 public Map<ArrayList<T>, Map<String, ArrayList<U>>> getMap_T_S_U() { in getMap_T_S_U()
50 public static <T extends Comparable<? super T>> void sort(List<T> list) { in sort()
53 public <X extends T, Y> void getMap(List<T> list, Map<T, U> tu, Map<X, Set<? super Y>> xy) { in getMap() argument
/development/vndk/tools/header-checker/header-abi-diff/src/
Dabi_diff.h49 template <typename T, typename TDiff>
51 google::protobuf::RepeatedPtrField<T> *elements_added,
52 google::protobuf::RepeatedPtrField<T> *elements_removed,
54 const google::protobuf::RepeatedPtrField<T> &old_srcs,
55 const google::protobuf::RepeatedPtrField<T> &new_srcs,
58 template <typename T>
59 static inline void AddToMap(std::map<std::string, const T *> *dst,
60 const google::protobuf::RepeatedPtrField<T> &src);
62 template <typename T>
64 google::protobuf::RepeatedPtrField<T> *dst,
[all …]
Dabi_diff_wrappers.h27 template <typename T>
28 static bool IgnoreSymbol(const T *element, in IgnoreSymbol()
34 template <typename T, typename TDiff>
39 DiffWrapperBase(const T *oldp, const T *newp) : oldp_(oldp), newp_(newp) { } in DiffWrapperBase()
54 const T *oldp_;
55 const T *newp_;
58 template <typename T, typename TDiff>
59 class DiffWrapper : public DiffWrapperBase<T, TDiff> {
61 DiffWrapper(const T *oldp, const T *newp) in DiffWrapper()
62 : DiffWrapperBase<T, TDiff>(oldp, newp) { } in DiffWrapper()
Dabi_diff.cpp95 template <typename T, typename TDiff>
97 google::protobuf::RepeatedPtrField<T> *elements_added, in Collect()
98 google::protobuf::RepeatedPtrField<T> *elements_removed, in Collect()
100 const google::protobuf::RepeatedPtrField<T> &old_srcs, in Collect()
101 const google::protobuf::RepeatedPtrField<T> &new_srcs, in Collect()
107 std::map<std::string, const T*> old_elements_map; in Collect()
108 std::map<std::string, const T*> new_elements_map; in Collect()
130 template <typename T>
132 google::protobuf::RepeatedPtrField<T> *dst, in PopulateRemovedElements()
133 const std::map<std::string, const T*> &old_elements_map, in PopulateRemovedElements()
[all …]
Dabi_diff_wrappers.cpp103 template <typename T>
104 static bool Diff(const T &old_element, const T &new_element) { in Diff()
155 template <typename T, typename TDiff>
157 bool DiffWrapperBase<T, TDiff>::GetElementDiffs( in GetElementDiffs()
193 template <typename T, typename TDiff>
195 void DiffWrapperBase<T, TDiff>::GetExtraElementDiffs( in GetExtraElementDiffs()
/development/vndk/tools/header-checker/header-abi-util/src/
Dso_file_parser.cpp34 template <typename T>
35 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap()
46 template<typename T>
47 const std::set<std::string> &ELFSoFileParser<T>::GetFunctions() const { in GetFunctions()
51 template<typename T>
52 const std::set<std::string> &ELFSoFileParser<T>::GetGlobVars() const { in GetGlobVars()
56 template<typename T>
57 bool ELFSoFileParser<T>::IsSymbolExported(const Elf_Sym *elf_sym) const { in IsSymbolExported()
67 template<typename T>
68 void ELFSoFileParser<T>::GetSymbols() { in GetSymbols()
[all …]
/development/ndk/platforms/android-21/include/linux/
Dconst.h24 #define _AT(T,X) X
29 #define _AT(T,X) ((T)(X)) argument
/development/vndk/tools/header-checker/header-abi-util/include/
Dheader_abi_util.h108 template<typename T>
115 LLVM_ELF_IMPORT_TYPES_ELFT(T)
116 typedef ELFFile<T> ELFO;
119 ELFSoFileParser(const ELFObjectFile<T> *obj) : obj_(obj) {} in ELFSoFileParser()
123 const ELFObjectFile<T> *obj_;
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentNestingTabs.java70 public static class TabListener<T extends Fragment> implements ActionBar.TabListener {
73 private final Class<T> mClass;
77 public TabListener(Activity activity, String tag, Class<T> clz) { in TabListener()
81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { in TabListener()
DFragmentTabs.java70 public static class TabListener<T extends Fragment> implements ActionBar.TabListener {
73 private final Class<T> mClass;
77 public TabListener(Activity activity, String tag, Class<T> clz) { in TabListener()
81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { in TabListener()
/development/tools/bugreport/src/com/android/bugreport/util/
DLines.java31 public class Lines<T extends Line> {
138 public Lines<T> copy(int from, int to) { in copy()
139 return new Lines<T>(mList, Math.max(mMin, from), Math.min(mMax, to)); in copy()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DBaseActivity.java112 protected static <T> List<T> childrenOfGroup(ViewGroup group, Class<T> viewType) { in childrenOfGroup()
113 List<T> list = new LinkedList<>(); in childrenOfGroup()
/development/vndk/tools/vtable-dumper/
Delf_handling.h156 template <typename T>
157 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap()
/development/vndk/tools/header-checker/header-abi-linker/src/
Dheader_abi_linker.cpp101 template <typename T>
102 inline bool LinkDecl(google::protobuf::RepeatedPtrField<T> *dst,
106 const google::protobuf::RepeatedPtrField<T> &src,
222 template <typename T>
224 google::protobuf::RepeatedPtrField<T> *dst, in LinkDecl()
227 const google::protobuf::RepeatedPtrField<T> &src, bool use_version_script) { in LinkDecl()
256 T *added_element = dst->Add(); in LinkDecl()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader3.java152 private class RssDataAdapter<T> extends ArrayAdapter<T> {
DMyRssReader2.java144 private class RssDataAdapter<T> extends ArrayAdapter<T> {
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DDiskLruCache.java175 private static <T> T[] copyOfRange(T[] original, int start, int end) { in copyOfRange()
185 final T[] result = (T[]) Array in copyOfRange()
/development/tools/apkcheck/
DREADME.txt145 public <T extends Parcelable> T getParcelableExtra(String name) {
146 return mExtras == null ? null : mExtras.<T>getParcelable(name);
151 <method name="getParcelableExtra" return="T">
/development/ndk/platforms/android-9/include/asm-generic/
Dsiginfo.h118 #define __SI_CODE(T,N) (N) argument
/development/ndk/platforms/android-21/include/asm-generic/
Dsiginfo.h154 #define __SI_CODE(T,N) (N) argument
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java1559 public static class RefCountedAutoCloseable<T extends AutoCloseable> implements AutoCloseable {
1560 private T mObject;
1568 public RefCountedAutoCloseable(T object) {
1578 public synchronized T getAndRetain() {
1591 public synchronized T get() {
/development/ndk/platforms/android-21/include/
Dstdatomic.h345 #define _Atomic(T) struct { T volatile __val; } argument

12