Home
last modified time | relevance | path

Searched refs:mItems (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/java/android/app/slice/
DSlice.java271 private final SliceItem[] mItems; field in Slice
278 mItems = items.toArray(new SliceItem[items.size()]); in Slice()
286 mItems = new SliceItem[n]; in Slice()
288 mItems[i] = SliceItem.CREATOR.createFromParcel(in); in Slice()
312 return Arrays.asList(mItems); in getItems()
325 dest.writeInt(mItems.length); in writeToParcel()
326 for (int i = 0; i < mItems.length; i++) { in writeToParcel()
327 mItems[i].writeToParcel(dest, flags); in writeToParcel()
359 private ArrayList<SliceItem> mItems = new ArrayList<>(); field in Slice.Builder
389 .appendPath(String.valueOf(mItems.size())).build(); in Builder()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java67 private final ArrayList<SettingsItem> mItems = new ArrayList<>(); field in OverlayManagerSettings
88 mItems.remove(idx); in remove()
98 return mItems.get(idx).getOverlayInfo(); in getOverlayInfo()
110 return mItems.get(idx).setBaseCodePath(path); in setBaseCodePath()
119 return mItems.get(idx).setCategory(category); in setCategory()
127 return mItems.get(idx).isEnabled(); in getEnabled()
139 return mItems.get(idx).setEnabled(enable); in setEnabled()
148 return mItems.get(idx).getState(); in getState()
160 return mItems.get(idx).setState(state); in setState()
184 return mItems.stream().mapToInt(SettingsItem::getUserId).distinct().toArray(); in getUsers()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java41 private ArrayList<ActionMenuItem> mItems; field in ActionMenu
46 mItems = new ArrayList<ActionMenuItem>(); in ActionMenu()
68 mItems.add(order, item); in add()
124 mItems.clear(); in clear()
131 final ArrayList<ActionMenuItem> items = mItems; in findItemIndex()
143 return mItems.get(findItemIndex(id)); in findItem()
147 return mItems.get(index); in getItem()
151 final ArrayList<ActionMenuItem> items = mItems; in hasVisibleItems()
166 final ArrayList<ActionMenuItem> items = mItems; in findItemWithShortcut()
194 return mItems.get(index).invoke(); in performIdentifierAction()
[all …]
DMenuBuilder.java91 private ArrayList<MenuItemImpl> mItems; field in MenuBuilder
201 mItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
432 mItems.add(findInsertIndex(mItems, ordering), item); in addInternal()
527 final int maxRemovable = mItems.size() - i; in removeGroup()
529 while ((numRemoved++ < maxRemovable) && (mItems.get(i).getGroupId() == group)) { in removeGroup()
550 if ((index < 0) || (index >= mItems.size())) return; in removeItemAtInt()
552 mItems.remove(index); in removeItemAtInt()
575 mItems.clear(); in clear()
583 final int N = mItems.size(); in setExclusiveItemChecked()
585 MenuItemImpl curItem = mItems.get(i); in setExclusiveItemChecked()
[all …]
/frameworks/base/core/java/android/view/
DKeyboardShortcutGroup.java35 private final List<KeyboardShortcutInfo> mItems; field in KeyboardShortcutGroup
46 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup()
66 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup()
81 mItems = new ArrayList<>(); in KeyboardShortcutGroup()
83 source.readTypedList(mItems, KeyboardShortcutInfo.CREATOR); in KeyboardShortcutGroup()
98 return mItems; in getItems()
113 mItems.add(item); in addItem()
124 dest.writeTypedList(mItems); in writeToParcel()
/frameworks/wilhelm/src/itf/
DIAndroidBufferQueue.cpp61 pBuff->mItems.mTsCmdData.mTsCmdCode = ANDROID_MP2TSEVENT_NONE; in setItems()
62 pBuff->mItems.mTsCmdData.mPts = 0; in setItems()
65 pBuff->mItems.mAdtsCmdData.mAdtsCmdCode = ANDROID_ADTSEVENT_NONE; in setItems()
70 memset(&pBuff->mItems, 0, sizeof(AdvancedBufferItems)); in setItems()
99 pBuff->mItems.mTsCmdData.mTsCmdCode |= ANDROID_MP2TSEVENT_EOS; in setItems()
109 pBuff->mItems.mTsCmdData.mTsCmdCode |= ANDROID_MP2TSEVENT_DISCONTINUITY; in setItems()
112 pBuff->mItems.mTsCmdData.mTsCmdCode |= ANDROID_MP2TSEVENT_DISCON_NEWPTS; in setItems()
113 pBuff->mItems.mTsCmdData.mPts = *((SLAuint64*)pItems->itemData); in setItems()
125 pBuff->mItems.mTsCmdData.mTsCmdCode |= ANDROID_MP2TSEVENT_FORMAT_CHANGE_FULL; in setItems()
131 pBuff->mItems.mTsCmdData.mTsCmdCode |= in setItems()
[all …]
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp81 KeyedVector<uint32_t, MetaDataBase::typed_data> mItems; member
91 mInternalData->mItems = from.mInternalData->mItems; in MetaDataBase()
95 this->mInternalData->mItems = rhs.mInternalData->mItems; in operator =()
105 mInternalData->mItems.clear(); in clear()
109 ssize_t i = mInternalData->mItems.indexOfKey(key); in remove()
115 mInternalData->mItems.removeItemsAt(i); in remove()
255 ssize_t i = mInternalData->mItems.indexOfKey(key); in setData()
258 i = mInternalData->mItems.add(key, item); in setData()
263 typed_data &item = mInternalData->mItems.editValueAt(i); in setData()
272 ssize_t i = mInternalData->mItems.indexOfKey(key); in findData()
[all …]
DAMessage.cpp93 Item *item = &mItems[i]; in clear()
161 if (len != mItems[i].mNameLength) { in findItemIndex()
167 if (!memcmp(mItems[i].mName, name, len)) { in findItemIndex()
197 item = &mItems[i]; in allocateItem()
202 item = &mItems[i]; in allocateItem()
214 const Item *item = &mItems[i]; in findItem()
224 const Item *item = &mItems[i]; in findAsFloat()
251 const Item *item = &mItems[i]; in findAsInt64()
481 const Item *from = &mItems[i]; in dup()
482 Item *to = &msg->mItems[i]; in dup()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java41 protected final List<AdapterItem> mItems = new ArrayList<AdapterItem>(); field in FakeExpandableAdapter
84 AdapterItem item = new AdapterItem(dataBindingItem, typeIndex, mItems.size(), in createItems()
86 mItems.add(item); in createItems()
103 AdapterItem item = mItems.get(groupPosition); in getChildItem()
113 return mItems.size(); in getGroupCount()
118 AdapterItem item = mItems.get(groupPosition); in getChildrenCount()
124 return mItems.get(groupPosition); in getGroup()
136 AdapterItem item = mItems.get(groupPosition); in getGroupView()
147 AdapterItem parentItem = mItems.get(groupPosition); in getChildView()
212 return mItems.isEmpty(); in isEmpty()
[all …]
DFakeAdapter.java46 private final List<AdapterItem> mItems = new ArrayList<AdapterItem>(); field in FakeAdapter
78 mItems.add(new AdapterItem(dataBindingItem, typeIndex, mItems.size(), index++)); in FakeAdapter()
91 return mItems.size(); in getCount()
96 return mItems.get(position); in getItem()
106 return mItems.get(position).getType(); in getItemViewType()
112 AdapterItem item = mItems.get(position); in getView()
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp33 CHECK(mItems.empty()) in ~EphemeralStorage()
42 mItems.push_back(item); in allocStringArray()
52 mItems.push_back(item); in allocTemporaryStorage()
66 mItems.push_back(item); in allocTemporaryString()
80 mItems.push_back(item); in allocTemporaryNativeHandle()
96 mItems.push_back(item); \
127 for (size_t i = mItems.size(); i--;) {
128 const Item &item = mItems[i];
171 mItems.clear();
/frameworks/base/core/java/android/content/
DClipData.java177 final ArrayList<Item> mItems; field in ClipData
710 mItems = new ArrayList<Item>(); in ClipData()
711 mItems.add(item); in ClipData()
726 mItems = new ArrayList<Item>(); in ClipData()
727 mItems.add(item); in ClipData()
745 mItems = items; in ClipData()
757 mItems = new ArrayList<Item>(other.mItems); in ClipData()
885 mItems.add(item); in addItem()
924 return mItems.size(); in getItemCount()
932 return mItems.get(index); in getItemAt()
[all …]
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsAdapter.java33 private final List<Action> mItems; field in ActionsAdapter
40 mItems = items; in ActionsAdapter()
51 for (int i = 0; i < mItems.size(); i++) { in getCount()
52 final Action action = mItems.get(i); in getCount()
81 for (int i = 0; i < mItems.size(); i++) { in getItem()
82 final Action action = mItems.get(i); in getItem()
/frameworks/av/services/mediametrics/
DMediaMetricsService.cpp110 mItemsDiscarded += mItems.size(); in ~MediaMetricsService()
111 mItems.clear(); in ~MediaMetricsService()
290 mItemsDiscarded += mItems.size(); in dump()
291 mItems.clear(); in dump()
353 if (mItems.empty()) { in dumpQueue()
359 for (const auto &item : mItems) { // TODO: consider std::lower_bound() on mItems in dumpQueue()
384 if (mMaxRecords > 0 && mItems.size() > mMaxRecords) { in expirations()
385 overlimit = mItems.size() - mMaxRecords; in expirations()
398 for (; i < mItems.size(); ++i) { in expirations()
399 auto &oitem = mItems[i]; in expirations()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemAdapterTest.java42 private Item[] mItems = new Item[5]; field in ItemAdapterTest
52 mItems[i] = item; in setUp()
61 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); in testAdapter()
88 mItems[0].setTitle("Child 1"); in testAdapterNotifications()
91 mItemGroup.removeChild(mItems[1]); in testAdapterNotifications()
94 mItemGroup.addChild(mItems[1]); in testAdapterNotifications()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DMainActivity.java64 private final String[] mItems; field in MainActivity.MyAdapter
82 mItems = new String[ITEMS.length * COPIES]; in MyAdapter()
85 mItems[i * ITEMS.length + j] = ITEMS[j]; in MyAdapter()
92 return mItems.length; in getCount()
97 return mItems[position]; in getItem()
124 v.getTypedDrawable().bind(new BitmapRequestKeyImpl(mItems[position])); in getView()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java114 private final ArrayList<ItemInfo> mItems = new ArrayList<ItemInfo>(); field in ViewPager
398 for (int i = 0; i < mItems.size(); i++) { in setAdapter()
399 final ItemInfo ii = mItems.get(i); in setAdapter()
403 mItems.clear(); in setAdapter()
507 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
517 for (int i = 0; i < mItems.size(); i++) { in setCurrentItemInternal()
518 mItems.get(i).scrolling = true; in setCurrentItemInternal()
817 if (index < 0 || index >= mItems.size()) { in addNewItem()
818 mItems.add(ii); in addNewItem()
820 mItems.add(index, ii); in addNewItem()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/volume/
DCarVolumeItemAdapter.java35 private final List<CarVolumeItem> mItems; field in CarVolumeItemAdapter
39 mItems = items; in CarVolumeItemAdapter()
52 mItems.get(position).bind(holder); in onBindViewHolder()
57 return mItems.size(); in getItemCount()
/frameworks/base/core/java/com/android/internal/app/
DResolverMultiProfilePagerAdapter.java38 private final ResolverProfileDescriptor[] mItems; field in ResolverMultiProfilePagerAdapter
47 mItems = new ResolverProfileDescriptor[] { in ResolverMultiProfilePagerAdapter()
62 mItems = new ResolverProfileDescriptor[] { in ResolverMultiProfilePagerAdapter()
72 for (ResolverProfileDescriptor descriptor : mItems) { in updateAfterConfigChange()
101 return mItems[pageIndex]; in getItem()
106 return mItems.length; in getItemCount()
118 return mItems[pageIndex].resolverListAdapter; in getAdapterForIndex()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java45 private final SparseArray<ViewHolder> mItems = new SparseArray<>(); field in DayPickerPagerAdapter
100 final int count = mItems.size(); in setFirstDayOfWeek()
102 final SimpleMonthView monthView = mItems.valueAt(i).calendar; in setFirstDayOfWeek()
113 final ViewHolder monthView = mItems.get(position, null); in getBoundsForDate()
133 final ViewHolder oldMonthView = mItems.get(oldPosition, null); in setSelectedDay()
141 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
277 mItems.put(position, holder); in instantiateItem()
289 mItems.remove(position); in destroyItem()
300 final SimpleMonthView v = mItems.get(position).calendar; in getPageTitle()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java50 private Item[] mItems = new Item[5]; field in RecyclerItemAdapterTest
62 mItems[i] = item; in setUp()
71 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); in testAdapter()
113 mItems[0].setTitle("Child 1"); in testAdapterNotifications()
116 mItemGroup.removeChild(mItems[1]); in testAdapterNotifications()
119 mItemGroup.addChild(mItems[1]); in testAdapterNotifications()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuScenario.java33 private MenuItem[] mItems; field in MenuScenario
54 mItems = new MenuItem[mParams.numItems]; in onParamsChanged()
75 mItems[i] = item; in onCreateOptionsMenu()
141 if (mItems[i] == item) return i; in findItemPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java320 private QSDetailItems mItems; field in BluetoothTile.BluetoothDetailAdapter
356 mItems = QSDetailItems.convertOrInflate(context, convertView, parent); in createDetailView()
357 mItems.setTagSuffix("Bluetooth"); in createDetailView()
358 mItems.setCallback(this); in createDetailView()
361 return mItems; in createDetailView()
365 if (mItems == null) return; in setItemsVisible()
366 mItems.setItemsVisible(visible); in setItemsVisible()
370 if (mItems == null) return; in updateItems()
372 mItems.setEmptyState(R.drawable.ic_qs_bluetooth_detail_empty, in updateItems()
375 mItems.setEmptyState(R.drawable.ic_qs_bluetooth_detail_empty, in updateItems()
[all …]
DWifiTile.java314 private QSDetailItems mItems; field in WifiTile.WifiDetailAdapter
347 mItems = QSDetailItems.convertOrInflate(context, convertView, parent); in createDetailView()
348 mItems.setTagSuffix("Wifi"); in createDetailView()
349 mItems.setCallback(this); in createDetailView()
352 return mItems; in createDetailView()
402 if (mItems == null) return; in setItemsVisible()
403 mItems.setItemsVisible(visible); in setItemsVisible()
407 if (mItems == null) return; in updateItems()
417 mItems.setEmptyState(WifiIcons.QS_WIFI_NO_NETWORK, in updateItems()
419 mItems.setItems(null); in updateItems()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_StreamPlayer.cpp155 if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_EOS) { in pullFromBuffQueue()
159 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCONTINUITY) { in pullFromBuffQueue()
161 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCON_NEWPTS) { in pullFromBuffQueue()
164 (int64_t)oldFront->mItems.mTsCmdData.mPts); in pullFromBuffQueue()
166 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
173 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
185 if (oldFront->mItems.mTsCmdData.mTsCmdCode & (ANDROID_MP2TSEVENT_DISCONTINUITY | in pullFromBuffQueue()
193 oldFront->mItems.mTsCmdData.mTsCmdCode = ANDROID_MP2TSEVENT_NONE; in pullFromBuffQueue()

12