Home
last modified time | relevance | path

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

123456

/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/cursor/
DCursorView.kt22 interface CursorView<out E> : Cursor {
27 fun readRow(): E? in readRow()
34 fun <E> Cursor.viewBy(readRow: Cursor.() -> E): CursorView<E> = in readRow()
35 object : CursorView<E>, Cursor by this@viewBy { in readRow()
36 override fun readRow(): E? = immobilized().readRow() in readRow()
40 fun <E> CursorView<E>.startAt(newStartIndex: Int): CursorView<E> = in startAt()
41 object : CursorView<E>, Cursor by (this@startAt as Cursor).startAt(newStartIndex) { in startAt()
42 override fun readRow(): E? = this@startAt.readRow() in startAt()
46 fun <E> CursorView<E>.limit(count: Int): CursorView<E> = in limit()
47 object : CursorView<E>, Cursor by (this@limit as Cursor).limit(count) { in limit()
[all …]
DPagedCursor.kt22 interface PagedCursor<out E> : CursorView<Sequence<E?>> {
28 fun <E> CursorView<E>.paged(pageSize: Int): PagedCursor<E> = in paged()
29 object : PagedCursor<E>, Cursor by this@paged { in paged()
50 override fun readRow(): Sequence<E?> = in paged()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DSets.java67 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet()
69 HashSet<E> set = new HashSet<E>(capacity); in newHashSet()
79 public static <E> SortedSet<E> newSortedSet() { in newSortedSet()
80 return new TreeSet<E>(); in newSortedSet()
90 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet()
91 SortedSet<E> set = new TreeSet<E>(); in newSortedSet()
99 public static <E> ArraySet<E> newArraySet() { in newArraySet()
100 return new ArraySet<E>(); in newArraySet()
106 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet()
108 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet()
DLists.java44 public static <E> ArrayList<E> newArrayList() { in newArrayList()
45 return new ArrayList<E>(); in newArrayList()
66 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList()
68 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
DPairSparseArray.java36 public class PairSparseArray<E> implements Cloneable {
44 private final LongSparseArray<E> mValues;
62 private PairSparseArray(PairSparseArray<E> other) { in PairSparseArray()
69 public PairSparseArray<E> clone() { in clone()
70 return new PairSparseArray<E>(this); in clone()
98 public void append(int firstKey, int secondKey, E value) { in append()
138 public E get(int firstKey, int secondKey) { in get()
154 public E get(int firstKey, int secondKey, E valueIfKeyPairNotFound) { in get()
179 public int indexOfValue(E value) { in indexOfValue()
200 public void put(int firstKey, int secondKey, E value) { in put()
[all …]
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/base/
DFlagEnum.java33 static <E extends Enum<E> & FlagEnum> int toInt(Set<E> enumSet) { in toInt()
35 for (E flag : enumSet) { in toInt()
41 static <E extends Enum<E> & FlagEnum> EnumSet<E> toEnumSet(int flags, E[] values) { in toEnumSet()
45 List<E> flagList = new ArrayList<>(); in toEnumSet()
46 for (E value : values) { in toEnumSet()
52 Class<E> c = values[0].getDeclaringClass(); in toEnumSet()
59 static <E extends Enum<E> & FlagEnum> long toLong(Set<E> enumSet) { in toLong()
61 for (E flag : enumSet) { in toLong()
67 static <E extends Enum<E> & FlagEnum> EnumSet<E> longToEnumSet(long flags, E[] values) { in longToEnumSet()
71 List<E> flagList = new ArrayList<>(); in longToEnumSet()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java40 public class ConcurrentSharedRingBuffer<E> {
46 public static interface SwapTask<E> {
53 public E create(); in create()
62 public E swap(E oldElement); in swap()
72 public void update(E existingElement); in update()
89 public static interface Selector<E> {
94 public boolean select(E element); in select()
112 private static class Pinnable<E> {
113 private E mElement;
118 public Pinnable(E element) { in Pinnable()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt29 interface TrackRecord<E> : List<E> {
34 fun add(e: E): Boolean in add()
46 fun poll(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean = { true }): E? in add()
55 class ArrayTrackRecord<E> : TrackRecord<E> {
59 private val elements = ArrayList<E>()
64 class ArrayTrackRecordIterator<E>(
65 private val list: ArrayList<E>,
68 ) : ListIterator<E> {
80 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()
81 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DAbstractKeyboardBuilder.java30 abstract class AbstractKeyboardBuilder<E> {
32 private E[][] mRows;
35 abstract E defaultElement(); in defaultElement()
37 abstract E[] newArray(final int size); in newArray()
39 abstract E[][] newArrayOfArray(final int size); in newArrayOfArray()
54 AbstractKeyboardBuilder(final E[][] rows) { in AbstractKeyboardBuilder()
57 final E[] row = rows[rowIndex]; in AbstractKeyboardBuilder()
66 E[][] build() { in build()
84 E[] getRowAt(final int row) { in getRowAt()
98 void setRowAt(final int row, final E[] elements) { in setRowAt()
[all …]
/packages/modules/Bluetooth/system/tools/irk-calculator/
DREADME.mkdn35 RPA: 58:9B:3E:A3:5B:24
43 IRK Byte Array: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10]
47 irk slice: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10]
49 K: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10]
53 key_reversed: [10, 0F, 0E, 0D, 0C, 0B, 0A, 09, 08, 07, 06, 05, 04, 03, 02, 01]
64 $ cargo build && RUST_BACKTRACE=1 ./target/debug/irk-calculator -c verify -a "58:9B:3E:A3:5B:24" -i…
65 Verifying 0102030405060708090a0b0c0d0e0f10 and 58:9B:3E:A3:5B:24
66 IRK Byte Array: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10]
67 Address Byte Array: [58, 9B, 3E, A3, 5B, 24]
68 prand: [58, 9B, 3E]
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntSparseArrayMap.java26 public class IntSparseArrayMap<E> extends SparseArray<E> implements Iterable<E> {
37 public IntSparseArrayMap<E> clone() { in clone()
38 return (IntSparseArrayMap<E>) super.clone(); in clone()
42 public Iterator<E> iterator() { in iterator()
46 @Thunk class ValueIterator implements Iterator<E> {
56 public E next() { in next()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/table/packed/read/
DBaseTypedPackedTable.java31 abstract class BaseTypedPackedTable<E extends Table.TableEntry<E>> implements Table<E> {
54 public E getEntryByIndex(int i) { in getEntryByIndex()
66 protected abstract E createEntry(PackedTableReader.Entry entry); in createEntry()
69 public E getEntry(int key) { in getEntry()
78 E wrapEntryOrNull(PackedTableReader.Entry entry) { in wrapEntryOrNull()
86 abstract class BasePackedTableEntry implements TableEntry<E> {
105 public E getPrevious() { in getPrevious()
111 public E getNext() { in getNext()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DResult.h48 template <typename T, typename E>
49 operator base::expected<T, E>() /* NOLINT(google-explicit-constructor) */ {
52 return base::unexpected<E>(E{std::move(mStream).str(), std::move(args)...});
99 template <typename T, typename E>
100 bool nnTryHasValue(const base::expected<T, E>& o) { in nnTryHasValue()
104 template <typename T, typename E>
105 T nnTryGetValue(base::expected<T, E> o) { in nnTryGetValue()
109 template <typename T, typename E>
110 base::unexpected<E> nnTryGetError(base::expected<T, E> o) { in nnTryGetError()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DLruList.java30 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()
DMissingCounterTimerLockList.java33 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()
75 public void add(@NonNull E entry, long duration, long maxTimeoutDuration) { in add()
87 public boolean remove(@NonNull E entry) { in remove()
96 public boolean isLocked(@NonNull E entry) { in isLocked()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DLruList.java32 public class LruList<E> {
34 private LinkedList<E> mLinkedList;
42 mLinkedList = new LinkedList<E>(); in LruList()
52 public void add(@NonNull E entry) { in add()
69 public void remove(@NonNull E entry) { in remove()
84 public @NonNull List<E> getEntries() { in getEntries()
85 return new ArrayList<E>(mLinkedList); in getEntries()
100 public int indexOf(E entry) { in indexOf()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java157 public <E> E getGlobalProperty(Class<E> propertyClass, int propId) { in getGlobalProperty()
171 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty()
185 public <E> void setGlobalProperty(Class<E> propertyClass, int propId, E value) { in setGlobalProperty()
201 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) { in setProperty()
/packages/services/Car/service/src/com/android/car/util/
DSparseArrayStream.java33 public static <E> IntStream keyStream(SparseArray<E> array) { in keyStream()
38 public static <E> Stream<E> valueStream(SparseArray<E> array) { in valueStream()
43 public static <E> Stream<Pair<Integer, E>> pairStream(SparseArray<E> array) { in pairStream()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java22 public class SparseArray<E> {
24 private final ArrayList<E> mValues;
44 public void put(final int key, final E value) { in put()
55 public E get(final int key) { in get()
59 public E get(final int key, final E valueIfKeyNotFound) { in get()
71 public int indexOfValue(final E value) { in indexOfValue()
79 public E valueAt(final int index) { in valueAt()
/packages/services/Telephony/utils/satellite/s2storage/src/write/java/com/android/telephony/sats2range/write/
DPushBackIterator.java27 public final class PushBackIterator<E> implements Iterator<E> {
29 private final ArrayList<E> mPushBackStack = new ArrayList<>();
31 private final Iterator<E> mIterator;
33 public PushBackIterator(Iterator<E> iterator) { in PushBackIterator()
43 public E next() { in next()
53 public void pushBack(E element) { in pushBack()
/packages/modules/GeoTZ/tzs2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
DPushBackIterator.java27 public final class PushBackIterator<E> implements Iterator<E> {
29 private final ArrayList<E> mPushBackStack = new ArrayList<>();
31 private final Iterator<E> mIterator;
33 public PushBackIterator(Iterator<E> iterator) { in PushBackIterator()
43 public E next() { in next()
53 public void pushBack(E element) { in pushBack()
/packages/apps/Messaging/src/com/android/messaging/util/
DCircularArray.java25 public class CircularArray<E> {
55 public void add(E object) { in add()
84 public E getFree() { in getFree()
88 return (E) mList[mNextWriter]; in getFree()
100 public E get(int index) { in get()
106 return (E) mList[wrappedIndex]; in get()
108 return (E) mList[index]; in get()
/packages/modules/NeuralNetworks/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 …]
/packages/modules/HealthFitness/tests/integrationtests/TestApp/src/android/healthconnect/test/app/
DBlockingOutcomeReceiver.java25 public class BlockingOutcomeReceiver<T, E extends Throwable> implements OutcomeReceiver<T, E> {
29 private E mError;
38 public void onError(E error) { in onError()
44 public T getResult() throws E { in getResult()
50 public void awaitSuccess() throws E { in awaitSuccess()
59 public E getError() { in getError()
/packages/modules/GeoTZ/s2storage/src/testing/java/com/android/storage/testing/
DTestSupport.java32 public static <E> List<E> listOf(E... values) { in listOf()
38 public static <E> Set<E> setOf(E... values) { in setOf()

123456