/external/chromium_org/ash/shelf/ |
shelf_model.h | 29 // Adds a new item to the model. Returns the resulting index. 30 int Add(const ShelfItem& item); 32 // Adds the item. |index| is the requested insertion index, which may be 34 int AddAt(int index, const ShelfItem& item); 36 // Removes the item at |index|. 39 // Moves the item at |index| to |target_index|. |target_index| is in terms 40 // of the model *after* the item at |index| is removed. 43 // Resets the item at the specified index. The item maintains its existing 45 void Set(int index, const ShelfItem& item); [all...] |
/external/chromium_org/chrome/browser/download/ |
download_path_reservation_tracker_unittest.cc | 89 MockDownloadItem* item = new ::testing::StrictMock<MockDownloadItem>; local 90 EXPECT_CALL(*item, GetId()) 92 EXPECT_CALL(*item, GetTargetFilePath()) 94 EXPECT_CALL(*item, GetState()) 96 return item; 161 scoped_ptr<MockDownloadItem> item(CreateDownloadItem(1)); 172 item.get(), 182 // Destroying the item should release the reservation. 183 SetDownloadItemState(item.get(), DownloadItem::COMPLETE); 184 item.reset() [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
manifest_data_source.py | 17 def sort_key(item): 23 return (levels.index(item.get('level', 'optional')), item['name']) 72 sorted by 'level'. Annotations are added to the first item in a group of 75 The last item in a list has 'is_last' set to True. 84 def add_annotation(item, annotation): 85 if not 'annotations' in item: 86 item['annotations'] = [] 87 item['annotations'].insert(0, annotation) 91 for item in features [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/platform/ |
desktop_platform_backend.py | 26 for item in directory_contents: 27 if not ignoring or item not in ignoring: 28 args.append(os.path.join(directory, item))
|
/external/hamcrest/library/src/org/hamcrest/object/ |
IsEventFrom.java | 25 public boolean matchesSafely(EventObject item) { 26 return eventClass.isInstance(item) 27 && eventHasSameSource(item);
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
namednodemapchildnoderange.java | 73 testEmployee = elementList.item(2); 77 child = attributes.item(0); 78 child = attributes.item(1);
|
/packages/apps/Gallery2/src/com/android/photos/ |
AlbumSetFragment.java | 96 Cursor item = (Cursor) getItemAtPosition(position); local 100 mLoaderCompatShim.getPathForItem(item).toString()); 102 item.getString(AlbumSetLoader.INDEX_TITLE)); 107 public int getItemMediaType(Object item) { 112 public int getItemSupportedOperations(Object item) { 113 return ((Cursor) item).getInt(AlbumSetLoader.INDEX_SUPPORTED_OPERATIONS); 117 public ArrayList<Uri> getSubItemUrisForItem(Object item) { 118 return mLoaderCompatShim.urisForSubItems((Cursor) item); 127 public Uri getItemUri(Object item) { 128 return mLoaderCompatShim.uriForItem((Cursor) item); [all...] |
PhotoSetFragment.java | 74 Cursor item = (Cursor) getItemAtPosition(position); local 75 Uri uri = mLoaderCompatShim.uriForItem(item); 102 public int getItemMediaType(Object item) { 103 return ((Cursor) item).getInt(PhotoSetLoader.INDEX_MEDIA_TYPE); 107 public int getItemSupportedOperations(Object item) { 108 return ((Cursor) item).getInt(PhotoSetLoader.INDEX_SUPPORTED_OPERATIONS); 113 public ArrayList<Uri> getSubItemUrisForItem(Object item) { 115 mSubItemUriTemp.add(mLoaderCompatShim.uriForItem((Cursor) item)); 125 public Uri getItemUri(Object item) { 126 return mLoaderCompatShim.uriForItem((Cursor) item); [all...] |
/packages/services/Telephony/src/com/android/phone/settings/ |
PhoneAccountSettingsActivity.java | 41 public boolean onOptionsItemSelected(MenuItem item) { 42 final int itemId = item.getItemId(); 47 return super.onOptionsItemSelected(item);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
dynOptionMenuWidget.py | 31 for item in valueList: 32 self['menu'].add_command(label=item, 33 command=_setit(self.variable,item,self.command))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
dynOptionMenuWidget.py | 31 for item in valueList: 32 self['menu'].add_command(label=item, 33 command=_setit(self.variable,item,self.command))
|
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
DateTimeEditor.java | 46 public Runnable bindEditor(View v, final EditableItem item, final Runnable afterChange) { 61 Date d = getDateTime(item); 73 Date d = getDateTime(item); 77 Date d = getDateTime(item); 81 item.setValue(d.getTime()); 97 Date d = getDateTime(item); 101 Date d = getDateTime(item); 104 item.setValue(d.getTime()); 118 item.setValue(null); 125 private static Date getDateTime(EditableItem item) { [all...] |
TextEditor.java | 31 public Runnable bindEditor(View v, final EditableItem item, final Runnable afterChange) { 37 textEditor.setText(item.getValue() == null ? "" : item.getValue().toString()); 39 if (item.hasValue()) 44 if (equal(newVal, item.getValue())) 46 item.setValue(newVal);
|
/external/chromium_org/ui/views/controls/menu/ |
menu_controller.cc | 65 // the menu item on the subsequent mouse up. To prevent this, we add the 66 // following delay before the user is able to select an item. 74 // trigger a mouse menu item activation (regardless of how long the menu has 257 // Index of the selected item; may remain -1. 260 // If there are multiple matches this is the index of the item after the 261 // currently selected item whose mnemonic matches. This may remain -1 even 269 : item(NULL), 379 // On Windows, if we select the menu item by touch and if the window at the 456 MenuItemView* selected = state_.item; 501 SetSelection(part.menu ? part.menu : state_.item, SELECTION_OPEN_SUBMENU) 736 MenuItemView* item = state_.item; local 952 MenuItemView* item = state_.item; local 1844 MenuItemView* item = pending_state_.item; local 1917 MenuItemView* item = pending_state_.item; local 1930 MenuItemView* item = state_.item; local 1997 MenuItemView* item = pending_state_.item; local [all...] |
/external/chromium_org/components/test/data/autofill/merge/tools/ |
serialize_profiles.py | 36 # 7-tuples, in which the first item is the column name, and the remaining 38 types = [ColumnNameToFieldType(item[0]) for item in cursor.description] 52 types = [ColumnNameToFieldType(item[0]) for item in cursor.description] 64 types = [ColumnNameToFieldType(item[0]) for item in cursor.description]
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
ContextMenuController.cpp | 127 void ContextMenuController::contextMenuItemSelected(const ContextMenuItem* item) 129 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); 131 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > ContextMenuItemLastCustomTag) 135 m_menuProvider->contextMenuItemSelected(item);
|
/external/libcxx/test/containers/sequences/dynarray/dynarray.cons/ |
alloc.pass.cpp | 61 assert ( std::all_of ( d1.begin (), d1.end (), []( const T &item ){ return item == T(); } )); 66 assert ( std::all_of ( d2.begin (), d2.end (), [&val]( const T &item ){ return item == val; } )); 71 assert ( std::all_of ( d3.begin (), d3.end (), [&val]( const T &item ){ return item == val; } ));
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
RenderState.java | 87 ScriptField_RenderState_s.Item item = new ScriptField_RenderState_s.Item(); local 88 item.pv = mVertex.getRSData().getAllocation(); 89 item.pf = mFragment.getRSData().getAllocation(); 90 item.ps = mStore; 91 item.pr = mRaster; 93 mField.set(item, 0, true);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
CursorObjectAdapter.java | 144 Object item = mItemCache.get(index); local 145 if (item != null) { 146 return item; 148 item = mMapper.convert(mCursor); 149 mItemCache.put(index, item); 150 return item; 171 * Remove an item from the cache. This will force the item to be re-read
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/dynarray/dynarray.cons/ |
alloc.pass.cpp | 61 assert ( std::all_of ( d1.begin (), d1.end (), []( const T &item ){ return item == T(); } )); 66 assert ( std::all_of ( d2.begin (), d2.end (), [&val]( const T &item ){ return item == val; } )); 71 assert ( std::all_of ( d3.begin (), d3.end (), [&val]( const T &item ){ return item == val; } ));
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
DataAction.java | 50 * Description of a specific {@link Data#_ID} item, with style information 78 public DataAction(Context context, DataItem item, DataKind kind) { 81 mMimeType = item.getMimeType(); 82 mTimesUsed = item.getTimesUsed(); 83 mLastTimeUsed = item.getLastTimeUsed(); 87 if (item.hasKindTypeColumn(kind)) { 88 final int typeValue = item.getKindTypeColumn(kind); 98 mSubtitle = item.getContentValues().getAsString(type.customColumn); 105 mIsPrimary = item.isPrimary(); 106 mIsSuperPrimary = item.isSuperPrimary() [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ResourceLabelProvider.java | 102 ResourceItem item = (ResourceItem)element; local 103 if (item.hasDefault() == false) { 125 ResourceItem item = (ResourceItem)element; local 126 if (item.isDeclaredInline()) { 129 int count = item.getAlternateCount(); 131 if (item.hasDefault()) {
|
/external/chromium_org/chrome/browser/component_updater/ |
component_updater_service.cc | 158 CrxUpdateItem* item) const OVERRIDE; 202 Status OnDemandUpdateInternal(CrxUpdateItem* item); 203 Status OnDemandUpdateWithCooldown(CrxUpdateItem* item); 232 void ChangeItemState(CrxUpdateItem* item, CrxUpdateItem::Status to); 257 // A collection of every work item. 339 static bool IsOnDemand(CrxUpdateItem* item) { return item->on_demand; } 347 // ProcessRequestedItem() if there is an on_demand item. There 412 void CrxUpdateService::ChangeItemState(CrxUpdateItem* item, 417 item->on_demand = false 462 CrxUpdateItem* item = *it; local 519 const CrxUpdateItem* item = *it; local 585 CrxUpdateItem* item = work_items_[i]; local 917 CrxUpdateItem* item = FindUpdateItemById(component_id); local 974 CrxUpdateItem* item = FindUpdateItemById(crx_id); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PhotoDataAdapter.java | 137 // is used to determine the item movement. 159 public void onPhotoChanged(int index, Path item); 167 // The path of the current viewing item will be stored in mItemPath. 169 // can find the item. If mItemPath is null, then we use the mCurrentIndex to 230 MediaItem item = getItemInternal(index); local 231 if (item == null) return MediaObject.INVALID_DATA_VERSION; 232 return item.getDataVersion(); 236 MediaItem item = getItemInternal(index); local 237 if (item == null) return null; 238 return item.getPath() 400 MediaItem item = mData[index % DATA_CACHE_SIZE]; local 451 MediaItem item = getItem(index); local 469 MediaItem item = getItem(mCurrentIndex + offset); local 481 MediaItem item = getItem(mCurrentIndex + offset); local 508 MediaItem item = getItem(mCurrentIndex + offset); local 516 MediaItem item = getItem(mCurrentIndex + offset); local 585 MediaItem item = getMediaItem(0); local 660 MediaItem item = mData[currentIndex % DATA_CACHE_SIZE]; local 811 MediaItem item = mData[i % DATA_CACHE_SIZE]; local 1054 MediaItem item = findCurrentMediaItem(info); local 1125 MediaItem item = items.get(i); local [all...] |
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentMenuSupport.java | 113 MenuItem item; local 114 item = menu.add("Menu 1a"); 115 MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM); 116 item = menu.add("Menu 1b"); 117 MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM); 134 MenuItem item; local 135 item = menu.add("Menu 2"); 136 MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM);
|