Home
last modified time | relevance | path

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

123

/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.h52 template<typename T>
55 T value_;
56 StackNode<T>* next_;
59 StackNode(T t, StackNode* next = nullptr)
60 : value_(static_cast<T&&>(t)), in value_()
64 template<typename T>
67 StackNode<T>* head_;
72 void push(T t) { in push()
73 head_ = new StackNode<T>(static_cast<T&&>(t), head_); in push()
76 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/src/utils/
Dheader_abi_util.h48 template <typename T, typename K>
49 std::vector<T> FindRemovedElements( in FindRemovedElements()
50 const std::map<K, T> &old_elements_map, in FindRemovedElements()
51 const std::map<K, T> &new_elements_map) { in FindRemovedElements()
52 std::vector<T> removed_elements; in FindRemovedElements()
63 template <typename K, typename T, typename Iterable, typename KeyGetter,
65 inline void AddToMap(std::map<K, T> *dst, Iterable &src, KeyGetter get_key, in AddToMap()
79 template <typename K, typename T>
80 std::vector<std::pair<T, T>> FindCommonElements( in FindCommonElements()
81 const std::map<K, T> &old_elements_map, in FindCommonElements()
[all …]
/development/vndk/tools/header-checker/src/diff/
Dabi_diff.h61 template <typename T, typename ElfSymbolType>
63 const AbiElementMap<T> &old_exportables,
64 const AbiElementMap<T> &new_exportables,
71 template <typename T>
73 const AbiElementMap<const T *> &old_elements_map,
74 const AbiElementMap<const T *> &new_elements_map,
91 template <typename T>
93 const AbiElementMap<const T *> &old_elements_map,
94 const AbiElementMap<const T *> &new_elements_map,
101 template <typename T>
[all …]
Dabi_diff_wrappers.h31 template <typename T, typename F>
32 static bool IgnoreSymbol(const T *element, in IgnoreSymbol()
38 template <typename T>
41 DiffWrapper(const T *oldp, const T *newp, in DiffWrapper()
54 const T *oldp_;
55 const T *newp_;
Dabi_diff.cpp161 template <typename T>
163 const AbiElementMap<const T*> &old_ud_types_map, in CollectUserDefinedTypesInternal()
164 const AbiElementMap<const T*> &new_ud_types_map, in CollectUserDefinedTypesInternal()
176 template <typename T, typename ElfSymbolType>
178 const AbiElementMap<T> &old_exportables, in CollectDynsymExportables()
179 const AbiElementMap<T> &new_exportables, in CollectDynsymExportables()
185 AbiElementMap<const T *> old_exportables_map; in CollectDynsymExportables()
186 AbiElementMap<const T *> new_exportables_map; in CollectDynsymExportables()
224 template <typename T>
226 const AbiElementMap<const T*> &old_elements_map, in Collect()
[all …]
/development/tools/repo_diff/service/repodiff/interactors/
Dlogic_test.go13 func TestExistingErrorOrTT(t *testing.T) { argument
27 func TestExistingErrorOrTF(t *testing.T) { argument
42 func TestExistingErrorOrFT(t *testing.T) { argument
56 func TestExistingErrorOrFF(t *testing.T) { argument
70 func TestAnyErrorPositive(t *testing.T) { argument
79 func TestAnyErrorNegative(t *testing.T) { argument
Dstrings_test.go9 func TestDistinctValues(t *testing.T) { argument
33 func TestDistinctValuesEmpty(t *testing.T) { argument
41 func TestDistinctValuesDuplicates(t *testing.T) { argument
55 func TestSetSubtract(t *testing.T) { argument
73 func TestSetUnion(t *testing.T) { argument
94 func TestFilterNoUnicodeWithUnicode(t *testing.T) { argument
104 func TestFilterNoUnicodeWithNoUnicode(t *testing.T) { argument
Drunner_test.go18 func TestExecuteFunctionsAsyncErrExists(t *testing.T) { argument
29 func TestExecuteFunctionsAsyncNoErr(t *testing.T) { argument
/development/vndk/tools/header-checker/src/repr/symbol/
Dso_file_parser.cpp31 template <typename T>
32 static inline T UnWrap(llvm::Expected<T> value_or_error) { in UnWrap()
55 template <typename T>
58 LLVM_ELF_IMPORT_TYPES_ELFT(T)
61 ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj);
80 const llvm::object::ELFObjectFile<T> *obj_;
85 template <typename T>
86 ELFSoFileParser<T>::ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj) { in ELFSoFileParser()
120 template <typename T>
122 const llvm::object::ELFObjectFile<T> *elfo) { in CreateELFSoFileParser()
[all …]
/development/vndk/tools/header-checker/src/dumper/
Dfixed_argv.h56 template <typename... T>
57 const char *GetLastArg(T&& ...options) const { in GetLastArg()
59 std::forward<T&&>(options)...}; in GetLastArg()
71 template <typename... T>
72 bool IsLastArgEqualFirstOption(const char *expected, T&& ...others) const { in IsLastArgEqualFirstOption()
79 template<typename... T>
80 void PushForwardArgs(T&& ...arguments) { in PushForwardArgs()
82 std::forward<T&&>(arguments)...}; in PushForwardArgs()
/development/tools/repo_diff/service/repodiff/persistence/filesystem/
Dunix_test.go9 func TestFindFnamesInDirNonZero(t *testing.T) { argument
14 func TestFindFnamesInDirMultipleArgs(t *testing.T) { argument
19 func TestFindFnamesInDirZero(t *testing.T) { argument
24 func TestCSVFileToEntities(t *testing.T) { argument
Dcsv_test.go10 func TestGenerateCSVLines(t *testing.T) { argument
23 func TestNonExistentFile(t *testing.T) { argument
32 func TestWriteCSVToFile(t *testing.T) { argument
Dxml_test.go11 func TestReadXMLAsEntity(t *testing.T) { argument
18 func TestReadXMLAsEntityFileDoesNotExist(t *testing.T) { argument
/development/vndk/tools/header-checker/src/repr/
Dir_representation_internal.h27 template <typename T>
28 inline std::string GetReferencedTypeMapKey(T &element) { in GetReferencedTypeMapKey()
71 template <typename T>
72 typename AbiElementMap<T>::iterator AddToMapAndTypeGraph( in AddToMapAndTypeGraph()
73 T &&element, AbiElementMap<T> *map_to_update, in AddToMapAndTypeGraph()
Dir_dumper.cpp48 template <typename T>
49 static std::vector<const T *> SortAbiElements(const AbiElementMap<T> &m) { in SortAbiElements()
50 std::vector<const T *> xs; in SortAbiElements()
57 auto &&compare = [](const T *lhs, const T *rhs) { in SortAbiElements()
/development/tools/repo_diff/service/repodiff/utils/
Dtime_test.go11 func TestTimestampSeconds(t *testing.T) { argument
18 func TestTimestampToDate(t *testing.T) { argument
23 func TestTimestampToDataStudioDatetime(t *testing.T) { argument
/development/tools/repo_diff/service/repodiff/mappers/
Dmappers_test.go12 func TestCSVLineToDiffRow(t *testing.T) { argument
32 func TestCSVLineToCommitRow(t *testing.T) { argument
48 func TestDiffRowsToAggregateChangesOverTime(t *testing.T) { argument
79 func TestGetAuthorTechAreaUnknown(t *testing.T) { argument
85 func TestGetAuthorTechAreaKnown(t *testing.T) { argument
Dcsv_test.go11 func TestCommitEntityToCSVRow(t *testing.T) { argument
34 func TestCommitEntityToCSVHeader(t *testing.T) { argument
50 func TestCommitEntitiesToCSVRows(t *testing.T) { argument
/development/tools/repo_diff/service/repodiff/repositories/
Dcommit_test.go25 func TestInsertCommitRows(t *testing.T) { argument
39 func TestCommitGetMostRecentOuterKey(t *testing.T) { argument
52 func TestGetMostRecentCommits(t *testing.T) { argument
67 func TestGetMostRecentCommitsEmpty(t *testing.T) { argument
74 func TestGetFirstSeenTimestamp(t *testing.T) { argument
98 func TestGetFirstSeenTimestampEmpty(t *testing.T) { argument
106 func TestGetFirstSeenTimestampMutateReturned(t *testing.T) { argument
113 func TestGetFirstSeenTimestampNonExistent(t *testing.T) { argument
Dsource_test.go27 func TestProtocolStrippedURL(t *testing.T) { argument
33 func TestGetOrCreateURLBranchID(t *testing.T) { argument
47 func TestGetOrCreateURLBranchIDCache(t *testing.T) { argument
67 func TestGetURLBranchByID(t *testing.T) { argument
82 func TestGetURLBranchByIDCache(t *testing.T) { argument
104 func TestGetDiffTargetToMapped(t *testing.T) { argument
Dproject_test.go36 func TestInsertDiffRows(t *testing.T) { argument
49 func TestGetMostRecentOuterKey(t *testing.T) { argument
61 func TestGetMostRecentOuterKeyEmpty(t *testing.T) { argument
69 func TestGetMostRecentDifferentials(t *testing.T) { argument
102 func TestGetMostRecentDifferentialsEmpty(t *testing.T) { argument
/development/vndk/tools/header-checker/src/linker/
Dmodule_merger.h107 template <typename T>
109 const repr::ModuleIR &addend, const T *addend_node,
111 repr::AbiElementMap<T> *parent_map,
122 template <typename T>
123 std::pair<MergeStatus, typename repr::AbiElementMap<T>::iterator>
125 const T *addend_node, const repr::ModuleIR &addend,
127 repr::AbiElementMap<T> *specific_type_map);

123