/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
SetExtensions.cs | 45 public static bool add<T>( this HashSet<T> set, T item ) 47 return set.Add( item ); 53 foreach ( T item in items ) 54 set.Add( item ); 71 public static bool remove<T>( this HashSet<T> set, T item ) 73 return set.Remove( item );
|
/external/chromium-trace/trace-viewer/src/ui/ |
list_view.css | 18 .x-list-view > .list-item { 22 .x-list-view:focus > .list-item[selected] { 28 .x-list-view > .list-item[selected] {
|
/external/chromium_org/tools/gn/ |
builder_record.h | 12 #include "tools/gn/item.h" 18 // tree. It holds a reference to an item and links to other records that the 19 // item depends on, both resolved ones, and unresolved ones. 22 // a placeholder BuilderRecord with no item, and try to load the buildfile 23 // associated with the new item. The item will get filled in when we encounter 24 // the declaration for the item (or when we're done and realize there are 27 // You can also have null item pointers when the target is not required for 50 // Returns true if the given item is of the given type. 51 static bool IsItemOfType(const Item* item, ItemType type) 56 Item* item() { return item_.get(); } function in class:BuilderRecord 57 const Item* item() const { return item_.get(); } function in class:BuilderRecord [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
AnnotationsDirectoryItem.java | 74 * Returns whether this item is empty (has no contents). 76 * @return {@code true} if this item is empty, or {@code false} 87 * Returns whether this item is a candidate for interning. The only 114 * <p><b>Note:</b>: This throws an exception if this item is not 151 * Adds a field annotations item to this instance. 167 * Adds a method annotations item to this instance. 183 * Adds a parameter annotations item to this instance. 209 for (MethodAnnotationStruct item : methodAnnotations) { 210 if (item.getMethod().equals(method)) { 211 return item.getAnnotations() [all...] |
Statistics.java | 29 /** {@code non-null;} data about each type of item */ 40 * Adds the given item to the statistics. 42 * @param item {@code non-null;} the item to add 44 public void add(Item item) { 45 String typeName = item.typeName(); 49 dataMap.put(typeName, new Data(item, typeName)); 51 data.add(item); 61 Collection<? extends Item> items = list.items() [all...] |
/external/smack/src/org/jivesoftware/smackx/provider/ |
DiscoverItemsProvider.java | 38 DiscoverItems.Item item; local 47 if (eventType == XmlPullParser.START_TAG && "item".equals(parser.getName())) { 54 else if (eventType == XmlPullParser.END_TAG && "item".equals(parser.getName())) { 55 // Create a new Item and add it to DiscoverItems. 56 item = new DiscoverItems.Item(jid); 57 item.setName(name); 58 item.setNode(node); 59 item.setAction(action) [all...] |
MUCAdminProvider.java | 41 if (parser.getName().equals("item")) { 55 private MUCAdmin.Item parseItem(XmlPullParser parser) throws Exception { 57 MUCAdmin.Item item = local 58 new MUCAdmin.Item( 61 item.setNick(parser.getAttributeValue("", "nick")); 62 item.setJid(parser.getAttributeValue("", "jid")); 67 item.setActor(parser.getAttributeValue("", "jid")); 70 item.setReason(parser.nextText()); 74 if (parser.getName().equals("item")) { [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
StackActivity.java | 46 View item = convertView; 47 if (item == null) { 48 item = LayoutInflater.from(getContext()).inflate( 51 ((ImageView) item.findViewById(R.id.textview_icon)).setImageDrawable( 53 ((TextView) item.findViewById(R.id.mini_text)).setText("" + position); 54 return item;
|
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/matcher/ |
BoundedMatcher.java | 58 protected abstract boolean matchesSafely(S item); 62 public final boolean matches(Object item) { 63 if (item == null) { 67 if (expectedType.isInstance(item)) { 69 if (!intfType.isInstance(item)) { 73 return matchesSafely((S) item);
|
/external/chromium_org/chrome/browser/extensions/ |
context_menu_matcher.cc | 50 // If this is the first extension-provided menu item, and there are other 51 // items in the menu, and the last item is not a separator add a separator. 56 // (and it can't be a radio or checkbox item because we are going to put the 71 MenuItem* item = items[0]; local 72 extension_item_map_[menu_id] = item->id(); 73 title = item->TitleWithReplacement(selection_text, 75 submenu_items = GetRelevantExtensionItems(item->children(), 79 // Now add our item(s) to the menu_model_. 114 MenuItem* item = items[0]; local 115 title = item->TitleWithReplacement 122 MenuItem* item = GetExtensionMenuItem(command_id); local 129 MenuItem* item = GetExtensionMenuItem(command_id); local 138 MenuItem* item = GetExtensionMenuItem(command_id); local 177 const MenuItem* item = *i; local 201 MenuItem* item = *i; local 253 MenuItem* item = manager->GetItemById(i->second); local [all...] |
/external/bluetooth/bluedroid/osi/src/ |
thread.c | 117 // Queue item is freed either when the queue itself is destroyed 118 // or when the item is removed from the queue for dispatch. 119 work_item_t *item = (work_item_t *)malloc(sizeof(work_item_t)); local 120 if (!item) { 124 item->func = func; 125 item->context = context; 126 fixed_queue_enqueue(thread->work_queue, item); 169 // work item and then joining the thread. 171 work_item_t *item = fixed_queue_try_dequeue(thread->work_queue); local 172 while (item && count <= WORK_QUEUE_CAPACITY) 189 work_item_t *item = fixed_queue_dequeue(queue); local [all...] |
/external/qemu/android/tools/ |
gen-hw-config.py | 28 # a dictionary that maps item types as they appear in the .ini 65 class Item: 110 lastItem = Item(value) 133 for item in items: 134 if item.type == None: 135 sys.stderr.write("ignoring config item with no type '%s'\n" % item.name) 138 if not typesToMacros.has_key(item.type): 139 sys.stderr.write("ignoring config item with unknown type '%s': '%s'\n" % \ 140 (item.type, item.name) [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
AttendeesView.java | 171 private View constructAttendeeView(AttendeeItem item) { 172 item.mView = mInflater.inflate(R.layout.contact_item, null); 173 return updateAttendeeView(item); 180 private View updateAttendeeView(AttendeeItem item) { 181 final Attendee attendee = item.mAttendee; 182 final View view = item.mView; 185 if (item.mRemoved) { 195 button.setTag(item); 196 if (item.mRemoved) { 211 badge = mRecycledPhotos.get(item.mAttendee.mEmail) 284 final AttendeeItem item = new AttendeeItem(attendee, mDefaultBadge); local 426 final AttendeeItem item = (AttendeeItem)cookie; local 482 final AttendeeItem item = (AttendeeItem) view.getTag(); local [all...] |
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
ExploreByTouchHelperActivity.java | 77 // Adds an item at the top-left quarter of the custom view. 80 // Adds an item at the bottom-right quarter of the custom view. 85 * Simple custom view that draws rectangular items to the screen. Each item 86 * has a checked state that may be toggled by tapping on the item. 132 * Adds an item to the custom view. The item is positioned relative to 135 * @param description The item's description. 146 final CustomItem item = new CustomItem(); local 147 item.bounds = new RectF(top, left, bottom, right); 148 item.description = description 174 final CustomItem item = getItem(index); local 202 final CustomItem item = mItems.get(i); local 260 final CustomItem item = getItem(virtualViewId); local 276 final CustomItem item = getItem(virtualViewId); local [all...] |
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
BrowseAnimationFragment.java | 37 static class Item { 41 Item(String text, OnItemClickedListener action) { 84 Item createRandomItem() { 88 return new Item("Remove Item before", new OnItemClickedListener() { 90 public void onItemClicked(Object item, Row row) { 93 int index = adapter.indexOf(item); 102 return new Item("Remove Item after", new OnItemClickedListener() { 104 public void onItemClicked(Object item, Row row) [all...] |
/external/chromium_org/ui/file_manager/file_manager/background/js/ |
drive_sync_handler.js | 15 * Progress center to submit the progressing item. 106 * Updates the item involved with the given status. 117 var item = new ProgressCenterItem(); 118 item.id = 120 item.type = ProgressItemType.SYNC; 121 item.quiet = true; 122 item.message = strf('SYNC_FILE_NAME', entry.name); 123 item.cancelCallback = this.requestCancel_.bind(this, entry); 124 this.items_[status.fileUrl] = item; 132 var item = this.items_[status.fileUrl] [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
Statistics.java | 29 /** {@code non-null;} data about each type of item */ 40 * Adds the given item to the statistics. 42 * @param item {@code non-null;} the item to add 44 public void add(Item item) { 45 String typeName = item.typeName(); 49 dataMap.put(typeName, new Data(item, typeName)); 51 data.add(item); 61 Collection<? extends Item> items = list.items() [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
Statistics.java | 28 /** {@code non-null;} data about each type of item */ 39 * Adds the given item to the statistics. 41 * @param item {@code non-null;} the item to add 43 public void add(Item item) { 44 String typeName = item.typeName(); 48 dataMap.put(typeName, new Data(item, typeName)); 50 data.add(item); 60 Collection<? extends Item> items = list.items() [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/pyxelator/ |
parse_core.py | 26 item = self.lookup[key] 28 item = None 30 #item = self.parent[item] 31 ## self[key] = item # cache 32 #if self.verbose: print "%s.get('%s')='%s'"%(self,key,item) 33 return item 47 item = self.tags[key] 49 item = None 51 item = self.parent.deep_get_tag(key [all...] |
/external/chromium_org/ui/app_list/ |
app_list_model.h | 32 // move entries in the item list directly (but can not add or remove them) and 51 // Finds the item matching |id|. 54 // Find a folder item matching |id|. 57 // Adds |item| to the model. The model takes ownership of |item|. Returns a 58 // pointer to the item that is safe to use (e.g. after passing ownership). 59 AppListItem* AddItem(scoped_ptr<AppListItem> item); 61 // Adds |item| to an existing folder or creates a new folder. If |folder_id| 62 // is empty, adds the item to the top level model instead. The model takes 63 // ownership of |item|. Returns a pointer to the item that is safe to use [all...] |
/external/chromium_org/ui/file_manager/file_manager/common/js/ |
progress_center_common.js | 14 * Background page notifies item update to application windows. 42 // The item is file copy operation. 44 // The item is file move operation. 46 // The item is file delete operation. 48 // The item is file zip operation. 50 // The item is drive sync operation. 52 // The item is general file transfer operation. 53 // This is used for the mixed operation of summarized item. 58 * Item of the progress center. 63 * Item ID [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
RelationshipTester.java | 76 T item = group.get(itemNumber); local 79 assertion.assertRelated(item, related); 83 .replace("$ITEM", itemString(item, groupNumber, itemNumber)) 90 T item = groups.get(groupNumber).get(itemNumber); local 93 assertion.assertUnrelated(item, unrelated); 97 .replace("$ITEM", itemString(item, groupNumber, itemNumber)) 102 private static String itemString(Object item, int groupNumber, int itemNumber) { 104 .append(item) [all...] |
/external/tcpdump/ |
makemib | 232 function dump(item, c, s) { 233 # newitem=sofar"."item"("oid[item]")" 234 # printf "/* %s c=%s s=%s */\n", newitem, child[item], sibling[item] 236 if (child[item] != "") { 237 dump(child[item]) 238 c = "&_"child[item]"_obj" 241 if (sibling[item] != "") { 242 dump(sibling[item]) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuScenario.java | 65 MenuItem item; 67 if ((item = onAddMenuItem(menu, i)) == null) { 68 // Add a default item for this position if the subclasses 71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i)); 74 if (item != null) { 75 mItems[i] = item; 78 item.setOnMenuItemClickListener(this); 96 * Override this to add an item to the menu. 98 * @param itemPosition The position of the item to add (only for you [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_pickling.py | 18 def dumps(self, item): 19 return pickle.dumps(item) 21 def loads(self, item): 22 return pickle.loads(item) 59 for item in [ 67 self.assertRaises(ValueError, lambda: self.dumps(item)) 75 def dumps(self, item): 76 return pickle.dumps(item, 1) 79 def dumps(self, item): 80 return pickle.dumps(item, 2 [all...] |