/frameworks/base/core/java/com/google/android/collect/ |
D | Sets.java | 69 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()
|
D | Lists.java | 39 public static <E> ArrayList<E> newArrayList() { in newArrayList() 40 return new ArrayList<E>(); in newArrayList() 62 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() 64 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ProcessMap.java | 22 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/ |
D | WeakSparseArray.java | 26 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/textclassifier/ |
D | FixedSizeQueue.java | 37 public final class FixedSizeQueue<E> { 39 private final Queue<E> mDelegate; 42 private final OnEntryEvictedListener<E> mOnEntryEvictedListener; 46 public FixedSizeQueue(int maxSize, @Nullable OnEntryEvictedListener<E> onEntryEvictedListener) { in FixedSizeQueue() 59 public boolean add(@NonNull E element) { in add() 62 E removed = mDelegate.remove(); in add() 75 public E poll() { in poll() 82 public boolean remove(@NonNull E element) { in remove() 97 public interface OnEntryEvictedListener<E> { 101 void onEntryEvicted(@NonNull E element); in onEntryEvicted()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | UnmodifiableSparseArray.java | 24 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/base/libs/hwui/utils/ |
D | Result.h | 24 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | LruList.java | 30 public class LruList<E> { 32 private LinkedList<E> mLinkedList; 40 mLinkedList = new LinkedList<E>(); in LruList() 50 public void add(@NonNull E entry) { in add() 67 public void remove(@NonNull E entry) { in remove() 82 public @NonNull List<E> getEntries() { in getEntries() 83 return new ArrayList<E>(mLinkedList); in getEntries() 98 public int indexOf(E entry) { in indexOf()
|
D | MissingCounterTimerLockList.java | 33 public class MissingCounterTimerLockList<E> { 36 private final Map<E, LockListEntry> mEntries; 53 public void update(@NonNull Set<E> entrySet) { in update() 57 for (Map.Entry<E, LockListEntry> mapEntry : mEntries.entrySet()) { in update() 74 public void add(@NonNull E entry, long duration) { in add() 86 public boolean remove(@NonNull E entry) { in remove() 95 public boolean isLocked(@NonNull E entry) { in isLocked()
|
/frameworks/compile/slang/BitWriter_2_9/ |
D | ValueEnumerator.cpp | 38 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/ |
D | ValueEnumerator.cpp | 38 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_func/ |
D | ValueEnumerator.cpp | 38 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/ |
D | slang_rs_check_ast.cpp | 33 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/base/core/java/android/util/ |
D | SparseArray.java | 56 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() 121 public E get(int key) { in get() 130 public E get(int key, E valueIfKeyNotFound) { in get() 136 return (E) mValues[i]; in get() 158 public E removeReturnOld(int key) { in removeReturnOld() 163 final E old = (E) mValues[i]; in removeReturnOld() 248 public void put(int key, E value) { in put() [all …]
|
D | ArraySet.java | 54 public final class ArraySet<E> implements Collection<E>, Set<E> { 93 private MapCollections<E, E> mCollections; 315 public ArraySet(ArraySet<E> set) { in ArraySet() 325 public ArraySet(Collection<? extends E> set) { in ArraySet() 335 public ArraySet(@Nullable E[] array) { in ArraySet() 338 for (E value : array) { in ArraySet() 417 public E valueAt(int index) { in valueAt() 434 public E valueAtUnchecked(int index) { in valueAtUnchecked() 435 return (E) mArray[index]; in valueAtUnchecked() 454 public boolean add(E value) { in add() [all …]
|
D | LongSparseArray.java | 60 public class LongSparseArray<E> implements Cloneable { 95 public LongSparseArray<E> clone() { in clone() 96 LongSparseArray<E> clone = null; in clone() 98 clone = (LongSparseArray<E>) super.clone(); in clone() 111 public E get(long key) { in get() 120 public E get(long key, E valueIfKeyNotFound) { in get() 126 return (E) mValues[i]; in get() 153 public void removeIf(@NonNull LongObjPredicate<? super E> filter) { in removeIf() 156 if (mValues[i] != DELETED && filter.test(mKeys[i], (E) mValues[i])) { in removeIf() 216 public void put(long key, E value) { in put() [all …]
|
/frameworks/base/core/java/com/android/internal/util/function/pooled/ |
D | OmniFunction.java | 53 abstract class OmniFunction<A, B, C, D, E, F, G, H, I, J, K, R> implements 55 QuadFunction<A, B, C, D, R>, QuintFunction<A, B, C, D, E, R>, 56 HexFunction<A, B, C, D, E, F, R>, HeptFunction<A, B, C, D, E, F, G, R>, 57 OctFunction<A, B, C, D, E, F, G, H, R>, NonaFunction<A, B, C, D, E, F, G, H, I, R>, 58 DecFunction<A, B, C, D, E, F, G, H, I, J, R>, 59 UndecFunction<A, B, C, D, E, F, G, H, I, J, K, R>, 61 QuintConsumer<A, B, C, D, E>, HexConsumer<A, B, C, D, E, F>, 62 HeptConsumer<A, B, C, D, E, F, G>, OctConsumer<A, B, C, D, E, F, G, H>, 63 NonaConsumer<A, B, C, D, E, F, G, H, I>, DecConsumer<A, B, C, D, E, F, G, H, I, J>, 64 UndecConsumer<A, B, C, D, E, F, G, H, I, J, K>, [all …]
|
D | PooledLambda.java | 403 static <A, B, C, D, E> PooledPredicate<A> obtainPredicate( in obtainPredicate() 404 QuintPredicate<? super A, ? super B, ? super C, ? super D, ? super E> function, in obtainPredicate() 405 ArgumentPlaceholder<A> arg1, B arg2, C arg3, D arg4, E arg5) { in obtainPredicate() 953 static <A, B, C, D, E> PooledRunnable obtainRunnable( in obtainRunnable() 954 QuintConsumer<? super A, ? super B, ? super C, ? super D, ? super E> function, in obtainRunnable() 955 A arg1, B arg2, C arg3, D arg4, E arg5) { in obtainRunnable() 974 static <A, B, C, D, E, R> PooledSupplier<R> obtainSupplier( in obtainSupplier() 975 QuintFunction<? super A, ? super B, ? super C, ? super D, ? super E, ? extends R> in obtainSupplier() argument 976 function, A arg1, B arg2, C arg3, D arg4, E arg5) { in obtainSupplier() 1009 static <A, B, C, D, E> Message obtainMessage( in obtainMessage() [all …]
|
/frameworks/av/media/codec2/core/include/ |
D | C2Enum.h | 87 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/services/core/java/com/android/server/wm/ |
D | WindowList.java | 25 class WindowList<E> extends ArrayList<E> { 27 void addFirst(E e) { in addFirst() 31 E peekLast() { in peekLast() 35 E peekFirst() { in peekFirst()
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 54 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() 153 public boolean unregister(E callback) { in unregister() 187 public void onCallbackDied(E callback) { in onCallbackDied() 204 public void onCallbackDied(E callback, Object cookie) { in onCallbackDied() 282 public E getBroadcastItem(int index) { in getBroadcastItem() 328 public void broadcast(Consumer<E> action) { in broadcast() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 44 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/native/opengl/tests/testPauseResume/ |
D | README | 24 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/ |
D | SpanSet.java | 33 public class SpanSet<E> { 34 private final Class<? extends E> classType; 38 E[] spans; 43 SpanSet(Class<? extends E> type) { in SpanSet() 50 final E[] allSpans = spanned.getSpans(start, limit, classType); in init() 55 spans = (E[]) Array.newInstance(classType, length); in init() 64 final E span = allSpans[i]; in init()
|
/frameworks/ml/nn/tools/systrace_parser/ |
D | contract-between-code-and-parser.txt | 36 …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 …]
|