/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenu.java | 129 final ArrayList<ActionMenuItem> items = mItems; in findItemIndex() local 130 final int itemCount = items.size(); in findItemIndex() 132 if (items.get(i).getItemId() == id) { in findItemIndex() 149 final ArrayList<ActionMenuItem> items = mItems; in hasVisibleItems() local 150 final int itemCount = items.size(); in hasVisibleItems() 153 if (items.get(i).isVisible()) { in hasVisibleItems() 164 final ArrayList<ActionMenuItem> items = mItems; in findItemWithShortcut() local 165 final int itemCount = items.size(); in findItemWithShortcut() 168 ActionMenuItem item = items.get(i); in findItemWithShortcut() 201 final ArrayList<ActionMenuItem> items = mItems; in removeGroup() local [all …]
|
D | ListMenuPresenter.java | 228 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() local 229 int count = items.size() - mItemIndexOffset; in getCount() 237 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() local 242 return items.get(position); in getItem() 264 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 265 final int count = items.size(); in findExpandedIndex() 267 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuPopupHelper.java | 315 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount() local 318 return items.size(); in getCount() 320 return items.size() - 1; in getCount() 324 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem() local 329 return items.get(position); in getItem() 354 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex() local 355 final int count = items.size(); in findExpandedIndex() 357 final MenuItemImpl item = items.get(i); in findExpandedIndex()
|
D | MenuBuilder.java | 747 private static int findInsertIndex(ArrayList<MenuItemImpl> items, int ordering) { in findInsertIndex() argument 748 for (int i = items.size() - 1; i >= 0; i--) { in findInsertIndex() 749 MenuItemImpl item = items.get(i); in findInsertIndex() 780 void findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) { in findItemsWithShortcutForKey() argument 796 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); in findItemsWithShortcutForKey() 806 items.add(item); in findItemsWithShortcutForKey() 824 ArrayList<MenuItemImpl> items = mTempShortcutItemList; in findItemWithShortcutForKey() local 825 items.clear(); in findItemWithShortcutForKey() 826 findItemsWithShortcutForKey(items, keyCode, event); in findItemWithShortcutForKey() 828 if (items.isEmpty()) { in findItemWithShortcutForKey() [all …]
|
/frameworks/base/tools/aidl/ |
D | aidl.cpp | 237 check_filenames(const char* filename, document_item_type* items) argument 240 while (items) { 241 if (items->item_type == PARCELABLE_TYPE) { 242 parcelable_type* p = (parcelable_type*)items; 245 else if (items->item_type == INTERFACE_TYPE) { 246 interface_type* c = (interface_type*)items; 251 items->item_type); 254 items = items->next; 288 gather_types(const char* filename, document_item_type* items) argument 291 while (items) { [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorSet.java | 122 public void playTogether(Animator... items) { in playTogether() argument 123 if (items != null) { in playTogether() 125 Builder builder = play(items[0]); in playTogether() 126 for (int i = 1; i < items.length; ++i) { in playTogether() 127 builder.with(items[i]); in playTogether() 137 public void playTogether(Collection<Animator> items) { in playTogether() argument 138 if (items != null && items.size() > 0) { in playTogether() 141 for (Animator anim : items) { in playTogether() 157 public void playSequentially(Animator... items) { in playSequentially() argument 158 if (items != null) { in playSequentially() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cat/ |
D | Menu.java | 31 public List<Item> items; field in Menu 44 items = new ArrayList<Item>(); in Menu() 61 items = new ArrayList<Item>(); in Menu() 65 items.add(item); in Menu() 83 int size = items.size(); in writeToParcel() 86 dest.writeParcelable(items.get(i), flags); in writeToParcel()
|
D | ComprehensionTlv.java | 87 ArrayList<ComprehensionTlv> items = new ArrayList<ComprehensionTlv>(); in decodeMany() local 91 items.add(ctlv); in decodeMany() 95 return items; in decodeMany()
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | menus.jd | 14 <li><a href="#ChangingTheMenu">Changing menu items at runtime</a></li> 22 <li><a href="#checkable">Checkable menu items</a></li> 52 <dd>The primary collection of menu items for an activity, which appears when the user touches 54 quick access to select menu items by placing them directly in the <a 55 href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a>, as "action items."</dd> 57 <dd>A floating list of menu items that appears when the user touches and holds a view 61 <dd>A floating list of menu items that appears when the user touches a menu item that contains 73 define a menu and all its items in an XML <a 83 <dd>Defines a {@link android.view.Menu}, which is a container for menu items. A 93 categorize menu items so they share properties such as active state and visibility. See the [all …]
|
D | dialogs.jd | 54 selectable items that can include checkboxes or radio buttons. The AlertDialog 201 <li>A list of selectable items (with optional checkboxes or radio buttons)</li> 261 <p>To create an AlertDialog with a list of selectable items like the one shown to the right, 265 final CharSequence[] items = {"Red", "Green", "Blue"}; 269 builder.setItems(items, new DialogInterface.OnClickListener() { 271 Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show(); 279 Then, add a list of selectable items with 281 setItems()}, which accepts the array of items to display and a 290 <p>To create a list of multiple-choice items (checkboxes) or 291 single-choice items (radio buttons) inside the dialog, use the [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 44 List<String> items = Lists.newArrayList("hello"); in testRequestLayout() local 45 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testRequestLayout() 74 List<String> items = Lists.newArrayList("hello"); in testNoSelectableItems() local 75 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testNoSelectableItems() 86 items.remove(0); in testNoSelectableItems()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLocaleTest.java | 69 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/docs/html/guide/market/billing/ |
D | billing_admin.jd | 55 items that are listed in another application's product list.</p> 69 <p>A product list contains information about the items you are selling, such as a product id, 70 product description, and price (see figure 2). The product list stores only metadata about the items 83 existing items in the product list but you will not be able to add new items to the list. For more 100 <strong>Figure 3.</strong> The Create New In-app Product page lets you add items to an 165 <code>RESTORE_TRANSACTIONS</code> request and restore the state of the items a specific user has 173 demonstrates how you can do this by keeping track of items that are managed and already purchased 174 and not allowing users to select those items from the list. Your application should do something 177 <p>The "manage by user account" purchase type is useful if you are selling items such as game levels 178 or application features. These items are not transient and usually need to be restored whenever a [all …]
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestBasic.java | 35 …private String[] items = {"This is a very very very very very very very very very very very long I… field in BiDiTestBasic 60 builder.setSingleChoiceItems(items, 0, null); in showDialog()
|
/frameworks/base/tools/localize/ |
D | ValuesFile.cpp | 227 const set<StringResource>& items = it->second; in ToXMLNode() local 228 XMLNode* arrayNode = XMLNode::NewElement(items.begin()->pos, "", "array", arrayAttrs, in ToXMLNode() 233 for (set<StringResource>::const_iterator item = items.begin(); in ToXMLNode() 234 item != items.end(); item++) { in ToXMLNode()
|
/frameworks/base/core/java/android/app/ |
D | AlertDialog.java | 606 public Builder setItems(CharSequence[] items, final OnClickListener listener) { in setItems() argument 607 P.mItems = items; in setItems() 692 public Builder setMultiChoiceItems(CharSequence[] items, boolean[] checkedItems, in setMultiChoiceItems() argument 694 P.mItems = items; in setMultiChoiceItems() 794 …public Builder setSingleChoiceItems(CharSequence[] items, int checkedItem, final OnClickListener l… in setSingleChoiceItems() argument 795 P.mItems = items; in setSingleChoiceItems()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | menu-resource.jd | 133 bar. Setting multiple items to always appear as action items can result in them overlapping 191 <tr><td><code>container</code></td><td>For items that are part of a 193 <tr><td><code>system</code></td><td>For items that are provided by the 195 <tr><td><code>secondary</code></td><td>For items that are user-supplied secondary 197 <tr><td><code>alternative</code></td><td>For items that are alternative actions 207 <dd>A menu group (to create a collection of items that share traits, such as whether they are 222 <tr><td><code>all</code></td><td>All items can be checked (use checkboxes)</td></tr> 247 <dd><em>Integer</em>. The default order of the items within the category.</dd> 284 callback for two of the items:</p> 293 // One of the group items (using the onClick attribute) was clicked
|
/frameworks/base/core/java/android/widget/ |
D | ArrayAdapter.java | 206 public void addAll(T ... items) { in addAll() argument 209 Collections.addAll(mOriginalValues, items); in addAll() 211 Collections.addAll(mObjects, items); in addAll()
|
/frameworks/base/docs/html/guide/tutorials/views/ |
D | hello-spinner.jd | 69 <p>This is the list of items (planets) that the user can select from in the Spinner widget.</p> 88 the array of selectable items and the type of layout we'd like each one bound to. We then call 91 so the string items have a place to go.</p>
|
D | hello-listview.jd | 6 …{@link android.widget.ListView} is a View that shows items in a vertically scrolling list. The ite… 31 …begins typing, the list will filter the entire view to display only the items that match the entry…
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | FileList.java | 127 final CharSequence[] items = {"Open", "Run"}; in onListItemClick() local 130 builder.setSingleChoiceItems(items, -1, in onListItemClick()
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | menu_design.jd | 43 …<li style="padding-top: 4px;"><a href=#dim_hide_menu_items>Dim or hide menu items not available</a… 137 In order to handle a large number of menu items, the Options menu 148 <b>Options expanded menu</b> - If the activity has more menu items than will 150 displays a list that can contain any number of menu items and will scroll 174 A Context menu is a list of menu items (commands) that can operate 218 while the "View contact" activity splits them into various items in the 219 Options menu, icon buttons and list items. 244 the appropriate menu items into the Context menu of text links and text 271 text buttons, graphic buttons, or list items. This placement is by far the most 465 possibly a list of selectable items that can include checkboxes or radio buttons. [all …]
|
/frameworks/base/docs/html/guide/practices/ |
D | tablets-and-handsets.jd | 97 left side, followed by the activity title, and access to items from the options menu on the right 100 <p>You can enable items from the options menu to appear directly in the action bar as "action 101 items". You can also add navigation features to the action bar, such as tabs or a drop-down list, 380 action item. Forcing too many action items into the action bar can create a cluttered UI and 381 action items may overlap with other action bar elements such as the title or navigation items.</li> 383 <li>When adding action items to the action bar with a text title, also <strong>provide an 389 <li>Always <strong>provide a title</strong> for your action items, even if you don't enable {@code 399 other action items (such as a handset in portrait orientation), the tabs appear below the action bar 406 on the available screen space. On the handset, only two action items fit, so the remaining menu 407 items appear in the overflow menu (because {@code android:showAsAction} was set to {@code "ifRoom"}) [all …]
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 169 private <T> List<T> select(Collection<T> items, Predicate<T> predicate) { in select() argument 171 for (T item : items) { in select()
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/ |
D | DirListActivity.java | 160 public DirListAdapter(Activity context, ListItem[] items) { in DirListAdapter() argument 161 super(context, R.layout.dirlist_row, items); in DirListAdapter() 164 mItems = items; in DirListAdapter()
|