Home
last modified time | relevance | path

Searched refs:mList (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DLruConnectionTrackerTest.java39 private LruConnectionTracker mList; field in LruConnectionTrackerTest
50 mList = new LruConnectionTracker(TEST_MAX_SIZE, mContext); in setUp()
56 assertEquals(Integer.MAX_VALUE, mList.getAgeIndexOfNetwork(network)); in testAddRemoveNetwork()
57 mList.addNetwork(network); in testAddRemoveNetwork()
58 assertEquals(0, mList.getAgeIndexOfNetwork(network)); in testAddRemoveNetwork()
59 mList.removeNetwork(network); in testAddRemoveNetwork()
60 assertEquals(Integer.MAX_VALUE, mList.getAgeIndexOfNetwork(network)); in testAddRemoveNetwork()
70 mList.addNetwork(network1); in testConnectionOrderStore()
71 mList.addNetwork(network2); in testConnectionOrderStore()
72 mList.addNetwork(network3); in testConnectionOrderStore()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentStack.java55 private LinkedList<DocumentInfo> mList; field in DocumentStack
61 mList = new LinkedList<>(); in DocumentStack()
69 mList = new LinkedList<>(); in DocumentStack()
71 mList.add(docs[i]); in DocumentStack()
82 mList = new LinkedList<>(docs); in DocumentStack()
91 mList = new LinkedList<>(src.mList); in DocumentStack()
109 return mList.isEmpty(); in isEmpty()
113 return mList.size(); in size()
117 return mList.peekLast(); in peek()
124 return mList.get(index); in get()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapConvoListing.java42 private List<BluetoothMapConvoListingElement> mList; field in BluetoothMapConvoListing
45 mList = new ArrayList<BluetoothMapConvoListingElement>(); in BluetoothMapConvoListing()
49 mList.add(element); in add()
61 if (mList != null) { in getCount()
62 return mList.size(); in getCount()
81 return mList; in getList()
103 for (BluetoothMapConvoListingElement element : mList) { in encode()
119 Collections.sort(mList); in sort()
123 count = Math.min(count, mList.size() - offset); in segment()
125 mList = mList.subList(offset, offset + count); in segment()
[all …]
DBluetoothMapMessageListing.java37 private List<BluetoothMapMessageListingElement> mList; field in BluetoothMapMessageListing
40 mList = new ArrayList<BluetoothMapMessageListingElement>(); in BluetoothMapMessageListing()
44 mList.add(element); in add()
56 if (mList != null) { in getCount()
57 return mList.size(); in getCount()
76 return mList; in getList()
115 for (BluetoothMapMessageListingElement element : mList) { in encode()
140 Collections.sort(mList); in sort()
144 count = Math.min(count, mList.size() - offset); in segment()
146 mList = mList.subList(offset, offset + count); in segment()
[all …]
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DMockImageList.java12 private final ArrayList<IImage> mList = new ArrayList<IImage>(); field in MockImageList
25 return mList.size(); in getCount()
29 return mList.get(i); in getImageAt()
37 return mList.indexOf(image); in getImageIndex()
41 return mList.isEmpty(); in isEmpty()
45 return mList.remove(image); in removeImage()
49 return mList.remove(i) != null; in removeImageAt()
53 mList.add(image); in addImage()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemList.java55 private final LinkedList<FilmstripItem> mList = new LinkedList<FilmstripItem>(); field in FilmstripItemList
59 return mList.get(index); in get()
71 FilmstripItem removedItem = mList.remove(index); in remove()
85 mList.set(pos, data); in set()
90 mList.add(data); in add()
95 mList.add(pos, data); in add()
106 return mList.size(); in size()
110 Collections.sort(mList, comparator); in sort()
122 return mList.indexOf(new UriWrapper(uri)); in indexOf()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DRunnableList.java25 private ArrayList<Runnable> mList = null; field in RunnableList
39 if (mList == null) { in add()
40 mList = new ArrayList<>(); in add()
42 mList.add(runnable); in add()
58 if (mList != null) { in executeAllAndClear()
59 ArrayList<Runnable> list = mList; in executeAllAndClear()
60 mList = null; in executeAllAndClear()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java56 private ArrayList<WatchEntry> mList = new ArrayList<WatchEntry>(); field in Profile.Watchdog
83 mList.add(e); in addWatchEntry()
88 for (int i = 0; i < mList.size(); i++) { in removeWatchEntry()
89 if (mList.get(i).thread == thread) { in removeWatchEntry()
90 mList.remove(i); in removeWatchEntry()
98 mList.clear(); in removeAllWatchEntries()
104 if (mList.size() == 0) return; in processList()
109 for (WatchEntry entry : mList) { in processList()
140 for (int i = 0; i < mList.size(); i++) { in findEntry()
141 WatchEntry entry = mList.get(i); in findEntry()
/packages/services/Car/cpp/telemetry/cartelemetryd/src/
DRingBuffer.cpp32 mList.push_back(std::move(data)); in push()
33 while (mList.size() > mSizeLimit) { in push()
34 mList.pop_front(); in push()
40 auto result = std::move(mList.back()); in popBack()
41 mList.pop_back(); in popBack()
48 dprintf(fd, " mList.size=%zu\n", mList.size()); in dump()
53 return mList.size(); in size()
DRingBuffer.h62 std::list<BufferedCarData> mList; variable
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java61 private ArrayList<Entry> mList = new ArrayList<Entry>(); field in PhotoFallbackEffect
69 mList.add(new Entry(path, rect, texture)); in addEntry()
73 for (int i = 0, n = mList.size(); i < n; ++i) { in getEntry()
74 Entry entry = mList.get(i); in getEntry()
82 for (int i = 0, n = mList.size(); i < n; ++i) { in draw()
83 Entry entry = mList.get(i); in draw()
164 for (int i = 0, n = mList.size(); i < n; ++i) { in setPositionProvider()
165 Entry entry = mList.get(i); in setPositionProvider()
173 for (int i = 0, n = mList.size(); i < n; ++i) { in acceptSlot()
174 Entry entry = mList.get(i); in acceptSlot()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBytesBufferPool.java66 private final ArrayList<BytesBuffer> mList; field in BytesBufferPool
69 mList = new ArrayList<BytesBuffer>(poolSize); in BytesBufferPool()
75 int n = mList.size(); in get()
76 return n > 0 ? mList.remove(n - 1) : new BytesBuffer(mBufferSize); in get()
81 if (mList.size() < mPoolSize) { in recycle()
84 mList.add(buffer); in recycle()
89 mList.clear(); in clear()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java118 private ListView mList; field in RootsFragment
165 mList = (ListView) view.findViewById(R.id.roots_list); in onCreateView()
166 mList.setOnItemClickListener(mItemListener); in onCreateView()
173 mList.setOnGenericMotionListener( in onCreateView()
189 mList.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in onCreateView()
190 mList.setSelector(new ColorDrawable(Color.TRANSPARENT)); in onCreateView()
195 final int pos = mList.pointToPosition(x, y); in onRightClick()
237 mDragListener = DragHoverListener.create(listener, mList); in onActivityCreated()
238 mList.setOnDragListener(mDragListener); in onActivityCreated()
300 final int firstPosition = mList.getFirstVisiblePosition(); in onActivityCreated()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DCircularArray.java29 Object mList[]; field in CircularArray
47 mList = new Object[mMaxCount]; in clear()
56 mList[mNextWriter] = object; in add()
88 return (E) mList[mNextWriter]; in getFree()
106 return (E) mList[wrappedIndex]; in get()
108 return (E) mList[index]; in get()
/packages/apps/TV/src/com/android/tv/data/
DParcelableList.java33 list.mList.add(in.readParcelable(Thread.currentThread().getContextClassLoader())); in fromParcel()
53 private final List<T> mList = new ArrayList<>(); field in ParcelableList
58 mList.addAll(initialList); in ParcelableList()
63 return new ArrayList<T>(mList); in getList()
73 out.writeInt(mList.size()); in writeToParcel()
74 for (T data : mList) { in writeToParcel()
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/
DFocusParkingViewTest.java59 private RecyclerView mList; field in FocusParkingViewTest
68 mList = mActivity.findViewById(R.id.list); in setUp()
70 mList.post(() -> { in setUp()
71 mList.setLayoutManager(new LinearLayoutManager(mActivity)); in setUp()
72 mList.setAdapter(new TestAdapter(NUM_ITEMS)); in setUp()
73 setRotaryScrollEnabled(mList, /* isVertical= */ true); in setUp()
257 mList.post(() -> mList.getViewTreeObserver().addOnGlobalLayoutListener( in testRestoreFocusInRoot_recyclerViewItemRemoved()
261 mList.getViewTreeObserver().removeOnGlobalLayoutListener(this); in testRestoreFocusInRoot_recyclerViewItemRemoved()
262 mList.post(() -> latch1.countDown()); in testRestoreFocusInRoot_recyclerViewItemRemoved()
268 View firstItem = mList.getLayoutManager().findViewByPosition(0); in testRestoreFocusInRoot_recyclerViewItemRemoved()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DLruConnectionTracker.java31 private final LruList<ScanResultMatchInfo> mList; field in LruConnectionTracker
34 mList = new LruList<>(size); in LruConnectionTracker()
49 mList.add(ScanResultMatchInfo.fromWifiConfiguration(config)); in addNetwork()
56 mList.remove(ScanResultMatchInfo.fromWifiConfiguration(config)); in removeNetwork()
65 int index = mList.indexOf(ScanResultMatchInfo.fromWifiConfiguration(config)); in getAgeIndexOfNetwork()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java163 private final ArrayList<SdpSearchInstance> mList = new ArrayList<SdpSearchInstance>(); field in SdpManager.SdpSearchTracker
166 mList.clear(); in clear()
170 return mList.add(inst); in add()
174 return mList.remove(inst); in remove()
178 if (mList.size() > 0) { in getNext()
179 return mList.get(0); in getNext()
187 for (SdpSearchInstance inst : mList) { in getSearchInstance()
198 for (SdpSearchInstance inst : mList) { in isSearching()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAppChooserActivity.java195 private List<DisplayAppInfo> mList; field in AppChooserActivity.ListAdapter
201 mList = new ArrayList<DisplayAppInfo>(); in ListAdapter()
216 mList.add(info); in ListAdapter()
222 return mList.size(); in getCount()
227 return mList.get(position); in getItem()
254 DisplayAppInfo appInfo = mList.get(position); in getView()
/packages/apps/Contacts/src/com/android/contacts/list/
DCustomContactListFilterActivity.java96 private ExpandableListView mList; field in CustomContactListFilterActivity
104 mList = (ExpandableListView) findViewById(android.R.id.list); in onCreate()
105 mList.setOnChildClickListener(this); in onCreate()
106 mList.setHeaderDividersEnabled(true); in onCreate()
107 mList.setChildDivider(new ColorDrawable(Color.TRANSPARENT)); in onCreate()
109 mList.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { in onCreate()
114 mList.setIndicatorBounds( in onCreate()
115 mList.getWidth() - getResources().getDimensionPixelSize( in onCreate()
117 mList.getWidth() - getResources().getDimensionPixelSize( in onCreate()
124 mList.setOnCreateContextMenuListener(this); in onCreate()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java249 List<AppOpEntry> mList; field in AppOpsCategory.AppListAdapter
258 mList = data; in setData()
264 return mList != null ? mList.size() : 0; in getCount()
269 return mList.get(position); in getItem()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java271 private final IImageList mList; field in ImageListUber.MergeSlot
278 mList = list; in MergeSlot()
283 if (mOffset >= mList.getCount() - 1) return false; in next()
284 mImage = mList.getImageAt(++mOffset); in next()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceControllerTest.java149 List<Preference> mList = new ArrayList<>(); field in ModuleLicensesPreferenceControllerTest.MockPreferenceGroup
157 mList.add(preference); in addPreference()
163 return mList.size(); in getPreferenceCount()
168 return mList.get(index); in getPreference()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/
DAlertDialogBuilder.java445 RecyclerView mList = CarUiUtils.requireViewByRefId(customList, R.id.list); in setCustomList() local
446 mList.setLayoutManager(new LinearLayoutManager(mContext)); in setCustomList()
447 mList.setAdapter(adapter); in setCustomList()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java222 protected final ArrayList<NameMatchCandidate> mList = new ArrayList<NameMatchCandidate>(); field in AbstractContactAggregator.MatchCandidateList
229 if (mCount >= mList.size()) { in add()
230 mList.add(new NameMatchCandidate(name, nameLookupType)); in add()
232 NameMatchCandidate candidate = mList.get(mCount); in add()
1113 if (mNameLookupCandidates.mList.get(i).mName.equals(name)) { in getLookupType()
1114 return mNameLookupCandidates.mList.get(i).mLookupType; in getLookupType()
1249 NameMatchCandidate candidate = candidates.mList.get(i); in matchAllCandidates()

12