/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
ActionBarHelperBase.java | 74 MenuItem item = menu.getItem(i); local 75 if (mActionItemIds.contains(item.getItemId())) { 76 addActionItemCompatFromMenuItem(item); 164 * android.view.MenuItem}. If the menu item ID is <code>menu_refresh</code>, the menu item's 168 private View addActionItemCompatFromMenuItem(final MenuItem item) { 169 final int itemId = item.getItemId(); 190 actionButton.setImageDrawable(item.getIcon()); 192 actionButton.setContentDescription(item.getTitle()); 195 mActivity.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item); [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarFragmentMenu.java | 145 public boolean onOptionsItemSelected(MenuItem item) { 146 if (item.getTitle().equals("Menu 1a")) { 150 if (item.getTitle().equals("Menu 1b")) { 154 return super.onOptionsItemSelected(item); 185 public boolean onOptionsItemSelected(MenuItem item) { 186 if (item.getTitle().equals("Menu 2")) { 228 public boolean onOptionsItemSelected(MenuItem item) { 229 if (item.getItemId() == R.id.simple_item) { 230 Toast.makeText(getActivity(), "Selected nested fragment's menu item.", 234 return super.onOptionsItemSelected(item); [all...] |
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
DetailsFragment.java | 47 private static final String ITEM = "item"; 72 PhotoItem item = (PhotoItem) (savedInstanceState != null ? local 73 savedInstanceState.getParcelable(ITEM) : null); 74 if (item != null) { 75 setItem(item); 82 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 84 Log.i(TAG, "onItemClicked: " + item + " row " + row); 85 if (item instanceof PhotoItem){ 87 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); [all...] |
/external/chromium_org/chrome/browser/ui/views/ |
menu_item_view_interactive_uitest.cc | 12 // Simple test for clicking a menu item. This template class clicks on an 13 // item and checks that the returned id matches. The index of the item 26 menu->AppendMenuItemWithLabel(1, ASCIIToUTF16("item 1")); 27 menu->AppendMenuItemWithLabel(2, ASCIIToUTF16("item 2")); 29 menu->AppendMenuItemWithLabel(3, ASCIIToUTF16("item 3")); 32 // Click on item INDEX. 39 // click an item and pass control to the next step 40 views::MenuItemView* item = submenu->GetMenuItemAt(INDEX); variable 41 ASSERT_TRUE(item); variable 99 views::MenuItemView* item = submenu->GetMenuItemAt(SELECT_INDEX); variable 100 ASSERT_TRUE(item); variable 234 views::MenuItemView* item = submenu->GetMenuItemAt(SELECT_INDEX); variable 235 ASSERT_TRUE(item); variable [all...] |
/external/chromium_org/tools/grit/grit/node/ |
message.py | 93 for item in value.split(): 94 name, sep, val = item.partition('=') 129 for item in self.mixed_content: 130 if isinstance(item, types.StringTypes): 131 text += item 133 presentation = item.attrs['name'].upper() 136 if len(item.children): 137 ex = item.children[0].GetCdata() 138 original = item.GetCdata() 244 for ix, item in enumerate(items) [all...] |
/external/chromium_org/ui/app_list/views/ |
app_list_main_view.cc | 50 AppListItem* item, 53 item_(item) { 232 AppListItem* item = model_->top_level_item_list()->item_at(i); local 233 if (item->icon().HasRepresentation(scale_factor)) 236 pending_icon_loaders_.push_back(new IconLoader(this, item, scale_factor)); 263 void AppListMainView::ActivateApp(AppListItem* item, int event_flags) { 265 if (item->GetItemType() == AppListFolderItem::kItemType) 266 contents_view_->ShowFolderContent(static_cast<AppListFolderItem*>(item)); 268 item->Activate(event_flags);
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
Prefix.java | 93 testEmployee = elementList.item(0); 106 testEmployee = elementList.item(0); 118 testEmployee = elementList.item(0); 129 addrNode = (Element) elementList.item(0); 149 employeeNode = elementList.item(0); 167 employeeNode = elementList.item(0); 191 // genderNode = genderList.item(2); 220 addrNode = (Element) elementList.item(3); 239 employeeNode = elementList.item(1); 258 employeeNode = elementList.item(1) [all...] |
/ndk/sources/host-tools/gdb-pretty-printers/stlport/gppfs-0.2/stlport/ |
printers.py | 156 self.item = start_cur 166 if self.item == self.last: 168 result = ('[%d]' % self.count, self.item.dereference()) 170 self.item += 1 171 if self.item == self.node_last: 173 self.item = self.node[0] 174 self.node_last = self.item + self.buffer_size 225 self.item = head['_M_next'] 232 if self.item == self.sentinel: 234 node = self.item.cast (self.node_type).dereference( [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
CameraSwitcher.java | 125 RotateImageView item = new RotateImageView(getContext()); local 126 item.setImageResource(mDrawIds[i]); 127 item.setBackgroundResource(R.drawable.bg_pressed); 129 item.setOnClickListener(new OnClickListener() { 137 item.setContentDescription(getContext().getResources().getString( 141 item.setContentDescription(getContext().getResources().getString( 145 item.setContentDescription(getContext().getResources().getString( 149 item.setContentDescription(getContext().getResources().getString( 155 content.addView(item, new LinearLayout.LayoutParams(mItemSize, mItemSize));
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
ObjectBrowser.py | 52 item = make_objecttreeitem( 57 sublist.append(item) 75 item = make_objecttreeitem("__bases__[0] =", 78 item = make_objecttreeitem("__bases__ =", self.object.__bases__) 79 sublist.insert(0, item) 100 item = make_objecttreeitem("%r:" % (key,), value, setfunction) 101 sublist.append(item) 145 item = make_objecttreeitem("sys", sys) 146 node = TreeNode(sc.canvas, None, item)
|
/prebuilts/python/darwin-x86/2.7.5/share/pretty-printers/stlport/stlport/ |
printers.py | 155 self.item = start_cur 165 if self.item == self.last: 167 result = ('[%d]' % self.count, self.item.dereference()) 169 self.item += 1 170 if self.item == self.node_last: 172 self.item = self.node[0] 173 self.node_last = self.item + self.buffer_size 224 self.item = head['_M_next'] 231 if self.item == self.sentinel: 233 node = self.item.cast (self.node_type).dereference( [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
ObjectBrowser.py | 52 item = make_objecttreeitem( 57 sublist.append(item) 75 item = make_objecttreeitem("__bases__[0] =", 78 item = make_objecttreeitem("__bases__ =", self.object.__bases__) 79 sublist.insert(0, item) 100 item = make_objecttreeitem("%r:" % (key,), value, setfunction) 101 sublist.append(item) 145 item = make_objecttreeitem("sys", sys) 146 node = TreeNode(sc.canvas, None, item)
|
/prebuilts/python/linux-x86/2.7.5/share/pretty-printers/stlport/stlport/ |
printers.py | 156 self.item = start_cur 166 if self.item == self.last: 168 result = ('[%d]' % self.count, self.item.dereference()) 170 self.item += 1 171 if self.item == self.node_last: 173 self.item = self.node[0] 174 self.node_last = self.item + self.buffer_size 225 self.item = head['_M_next'] 232 if self.item == self.sentinel: 234 node = self.item.cast (self.node_type).dereference( [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ActivityMenuListener.java | 90 MenuItem item = new MenuItem(menu, SWT.PUSH); local 92 item.setText( String.format("Open %1$s...", label)); 94 item.setImage(image); 95 item.addSelectionListener( 145 MenuItem item = new MenuItem(menu, SWT.CHECK); local 146 item.setText(title); 147 item.setImage(image); 151 item.setSelection(true); 156 item.addSelectionListener(new ActivityMenuListener(chooser,
|
/external/chromium_org/third_party/openssl/openssl/ssl/ |
d1_both.c | 536 pitem *item; local 541 item = pqueue_peek(s->d1->buffered_messages); 542 if ( item == NULL) 545 frag = (hm_fragment *)item->data; 566 pitem_free(item); 588 pitem *item = NULL; local 607 /* Try to find item in queue */ 611 item = pqueue_find(s->d1->buffered_messages, seq64be); 613 if (item == NULL) 624 frag = (hm_fragment*) item->data 701 pitem *item = NULL; local 1143 pitem *item; local 1167 pitem *item; local 1233 pitem *item; local 1323 pitem *item; local [all...] |
/external/chromium_org/third_party/skia/debugger/QT/ |
SkDebuggerGUI.cpp | 137 QListWidgetItem *item = fListWidget.item(row); local 138 item->setHidden(item->checkState() == Qt::Unchecked && fBreakpointsActivated); 153 QListWidgetItem *item = fListWidget.item(row); local 154 item->setHidden(fDebugger.isCommandVisible(row) && fDeletesActivated); 410 QListWidgetItem* item = fListWidget.item(i); local 412 item->setData(Qt::UserRole + 4, 100.0*temp) 427 QListWidgetItem* item = fListWidget.item(row); local 436 QListWidgetItem* item = fListWidget.item(row); local 463 QListWidgetItem* item = fListWidget.item(row); local 514 QListWidgetItem *item = fListWidget.item(row); local 682 QListWidgetItem* item = fListWidget.currentItem(); local 700 QListWidgetItem *item = fListWidget.item(row); local 1017 QListWidgetItem *item = new QListWidgetItem(); local [all...] |
/external/openssl/ssl/ |
d1_both.c | 543 pitem *item; local 548 item = pqueue_peek(s->d1->buffered_messages); 549 if ( item == NULL) 552 frag = (hm_fragment *)item->data; 573 pitem_free(item); 595 pitem *item = NULL; local 614 /* Try to find item in queue */ 618 item = pqueue_find(s->d1->buffered_messages, seq64be); 620 if (item == NULL) 631 frag = (hm_fragment*) item->data 708 pitem *item = NULL; local 1150 pitem *item; local 1174 pitem *item; local 1240 pitem *item; local 1330 pitem *item; local [all...] |
/external/skia/debugger/QT/ |
SkDebuggerGUI.cpp | 137 QListWidgetItem *item = fListWidget.item(row); local 138 item->setHidden(item->checkState() == Qt::Unchecked && fBreakpointsActivated); 153 QListWidgetItem *item = fListWidget.item(row); local 154 item->setHidden(fDebugger.isCommandVisible(row) && fDeletesActivated); 410 QListWidgetItem* item = fListWidget.item(i); local 412 item->setData(Qt::UserRole + 4, 100.0*temp) 427 QListWidgetItem* item = fListWidget.item(row); local 436 QListWidgetItem* item = fListWidget.item(row); local 463 QListWidgetItem* item = fListWidget.item(row); local 514 QListWidgetItem *item = fListWidget.item(row); local 682 QListWidgetItem* item = fListWidget.currentItem(); local 700 QListWidgetItem *item = fListWidget.item(row); local 1017 QListWidgetItem *item = new QListWidgetItem(); local [all...] |
/external/chromium_org/crypto/ |
mock_apple_keychain_mac.cc | 100 void MockAppleKeychain::SetTestDataBytes(MockKeychainItemType item, 104 SecKeychainAttribute* attribute = AttributeWithTag(keychain_attr_list_[item], 118 void MockAppleKeychain::SetTestDataString(MockKeychainItemType item, 121 SetTestDataBytes(item, tag, value, value ? strlen(value) : 0); 124 void MockAppleKeychain::SetTestDataPort(MockKeychainItemType item, 126 SecKeychainAttribute* attribute = AttributeWithTag(keychain_attr_list_[item], 132 void MockAppleKeychain::SetTestDataProtocol(MockKeychainItemType item, 134 SecKeychainAttribute* attribute = AttributeWithTag(keychain_attr_list_[item], 140 void MockAppleKeychain::SetTestDataAuthType(MockKeychainItemType item, 143 keychain_attr_list_[item], kSecAuthenticationTypeItemAttr) [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
profilesPanel.css | 73 .profile-launcher-view-tree-item > .icon { 88 .profile-sidebar-tree-item .icon { 92 .profile-sidebar-tree-item.small .icon { 96 .profile-group-sidebar-tree-item .icon { 100 .sidebar-tree-item .title-container > .save-link { 106 .sidebar-tree-item.selected .title-container > .save-link { 161 .focus-profile-node-status-bar-item .glyph { 165 .exclude-profile-node-status-bar-item .glyph { 169 .reset-profile-status-bar-item .glyph { 207 .profile-launcher-view-content button.running:not(.status-bar-item) { [all...] |
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
ActivityTestMain.java | 171 public boolean onMenuItemClick(MenuItem item) { 180 @Override public boolean onMenuItemClick(MenuItem item) { 202 @Override public boolean onMenuItemClick(MenuItem item) { 209 @Override public boolean onMenuItemClick(MenuItem item) { 217 @Override public boolean onMenuItemClick(MenuItem item) { 235 @Override public boolean onMenuItemClick(MenuItem item) { 245 @Override public boolean onMenuItemClick(MenuItem item) { 254 @Override public boolean onMenuItemClick(MenuItem item) { 277 @Override public boolean onMenuItemClick(MenuItem item) { 300 @Override public boolean onMenuItemClick(MenuItem item) { 501 LinearLayout item = new LinearLayout(this); local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FolderIcon.java | 75 // The degree to which the item in the back of the stack is scaled [0...1] 292 private boolean willAcceptItem(ItemInfo item) { 293 final int itemType = item.itemType; 296 !mFolder.isFull() && item != mInfo && !mInfo.opened); 300 final ItemInfo item = (ItemInfo) dragInfo; local 301 return !mFolder.isDestroyed() && willAcceptItem(item); 304 public void addItem(ShortcutInfo item) { 305 mInfo.add(item); 330 // This will animate the first item from it's position as an icon into its 331 // position as the first item in the previe [all...] |
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
MainActivity.java | 150 PlaylistItem item = getCheckedPlaylistItem(); 151 if (item != null) { 152 long pos = item.getPosition() + 153 (mPaused ? 0 : (SystemClock.elapsedRealtime() - item.getTimestamp())); 338 PlaylistItem item = getCheckedPlaylistItem(); 339 if (fromUser && item != null && item.getDuration() > 0) { 340 long pos = progress * item.getDuration() / 100; 341 mSessionManager.seek(item.getItemId(), pos); 342 item.setPosition(pos) 530 PlaylistItem item = getCheckedPlaylistItem(); local 582 PlaylistItem item = getCheckedPlaylistItem(); local 665 final MediaItem item = getItem(position); local 702 final PlaylistItem item = getItem(position); local [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
MainActivity.java | 150 PlaylistItem item = getCheckedPlaylistItem(); 151 if (item != null) { 152 long pos = item.getPosition() + 153 (mPaused ? 0 : (SystemClock.elapsedRealtime() - item.getTimestamp())); 338 PlaylistItem item = getCheckedPlaylistItem(); 339 if (fromUser && item != null && item.getDuration() > 0) { 340 long pos = progress * item.getDuration() / 100; 341 mSessionManager.seek(item.getItemId(), pos); 342 item.setPosition(pos) 530 PlaylistItem item = getCheckedPlaylistItem(); local 582 PlaylistItem item = getCheckedPlaylistItem(); local 665 final MediaItem item = getItem(position); local 702 final PlaylistItem item = getItem(position); local [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
SampleMediaRouterActivity.java | 147 PlaylistItem item = getCheckedPlaylistItem(); 148 if (item != null) { 149 long pos = item.getPosition() + (mSessionManager.isPaused() ? 150 0 : (SystemClock.elapsedRealtime() - item.getTimestamp())); 339 PlaylistItem item = getCheckedPlaylistItem(); 340 if (fromUser && item != null && item.getDuration() > 0) { 341 long pos = progress * item.getDuration() / 100; 342 mSessionManager.seek(item.getItemId(), pos); 343 item.setPosition(pos) 544 PlaylistItem item = getCheckedPlaylistItem(); local 594 PlaylistItem item = getCheckedPlaylistItem(); local 679 final MediaItem item = getItem(position); local 714 final PlaylistItem item = getItem(position); local [all...] |