/prebuilts/python/linux-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...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
Editors.java | 35 Runnable bindEditor(View v, EditableItem item, Runnable afterChange); 57 final ViewGroup parent, final EditableItem item) { 59 ((TextView) editorView.findViewById(R.id.caption)).setText(item.getCaption(activity)); 62 editorView.setVisibility(item.isVisible() ? View.VISIBLE : View.GONE); 63 item.setVisibilityListener(new Runnable(){ 65 editorView.setVisibility(item.isVisible() ? View.VISIBLE : View.GONE); 69 Editor editor = EDITORS.get(item.getType()); 72 Runnable updater = editor.bindEditor(editorView, item, new Runnable() { 74 if (item.equals(EditableItem.PRESET)) { 85 if (item.equals(EditableItem.PRESET) [all...] |
/dalvik/libdex/ |
DexSwapVerify.cpp | 365 ALOGE("Unknown map item type %04x", mapType); 372 * Helper for swapMap(), which indicates if an item type should appear 397 DexMapItem* item = pMap->list; local 408 CHECK_LIST_SIZE(item, count, sizeof(DexMapItem)); 411 SWAP_FIELD2(item->type); 412 SWAP_FIELD2(item->unused); 413 SWAP_FIELD4(item->size); 414 SWAP_OFFSET4(item->offset); 418 } else if (lastOffset >= item->offset) { 419 ALOGE("Out-of-order map item: %#x then %#x" 548 DexStringId* item = (DexStringId*) ptr; local 558 const DexStringId* item = (const DexStringId*) ptr; local 581 DexTypeId* item = (DexTypeId*) ptr; local 591 const DexTypeId* item = (const DexTypeId*) ptr; local 615 DexProtoId* item = (DexProtoId*) ptr; local 672 const DexProtoId* item = (const DexProtoId*) ptr; local 765 DexFieldId* item = (DexFieldId*) ptr; local 777 const DexFieldId* item = (const DexFieldId*) ptr; local 837 DexMethodId* item = (DexMethodId*) ptr; local 849 const DexMethodId* item = (const DexMethodId*) ptr; local 903 DexClassDef* item = (DexClassDef*) ptr; local 975 const DexClassDef* item = (const DexClassDef*) ptr; local 1069 DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; local 1098 DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; local 1128 DexParameterAnnotationsItem* item = (DexParameterAnnotationsItem*) addr; local 1156 DexAnnotationsDirectoryItem* item = (DexAnnotationsDirectoryItem*) ptr; local 1194 const DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; local 1214 const DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; local 1234 const DexParameterAnnotationsItem* item = local 1286 const DexAnnotationsDirectoryItem* item = (const DexAnnotationsDirectoryItem*) ptr; local 1348 DexAnnotationSetRefItem* item; local 1369 const DexAnnotationSetRefItem* item = list->list; local 1387 u4* item; local 1814 DexCode* item = (DexCode*) ptr; local 2527 const DexMapItem* item = pMap->list; local 2701 const DexMapItem* item = pMap->list; local [all...] |
/external/chromium_org/chrome/browser/download/ |
download_history_unittest.cc | 217 content::MockDownloadItem& item(size_t index) { return *items_[index]; } function in class:__anon8098::DownloadHistoryTest 258 Return(&item(index)))); 273 pre_on_create_handler_.Run(&item(index)); 274 manager_observer()->OnDownloadCreated(&manager(), &item(index)); 276 post_on_create_handler_.Run(&item(index)); 421 EXPECT_CALL(item(index), GetId()).WillRepeatedly(Return(id)); 422 EXPECT_CALL(item(index), GetFullPath()) 424 EXPECT_CALL(item(index), GetTargetFilePath()) 427 EXPECT_CALL(item(index), GetURL()) 429 EXPECT_CALL(item(index), GetUrlChain() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/clipboard/ |
DataObject.cpp | 79 PassRefPtrWillBeRawPtr<DataObjectItem> DataObject::item(unsigned long index) function in class:WebCore::DataObject 100 RefPtrWillBeRawPtr<DataObjectItem> item = DataObjectItem::createFromString(type, data); local 101 if (!internalAddStringItem(item)) 103 return item; 111 RefPtrWillBeRawPtr<DataObjectItem> item = DataObjectItem::createFromFile(file); 112 m_itemList.append(item); 113 return item; 165 RefPtrWillBeRawPtr<DataObjectItem> item = findStringItem(mimeTypeTextURIList); local 166 if (!item) 168 url = convertURIListToURL(item->getAsString()) 181 RefPtrWillBeRawPtr<DataObjectItem> item = findStringItem(mimeTypeTextHTML); local [all...] |
/external/webrtc/src/system_wrappers/source/ |
map_unittest.cc | 20 int* ItemPointer(MapItem* item) { 21 if (item == NULL) { 24 return reinterpret_cast<int*>(item->GetItem()); 27 bool DeleteItemContent(MapItem* item) { 28 if(item == NULL) { 31 int* value_ptr = ItemPointer(item); 36 int ItemValue(MapItem* item) { 37 if (item == NULL) { 40 const int* value_ptr = ItemPointer(item); 88 void PrintMapItem(MapItem* item, bool supress) 100 MapItem* item = print_map.First(); local 115 MapItem* item = print_map.Last(); local [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenu.java | 64 ActionMenuItem item = new ActionMenuItem(getContext(), local 66 mItems.add(order, item); 67 return item; 89 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) local 93 outSpecificItems[ri.specificIndex] = item; 168 ActionMenuItem item = items.get(i); local 169 final char shortcut = qwerty ? item.getAlphabeticShortcut() : 170 item.getNumericShortcut(); 172 return item; 192 ActionMenuItem item = findItemWithShortcut(keyCode, event) local 224 ActionMenuItem item = items.get(i); local 237 ActionMenuItem item = items.get(i); local 249 ActionMenuItem item = items.get(i); local [all...] |
MenuBuilder.java | 93 * Whether or not the items (or any one item's shown state) has changed since it was last 108 * Whether or not the items (or any one item's action state) has changed since it was 155 * Currently expanded menu item; must be collapsed when we clear. 164 * Called when a menu item is selected. 165 * @param menu The menu that is the parent of the item 166 * @param item The menu item that is selected 167 * @return whether the menu item selection was handled 169 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); 183 public boolean invokeItem(MenuItemImpl item); 241 final MenuPresenter item = ref.get(); local 342 final MenuItem item = getItem(i); local 374 final MenuItem item = getItem(i); local 408 final MenuItemImpl item = createNewMenuItem(group, id, categoryOrder, ordering, title, local 416 mItems.add(findInsertIndex(mItems, ordering), item); local 454 final MenuItemImpl item = (MenuItemImpl) addInternal(group, id, categoryOrder, title); local 483 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) local 574 MenuItemImpl item = mItems.get(i); local 590 MenuItemImpl item = mItems.get(i); local 603 MenuItemImpl item = mItems.get(i); local 614 MenuItemImpl item = mItems.get(i); local 626 MenuItemImpl item = mItems.get(i); local 645 MenuItemImpl item = mItems.get(i); local 666 final MenuItemImpl item = mItems.get(i); local 775 MenuItemImpl item = items.get(i); local 785 final MenuItemImpl item = findItemWithShortcutForKey(keyCode, event); local 820 MenuItemImpl item = mItems.get(i); local 873 final MenuItemImpl item = items.get(i); local 1030 MenuItemImpl item; local 1091 MenuItemImpl item = visibleItems.get(i); local [all...] |
/frameworks/base/core/java/android/speech/tts/ |
PlaybackSynthesisCallback.java | 69 SynthesisPlaybackQueueItem item; local 79 item = mItem; 83 if (item != null) { 85 // point it will write an additional buffer to the item - but we 88 item.stop(TextToSpeech.STOPPED); 146 SynthesisPlaybackQueueItem item = new SynthesisPlaybackQueueItem( local 149 mAudioTrackHandler.enqueue(item); 150 mItem = item; 166 SynthesisPlaybackQueueItem item = null; local 179 item = mItem 206 SynthesisPlaybackQueueItem item = null; local [all...] |
/system/core/include/utils/ |
VectorImpl.h | 77 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1); 80 void push(const void* item); 82 ssize_t add(const void* item); 84 ssize_t replaceAt(const void* item, size_t index); 105 virtual void do_splat(void* dest, const void* item, size_t num) const = 0; 116 inline void _do_splat(void* dest, const void* item, size_t num) const; 140 //! finds the index of an item 141 ssize_t indexOf(const void* item) const; 143 //! finds where this item should be inserted 144 size_t orderOf(const void* item) const [all...] |
/system/core/libpixelflinger/codeflinger/tinyutils/ |
VectorImpl.h | 75 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1); 78 void push(const void* item); 80 ssize_t add(const void* item); 82 ssize_t replaceAt(const void* item, size_t index); 98 virtual void do_splat(void* dest, const void* item, size_t num) const = 0; 119 inline void _do_splat(void* dest, const void* item, size_t num) const; 143 //! finds the index of an item 144 ssize_t indexOf(const void* item) const; 146 //! finds where this item should be inserted 147 size_t orderOf(const void* item) const [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
MenuBuilder.java | 105 * Whether or not the items (or any one item's shown state) has changed since it was last 121 * Whether or not the items (or any one item's action state) has changed since it was last 174 * Currently expanded menu item; must be collapsed when we clear. 185 * Called when a menu item is selected. 187 * @param menu The menu that is the parent of the item 188 * @param item The menu item that is selected 189 * @return whether the menu item selection was handled 191 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); 206 public boolean invokeItem(MenuItemImpl item); 263 final MenuPresenter item = ref.get(); local 364 final MenuItem item = getItem(i); local 396 final MenuItem item = getItem(i); local 430 final MenuItemImpl item = createNewMenuItem(group, id, categoryOrder, ordering, title, local 438 mItems.add(findInsertIndex(mItems, ordering), item); local 482 final MenuItemImpl item = (MenuItemImpl) addInternal(group, id, categoryOrder, title); local 513 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) local 608 MenuItemImpl item = mItems.get(i); local 625 MenuItemImpl item = mItems.get(i); local 639 MenuItemImpl item = mItems.get(i); local 651 MenuItemImpl item = mItems.get(i); local 664 MenuItemImpl item = mItems.get(i); local 683 MenuItemImpl item = mItems.get(i); local 704 final MenuItemImpl item = mItems.get(i); local 816 MenuItemImpl item = items.get(i); local 827 final MenuItemImpl item = findItemWithShortcutForKey(keyCode, event); local 863 MenuItemImpl item = mItems.get(i); local 917 final MenuItemImpl item = items.get(i); local 1077 MenuItemImpl item; local 1138 MenuItemImpl item = visibleItems.get(i); local [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/unittest2/ |
util.py | 69 As it does a linear search per item (remove) it 75 item = expected.pop() 77 actual.remove(item) 79 missing.append(item) 84 lst.remove(item) 89 item = actual.pop() 90 unexpected.append(item) 93 actual.remove(item)
|
/external/lldb/test/unittest2/ |
util.py | 69 As it does a linear search per item (remove) it 75 item = expected.pop() 77 actual.remove(item) 79 missing.append(item) 84 lst.remove(item) 89 item = actual.pop() 90 unexpected.append(item) 93 actual.remove(item)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
UserDetailView.java | 62 UserSwitcherController.UserRecord item = getItem(position); local 68 String name = getName(mContext, item); 69 if (item.picture == null) { 70 v.bind(name, getDrawable(mContext, item)); 72 v.bind(name, item.picture); 74 v.setActivated(item.isCurrent); 75 v.setTag(item);
|
CastTile.java | 29 import com.android.systemui.qs.QSDetailItems.Item; 194 Item[] items = null; 199 final Item item = new Item(); local 200 item.icon = R.drawable.ic_qs_cast_on; 201 item.line1 = getDeviceName(device); 202 item.line2 = mContext.getString(R.string.quick_settings_connected); 203 item.tag = device; 204 item.canDisconnect = true 219 final Item item = new Item(); local [all...] |
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
crazy_linker_util.h | 156 void PushBack(T item) { InsertAt(static_cast<int>(count_), item); } local 170 void Remove(T item) { 171 int index = IndexOf(item); 176 void InsertAt(int index, T item); 180 int IndexOf(T item) const; 182 bool Has(T item) const { return IndexOf(item) >= 0; } 197 int Vector<T>::IndexOf(T item) const { 199 if (items_[n] == item) [all...] |
/ndk/sources/android/crazy_linker/src/ |
crazy_linker_util.h | 156 void PushBack(T item) { InsertAt(static_cast<int>(count_), item); } local 170 void Remove(T item) { 171 int index = IndexOf(item); 176 void InsertAt(int index, T item); 180 int IndexOf(T item) const; 182 bool Has(T item) const { return IndexOf(item) >= 0; } 197 int Vector<T>::IndexOf(T item) const { 199 if (items_[n] == item) [all...] |
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
RemotePlayer.java | 128 public void play(final PlaylistItem item) { 130 Log.d(TAG, "play: item=" + item); 132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { 137 item.setRemoteItemId(itemId); 138 if (item.getPosition() > 0) { 139 seekInternal(item); 141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { 157 public void seek(final PlaylistItem item) { 158 seekInternal(item); [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
RemotePlayer.java | 128 public void play(final PlaylistItem item) { 130 Log.d(TAG, "play: item=" + item); 132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { 137 item.setRemoteItemId(itemId); 138 if (item.getPosition() > 0) { 139 seekInternal(item); 141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { 157 public void seek(final PlaylistItem item) { 158 seekInternal(item); [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
RemotePlayer.java | 128 public void play(final PlaylistItem item) { 130 Log.d(TAG, "play: item=" + item); 132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { 137 item.setRemoteItemId(itemId); 138 if (item.getPosition() > 0) { 139 seekInternal(item); 141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { 157 public void seek(final PlaylistItem item) { 158 seekInternal(item); [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
RemotePlayer.java | 128 public void play(final PlaylistItem item) { 130 Log.d(TAG, "play: item=" + item); 132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { 137 item.setRemoteItemId(itemId); 138 if (item.getPosition() > 0) { 139 seekInternal(item); 141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { 157 public void seek(final PlaylistItem item) { 158 seekInternal(item); [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/ |
ContextMenu.js | 46 if (type === "item" || type === "checkbox") 86 case "item": 87 return { type: "item", id: this._id, label: this._label, enabled: !this._disabled }; 119 var item = new WebInspector.ContextMenuItem(this._contextMenu, "item", label, disabled); 120 this._pushItem(item); 121 this._contextMenu._setHandler(item.id(), handler); 122 return item; 132 var item = new WebInspector.ContextSubMenuItem(this._contextMenu, label, disabled); 133 this._pushItem(item); [all...] |
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
peers.cpp | 424 QStandardItem *item = new QStandardItem(*laptop_icon, name); local 425 if (item) { 432 QStandardItem *item; local 433 item = model.itemFromIndex(lst[i]); 434 if (item == NULL) 436 int type = item->data(peer_role_type).toInt(); 444 item->setData(lines[0], peer_role_address); 445 item->setData(PEER_TYPE_ASSOCIATED_STATION, 447 item->setData(info, peer_role_details); 448 item->setToolTip(ItemType(PEER_TYPE_ASSOCIATED_STATION)) 539 QStandardItem *item = find_addr(addr); local 617 QStandardItem *item = new QStandardItem(*ap_icon, name); local 690 QStandardItem *item = new QStandardItem(*group_icon, name); local 800 QStandardItem *item = model.itemFromIndex(lst[i]); local 836 QStandardItem *item = find_addr(addr); local 868 QStandardItem *item = find_addr(addr); local 886 QStandardItem *item = model.itemFromIndex(lst[i]); local 920 QStandardItem *item = find_addr(addr); local 969 QStandardItem *item = new QStandardItem(*group_icon, ssid); local 1013 QStandardItem *item = find_addr_type(addr, PEER_TYPE_P2P); local 1035 QStandardItem *item = find_addr_type(addr, PEER_TYPE_P2P); local 1077 QStandardItem *item; local 1157 QStandardItem *item = model.itemFromIndex(lst[i]); local 1208 QStandardItem *item; local 1263 QStandardItem *item = find_addr(addr); local 1575 QStandardItem *item = model.itemFromIndex(lst[i]); local 1877 QStandardItem *item = model.itemFromIndex(lst[i]); local [all...] |
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebHistoryItemTest.java | 107 WebHistoryItem item = list.getCurrentItem(); local 108 assertNotNull(item); 109 assertEquals(url, item.getUrl()); 110 assertEquals(url, item.getOriginalUrl()); 111 assertEquals(TestHtmlConstants.HELLO_WORLD_TITLE, item.getTitle()); 113 assertTrue(icon.sameAs(item.getFavicon())); 119 item = list.getCurrentItem(); 120 assertNotNull(item); 121 assertEquals(TestHtmlConstants.BR_TAG_TITLE, item.getTitle());
|