/frameworks/av/media/module/foundation/ |
D | AMessage.cpp | 91 for (Item &item : mItems) { in clear() 96 mItems.clear(); in clear() 158 for (; i < mItems.size(); i++) { in findItemIndex() 159 if (len != mItems[i].mNameLength) { in findItemIndex() 165 if (!memcmp(mItems[i].mName, name, len)) { in findItemIndex() 173 gAverageNumItems += mItems.size(); in findItemIndex() 200 if (i < mItems.size()) { in allocateItem() 201 item = &mItems[i]; in allocateItem() 204 CHECK(mItems.size() < kMaxNumItems); in allocateItem() 205 i = mItems.size(); in allocateItem() [all …]
|
D | MetaDataBase.cpp | 84 KeyedVector<uint32_t, MetaDataBase::typed_data> mItems; member 94 mInternalData->mItems = from.mInternalData->mItems; in MetaDataBase() 98 this->mInternalData->mItems = rhs.mInternalData->mItems; in operator =() 109 mInternalData->mItems.clear(); in clear() 114 ssize_t i = mInternalData->mItems.indexOfKey(key); in remove() 120 mInternalData->mItems.removeItemsAt(i); in remove() 261 ssize_t i = mInternalData->mItems.indexOfKey(key); in setData() 264 i = mInternalData->mItems.add(key, item); in setData() 269 typed_data &item = mInternalData->mItems.editValueAt(i); in setData() 279 ssize_t i = mInternalData->mItems.indexOfKey(key); in findData() [all …]
|
/frameworks/base/core/java/android/app/slice/ |
D | Slice.java | 262 private final SliceItem[] mItems; field in Slice 269 mItems = items.toArray(new SliceItem[items.size()]); in Slice() 277 mItems = new SliceItem[n]; in Slice() 279 mItems[i] = SliceItem.CREATOR.createFromParcel(in); in Slice() 303 return Arrays.asList(mItems); in getItems() 316 dest.writeInt(mItems.length); in writeToParcel() 317 for (int i = 0; i < mItems.length; i++) { in writeToParcel() 318 mItems[i].writeToParcel(dest, flags); in writeToParcel() 355 private ArrayList<SliceItem> mItems = new ArrayList<>(); field in Slice.Builder 376 .appendPath(String.valueOf(mItems.size())).build(); in Builder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
D | DreamOverlayStatusBarItemsProvider.java | 64 private final List<StatusBarItem> mItems = new ArrayList<>(); field in DreamOverlayStatusBarItemsProvider 81 if (!mItems.isEmpty()) { in addCallback() 82 callback.onStatusBarItemsChanged(mItems); in addCallback() 100 if (!mItems.contains(item)) { in addStatusBarItem() 101 mItems.add(item); in addStatusBarItem() 102 mCallbacks.forEach(callback -> callback.onStatusBarItemsChanged(mItems)); in addStatusBarItem() 112 if (mItems.remove(item)) { in removeStatusBarItem() 113 mCallbacks.forEach(callback -> callback.onStatusBarItemsChanged(mItems)); in removeStatusBarItem()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteCollectionItemsAdapter.java | 40 private RemoteCollectionItems mItems; field in RemoteCollectionItemsAdapter 56 mItems = items; in RemoteCollectionItemsAdapter() 77 mItems = items; in setData() 90 int[] layoutIds = IntStream.range(0, mItems.getItemCount()) in initLayoutIdToViewType() 91 .map(position -> mItems.getItemView(position).getLayoutId()) in initLayoutIdToViewType() 145 return mItems.getItemCount(); in getCount() 150 return mItems.getItemView(position); in getItem() 155 return mItems.getItemId(position); in getItemId() 160 return mLayoutIdToViewType.get(mItems.getItemView(position).getLayoutId()); in getItemViewType() 170 return mItems.hasStableIds(); in hasStableIds() [all …]
|
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/base/services/core/java/com/android/server/om/ |
D | OverlayManagerSettings.java | 72 private final ArrayList<SettingsItem> mItems = new ArrayList<>(); field in OverlayManagerSettings 95 mItems.remove(idx); in remove() 105 return mItems.get(idx).getOverlayInfo(); in getOverlayInfo() 114 return mItems.get(idx).getOverlayInfo(); in getNullableOverlayInfo() 126 return mItems.get(idx).setBaseCodePath(path); in setBaseCodePath() 135 return mItems.get(idx).setCategory(category); in setCategory() 144 return mItems.get(idx).isEnabled(); in getEnabled() 156 return mItems.get(idx).setEnabled(enable); in setEnabled() 165 return mItems.get(idx).getState(); in getState() 177 return mItems.get(idx).setState(state); in setState() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenu.java | 42 private ArrayList<ActionMenuItem> mItems; field in ActionMenu 47 mItems = new ArrayList<ActionMenuItem>(); in ActionMenu() 69 mItems.add(order, item); in add() 125 mItems.clear(); in clear() 132 final ArrayList<ActionMenuItem> items = mItems; in findItemIndex() 144 return mItems.get(findItemIndex(id)); in findItem() 148 return mItems.get(index); in getItem() 152 final ArrayList<ActionMenuItem> items = mItems; in hasVisibleItems() 167 final ArrayList<ActionMenuItem> items = mItems; in findItemWithShortcut() 195 return mItems.get(index).invoke(); in performIdentifierAction() [all …]
|
D | MenuBuilder.java | 92 private ArrayList<MenuItemImpl> mItems; field in MenuBuilder 202 mItems = new ArrayList<MenuItemImpl>(); in MenuBuilder() 433 mItems.add(findInsertIndex(mItems, ordering), item); in addInternal() 528 final int maxRemovable = mItems.size() - i; in removeGroup() 530 while ((numRemoved++ < maxRemovable) && (mItems.get(i).getGroupId() == group)) { in removeGroup() 551 if ((index < 0) || (index >= mItems.size())) return; in removeItemAtInt() 553 mItems.remove(index); in removeItemAtInt() 576 mItems.clear(); in clear() 584 final int N = mItems.size(); in setExclusiveItemChecked() 586 MenuItemImpl curItem = mItems.get(i); in setExclusiveItemChecked() [all …]
|
/frameworks/base/core/java/android/view/ |
D | KeyboardShortcutGroup.java | 35 private final List<KeyboardShortcutInfo> mItems; field in KeyboardShortcutGroup 48 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup() 68 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup() 83 mItems = new ArrayList<>(); in KeyboardShortcutGroup() 85 source.readTypedList(mItems, KeyboardShortcutInfo.CREATOR); in KeyboardShortcutGroup() 101 return mItems; in getItems() 132 mItems.add(item); in addItem() 143 dest.writeTypedList(mItems); in writeToParcel()
|
/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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeExpandableAdapter.java | 40 protected final List<AdapterItem> mItems = new ArrayList<AdapterItem>(); field in FakeExpandableAdapter 83 AdapterItem item = new AdapterItem(dataBindingItem, typeIndex, mItems.size(), in createItems() 85 mItems.add(item); in createItems() 102 AdapterItem item = mItems.get(groupPosition); in getChildItem() 112 return mItems.size(); in getGroupCount() 117 AdapterItem item = mItems.get(groupPosition); in getChildrenCount() 123 return mItems.get(groupPosition); in getGroup() 135 AdapterItem item = mItems.get(groupPosition); in getGroupView() 146 AdapterItem parentItem = mItems.get(groupPosition); in getChildView() 211 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/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/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/media/java/android/media/ |
D | RouteListingPreference.java | 82 @NonNull private final List<Item> mItems; field in RouteListingPreference 87 mItems = builder.mItems; in RouteListingPreference() 95 mItems = List.copyOf(items); in RouteListingPreference() 106 return mItems; in getItems() 147 dest.writeParcelableList(mItems, flags); in writeToParcel() 163 return mItems.equals(that.mItems) in equals() 170 return Objects.hash(mItems, mUseSystemOrdering, mLinkedItemComponentName); in hashCode() 176 private List<Item> mItems; field in RouteListingPreference.Builder 182 mItems = List.of(); in Builder() 193 mItems = List.copyOf(Objects.requireNonNull(items)); in setItems()
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 187 final ArrayList<Item> mItems; field in ClipData 877 mItems = new ArrayList<>(); in ClipData() 878 mItems.add(item); in ClipData() 894 mItems = new ArrayList<>(); in ClipData() 895 mItems.add(item); in ClipData() 914 mItems = items; in ClipData() 926 mItems = new ArrayList<>(other.mItems); in ClipData() 1072 mItems.add(item); in addItem() 1073 if (mItems.size() == 1) { in addItem() 1114 return mItems.size(); in getItemCount() [all …]
|
/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/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/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/av/services/mediametrics/ |
D | MediaMetricsService.cpp | 120 mItemsDiscarded += (int64_t)mItems.size(); in ~MediaMetricsService() 121 mItems.clear(); in ~MediaMetricsService() 307 mItemsDiscarded += (int64_t)mItems.size(); in dump() 308 mItems.clear(); in dump() 405 if (mItems.empty()) { in dumpQueue() 410 for (const auto &item : mItems) { // TODO: consider std::lower_bound() on mItems in dumpQueue() 436 if (mMaxRecords > 0 && mItems.size() > mMaxRecords) { in expirations() 437 overlimit = mItems.size() - mMaxRecords; in expirations() 450 for (; i < mItems.size(); ++i) { in expirations() 451 auto &oitem = mItems[i]; in expirations() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverMultiProfilePagerAdapter.java | 37 private final ResolverProfileDescriptor[] mItems; field in ResolverMultiProfilePagerAdapter 48 mItems = new ResolverProfileDescriptor[] { in ResolverMultiProfilePagerAdapter() 63 mItems = new ResolverProfileDescriptor[] { in ResolverMultiProfilePagerAdapter() 83 return mItems[pageIndex]; in getItem() 88 return mItems.length; in getItemCount() 100 return mItems[pageIndex].resolverListAdapter; in getAdapterForIndex()
|
D | ChooserMultiProfilePagerAdapter.java | 39 private final ChooserProfileDescriptor[] mItems; field in ChooserMultiProfilePagerAdapter 52 mItems = new ChooserProfileDescriptor[] { in ChooserMultiProfilePagerAdapter() 69 mItems = new ChooserProfileDescriptor[] { in ChooserMultiProfilePagerAdapter() 98 return mItems[pageIndex]; in getItem() 103 return mItems.length; in getItemCount() 109 return mItems[pageIndex].chooserGridAdapter; in getAdapterForIndex()
|
/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/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()
|