/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ConditionPriorityBlockingQueue.java | 41 public class ConditionPriorityBlockingQueue<T> implements Iterable<T> { 48 public static interface IMatcher<T> { 55 boolean matches(T element); in matches() 64 public static class AlwaysMatch<T> implements IMatcher<T> { 70 public boolean matches(T element) { in matches() 75 private static class ConditionMatcherPair<T> { 76 private final IMatcher<T> mMatcher; 79 ConditionMatcherPair(IMatcher<T> m, Condition c) { in ConditionMatcherPair() 86 private final List<T> mList; 94 private final List<ConditionMatcherPair<T>> mWaitingMatcherList; [all …]
|
D | ArrayUtil.java | 66 public static <T> List<T> list(T... inputAry) { in list() 67 List<T> retList = new ArrayList<T>(inputAry.length); in list() 68 for (T item : inputAry) { in list()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 60 public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) in parse() 96 public static <T> List<T> parseImplicitSetOf(ByteBuffer encoded, Class<T> elementClass) in parseImplicitSetOf() 110 private static <T> T parse(BerDataValue container, Class<T> containerClass) in parse() 146 private static <T> T parseChoice(BerDataValue dataValue, Class<T> containerClass) in parseChoice() 175 T obj; in parseChoice() 195 private static <T> T parseSequence(BerDataValue container, Class<T> containerClass) in parseSequence() 200 private static <T> T parseSequence(BerDataValue container, Class<T> containerClass, in parseSequence() 221 T t; in parseSequence() 285 private static <T> List<T> parseSetOf(BerDataValue container, Class<T> elementClass) in parseSetOf() 287 List<T> result = new ArrayList<>(); in parseSetOf() [all …]
|
/tools/dexter/slicer/export/slicer/ |
D | hash_table.h | 47 template<class Key, class T, class Hash> 59 T* value = nullptr; 66 bool Insert(T* value); 67 T* Lookup(const Key& key, uint32_t hash_value) const; 93 void Insert(T* value); 97 T* Lookup(const Key& key) const; 107 template<class Key, class T, class Hash> 108 HashTable<Key, T, Hash>::Partition::Partition(Index size, const Hash& hasher) in Partition() 125 template<class Key, class T, class Hash> 126 bool HashTable<Key, T, Hash>::Partition::Insert(T* value) { in Insert() [all …]
|
D | intrusive_list.h | 28 template <class T> 32 explicit Iterator(T* p) : p_(p) {} in Iterator() 37 T* operator*() const { 67 T* p_; 77 void push_back(T* p) { in push_back() 81 Iterator insert(Iterator it, T* p) { in insert() 85 Iterator InsertBefore(T* pos, T* p) { in InsertBefore() 103 Iterator InsertAfter(T* pos, T* p) { in InsertAfter() 116 void Remove(T* pos) { in Remove() 137 T* begin_ = &end_sentinel_; [all …]
|
D | buffer.h | 74 template <class T> 75 T* ptr(size_t offset) { in ptr() 76 SLICER_CHECK(offset + sizeof(T) <= size_); in ptr() 77 return reinterpret_cast<T*>(buff_ + offset); in ptr() 107 template <class T> 108 size_t Push(const ArrayView<T>& a) { in Push() 109 return Push(a.data(), a.size() * sizeof(T)); in Push() 112 template <class T> 113 size_t Push(const std::vector<T>& v) { in Push() 114 return Push(v.data(), v.size() * sizeof(T)); in Push() [all …]
|
D | reader.h | 105 template <class T> 106 const T* ptr(int offset) const { in ptr() 107 SLICER_CHECK(offset >= 0 && offset + sizeof(T) <= size_); in ptr() 108 return reinterpret_cast<const T*>(image_ + offset); in ptr() 113 template <class T> 114 const T* dataPtr(int offset) const { in dataPtr() 115 SLICER_CHECK(offset >= header_->data_off && offset + sizeof(T) <= size_); in dataPtr() 116 return reinterpret_cast<const T*>(image_ + offset); in dataPtr() 120 template <class T> 121 slicer::ArrayView<const T> section(int offset, int count) const { in section() [all …]
|
D | arrayview.h | 26 template <class T> 34 ArrayView(T* ptr, size_t count) : begin_(ptr), end_(ptr + count) {} in ArrayView() 36 T* begin() const { return begin_; } in begin() 37 T* end() const { return end_; } in end() 39 T* data() const { return begin_; } in data() 41 T& operator[](size_t i) const { 50 T* begin_ = nullptr; 51 T* end_ = nullptr;
|
D | code_ir.h | 46 template <class T> 47 using own = std::unique_ptr<T>; 241 template<class T> 242 inline T* CastOperand(Operand* op) { in CastOperand() 244 T* operand = dynamic_cast<T*>(op); in CastOperand() 250 T* converted = nullptr; in CastOperand() 251 bool Visit(T* val) override { in CastOperand() 304 template<class T> 305 T* CastOperand(int index) const { in CastOperand() 306 return detail::CastOperand<T>(operands[index]); in CastOperand() [all …]
|
D | scopeguard.h | 36 template<class T> 40 explicit ScopeGuard(T closure) : in ScopeGuard() 57 T closure_; 61 template<class T> 62 ScopeGuard<T> operator<<(T closure) 64 return ScopeGuard<T>(std::move(closure));
|
D | dex_ir.h | 54 template <class T> 55 using own = std::unique_ptr<T>; 422 template <class T> 423 T* Alloc() { in Alloc() 424 T* p = new T(); in Alloc() 439 template <class T> 440 void PushOwn(std::vector<own<T>>& v, T* p) { in PushOwn() 441 v.push_back(own<T>(p)); in PushOwn()
|
D | writer.h | 76 template <class T> 86 values_.reset(new T[count]); in Init() 103 T* begin() { return values_.get(); } in begin() 104 T* end() { return begin() + count_; } in end() 109 const T* data() const { return values_.get(); } in data() 110 dex::u4 size() const { return count_ * sizeof(T); } in size() 112 T& operator[](int i) { 122 std::unique_ptr<T[]> values_;
|
/tools/tradefederation/core/src/com/android/tradefed/guice/ |
D | InvocationScope.java | 117 public <T> void seed(Key<T> key, T value) { in seed() 135 public <T> void seed(Class<T> clazz, T value) { in seed() 140 public <T> Provider<T> scope(final Key<T> key, final Provider<T> unscoped) { in scope() 141 return new Provider<T>() { in scope() 143 public T get() { in scope() 147 T current = (T) scopedObjects.get(key); in scope() 163 private <T> Map<Key<?>, Object> getScopedObjectMap(Key<T> key) { 178 public static <T> Provider<T> seededKeyProvider() { 179 return (Provider<T>) SEEDED_KEY_PROVIDER;
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSinkTestBase.java | 35 public abstract class DataSinkTestBase<T extends DataSink> { 39 protected abstract CloseableWithDataSink<T> createDataSink() throws IOException; in createDataSink() 44 protected abstract ByteBuffer getContents(T dataSink) throws IOException; in getContents() 48 try (CloseableWithDataSink<T> c = createDataSink()) { in testConsumeFromArray() 49 T sink = c.getDataSink(); in testConsumeFromArray() 76 try (CloseableWithDataSink<T> c = createDataSink()) { in testConsumeFromByteBuffer() 77 T sink = c.getDataSink(); in testConsumeFromByteBuffer() 119 private void assertContentsEquals(String expectedContents, T sink) throws IOException { in assertContentsEquals() 132 public static class CloseableWithDataSink<T extends DataSink> implements Closeable { 133 private final T mDataSink; [all …]
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/ |
D | Pipe.kt | 21 interface Producer<in T> { 22 fun add(data: T) in add() 26 interface Consumer<out T> { in add() 27 fun next(): T? in add() 30 class Pipe<T>(capacity: Int = 4) : Producer<T>, Consumer<T> { 31 private class Packet<out T>(val data: T?) 33 private val queue = ArrayBlockingQueue<Packet<T>>(capacity) 37 override fun add(data: T) { in add() 51 override fun next(): T? { in next()
|
/tools/metalava/manual/ |
D | master.txt | 38 method @Nullable public <T> T[] createTypedArray(@NonNull android.os.Parcelable.Creator<T>); 39 …method @Nullable public <T> java.util.ArrayList<T> createTypedArrayList(@NonNull android.os.Parcel… 46 … method @Nullable public <T extends android.os.Parcelable> T readParcelable(@Nullable ClassLoader); 56 method @Nullable public <T> T readTypedObject(@NonNull android.os.Parcelable.Creator<T>); 73 …public final class Class<T> implements java.lang.reflect.AnnotatedElement java.lang.reflect.Generi… 83 public class ThreadLocal<T> {
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JavaCodeCoverageListenerTest.java | 210 private static <T> String vmName(Class<T> clazz) { in vmName() 214 private static <T> ExecutionData fullyCovered(Class<T> clazz) throws IOException { in fullyCovered() 220 private static <T> ExecutionData partiallyCovered(Class<T> clazz) throws IOException { in partiallyCovered() 226 private static <T> long classId(Class<T> clazz) throws IOException { in classId() 230 private static <T> ByteString classBytes(Class<T> clazz) throws IOException { in classBytes() 245 private static <T> boolean[] getProbes(Class<T> clazz, ExecutionDataStore execData) in getProbes()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | FileUseMapEntry.java | 36 class FileUseMapEntry<T> { 64 private final T store; 73 private FileUseMapEntry(long start, long end, @Nullable T store) { in FileUseMapEntry() 102 public static <T> FileUseMapEntry<T> makeUsed(long start, long end, @Nonnull T store) { in makeUsed() 150 T getStore() { in getStore()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/ |
D | CachedSupplier.java | 46 public class CachedSupplier<T> { 52 private T cached; 63 private final Supplier<T> supplier; 68 public CachedSupplier(@Nonnull Supplier<T> supplier) { in CachedSupplier() 79 public synchronized T get() { in get() 105 public synchronized void precomputed(T t) { in precomputed()
|
D | IOExceptionConsumer.java | 29 public interface IOExceptionConsumer<T> { 36 void accept(@Nullable T input) throws IOException; in accept() 44 static <T> Consumer<T> asConsumer(@Nonnull IOExceptionConsumer<T> c) { in asConsumer()
|
D | IOExceptionFunction.java | 29 public interface IOExceptionFunction<F, T> { 36 @Nullable T apply(@Nullable F input) throws IOException; in apply() 44 static <F, T> Function<F, T> asFunction(@Nonnull IOExceptionFunction<F, T> f) { in asFunction()
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | ArrayUtil.java | 67 public static <T> List<T> list(T... inputAry) { in list() 68 List<T> retList = new ArrayList<T>(inputAry.length); in list() 69 for (T item : inputAry) { in list()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleSplitter.java | 184 private static <T> List<T> clonePreparers(List<T> preparerList) { in clonePreparers() 185 List<T> clones = new ArrayList<>(); in clonePreparers() 186 for (T prep : preparerList) { in clonePreparers() 189 T clone = (T) prep.getClass().newInstance(); in clonePreparers()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | MultiMapTest.java | 102 private static <T> void assertContainsExactly(Collection<T> expected, Collection<T> actual) { in assertContainsExactly() 104 List<T> copy = new ArrayList<>(actual); in assertContainsExactly() 105 for (T item : expected) { in assertContainsExactly()
|
/tools/asuite/ |
D | asuite.sh | 17 local T="$(gettop)/tools" 18 src_atest="$T/tradefederation/core/atest/atest_completion.sh" 19 src_acloud="$T/acloud/acloud_completion.sh" 20 src_aidegen="$T/asuite/aidegen/aidegen_completion.sh"
|