/frameworks/base/core/java/android/app/slice/ |
D | Slice.java | 272 private final SliceItem[] mItems; field in Slice 279 mItems = items.toArray(new SliceItem[items.size()]); in Slice() 287 mItems = new SliceItem[n]; in Slice() 289 mItems[i] = SliceItem.CREATOR.createFromParcel(in); in Slice() 313 return Arrays.asList(mItems); in getItems() 326 dest.writeInt(mItems.length); in writeToParcel() 327 for (int i = 0; i < mItems.length; i++) { in writeToParcel() 328 mItems[i].writeToParcel(dest, flags); in writeToParcel() 360 private ArrayList<SliceItem> mItems = new ArrayList<>(); field in Slice.Builder 390 .appendPath(String.valueOf(mItems.size())).build(); in Builder() [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerSettings.java | 67 private final ArrayList<SettingsItem> mItems = new ArrayList<>(); field in OverlayManagerSettings 82 for (i = mItems.size() - 1; i >= 0; i--) { in init() 83 SettingsItem parentItem = mItems.get(i); in init() 89 if (pos == mItems.size()) { in init() 90 mItems.add(item); in init() 92 mItems.add(pos, item); in init() 95 mItems.add(item); in init() 108 mItems.remove(idx); in remove() 118 return mItems.get(idx).getOverlayInfo(); in getOverlayInfo() 130 return mItems.get(idx).setBaseCodePath(path); in setBaseCodePath() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenu.java | 41 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 …]
|
D | MenuBuilder.java | 91 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/wilhelm/src/itf/ |
D | IAndroidBufferQueue.cpp | 61 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/base/core/java/android/view/ |
D | KeyboardShortcutGroup.java | 35 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/av/media/libstagefright/foundation/ |
D | MetaDataBase.cpp | 81 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 …]
|
D | AMessage.cpp | 93 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/ |
D | FakeExpandableAdapter.java | 41 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 …]
|
D | FakeAdapter.java | 46 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/ |
D | EphemeralStorage.cpp | 33 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/ |
D | ClipData.java | 183 final ArrayList<Item> mItems; field in ClipData 717 mItems = new ArrayList<Item>(); in ClipData() 718 mItems.add(item); in ClipData() 733 mItems = new ArrayList<Item>(); in ClipData() 734 mItems.add(item); in ClipData() 752 mItems = items; in ClipData() 764 mItems = new ArrayList<Item>(other.mItems); in ClipData() 892 mItems.add(item); in addItem() 937 return mItems.size(); in getItemCount() 945 return mItems.get(index); in getItemAt() [all …]
|
/frameworks/av/services/mediaanalytics/ |
D | MediaAnalyticsService.cpp | 128 while (mItems.size() > 0) { in ~MediaAnalyticsService() 129 MediaAnalyticsItem * oitem = *(mItems.begin()); in ~MediaAnalyticsService() 130 mItems.erase(mItems.begin()); in ~MediaAnalyticsService() 343 while (mItems.size() > 0) { in dump() 344 MediaAnalyticsItem * oitem = *(mItems.begin()); in dump() 345 mItems.erase(mItems.begin()); in dump() 422 if (mItems.empty()) { in dumpQueue() 425 List<MediaAnalyticsItem *>::iterator it = mItems.begin(); in dumpQueue() 426 for (; it != mItems.end(); it++) { in dumpQueue() 460 while (mItems.size() > (size_t) mMaxRecords) { in expirations_l() [all …]
|
/frameworks/base/core/java/com/android/internal/globalactions/ |
D | ActionsAdapter.java | 33 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/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | ItemAdapterTest.java | 42 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/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 114 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/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | MainActivity.java | 64 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/packages/CarSystemUI/src/com/android/systemui/volume/ |
D | CarVolumeItemAdapter.java | 35 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/android/widget/ |
D | DayPickerPagerAdapter.java | 45 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/ |
D | RecyclerItemAdapterTest.java | 50 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/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BluetoothTile.java | 322 private QSDetailItems mItems; field in BluetoothTile.BluetoothDetailAdapter 358 mItems = QSDetailItems.convertOrInflate(context, convertView, parent); in createDetailView() 359 mItems.setTagSuffix("Bluetooth"); in createDetailView() 360 mItems.setCallback(this); in createDetailView() 363 return mItems; in createDetailView() 367 if (mItems == null) return; in setItemsVisible() 368 mItems.setItemsVisible(visible); in setItemsVisible() 372 if (mItems == null) return; in updateItems() 374 mItems.setEmptyState(R.drawable.ic_qs_bluetooth_detail_empty, in updateItems() 377 mItems.setEmptyState(R.drawable.ic_qs_bluetooth_detail_empty, in updateItems() [all …]
|
D | WifiTile.java | 316 private QSDetailItems mItems; field in WifiTile.WifiDetailAdapter 349 mItems = QSDetailItems.convertOrInflate(context, convertView, parent); in createDetailView() 350 mItems.setTagSuffix("Wifi"); in createDetailView() 351 mItems.setCallback(this); in createDetailView() 354 return mItems; in createDetailView() 404 if (mItems == null) return; in setItemsVisible() 405 mItems.setItemsVisible(visible); in setItemsVisible() 409 if (mItems == null) return; in updateItems() 419 mItems.setEmptyState(WifiIcons.QS_WIFI_NO_NETWORK, in updateItems() 421 mItems.setItems(null); in updateItems() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_StreamPlayer.cpp | 155 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()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuScenario.java | 33 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/tuner/ |
D | LockscreenFragment.java | 254 private ArrayList<Item> mItems = new ArrayList<>(); field in LockscreenFragment.Adapter 271 Item item = mItems.get(position); in onBindViewHolder() 275 v -> mCallback.accept(mItems.get(holder.getAdapterPosition()))); in onBindViewHolder() 281 v -> mItems.get(holder.getAdapterPosition()).toggleExpando(Adapter.this)); in onBindViewHolder() 289 return mItems.size(); in getItemCount() 293 mItems.add(item); in addItem() 298 int index = mItems.indexOf(item); in remItem() 299 mItems.remove(item); in remItem() 304 int index = mItems.indexOf(parent); in addItem() 305 mItems.add(index + 1, child); in addItem()
|