Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 157) sorted by relevance

1234567

/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java131 final ArrayList<ActionMenuItem> items = mItems; in findItemIndex() local
132 final int itemCount = items.size(); in findItemIndex()
134 if (items.get(i).getItemId() == id) { in findItemIndex()
151 final ArrayList<ActionMenuItem> items = mItems; in hasVisibleItems() local
152 final int itemCount = items.size(); in hasVisibleItems()
155 if (items.get(i).isVisible()) { in hasVisibleItems()
166 final ArrayList<ActionMenuItem> items = mItems; in findItemWithShortcut() local
167 final int itemCount = items.size(); in findItemWithShortcut()
170 ActionMenuItem item = items.get(i); in findItemWithShortcut()
207 final ArrayList<ActionMenuItem> items = mItems; in removeGroup() local
[all …]
DMenuAdapter.java53 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local
56 return items.size(); in getCount()
58 return items.size() - 1; in getCount()
66 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local
71 return items.get(position); in getItem()
104 final ArrayList<MenuItemImpl> items = mAdapterMenu.getNonActionItems(); in findExpandedIndex() local
105 final int count = items.size(); in findExpandedIndex()
107 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DListMenuPresenter.java231 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local
232 int count = items.size() - mItemIndexOffset; in getCount()
240 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local
245 return items.get(position); in getItem()
267 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local
268 final int count = items.size(); in findExpandedIndex()
270 final MenuItemImpl item = items.get(i); in findExpandedIndex()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DComparableUtils.java43 static <T> void assertAscendingOrdering(final List<T> items, in assertAscendingOrdering() argument
45 for (int i = 1; i < items.size(); i++) { in assertAscendingOrdering()
46 final T x = items.get(i - 1); in assertAscendingOrdering()
47 final T y = items.get(i); in assertAscendingOrdering()
61 static <T> void assertSameOrdering(final Collection<T> items,
63 for (final T x : items) {
64 for (final T y : items) {
86 static <T> void assertComparableContracts(final Collection<T> items,
88 for (final T x : items) {
92 for (final T y : items) {
[all …]
DInputMethodSubtypePreferenceTest.java82 final Collection<InputMethodSubtypePreference> items = new ArrayList<>(); in testComparableContracts() local
83 items.addAll(ITEMS_IN_ASCENDING); in testComparableContracts()
84 items.addAll(SAME_ORDER_ITEMS); in testComparableContracts()
85 items.add(createPreference("", "", Locale.US)); in testComparableContracts()
86 items.add(createPreference("A", "en", Locale.US)); in testComparableContracts()
87 items.add(createPreference("A", "en_US", Locale.US)); in testComparableContracts()
88 items.add(createPreference("E", "hi_IN", Locale.US)); in testComparableContracts()
89 items.add(createPreference("E", "en", Locale.US)); in testComparableContracts()
90 items.add(createPreference("Z", "en_US", Locale.US)); in testComparableContracts()
93 items, in testComparableContracts()
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java66 private static void addDummyImeSubtypeListItems(List<ImeSubtypeListItem> items, in addDummyImeSubtypeListItems() argument
92 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems()
97 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems()
134 final List<ImeSubtypeListItem> items = new ArrayList<ImeSubtypeListItem>(); in createEnabledImeSubtypes() local
135 addDummyImeSubtypeListItems(items, "LatinIme", "LatinIme", Arrays.asList("en_US", "fr"), in createEnabledImeSubtypes()
137 addDummyImeSubtypeListItems(items, "switchUnawareLatinIme", "switchUnawareLatinIme", in createEnabledImeSubtypes()
140 addDummyImeSubtypeListItems(items, "subtypeUnawareIme", "subtypeUnawareIme", null, in createEnabledImeSubtypes()
142 addDummyImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", Arrays.asList("ja_JP"), in createEnabledImeSubtypes()
144 addDummyImeSubtypeListItems(items, "switchUnawareJapaneseIme", "switchUnawareJapaneseIme", in createEnabledImeSubtypes()
146 return items; in createEnabledImeSubtypes()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DOverflowMenuAdapter.java49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local
51 return items.size(); in getCount()
53 return items.size() - 1; in getCount()
58 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local
62 return items.get(position); in getItem()
88 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local
89 final int count = items.size(); in findExpandedIndex()
91 final MenuItemImpl item = items.get(i); in findExpandedIndex()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h127 inline std::string joinStr(const std::string& joint, const std::vector<T>& items) { in joinStr() argument
129 for (uint32_t i = 0; i < items.size(); i++) { in joinStr()
131 ss << toString(items[i]); in joinStr()
133 ss << joint << toString(items[i]); in joinStr()
140 inline std::string joinStr(const std::string& joint, const std::vector<T>& items, Function str) { in joinStr() argument
142 for (uint32_t i = 0; i < items.size(); i++) { in joinStr()
144 ss << str(items[i]); in joinStr()
150 inline std::string joinStr(const std::string& joint, int limit, const std::vector<T>& items) { in joinStr() argument
151 if (items.size() > static_cast<size_t>(limit)) { in joinStr()
152 std::vector<T> topMax(items.begin(), items.begin() + limit); in joinStr()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DMenu.java32 public List<Item> items; field in Menu
46 items = new ArrayList<Item>(); in Menu()
63 items = new ArrayList<Item>(); in Menu()
67 items.add(item); in Menu()
87 int size = items.size(); in writeToParcel()
90 dest.writeParcelable(items.get(i), flags); in writeToParcel()
/frameworks/base/core/tests/coretests/src/android/metrics/
DLogMakerTest.java286 Object[] items = new Object[2];
287 items[0] = null;
288 items[1] = "foo";
289 new LogMaker(items);
294 Object[] items = new Object[2];
295 items[0] = 10;
296 items[1] = null;
297 new LogMaker(items);
302 Object[] items = new Object[1];
303 items[0] = 10;
[all …]
/frameworks/base/core/java/android/metrics/
DLogMaker.java58 public LogMaker(Object[] items) { in LogMaker() argument
59 if (items != null) { in LogMaker()
60 deserialize(items); in LogMaker()
411 public void deserialize(Object[] items) { in deserialize() argument
413 while (items != null && i < items.length) { in deserialize()
414 Object key = items[i++]; in deserialize()
415 Object value = i < items.length ? items[i++] : null; in deserialize()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemInflaterTest.java25 import com.android.setupwizardlib.items.Item;
26 import com.android.setupwizardlib.items.ItemGroup;
27 import com.android.setupwizardlib.items.ItemHierarchy;
28 import com.android.setupwizardlib.items.ItemInflater;
DItemAdapterTest.java27 import com.android.setupwizardlib.items.Item;
28 import com.android.setupwizardlib.items.ItemAdapter;
29 import com.android.setupwizardlib.items.ItemGroup;
30 import com.android.setupwizardlib.items.ItemHierarchy;
DButtonBarItemTest.java29 import com.android.setupwizardlib.items.ButtonBarItem;
30 import com.android.setupwizardlib.items.ButtonItem;
31 import com.android.setupwizardlib.items.Item;
32 import com.android.setupwizardlib.items.ItemHierarchy;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DAppearAnimationUtils.java129 private <T> AppearAnimationProperties getDelays(T[] items) { in getDelays() argument
133 mProperties.delays = new long[items.length][]; in getDelays()
134 for (int row = 0; row < items.length; row++) { in getDelays()
138 if (items[row] != null && delay > maxDelay) { in getDelays()
147 private <T> AppearAnimationProperties getDelays(T[][] items) { in getDelays() argument
151 mProperties.delays = new long[items.length][]; in getDelays()
152 for (int row = 0; row < items.length; row++) { in getDelays()
153 T[] columns = items[row]; in getDelays()
158 if (items[row][col] != null && delay > maxDelay) { in getDelays()
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java45 List<String> items = Lists.newArrayList("hello"); in testRequestLayout() local
46 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testRequestLayout()
75 List<String> items = Lists.newArrayList("hello"); in testNoSelectableItems() local
76 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testNoSelectableItems()
87 items.remove(0); in testNoSelectableItems()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildCommonTypesStructureFile.py70 for component_types_name, values_dict in componentTypeDict.items():
75 ordered_values = OrderedDict(sorted(values_dict.items(), key=lambda x: x[1]))
76 for key, value in ordered_values.items():
84 ordered_values = OrderedDict(sorted(values_dict.items(), key=lambda x: x[1]))
85 for key, value in ordered_values.items():
167 …','.join('{}:{}'.format(value, key) for key, value in all_component_types[component_types].items())
/frameworks/base/core/java/android/view/
DKeyboardShortcutGroup.java44 @NonNull List<KeyboardShortcutInfo> items) { in KeyboardShortcutGroup() argument
46 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup()
64 @NonNull List<KeyboardShortcutInfo> items, boolean isSystemGroup) { in KeyboardShortcutGroup() argument
66 mItems = new ArrayList<>(checkNotNull(items)); in KeyboardShortcutGroup()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLocaleTest.java69 ArrayList<String> items = new ArrayList<String>(); in query() local
71 items.add(c.getString(0)); in query()
74 String[] result = items.toArray(new String[items.size()]); in query()
/frameworks/base/tools/fonts/
Dfontchain_linter.py116 reverse_cmap = {glyph: code for code, glyph in emoji_map.items()}
289 for _, fallback in _fallback_chains.items():
330 for first, second in equivalent_emoji.items():
355 for name, fallback_chain in _fallback_chains.items():
481 _emoji_sequences = {k: v for k, v in _emoji_sequences.items() if not v == 'Basic_Emoji' }
484 def remove_emoji_variation_exclude(source, items): argument
485 return source.difference(items.keys())
487 def remove_emoji_exclude(source, items): argument
488 return {k: v for k, v in source.items() if k not in items}
623 for name, fallback_chain in _fallback_chains.items():
[all …]
/frameworks/av/media/codec2/faultinjection/
DC2ComponentWrapper.cpp88 c2_status_t C2ComponentWrapper::queue_nb(std::list<std::unique_ptr<C2Work>>* const items) { in queue_nb() argument
89 return mComp->queue_nb(items); in queue_nb()
92 c2_status_t C2ComponentWrapper::announce_nb(const std::vector<C2WorkOutline> &items) { in announce_nb() argument
93 return mComp->announce_nb(items); in announce_nb()
/frameworks/base/core/java/android/animation/
DAnimatorSet.java231 public void playTogether(Animator... items) {
232 if (items != null) {
233 Builder builder = play(items[0]);
234 for (int i = 1; i < items.length; ++i) {
235 builder.with(items[i]);
245 public void playTogether(Collection<Animator> items) {
246 if (items != null && items.size() > 0) {
248 for (Animator anim : items) {
264 public void playSequentially(Animator... items) {
265 if (items != null) {
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/
Dtracker.py64 self.items = {}
165 self.items[tag] = self.items.get(tag, []) + [
171 self.items[pe_tag] = self.items.get(pe_tag, []) + [
251 if self.items.get(tag):
252 for item in self.items[tag]:
/frameworks/av/media/libmedia/
DIResourceManagerService.cpp40 static void writeToParcel(Parcel *data, const Vector<T> &items) { in writeToParcel() argument
41 size_t size = items.size(); in writeToParcel()
45 items[i].writeToParcel(data); in writeToParcel()
50 static void readFromParcel(const Parcel &data, Vector<T> *items) { in readFromParcel() argument
55 items->add(item); in readFromParcel()
/frameworks/base/core/java/android/app/slice/
DSliceQuery.java153 Queue<SliceItem> items = new LinkedList(); in stream() local
154 items.add(slice); in stream()
158 return items.size() != 0; in stream()
163 SliceItem item = items.poll(); in stream()
166 items.addAll(item.getSlice().getItems()); in stream()

1234567