Home
last modified time | relevance | path

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

/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/vndk/tools/header-checker/tests/input/
Dexample1.h51 template<typename T>
54 T value_;
55 StackNode<T>* next_;
58 StackNode(T t, StackNode* next = nullptr)
59 : value_(static_cast<T&&>(t)), in value_()
63 template<typename T>
66 StackNode<T>* head_;
71 void push(T t) { in push()
72 head_ = new StackNode<T>(static_cast<T&&>(t), head_); in push()
75 T pop() { in pop()
[all …]
Dexample2.h9 template <typename T, int size>
11 T foor[size];
38 template <typename T>
40 T foo_again;
42 T method_foo(T);
/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-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 …]
Dabi_diff_helpers.cpp428 template <typename DiffContainer, typename T>
430 std::vector<std::pair<T, T>> &nc_vector) { in ConvertToDiffContainerVector() argument
438 template <typename T>
439 static std::vector<const T*> ConvertToConstPtrVector( in ConvertToConstPtrVector()
440 std::vector<T> &nc_vector) { in ConvertToConstPtrVector()
441 std::vector<const T*> cptr_vec; in ConvertToConstPtrVector()
/development/vndk/tools/header-checker/header-abi-diff/src/
Dabi_diff.h47 template <typename T, typename ElfSymbolType>
49 const AbiElementMap<T> &old_exportables,
50 const AbiElementMap<T> &new_exportables,
57 template <typename T>
59 const AbiElementMap<const T *> &old_elements_map,
60 const AbiElementMap<const T *> &new_elements_map,
77 template <typename T>
79 const AbiElementMap<const T *> &old_elements_map,
80 const AbiElementMap<const T *> &new_elements_map,
86 template <typename T>
[all …]
Dabi_diff.cpp153 template <typename T>
155 const AbiElementMap<const T*> &old_ud_types_map, in CollectUserDefinedTypesInternal()
156 const AbiElementMap<const T*> &new_ud_types_map, in CollectUserDefinedTypesInternal()
168 template <typename T, typename ElfSymbolType>
170 const AbiElementMap<T> &old_exportables, in CollectDynsymExportables()
171 const AbiElementMap<T> &new_exportables, in CollectDynsymExportables()
177 AbiElementMap<const T *> old_exportables_map; in CollectDynsymExportables()
178 AbiElementMap<const T *> new_exportables_map; in CollectDynsymExportables()
219 template <typename T>
221 const AbiElementMap<const T*> &old_elements_map, in Collect()
[all …]
Dabi_diff_wrappers.h29 template <typename T, typename F>
30 static bool IgnoreSymbol(const T *element, in IgnoreSymbol()
37 template <typename T>
41 DiffWrapper(const T *oldp, const T *newp, in DiffWrapper()
52 const T *oldp_;
53 const T *newp_;
/development/vndk/tools/header-checker/header-abi-util/include/
Dheader_abi_util.h111 template<typename T>
118 LLVM_ELF_IMPORT_TYPES_ELFT(T)
119 typedef ELFFile<T> ELFO;
122 ELFSoFileParser(const ELFObjectFile<T> *obj) : obj_(obj) {} in ELFSoFileParser()
126 const ELFObjectFile<T> *obj_;
134 template <typename T, typename K>
135 std::vector<T> FindRemovedElements( in FindRemovedElements()
136 const std::map<K, T> &old_elements_map, in FindRemovedElements()
137 const std::map<K, T> &new_elements_map) { in FindRemovedElements()
138 std::vector<T> removed_elements; in FindRemovedElements()
[all …]
Dir_representation.h31 template <typename T>
32 using AbiElementMap = std::map<std::string, T>;
34 template <typename T>
35 using AbiElementUnorderedMap = std::unordered_map<std::string, T>;
37 template <typename T>
38 using AbiElementList = std::list<T>;
752 template <typename T>
754 T &element) { in GetReferencedTypeMapKey()
798 template <typename T>
799 typename AbiElementMap<T>::iterator AddToMapAndTypeGraph( in AddToMapAndTypeGraph()
[all …]
Dabi_diff_helpers.h36 template <typename T>
37 using DiffStatusPair = std::pair<DiffStatus, T>;
/development/vndk/tools/header-checker/header-abi-dumper/src/
Dfixed_argv.h52 template <typename... T>
53 const char *GetLastArg(T&& ...options) const { in GetLastArg()
55 std::forward<T&&>(options)...}; in GetLastArg()
67 template <typename... T>
68 bool IsLastArgEqualFirstOption(const char *expected, T&& ...others) const { in IsLastArgEqualFirstOption()
75 template<typename... T>
76 void PushForwardArgs(T&& ...arguments) { in PushForwardArgs()
78 std::forward<T&&>(arguments)...}; in PushForwardArgs()
/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.h158 template <typename T>
159 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap()
/development/vndk/tools/header-checker/header-abi-linker/src/
Dheader_abi_linker.cpp93 template <typename T>
98 const abi_util::AbiElementMap<T> &src,
138 template <typename T, typename Iterable>
141 T elf_symbol(symbol); in AddElfSymbols()
276 template <typename T>
280 const abi_util::AbiElementMap<T> &src, bool use_version_script_or_so) { in LinkDecl()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader2.java144 private class RssDataAdapter<T> extends ArrayAdapter<T> {
DMyRssReader3.java152 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/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() {