/frameworks/support/compat/java/android/support/v4/view/ |
D | MenuItemCompat.java | 72 void setShowAsAction(MenuItem item, int actionEnum); in setShowAsAction() argument 73 MenuItem setActionView(MenuItem item, View view); in setActionView() argument 74 MenuItem setActionView(MenuItem item, int resId); in setActionView() argument 75 View getActionView(MenuItem item); in getActionView() argument 76 boolean expandActionView(MenuItem item); in expandActionView() argument 77 boolean collapseActionView(MenuItem item); in collapseActionView() argument 78 boolean isActionViewExpanded(MenuItem item); in isActionViewExpanded() argument 79 MenuItem setOnActionExpandListener(MenuItem item, OnActionExpandListener listener); in setOnActionExpandListener() argument 99 public boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() argument 108 public boolean onMenuItemActionCollapse(MenuItem item); in onMenuItemActionCollapse() argument [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AMessage.cpp | 89 Item *item = &mItems[i]; in clear() local 90 delete[] item->mName; in clear() 91 item->mName = NULL; in clear() 92 freeItemValue(item); in clear() 97 void AMessage::freeItemValue(Item *item) { in freeItemValue() argument 98 switch (item->mType) { in freeItemValue() 101 delete item->u.stringValue; in freeItemValue() 109 if (item->u.refValue != NULL) { in freeItemValue() 110 item->u.refValue->decStrong(this); in freeItemValue() 189 Item *item; in allocateItem() local [all …]
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
D | ItemTest.java | 41 Item item = new Item(); in testOnBindView() local 42 item.setTitle("TestTitle"); in testOnBindView() 43 item.setSummary("TestSummary"); in testOnBindView() 46 item.setIcon(icon); in testOnBindView() 53 item.onBindView(view); in testOnBindView() 65 Item item = new Item(); in testSingleLineItem() local 66 item.setTitle("TestTitle"); in testSingleLineItem() 69 item.onBindView(view); in testSingleLineItem() 78 Item item = new Item(); in testProperties() local 79 item.setTitle("TestTitle"); in testProperties() [all …]
|
D | ButtonItemTest.java | 41 ButtonItem item = new ButtonItem(); in testDefaultItem() local 43 assertTrue("ButtonItem should be enabled by default", item.isEnabled()); in testDefaultItem() 44 assertEquals("ButtonItem should return count = 0", 0, item.getCount()); in testDefaultItem() 45 assertEquals("ButtonItem should return layout resource = 0", 0, item.getLayoutResource()); in testDefaultItem() 47 item.getTheme()); in testDefaultItem() 48 assertNull("Default text should be null", item.getText()); in testDefaultItem() 52 ButtonItem item = new ButtonItem(); in testOnBindView() local 55 item.onBindView(new View(getContext())); in testOnBindView() 63 TestButtonItem item = new TestButtonItem(); in testCreateButton() local 64 final Button button = item.createButton(mParent); in testCreateButton() [all …]
|
D | ButtonBarItemTest.java | 44 ButtonBarItem item = new ButtonBarItem(); in testFindItemById() local 45 item.setId(888); in testFindItemById() 50 item.addChild(mChild1); in testFindItemById() 51 item.addChild(mChild2); in testFindItemById() 52 item.addChild(mChild3); in testFindItemById() 54 assertEquals("Finding 123 should return child1", mChild1, item.findItemById(123)); in testFindItemById() 55 assertEquals("Finding 456 should return child2", mChild2, item.findItemById(456)); in testFindItemById() 56 assertEquals("Finding 789 should return child3", mChild3, item.findItemById(789)); in testFindItemById() 58 assertEquals("Finding 888 should return ButtonBarItem itself", item, in testFindItemById() 59 item.findItemById(888)); in testFindItemById() [all …]
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | SessionManager.java | 92 PlaylistItem item = mPlaylist.get(i); in updateStatus() local 93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); in updateStatus() 115 PlaylistItem item = new PlaylistItem(Integer.toString(mSessionId), in add() local 117 mPlaylist.add(item); in add() 122 mPlayer.enqueue(item); in add() 125 return item; in add() 144 PlaylistItem item = getCurrentItem(); in seek() local 145 if (pos != item.getPosition()) { in seek() 146 item.setPosition(pos); in seek() 147 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in seek() [all …]
|
D | RemotePlayer.java | 125 public void play(final PlaylistItem item) { in play() argument 127 Log.d(TAG, "play: item=" + item); in play() 129 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in play() 134 item.setRemoteItemId(itemId); in play() 135 if (item.getPosition() > 0) { in play() 136 seekInternal(item); in play() 138 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in play() 156 public void seek(final PlaylistItem item) { in seek() argument 157 seekInternal(item); in seek() 161 public void getStatus(final PlaylistItem item, final boolean update) { in getStatus() argument [all …]
|
/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.cpp | 79 const RingBufferItem& item = *it; in pinSelectedBuffer() local 81 cur.mCrop = item.mCrop; in pinSelectedBuffer() 82 cur.mTransform = item.mTransform; in pinSelectedBuffer() 83 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer() 84 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer() 85 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer() 86 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer() 164 void RingBufferConsumer::pinBufferLocked(const BufferItem& item) { in pinBufferLocked() argument 172 if (item.mGraphicBuffer == find.mGraphicBuffer) { in pinBufferLocked() 180 item.mTimestamp, item.mFrameNumber); in pinBufferLocked() [all …]
|
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
D | SwitchItemTest.java | 37 SwitchItem item = new SwitchItem(); in testChecked() local 38 item.setTitle("TestTitle"); in testChecked() 39 item.setSummary("TestSummary"); in testChecked() 42 item.setChecked(true); in testChecked() 44 item.onBindView(view); in testChecked() 51 SwitchItem item = new SwitchItem(); in testNotChecked() local 52 item.setTitle("TestTitle"); in testNotChecked() 53 item.setSummary("TestSummary"); in testNotChecked() 56 item.setChecked(false); in testNotChecked() 58 item.onBindView(view); in testNotChecked() [all …]
|
/frameworks/av/media/libstagefright/filters/ |
D | GraphicBufferListener.cpp | 89 BufferItem item; in getBufferItem() local 95 return item; in getBufferItem() 100 status_t err = mConsumer->acquireBuffer(&item, 0); in getBufferItem() 104 item.mSlot = -1; in getBufferItem() 105 return item; in getBufferItem() 108 item.mSlot = -1; in getBufferItem() 109 return item; in getBufferItem() 113 err = item.mFence->waitForever("GraphicBufferListener::getBufferItem"); in getBufferItem() 121 if (item.mGraphicBuffer != NULL) { in getBufferItem() 122 ALOGV("setting mBufferSlot %d", item.mSlot); in getBufferItem() [all …]
|
/frameworks/support/compat/ics/android/support/v4/view/ |
D | MenuItemCompatIcs.java | 23 public static boolean expandActionView(MenuItem item) { in expandActionView() argument 24 return item.expandActionView(); in expandActionView() 27 public static boolean collapseActionView(MenuItem item) { in collapseActionView() argument 28 return item.collapseActionView(); in collapseActionView() 31 public static boolean isActionViewExpanded(MenuItem item) { in isActionViewExpanded() argument 32 return item.isActionViewExpanded(); in isActionViewExpanded() 35 public static MenuItem setOnActionExpandListener(MenuItem item, in setOnActionExpandListener() argument 37 return item.setOnActionExpandListener(new OnActionExpandListenerWrapper(listener)); in setOnActionExpandListener() 46 boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() argument 47 boolean onMenuItemActionCollapse(MenuItem item); in onMenuItemActionCollapse() argument [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | SimpleItemAnimator.java | 263 public final void dispatchRemoveFinished(ViewHolder item) { in dispatchRemoveFinished() argument 264 onRemoveFinished(item); in dispatchRemoveFinished() 265 dispatchAnimationFinished(item); in dispatchRemoveFinished() 277 public final void dispatchMoveFinished(ViewHolder item) { in dispatchMoveFinished() argument 278 onMoveFinished(item); in dispatchMoveFinished() 279 dispatchAnimationFinished(item); in dispatchMoveFinished() 287 public final void dispatchAddFinished(ViewHolder item) { in dispatchAddFinished() argument 288 onAddFinished(item); in dispatchAddFinished() 289 dispatchAnimationFinished(item); in dispatchAddFinished() 302 public final void dispatchChangeFinished(ViewHolder item, boolean oldItem) { in dispatchChangeFinished() argument [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 170 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument 184 public boolean invokeItem(MenuItemImpl item); in invokeItem() argument 241 final MenuPresenter item = ref.get(); in removeMenuPresenter() local 242 if (item == null || item == presenter) { in removeMenuPresenter() 342 final MenuItem item = getItem(i); in saveActionViewStates() local 343 final View v = item.getActionView(); in saveActionViewStates() 349 if (item.isActionViewExpanded()) { in saveActionViewStates() 350 outStates.putInt(EXPANDED_ACTION_VIEW_ID, item.getItemId()); in saveActionViewStates() 353 if (item.hasSubMenu()) { in saveActionViewStates() 354 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() [all …]
|
D | ActionMenu.java | 64 ActionMenuItem item = new ActionMenuItem(getContext(), in add() local 66 mItems.add(order, item); in add() 67 return item; in add() 89 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions() local 93 outSpecificItems[ri.specificIndex] = item; in addIntentOptions() 168 ActionMenuItem item = items.get(i); in findItemWithShortcut() local 169 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() 170 item.getNumericShortcut(); in findItemWithShortcut() 172 return item; in findItemWithShortcut() 192 ActionMenuItem item = findItemWithShortcut(keyCode, event); in performShortcut() local [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | FrameProcessorBase.cpp | 52 List<RangeListener>::iterator item = mRangeListeners.begin(); in registerListener() local 53 while (item != mRangeListeners.end()) { in registerListener() 54 if (item->minId == minId && in registerListener() 55 item->maxId == maxId && in registerListener() 56 item->listener == listener) { in registerListener() 62 item++; in registerListener() 75 List<RangeListener>::iterator item = mRangeListeners.begin(); in removeListener() local 76 while (item != mRangeListeners.end()) { in removeListener() 77 if (item->minId == minId && in removeListener() 78 item->maxId == maxId && in removeListener() [all …]
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | SortedListTest.java | 121 Item item = new Item(); in testAdd() local 122 assertEquals(insert(item), 0); in testAdd() 126 item2.cmpField = item.cmpField + 1; in testAdd() 131 item3.cmpField = item.cmpField - 1; in testAdd() 140 Item item = new Item(); in testAddDuplicate() local 141 Item item2 = new Item(item.id, item.cmpField); in testAddDuplicate() 142 item2.data = item.data; in testAddDuplicate() 143 insert(item); in testAddDuplicate() 152 Item item = new Item(); in testRemove() local 153 assertFalse(remove(item)); in testRemove() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
D | MenuBuilder.java | 204 boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument 220 boolean invokeItem(MenuItemImpl item); in invokeItem() argument 276 final MenuPresenter item = ref.get(); in removeMenuPresenter() local 277 if (item == null || item == presenter) { in removeMenuPresenter() 377 final MenuItem item = getItem(i); in saveActionViewStates() local 378 final View v = MenuItemCompat.getActionView(item); in saveActionViewStates() 384 if (MenuItemCompat.isActionViewExpanded(item)) { in saveActionViewStates() 385 outStates.putInt(EXPANDED_ACTION_VIEW_ID, item.getItemId()); in saveActionViewStates() 388 if (item.hasSubMenu()) { in saveActionViewStates() 389 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | GraphicBufferSource.cpp | 57 const BufferItem& item) { in onFrameAvailable() argument 60 listener->onFrameAvailable(item); in onFrameAvailable() 94 const BufferItem& item) { in onFrameReplaced() argument 97 listener->onFrameReplaced(item); in onFrameReplaced() 481 BufferItem item; in suspend() local 482 status_t err = mConsumer->acquireBuffer(&item, 0); in suspend() 491 } else if (item.mSlot < 0 || in suspend() 492 item.mSlot >= BufferQueue::NUM_BUFFER_SLOTS) { in suspend() 495 item.mSlot); in suspend() 502 releaseBuffer(item.mSlot, item.mFrameNumber, in suspend() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 133 public int add(T item) { in add() argument 135 return add(item, true); in add() 266 private int findSameItem(T item, T[] items, int from, int to) { in findSameItem() argument 268 if (mCallback.areItemsTheSame(items[pos], item)) { in findSameItem() 391 private int add(T item, boolean notify) { in add() argument 392 int index = findIndexOf(item, mData, 0, mSize, INSERTION); in add() 397 if (mCallback.areItemsTheSame(existing, item)) { in add() 398 if (mCallback.areContentsTheSame(existing, item)) { in add() 400 mData[index] = item; in add() 403 mData[index] = item; in add() [all …]
|
D | MessageThreadUtil.java | 203 final SyncQueueItem item; 205 item = new SyncQueueItem(); 207 item = sPool; 209 item.next = null; 211 item.what = what; 212 item.arg1 = arg1; 213 item.arg2 = arg2; 214 item.arg3 = arg3; 215 item.arg4 = arg4; 216 item.arg5 = arg5; [all …]
|
/frameworks/support/design/src/android/support/design/internal/ |
D | NavigationMenuPresenter.java | 143 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView() argument 148 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView() argument 196 public void setCheckedItem(MenuItemImpl item) { in setCheckedItem() argument 197 mAdapter.setCheckedItem(item); in setCheckedItem() 331 MenuItemImpl item = itemView.getItemData(); 332 boolean result = mMenu.performItemAction(item, NavigationMenuPresenter.this, 0); 333 if (item != null && item.isCheckable() && result) { 334 mAdapter.setCheckedItem(item); 372 NavigationMenuItem item = mItems.get(position); in getItemViewType() local 373 if (item instanceof NavigationMenuSeparatorItem) { in getItemViewType() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 653 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument 655 if (item == null) { in ClipData() 660 mItems.add(item); in ClipData() 669 public ClipData(ClipDescription description, Item item) { in ClipData() argument 671 if (item == null) { in ClipData() 676 mItems.add(item); in ClipData() 700 Item item = new Item(text); in newPlainText() local 701 return new ClipData(label, MIMETYPES_TEXT_PLAIN, item); in newPlainText() 716 Item item = new Item(text, htmlText); in newHtmlText() local 717 return new ClipData(label, MIMETYPES_TEXT_HTML, item); in newHtmlText() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 73 const BufferItem& item) { in testBufferItem() argument 84 ASSERT_EQ(timestamp, item.mTimestamp); in testBufferItem() 85 ASSERT_EQ(isAutoTimestamp, item.mIsAutoTimestamp); in testBufferItem() 86 ASSERT_EQ(dataSpace, item.mDataSpace); in testBufferItem() 87 ASSERT_EQ(crop, item.mCrop); in testBufferItem() 88 ASSERT_EQ(static_cast<uint32_t>(scalingMode), item.mScalingMode); in testBufferItem() 89 ASSERT_EQ(transform, item.mTransform); in testBufferItem() 90 ASSERT_EQ(fence, item.mFence); in testBufferItem() 156 BufferItem item; in TEST_F() local 157 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F() [all …]
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
D | ExploreByTouchHelperActivity.java | 146 final CustomItem item = new CustomItem(); in addItem() local 147 item.bounds = new RectF(top, left, bottom, right); in addItem() 148 item.description = description; in addItem() 149 item.checked = false; in addItem() 150 mItems.add(item); in addItem() 162 for (CustomItem item : mItems) { in onDraw() 163 paint.setColor(item.checked ? Color.RED : Color.BLUE); in onDraw() 165 scaleRectF(item.bounds, bounds, width, height); in onDraw() 169 canvas.drawText(item.description, bounds.centerX(), bounds.centerY(), paint); in onDraw() 174 final CustomItem item = getItem(index); in onItemClicked() local [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackHandler.java | 41 private void stop(PlaybackQueueItem item) { in stop() argument 42 if (item == null) { in stop() 46 item.stop(TextToSpeech.STOPPED); in stop() 49 public void enqueue(PlaybackQueueItem item) { in enqueue() argument 51 mQueue.put(item); in enqueue() 106 final PlaybackQueueItem item = it.next(); in removeWorkItemsFor() local 107 if (item.getCallerIdentity() == callerIdentity) { in removeWorkItemsFor() 121 PlaybackQueueItem item = null; in run() local 123 item = mQueue.take(); in run() 133 mCurrentWorkItem = item; in run() [all …]
|