Home
last modified time | relevance | path

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

123

/tools/security/remote_provisioning/cert_validator/src/
Dvalueas.rs34 fn map_lookup<T: Into<Self>>(&self, key: T) -> Result<&Self, ValueAsError>; in map_lookup()
35 fn must_equal<T: Into<Self>>(&self, other: T) -> Result<(), ValueAsError>; in must_equal()
36 fn check_date_val_if_key_in_map<T: Into<Self>>(&self, key: T) -> Result<()>; in check_date_val_if_key_in_map()
37 fn check_string_val_if_key_in_map<T: Into<Self>>(&self, key: T) -> Result<()>; in check_string_val_if_key_in_map()
38 fn check_bytes_val_if_key_in_map<T: Into<Self>>(&self, key: T) -> Result<()>; in check_bytes_val_if_key_in_map()
39 fn check_arr_val_if_key_in_map<T: Into<Self>>(&self, key: T, arr: &[&str]) -> Result<()>; in check_arr_val_if_key_in_map() argument
40 fn check_arr_val_for_key_in_map<T: Into<Self>>(&self, key: T, arr: &[&str]) -> Result<()>; in check_arr_val_for_key_in_map() argument
113 fn map_lookup<T: Into<Self>>(&self, key: T) -> Result<&Self, ValueAsError> { in map_lookup()
124 fn must_equal<T: Into<Self>>(&self, other: T) -> Result<(), ValueAsError> { in must_equal()
133 fn check_date_val_if_key_in_map<T: Into<Self>>(&self, key: T) -> Result<()> { in check_date_val_if_key_in_map()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java60 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/
Dhash_table.h47 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 …]
Dintrusive_list.h28 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 …]
Dbuffer.h74 template <class T>
75 T* ptr(size_t offset) { in ptr()
76 SLICER_CHECK_LE(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 …]
Dreader.h105 template <class T>
106 const T* ptr(int offset) const { in ptr()
107 SLICER_CHECK_GE(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_GE(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 …]
Dcode_ir.h46 template <class T>
47 using own = std::unique_ptr<T>;
253 template<class T>
254 inline T* CastOperand(Operand* op) { in CastOperand()
256 T* operand = dynamic_cast<T*>(op); in CastOperand()
262 T* converted = nullptr; in CastOperand()
263 bool Visit(T* val) override { in CastOperand()
316 template<class T>
317 T* CastOperand(int index) const { in CastOperand()
318 return detail::CastOperand<T>(operands[index]); in CastOperand()
[all …]
Darrayview.h26 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;
Dscopeguard.h38 template<class T>
42 explicit ScopeGuard(T closure) : in ScopeGuard()
59 T closure_;
63 template<class T>
64 ScopeGuard<T> operator<<(T closure)
66 return ScopeGuard<T>(std::move(closure));
Ddex_ir.h54 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()
Dwriter.h76 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/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java35 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/
DPipe.kt21 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/treble/hacksaw/client/
Dcommand_test.go29 func TestHelpCommand(t *testing.T) { argument
38 func TestNoCommand(t *testing.T) { argument
47 func TestBadCommand(t *testing.T) { argument
55 func TestEmptyCodebaseCommand(t *testing.T) { argument
63 func TestAddCodebase(t *testing.T) { argument
77 func TestDefaultCodebase(t *testing.T) { argument
123 func TestListCodebases(t *testing.T) { argument
131 func TestRemoveCodebase(t *testing.T) { argument
149 func TestEmptyWorkspaceCommand(t *testing.T) { argument
157 func TestCreateWorkspace(t *testing.T) { argument
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMapEntry.java36 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/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java145 public static <T extends ApkSupportedSignature> List<T> getSignaturesToVerify( in getSignaturesToVerify()
146 List<T> signatures, int minSdkVersion, int maxSdkVersion) in getSignaturesToVerify()
166 public static <T extends ApkSupportedSignature> List<T> getSignaturesToVerify( in getSignaturesToVerify()
167 List<T> signatures, int minSdkVersion, int maxSdkVersion, in getSignaturesToVerify()
178 Map<Integer, T> in getSignaturesToVerify()
181 for (T sig : signatures) { in getSignaturesToVerify()
192 T candidate = bestSigAlgorithmOnSdkVersion.get(sigMinSdkVersion); in getSignaturesToVerify()
209 List<T> signaturesToVerify = in getSignaturesToVerify()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/
DCachedSupplier.java46 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()
DIOExceptionConsumer.java29 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()
DIOExceptionFunction.java29 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/treble/hacksaw/codebase/
Dcodebase_test.go27 func TestAdd(t *testing.T) { argument
70 func TestAddDuplicate(t *testing.T) { argument
87 func TestAddInvalidCodebase(t *testing.T) { argument
101 func TestList(t *testing.T) { argument
131 func TestSetGetDefault(t *testing.T) { argument
160 func TestBadDefault(t *testing.T) { argument
176 func TestRemove(t *testing.T) { argument
201 func TestBadRemove(t *testing.T) { argument
/tools/loganalysis/src/com/android/loganalysis/util/
DArrayUtil.java67 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/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt55 inner class LazyDelegate<T>(
56 val defaultValueProvider: () -> T
57 ) : ReadWriteProperty<PsiItem, T> {
58 private var currentValue: T? = null
60 override operator fun setValue(thisRef: PsiItem, property: KProperty<*>, value: T) { in setValue()
63 override operator fun getValue(thisRef: PsiItem, property: KProperty<*>): T { in getValue()
/tools/asuite/
Dasuite.sh17 local T="$(gettop)/tools"
18 src_atest="$T/asuite/atest/atest_completion.sh"
19 src_acloud="$T/acloud/acloud_completion.sh"
20 src_aidegen="$T/asuite/aidegen/aidegen_completion.sh"
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt114 fun <T> read(group: Int, cb: PreviewReader.() -> T): T { in read()
154 …inline fun <T> read(slice: DataSlice, stringCache: StringCache? = null, init: BufferReader.() -> T in read()
/tools/dexter/slicer/
Dreader.cc432 template <class T>
433 static T ParseIntValue(const dex::u1** pptr, size_t size) { in ParseIntValue()
434 static_assert(std::is_integral<T>::value, "must be an integral type"); in ParseIntValue()
437 SLICER_CHECK_LE(size, sizeof(T)); in ParseIntValue()
439 T value = 0; in ParseIntValue()
441 value |= T(*(*pptr)++) << (i * 8); in ParseIntValue()
445 if (std::is_signed<T>::value) { in ParseIntValue()
446 size_t shift = (sizeof(T) - size) * 8; in ParseIntValue()
447 value = T(value << shift) >> shift; in ParseIntValue()
455 template <class T>
[all …]

123