/libcore/benchmarks/src/benchmarks/ |
ArrayListIterationBenchmark.java | 29 ArrayList<Foo> mList = new ArrayList<Foo>(); 31 for (int i = 0; i < 27; ++i) mList.add(new Foo()); 36 ArrayList<Foo> list = mList; 46 for (Foo a : mList) {
|
/packages/apps/Camera2/src/com/android/camera/data/ |
LocalDataList.java | 50 private LinkedList<LocalData> mList = new LinkedList<LocalData>(); 54 return mList.get(index); 58 LocalData removedItem = mList.remove(index); 68 mList.set(pos, data); 73 mList.add(data); 78 mList.add(pos, data); 83 return mList.size(); 87 Collections.sort(mList, comparator); 99 return mList.indexOf(new UriWrapper(uri));
|
/frameworks/base/core/java/android/app/ |
ExpandableListActivity.java | 160 ExpandableListView mList; 220 mList = (ExpandableListView)findViewById(com.android.internal.R.id.list); 221 if (mList == null) { 227 mList.setEmptyView(emptyView); 229 mList.setOnChildClickListener(this); 230 mList.setOnGroupExpandListener(this); 231 mList.setOnGroupCollapseListener(this); 246 mList.setAdapter(adapter); 258 return mList; 270 if (mList != null) [all...] |
ListActivity.java | 185 protected ListView mList; 192 mList.focusableViewAvailable(mList); 241 mList = (ListView)findViewById(com.android.internal.R.id.list); 242 if (mList == null) { 248 mList.setEmptyView(emptyView); 250 mList.setOnItemClickListener(mOnClickListener); 265 mList.setAdapter(adapter); 276 mList.setSelection(position); 283 return mList.getSelectedItemPosition() [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
MailLogService.java | 67 final Queue<Pair<Long, String>> mList = new LinkedList<Pair<Long, String>>(); 91 mList.remove(); 97 mList.add(new Pair<Long, String>(System.currentTimeMillis(), message)); 103 for (final Pair<Long, String> s : mList) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
BytesBufferPool.java | 66 private final ArrayList<BytesBuffer> mList; 69 mList = new ArrayList<BytesBuffer>(poolSize); 75 int n = mList.size(); 76 return n > 0 ? mList.remove(n - 1) : new BytesBuffer(mBufferSize); 81 if (mList.size() < mPoolSize) { 84 mList.add(buffer); 89 mList.clear();
|
/development/apps/Development/src/com/android/development/ |
ArrayAdapter.java | 37 mList = list; 43 if (mList == null) { 47 return mList.get(position); 51 return mList != null ? mList.size() : 0; 69 bindView(view, mList.get(position)); 76 private List<E> mList;
|
RunningProcesses.java | 84 if(mList == null) { 85 mList = new ArrayList<ListItem>(); 87 mList.add(new ListItem(app)); 89 if (mList != null) { 90 Collections.sort(mList, sDisplayNameComparator); 95 if (mList == null) { 98 return mList.get(position); 102 return mList != null ? mList.size() : 0; 121 bindView(view, mList.get(position)) [all...] |
AppHwConfigList.java | 92 if(mList == null) { 93 mList = new ArrayList<PackageInfo>(); 95 mList.add(pkgInfo); 98 if (mList != null) { 99 Collections.sort(mList, sDisplayNameComparator); 104 if (mList == null) { 107 return mList.get(position); 111 return mList != null ? mList.size() : 0; 130 bindView(view, mList.get(position)) [all...] |
InstrumentationList.java | 53 mList = context.getPackageManager().queryInstrumentation(mTargetPackage, 0); 54 if (mList != null) { 55 Collections.sort(mList, new InstrumentationInfo.DisplayNameComparator(mPM)); 61 if (mList == null) { 64 InstrumentationInfo ii = mList.get(position); 70 return mList != null ? mList.size() : 0; 92 bindView(view, mList.get(position)); 107 protected List<InstrumentationInfo> mList;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
LintListDialog.java | 66 private LintList mList; 86 mList.dispose(); 114 mList = new LintList(site, container, null /*memento*/, true /*singleFile*/); 115 mList.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 6)); 162 mList.addSelectionListener(this); 164 mList.setResources(Collections.<IResource>singletonList(mFile)); 165 mList.selectFirst(); 166 if (mList.getSelectedMarkers().size() > 0) { 203 if (source == mList.getTreeViewer().getControl()) { 207 List<IMarker> selection = mList.getSelectedMarkers() [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
HomeXLarge.java | 38 ContactsListFragment mList; 47 mList = new ContactsListFragment(); 48 mList.setController(this); 51 transaction.add(R.id.contacts_list, mList);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
SlidingPaneLayoutActivity.java | 66 private ListView mList; 78 mList = (ListView) findViewById(R.id.left_pane); 84 mList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, 86 mList.setOnItemClickListener(new ListItemClickListener());
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
MockImageList.java | 12 private final ArrayList<IImage> mList = new ArrayList<IImage>(); 25 return mList.size(); 29 return mList.get(i); 37 return mList.indexOf(image); 41 return mList.isEmpty(); 45 return mList.remove(image); 49 return mList.remove(i) != null; 53 mList.add(image);
|
/packages/apps/Settings/src/com/android/settings/ |
NotificationAccessSettings.java | 63 private ListenerListAdapter mList; 133 mList = new ListenerListAdapter(getActivity()); 200 getListeners(mList, mPM); 201 mList.sort(new PackageItemInfo.DisplayNameComparator(mPM)); 203 getListView().setAdapter(mList); 249 ServiceInfo info = mList.getItem(position);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
VoiceRecognition.java | 53 private ListView mList; 73 mList = (ListView) findViewById(R.id.list); 143 mList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectVisibleCalendarsFragment.java | 67 private ListView mList; 116 mList = (ListView)mView.findViewById(R.id.list); 122 mList.setDivider(null); 136 mList.setAdapter(mAdapter); 137 mList.setOnItemClickListener(this);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
ClockFragment.java | 54 private ListView mList; 131 mList = (ListView)v.findViewById(R.id.cities); 132 mList.setDivider(null); 176 mClockFrame = inflater.inflate(R.layout.main_clock_frame, mList, false); 177 mList.addHeaderView(mClockFrame, null, false); 182 mList.setOnTouchListener(longPressNightMode); 195 View footerView = inflater.inflate(R.layout.blank_footer_view, mList, false); 197 mList.addFooterView(footerView); 199 mList.setAdapter(mAdapter); 237 mList.setVisibility(View.GONE) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
PhotoFallbackEffect.java | 61 private ArrayList<Entry> mList = new ArrayList<Entry>(); 69 mList.add(new Entry(path, rect, texture)); 73 for (int i = 0, n = mList.size(); i < n; ++i) { 74 Entry entry = mList.get(i); 82 for (int i = 0, n = mList.size(); i < n; ++i) { 83 Entry entry = mList.get(i); 164 for (int i = 0, n = mList.size(); i < n; ++i) { 165 Entry entry = mList.get(i); 173 for (int i = 0, n = mList.size(); i < n; ++i) { 174 Entry entry = mList.get(i) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
RenderPreviewList.java | 51 private final List<ConfigurationDescription> mList = Lists.newArrayList(); 97 if (!mList.isEmpty()) { 107 for (ConfigurationDescription description : mList) { 116 mList.clear(); 128 mList.add(description); 142 if (mList.isEmpty()) { 151 for (ConfigurationDescription description : mList) { 192 mList.remove(description); 197 return mList.isEmpty(); 206 mList.add(description) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/ |
GLListProperty.java | 27 private final List<IGLProperty> mList; 41 mList = new ArrayList<IGLProperty>(size); 44 mList.add(p); 51 mList = props; 54 for (IGLProperty p : mList) { 60 return mList; 64 return mList.get(index); 69 return mList.add(property); 73 return mList.remove(property); 78 mList.set(index, property) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
CommandQueue.java | 68 private StatusBarIconList mList; 107 mList = list; 111 synchronized (mList) { 119 synchronized (mList) { 127 synchronized (mList) { 136 synchronized (mList) { 145 synchronized (mList) { 151 synchronized (mList) { 158 synchronized (mList) { 165 synchronized (mList) { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
ActivityPage.java | 53 private List mList; 114 mList = new List(container, SWT.BORDER | SWT.V_SCROLL); 115 mList.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); 147 mList.setItems(items); 153 mList.setSelection(index); 154 mList.addSelectionListener(this); 267 if (mList.getSelectionCount() < 1) { 310 mList.setEnabled(mValues.createActivity); 311 } else if (source == mList) { 312 int index = mList.getSelectionIndex() [all...] |
/external/chromium_org/base/android/javatests/src/org/chromium/base/ |
ObserverListTest.java | 42 private final ObserverList<Observer> mList; 46 mList = list; 52 mList.addObserver(mLucky); 60 private final ObserverList<Observer> mList; 64 mList = list; 70 mList.removeObserver(mDoomed);
|
/frameworks/base/core/java/android/content/pm/ |
ParceledListSlice.java | 46 private final List<T> mList; 49 mList = list; 54 mList = new ArrayList<T>(N); 65 mList.add(p.readCreator(creator, loader)); 66 if (DEBUG) Log.d(TAG, "Read inline #" + i + ": " + mList.get(mList.size()-1)); 85 mList.add(reply.readCreator(creator, loader)); 86 if (DEBUG) Log.d(TAG, "Read extra #" + i + ": " + mList.get(mList.size()-1)); 95 return mList; [all...] |