Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 68) 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/tools/winscope/src/test/unit/
Dtrace_builder.ts26 export class TraceBuilder<T> {
28 private parser?: Parser<T>;
29 private entries?: T[];
36 setType(type: TraceType): TraceBuilder<T> {
41 setParser(parser: Parser<T>): TraceBuilder<T> {
46 setEntries(entries: T[]): TraceBuilder<T> {
51 setTimestamps(timestamps: Timestamp[]): TraceBuilder<T> {
56 setTimestampType(type: TimestampType): TraceBuilder<T> {
61 setFrameMap(frameMap?: FrameMap): TraceBuilder<T> {
77 setDescriptors(descriptors: string[]): TraceBuilder<T> {
[all …]
Dtrace_utils.ts21 static async extractEntries<T>(trace: Trace<T>): Promise<T[]> {
28 static extractTimestamps<T>(trace: Trace<T>): Timestamp[] {
36 static async extractFrames<T>(trace: Trace<T>): Promise<Map<AbsoluteFrameIndex, T[]>> {
37 const frames = new Map<AbsoluteFrameIndex, T[]>();
/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/winscope/src/trace/
Dtraces.ts25 setTrace<T extends TraceType>(type: T, trace: Trace<TraceEntryTypeMap[T]>) {
29 getTrace<T extends TraceType>(type: T): Trace<TraceEntryTypeMap[T]> | undefined {
30 return this.traces.get(type) as Trace<TraceEntryTypeMap[T]> | undefined;
33 deleteTrace<T extends TraceType>(type: T) {
59 mapTrace<T>(callback: (trace: Trace<{}>, type: TraceType) => T): T[] {
60 const result: T[] = [];
84 mapFrame<T>(callback: (traces: Traces, index: AbsoluteFrameIndex) => T): T[] {
85 const result: T[] = [];
Dtrace.ts38 export class TraceEntry<T> {
40 private readonly fullTrace: Trace<T>,
41 private readonly parser: Parser<T>,
47 getFullTrace(): Trace<T> {
68 async getValue(): Promise<T> {
73 export class Trace<T> {
77 private readonly parser: Parser<T>;
79 private readonly fullTrace: Trace<T>;
85 static newUninitializedTrace<T>(parser: Parser<T>): Trace<T> {
96 static newInitializedTrace<T>(
[all …]
Dparser_mock.ts21 export class ParserMock<T> implements Parser<T> {
22 constructor(private readonly timestamps: RealTimestamp[], private readonly entries: T[]) {
43 getEntry(index: number): Promise<T> {
Dtrace_entry_finder.ts33 static findCorrespondingEntry<T>(
34 trace: Trace<T>,
36 ): TraceEntry<T> | undefined {
38 return position.entry as TraceEntry<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.h38 template <typename T, typename K>
39 std::vector<T> FindRemovedElements( in FindRemovedElements()
40 const std::map<K, T> &old_elements_map, in FindRemovedElements()
41 const std::map<K, T> &new_elements_map) { in FindRemovedElements()
42 std::vector<T> removed_elements; in FindRemovedElements()
53 template <typename K, typename T, typename Iterable, typename KeyGetter,
55 inline void AddToMap(std::map<K, T> *dst, Iterable &src, KeyGetter get_key, in AddToMap()
69 template <typename K, typename T>
70 std::vector<std::pair<T, T>> FindCommonElements( in FindCommonElements()
71 const std::map<K, T> &old_elements_map, in FindCommonElements()
[all …]
/development/tools/winscope/src/common/
Darray_utils.ts28 static equal<T>(a: T[] | TypedArray, b: T[] | TypedArray): boolean {
42 static searchSubarray<T>(
43 array: T[] | TypedArray,
44 subarray: T[] | TypedArray
64 static binarySearchFirstGreaterOrEqual<T>(
65 values: T[] | TypedArray,
66 target: T
96 static binarySearchFirstGreater<T>(values: T[] | TypedArray, target: T): number | undefined {
/development/vndk/tools/header-checker/src/diff/
Dabi_diff.h63 template <typename T, typename ElfSymbolType>
65 const AbiElementMap<T> &old_exportables,
66 const AbiElementMap<T> &new_exportables,
73 template <typename T>
75 const AbiElementMap<const T *> &old_elements_map,
76 const AbiElementMap<const T *> &new_elements_map,
93 template <typename T>
95 const AbiElementMap<const T *> &old_elements_map,
96 const AbiElementMap<const T *> &new_elements_map,
103 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()
55 const T *oldp_;
56 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
/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
/development/vndk/tools/header-checker/src/repr/
Dir_representation_internal.h27 template <typename T>
28 inline std::string GetReferencedTypeMapKey(T &element) { in GetReferencedTypeMapKey()
72 template <typename T>
73 typename AbiElementMap<T>::iterator AddToMapAndTypeGraph( in AddToMapAndTypeGraph()
74 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
/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

123