Home
last modified time | relevance | path

Searched refs:E (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/base/core/java/com/google/android/collect/
DSets.java69 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet()
71 HashSet<E> set = new HashSet<E>(capacity); in newHashSet()
82 public static <E> SortedSet<E> newSortedSet() { in newSortedSet()
83 return new TreeSet<E>(); in newSortedSet()
93 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet()
94 SortedSet<E> set = new TreeSet<E>(); in newSortedSet()
103 public static <E> ArraySet<E> newArraySet() { in newArraySet()
104 return new ArraySet<E>(); in newArraySet()
111 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet()
113 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet()
DLists.java38 public static <E> ArrayList<E> newArrayList() { in newArrayList()
39 return new ArrayList<E>(); in newArrayList()
61 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList()
63 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DProtobufArrayList.java41 final class ProtobufArrayList<E> extends AbstractProtobufList<E> {
49 public static <E> ProtobufArrayList<E> emptyList() { in emptyList()
50 return (ProtobufArrayList<E>) EMPTY_LIST; in emptyList()
53 private final List<E> list;
56 this(new ArrayList<E>(DEFAULT_CAPACITY)); in ProtobufArrayList()
59 private ProtobufArrayList(List<E> list) { in ProtobufArrayList()
64 public ProtobufArrayList<E> mutableCopyWithCapacity(int capacity) { in mutableCopyWithCapacity()
68 List<E> newList = new ArrayList<E>(capacity); in mutableCopyWithCapacity()
70 return new ProtobufArrayList<E>(newList); in mutableCopyWithCapacity()
74 public void add(int index, E element) { in add()
[all …]
DAbstractProtobufList.java47 abstract class AbstractProtobufList<E> extends AbstractList<E> implements ProtobufList<E> {
102 public boolean add(E e) { in add()
108 public void add(int index, E element) { in add()
114 public boolean addAll(Collection<? extends E> c) { in addAll()
120 public boolean addAll(int index, Collection<? extends E> c) { in addAll()
142 public E remove(int index) { in remove()
166 public E set(int index, E element) { in set()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_enum_validity_nano.proto6 enum E { enum
14 optional E optional_e = 1;
15 optional E default_e = 2 [ default = BAZ ];
16 repeated E repeated_e = 3;
17 repeated E packed_e = 4 [ packed = true ];
18 repeated E repeated_e2 = 5;
19 repeated E packed_e2 = 6 [ packed = true ];
20 repeated E repeated_e3 = 7;
21 repeated E packed_e3 = 8 [ packed = true ];
25 optional E repeated_e2_as_optional = 5;
[all …]
/frameworks/base/core/java/com/android/internal/app/
DProcessMap.java22 public class ProcessMap<E> {
23 final ArrayMap<String, SparseArray<E>> mMap
24 = new ArrayMap<String, SparseArray<E>>();
26 public E get(String name, int uid) { in get()
27 SparseArray<E> uids = mMap.get(name); in get()
32 public E put(String name, int uid, E value) { in put()
33 SparseArray<E> uids = mMap.get(name); in put()
35 uids = new SparseArray<E>(2); in put()
42 public E remove(String name, int uid) { in remove()
43 SparseArray<E> uids = mMap.get(name); in remove()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DWeakSparseArray.java26 final class WeakSparseArray<E> {
28 private final ReferenceQueue<E> mRefQueue = new ReferenceQueue<>();
29 private final SparseArray<WeakReferenceWithId<E>> mSparseArray = new SparseArray<>();
31 public void append(int key, E value) { in append()
41 public E get(int key) { in get()
43 WeakReferenceWithId<E> ref = mSparseArray.get(key); in get()
53 private static class WeakReferenceWithId<E> extends WeakReference<E> {
57 WeakReferenceWithId(E referent, ReferenceQueue<? super E> q, int id) { in WeakReferenceWithId()
/frameworks/base/services/core/java/com/android/server/hdmi/
DUnmodifiableSparseArray.java24 final class UnmodifiableSparseArray<E> {
27 private final SparseArray<E> mArray;
29 public UnmodifiableSparseArray(SparseArray<E> array) { in UnmodifiableSparseArray()
37 public E get(int key) { in get()
41 public E get(int key, E valueIfKeyNotFound) { in get()
49 public E valueAt(int index) { in valueAt()
53 public int indexOfValue(E value) { in indexOfValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestImportPublicProto3.cs75 public int E { property in Google.Protobuf.TestProtos.PublicImportMessage
95 if (E != other.E) return false; in Equals()
102 if (E != 0) hash ^= E.GetHashCode(); in GetHashCode()
113 if (E != 0) { in WriteTo()
115 output.WriteInt32(E); in WriteTo()
122 if (E != 0) { in CalculateSize()
123 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); in CalculateSize()
133 if (other.E != 0) { in MergeFrom()
134 E = other.E; in MergeFrom()
147 E = input.ReadInt32(); in MergeFrom()
/frameworks/base/libs/hwui/utils/
DResult.h24 template <typename E>
26 E error;
29 template <typename R, typename E>
34 Result(Error<E>&& error) : result(std::forward<Error<E>>(error)) {} in Result()
45 E error() const { in error()
47 return std::get<Error<E>>(result).error; in error()
51 std::variant<R, Error<E>> result;
/frameworks/base/core/java/android/util/
DSparseArray.java56 public class SparseArray<E> implements Cloneable {
94 public SparseArray<E> clone() { in clone()
95 SparseArray<E> clone = null; in clone()
97 clone = (SparseArray<E>) super.clone(); in clone()
110 public E get(int key) { in get()
119 public E get(int key, E valueIfKeyNotFound) { in get()
125 return (E) mValues[i]; in get()
147 public E removeReturnOld(int key) { in removeReturnOld()
152 final E old = (E) mValues[i]; in removeReturnOld()
237 public void put(int key, E value) { in put()
[all …]
DLongSparseArray.java52 public class LongSparseArray<E> implements Cloneable {
87 public LongSparseArray<E> clone() { in clone()
88 LongSparseArray<E> clone = null; in clone()
90 clone = (LongSparseArray<E>) super.clone(); in clone()
103 public E get(long key) { in get()
112 public E get(long key, E valueIfKeyNotFound) { in get()
118 return (E) mValues[i]; in get()
196 public void put(long key, E value) { in put()
280 public E valueAt(int index) { in valueAt()
290 return (E) mValues[index]; in valueAt()
[all …]
DArraySet.java50 public final class ArraySet<E> implements Collection<E>, Set<E> {
83 MapCollections<E, E> mCollections;
288 public ArraySet(ArraySet<E> set) { in ArraySet()
298 public ArraySet(Collection<? extends E> set) { in ArraySet()
368 public E valueAt(int index) { in valueAt()
385 public E valueAtUnchecked(int index) { in valueAtUnchecked()
386 return (E) mArray[index]; in valueAtUnchecked()
407 public boolean add(E value) { in add()
460 public void append(E value) { in append()
488 public void addAll(ArraySet<? extends E> array) { in addAll()
[all …]
/frameworks/compile/slang/BitWriter_2_9_func/
DValueEnumerator.cpp38 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
39 I != E; ++I) in ValueEnumerator()
43 for (llvm::Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I) { in ValueEnumerator() local
49 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
50 I != E; ++I) in ValueEnumerator()
57 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
58 I != E; ++I) in ValueEnumerator()
63 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
64 I != E; ++I) in ValueEnumerator()
155 E = Map.end(); I != E; ++I) { in print() local
[all …]
/frameworks/compile/slang/BitWriter_2_9/
DValueEnumerator.cpp38 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
39 I != E; ++I) in ValueEnumerator()
43 for (llvm::Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I) { in ValueEnumerator() local
49 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
50 I != E; ++I) in ValueEnumerator()
57 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
58 I != E; ++I) in ValueEnumerator()
63 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
64 I != E; ++I) in ValueEnumerator()
155 E = Map.end(); I != E; ++I) { in print() local
[all …]
/frameworks/compile/slang/BitWriter_3_2/
DValueEnumerator.cpp38 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
39 I != E; ++I) in ValueEnumerator()
43 for (llvm::Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I) { in ValueEnumerator() local
49 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
50 I != E; ++I) in ValueEnumerator()
57 for (llvm::Module::const_global_iterator I = M.global_begin(), E = M.global_end(); in ValueEnumerator() local
58 I != E; ++I) in ValueEnumerator()
63 for (llvm::Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); in ValueEnumerator() local
64 I != E; ++I) in ValueEnumerator()
155 E = Map.end(); I != E; ++I) { in print() local
[all …]
/frameworks/compile/slang/
Dslang_rs_check_ast.cpp33 for (clang::Stmt::child_iterator I = S->child_begin(), E = S->child_end(); in VisitStmt() local
34 I != E; in VisitStmt()
42 void RSCheckAST::WarnOnSetElementAt(clang::CallExpr *E) { in WarnOnSetElementAt() argument
44 Decl = clang::dyn_cast_or_null<clang::FunctionDecl>(E->getCalleeDecl()); in WarnOnSetElementAt()
52 Expr = E->getArg(1); in WarnOnSetElementAt()
128 Context->ReportWarning(E->getLocStart(), in WarnOnSetElementAt()
140 void RSCheckAST::VisitCallExpr(clang::CallExpr *E) { in VisitCallExpr() argument
141 WarnOnSetElementAt(E); in VisitCallExpr()
143 for (clang::CallExpr::arg_iterator AI = E->arg_begin(), AE = E->arg_end(); in VisitCallExpr()
234 E = DS->decl_end(); in VisitDeclStmt() local
[all …]
/frameworks/av/media/codec2/core/include/
DC2Enum.h87 template<typename E>
89 std::vector<std::pair<C2StringLiteral, E>> items) { in customEnumValues()
202 template<class E>
204 using U = typename std::underlying_type<E>::type;
205 E value;
207 inline constexpr operator E() const { return value; } in E() function
208 inline constexpr C2EasyEnum(E value_) : value(value_) { } in C2EasyEnum()
209 inline constexpr C2EasyEnum(U value_) : value(E(value_)) { } in C2EasyEnum()
216 template<typename E>
217 struct underlying_type<C2EasyEnum<E>> {
[all …]
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DOmniFunction.java46 abstract class OmniFunction<A, B, C, D, E, F, G, H, I, R> implements
48 QuadFunction<A, B, C, D, R>, QuintFunction<A, B, C, D, E, R>,
49 HexFunction<A, B, C, D, E, F, R>, HeptFunction<A, B, C, D, E, F, G, R>,
50 OctFunction<A, B, C, D, E, F, G, H, R>, NonaFunction<A, B, C, D, E, F, G, H, I, R>,
52 QuintConsumer<A, B, C, D, E>, HexConsumer<A, B, C, D, E, F>,
53 HeptConsumer<A, B, C, D, E, F, G>, OctConsumer<A, B, C, D, E, F, G, H>,
54 NonaConsumer<A, B, C, D, E, F, G, H, I>, PooledPredicate<A>, BiPredicate<A, B>,
58 abstract R invoke(A a, B b, C c, D d, E e, F f, G g, H h, I i); in invoke()
70 public abstract <V> OmniFunction<A, B, C, D, E, F, G, H, I, V> andThen( in andThen()
72 public abstract OmniFunction<A, B, C, D, E, F, G, H, I, R> negate(); in negate()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowList.java25 class WindowList<E> extends ArrayList<E> {
27 void addFirst(E e) { in addFirst()
31 E peekLast() { in peekLast()
35 E peekFirst() { in peekFirst()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java44 public class SparseWeakArray<E> {
72 public E get(long key) { in get()
80 public E get(long key, E valueIfKeyNotFound) { in get()
86 return (E) mValues[i].get(); in get()
151 public void put(long key, E value) { in put()
208 public E valueAt(int index) { in valueAt()
213 return (E) mValues[index].get(); in valueAt()
221 public void setValueAt(int index, E value) { in setValueAt()
250 public int indexOfValue(E value) { in indexOfValue()
281 public void append(long key, E value) { in append()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java54 public class RemoteCallbackList<E extends IInterface> {
66 final E mCallback;
69 Callback(E callback, Object cookie) { in Callback()
86 public boolean register(E callback) { in register()
116 public boolean register(E callback, Object cookie) { in register()
152 public boolean unregister(E callback) { in unregister()
186 public void onCallbackDied(E callback) { in onCallbackDied()
203 public void onCallbackDied(E callback, Object cookie) { in onCallbackDied()
281 public E getBroadcastItem(int index) { in getBroadcastItem()
327 public void broadcast(Consumer<E> action) { in broadcast()
[all …]
/frameworks/ml/nn/tools/systrace_parser/
Dcontract-between-code-and-parser.txt36 …NNTRACE_RT(NNTRACE_PHASE_PREPARATION, t1: t_m_w:E|T1 …
47 "funcA1); t2: t_m_w:E|T1
48 …... funcR1(...); t3: t_m_w:E|T1 …
70 ... t2: t_m_w:E|T1
71 …NNTRACE_COMP_SWITCH("funcC1"); t3: t_m_w:E|T1 …
84 …"funcR2); t2: t_m_w:E|T1 total…
85 ... funcC2(...); t3: t_m_w:E|T1
99 "funcR3); t2: t_m_w:E|T1
100 …... funcR4(...); t3: t_m_w:E|T1 …
117 ... device->getCapabilities() t3: t_m_w:E|T1
[all …]
/frameworks/native/opengl/tests/testPauseResume/
DREADME24 E/AndroidRuntime( 1466): FATAL EXCEPTION: GLThread 9
25 E/AndroidRuntime( 1466): java.lang.RuntimeException: createContext failed: EGL_BAD_ALLOC
26 E/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfa…
27 E/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfa…
28 E/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:…
29 E/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.j…
30 E/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:110…
/frameworks/base/core/java/android/text/
DSpanSet.java32 public class SpanSet<E> {
33 private final Class<? extends E> classType;
37 E[] spans;
42 SpanSet(Class<? extends E> type) { in SpanSet()
49 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
54 spans = (E[]) Array.newInstance(classType, length); in init()
63 final E span = allSpans[i]; in init()

123456789