Home
last modified time | relevance | path

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

/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()
154 template <typename T, typename TDiff>
156 bool DiffWrapperBase<T, TDiff>::GetElementDiffs( in GetElementDiffs()
192 template <typename T, typename TDiff>
194 void DiffWrapperBase<T, TDiff>::GetExtraElementDiffs( in GetExtraElementDiffs()
/development/ndk/platforms/android-21/include/linux/
Dconst.h24 #define _AT(T,X) X
29 #define _AT(T,X) ((T)(X)) argument
/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/vndk/tools/header-checker/header-abi-linker/src/
Dheader_abi_linker.cpp96 template <typename T>
97 inline bool LinkDecl(google::protobuf::RepeatedPtrField<T> *dst,
101 const google::protobuf::RepeatedPtrField<T> &src,
210 template <typename T>
212 google::protobuf::RepeatedPtrField<T> *dst, in LinkDecl()
215 const google::protobuf::RepeatedPtrField<T> &src, bool use_version_script) { in LinkDecl()
244 T *added_element = dst->Add(); in LinkDecl()
/development/vndk/tools/vtable-dumper/
Delf_handling.h156 template <typename T>
157 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap()
/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
/development/sdk/
Dsdk_files_NOTICE.txt6439 by M.I.T. but is also freely distributable.
6442 patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot
11461 documentation, and that the name of M.I.T. not be used in advertising or
11463 written prior permission. M.I.T. makes no representations about the
11490 documentation, and that the name of M.I.T. not be used in advertising or
11492 written prior permission. M.I.T. makes no representations about the