/frameworks/base/media/libstagefright/foundation/ |
D | AMessage.cpp | 56 Item *item = &mItems[i]; in clear() local 57 freeItem(item); in clear() 62 void AMessage::freeItem(Item *item) { in freeItem() argument 63 switch (item->mType) { in freeItem() 66 delete item->u.stringValue; in freeItem() 73 if (item->u.refValue != NULL) { in freeItem() 74 item->u.refValue->decStrong(this); in freeItem() 92 Item *item; in allocateItem() local 95 item = &mItems[i]; in allocateItem() 96 freeItem(item); in allocateItem() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 232 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument 270 public boolean invokeItem(MenuItemImpl item); in invokeItem() argument 357 MenuItemImpl item = mItems.get(i); in clearMenuViews() local 358 if (item.hasSubMenu()) { in clearMenuViews() 359 ((SubMenuBuilder) item.getSubMenu()).clearMenuViews(); in clearMenuViews() 361 item.clearItemViews(); in clearMenuViews() 371 final MenuItemImpl item = new MenuItemImpl(this, group, id, categoryOrder, ordering, title); in addInternal() local 375 item.setMenuInfo(mCurrentMenuInfo); in addInternal() 378 mItems.add(findInsertIndex(mItems, ordering), item); in addInternal() local 381 return item; in addInternal() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeExpandableAdapter.java | 75 AdapterItem item = new AdapterItem(dataBindingItem, typeIndex, mItems.size(), in createItems() local 77 mItems.add(item); in createItems() 87 private void createItems(DataBindingItem item, int depth) { in createItems() argument 89 createItems(item, item.getChildren().size(), item.getCount(), mChildrenTypes, depth); in createItems() 94 AdapterItem item = mItems.get(groupPosition); in getChildItem() local 96 List<AdapterItem> children = item.getChildren(); in getChildItem() 107 AdapterItem item = mItems.get(groupPosition); in getChildrenCount() local 108 return item.getChildren().size(); in getChildrenCount() 122 AdapterItem item = mItems.get(groupPosition); in getGroupView() local 123 return getView(item, null /*parentItem*/, convertView, parent); in getGroupView() [all …]
|
D | BaseAdapter.java | 57 protected AdapterItem(DataBindingItem item, int type, int fullPosition, in AdapterItem() argument 59 mItem = item; in AdapterItem() 141 protected View getView(AdapterItem item, AdapterItem parentItem, View convertView, in getView() argument 144 DataBindingItem dataBindingItem = item.getDataBindingItem(); in getView() 155 fillView(context, view, item, parentItem); in getView() 166 private void fillView(BridgeContext context, View view, AdapterItem item, in fillView() argument 172 fillView(context, group.getChildAt(i), item, parentItem); in fillView() 179 int fullPosition = item.getFullPosition(); in fillView() 180 int positionPerType = item.getPositionPerType(); in fillView() 189 item.getDataBindingItem().getViewReference(), in fillView() [all …]
|
/frameworks/base/include/utils/ |
D | VectorImpl.h | 76 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1); 79 void push(const void* item); 81 ssize_t add(const void* item); 83 ssize_t replaceAt(const void* item, size_t index); 104 virtual void do_splat(void* dest, const void* item, size_t num) const = 0; 125 inline void _do_splat(void* dest, const void* item, size_t num) const; 150 ssize_t indexOf(const void* item) const; 153 size_t orderOf(const void* item) const; 156 ssize_t add(const void* item); 163 ssize_t remove(const void* item); [all …]
|
D | SortedVector.h | 81 ssize_t indexOf(const TYPE& item) const; 84 size_t orderOf(const TYPE& item) const; 105 ssize_t add(const TYPE& item); 128 virtual void do_splat(void* dest, const void* item, size_t num) const; 205 ssize_t SortedVector<TYPE>::add(const TYPE& item) { in add() argument 206 return SortedVectorImpl::add(&item); in add() 210 ssize_t SortedVector<TYPE>::indexOf(const TYPE& item) const { in indexOf() argument 211 return SortedVectorImpl::indexOf(&item); in indexOf() 215 size_t SortedVector<TYPE>::orderOf(const TYPE& item) const { in orderOf() argument 216 return SortedVectorImpl::orderOf(&item); in orderOf() [all …]
|
D | Vector.h | 136 void push(const TYPE& item); 140 ssize_t add(const TYPE& item); 144 ssize_t replaceAt(const TYPE& item, size_t index); 169 virtual void do_splat(void* dest, const void* item, size_t num) const; 278 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) { in insertAt() argument 279 return VectorImpl::insertAt(&item, index, numItems); in insertAt() 283 void Vector<TYPE>::push(const TYPE& item) { in push() argument 284 return VectorImpl::push(&item); in push() 288 ssize_t Vector<TYPE>::add(const TYPE& item) { in add() argument 289 return VectorImpl::add(&item); in add() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuScenario.java | 70 MenuItem item; in onCreateOptionsMenu() 72 if ((item = onAddMenuItem(menu, i)) == null) { in onCreateOptionsMenu() 76 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i)); in onCreateOptionsMenu() 79 if (item != null) { in onCreateOptionsMenu() 80 mItems[i] = item; in onCreateOptionsMenu() 83 item.setOnMenuItemClickListener(this); in onCreateOptionsMenu() 124 public boolean onMenuItemClick(MenuItem item) { in onMenuItemClick() argument 125 final int position = findItemPosition(item); in onMenuItemClick() 143 public int findItemPosition(MenuItem item) { in findItemPosition() argument 146 if (mItems[i] == item) return i; in findItemPosition()
|
/frameworks/base/libs/utils/ |
D | VectorImpl.cpp | 140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument 146 if (item) { in insertAt() 147 _do_splat(where, item, numItems); in insertAt() 176 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() local 178 if (cmp(curr, item, state) > 0) { in sort() 186 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() 192 _do_copy(temp, item, 1); in sort() 229 void VectorImpl::push(const void* item) in push() argument 231 insertAt(item, size()); in push() 239 ssize_t VectorImpl::add(const void* item) in add() argument [all …]
|
/frameworks/base/docs/html/guide/tutorials/views/ |
D | hello-spinner.jd | 6 <p>A {@link android.widget.Spinner} is a widget that allows the user to select an item from a group. 57 <item>Mercury</item> 58 <item>Venus</item> 59 <item>Earth</item> 60 <item>Mars</item> 61 <item>Jupiter</item> 62 <item>Saturn</item> 63 <item>Uranus</item> 64 <item>Neptune</item>
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ListContextMenu.java | 99 MenuItem item = menu.add(0, 0, 0, "Really long menu item name"); in onCreateOptionsMenu() local 100 item.setTitleCondensed("Long name"); in onCreateOptionsMenu() 101 item.setIcon(R.drawable.black_square); in onCreateOptionsMenu() 104 item = sm.getItem(); in onCreateOptionsMenu() 105 item.setTitleCondensed("Sub menu"); in onCreateOptionsMenu() 177 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument 178 Log.i(TAG, "Options item " + item.toString() + " selected."); in onOptionsItemSelected() 180 return super.onOptionsItemSelected(item); in onOptionsItemSelected() 189 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() argument 190 Log.i(TAG, "Context item " + item.toString() + " selected."); in onContextItemSelected() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | InputWindowList.java | 71 InputWindow item = mArray[mCount + 1]; in add() local 72 if (item == null) { in add() 73 item = new InputWindow(); in add() 76 mArray[mCount] = item; in add() 79 return item; in add()
|
/frameworks/base/core/java/android/webkit/ |
D | WebHistoryItem.java | 73 private WebHistoryItem(WebHistoryItem item) { in WebHistoryItem() argument 74 mUrl = item.mUrl; in WebHistoryItem() 75 mTitle = item.mTitle; in WebHistoryItem() 76 mFlattenedData = item.mFlattenedData; in WebHistoryItem() 77 mFavicon = item.mFavicon; in WebHistoryItem() 78 mId = item.mId; in WebHistoryItem()
|
D | WebBackForwardListClient.java | 31 public void onNewHistoryItem(WebHistoryItem item) { } in onNewHistoryItem() argument 39 public void onIndexChanged(WebHistoryItem item, int index) { } in onIndexChanged() argument
|
/frameworks/base/docs/html/resources/tutorials/views/ |
D | hello-spinner.jd | 10 will display the selected item.</p> 50 <item>Mercury</item> 51 <item>Venus</item> 52 <item>Earth</item> 53 <item>Mars</item> 54 <item>Jupiter</item> 55 <item>Saturn</item> 56 <item>Uranus</item> 57 <item>Neptune</item> 86 creates a new {@link android.widget.ArrayAdapter}, which binds each item in the string array [all …]
|
D | hello-listview.jd | 11 When a list item is selected, a toast message will display the position of the item in the list.</p> 26 <p>This file defines the layout for each item that will be placed in the {@link 64 layout description for each list item (created in 73 the on-click listener for each item. When an item in the {@link android.widget.ListView} is clicked, 76 text from the clicked item.</p> 78 <p class="note"><strong>Tip:</strong> You can use list item designs provided by the platform 135 <p>You can scroll the list, or type to filter it, then click an item to see a message. You 148 <item>Bahrain</item> 149 <item>Bangladesh</item> 150 <item>Barbados</item> [all …]
|
D | hello-autocomplete.jd | 30 item that appears in the list of suggestions.</p> 72 to each list item in the <code>COUNTRIES</code> string array (defined in the next step). 149 <item>Bahrain</item> 150 <item>Bangladesh</item> 151 <item>Barbados</item> 152 <item>Belarus</item> 153 <item>Belgium</item> 154 <item>Belize</item> 155 <item>Benin</item>
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | color-list-resource.jd | 23 <item>} element inside a single {@code <selector>} element. Each {@code <item>} 26 <p>During each state change, the state list is traversed top to bottom and the first item that 28 match," but simply the first item that meets the minimum criteria of the state.</p> 53 <<a href="#item-element">item</a> 72 <item>} elements. 80 <dt id="item-element"><code><item></code></dt> 97 …<dd><em>Boolean</em>. "true" if this item should be used when the object is pressed (such as when … 98 is touched/clicked); "false" if this item should be used in the default, non-pressed state.</dd> 100 …<dd><em>Boolean</em>. "true" if this item should be used when the object is focused (such as when … 101 is highlighted using the trackball/d-pad); "false" if this item should be used in the default, [all …]
|
D | menu-resource.jd | 38 … <<a href="#item-element">item</a> android:id="@[+][<em>package</em>:]id/<em>resource_name</em>" 55 <<a href="#item-element">item</a> /> 57 <<a href="#item-element">item</a> > 59 <<a href="#item-element">item</a> /> 61 </item> 71 … <dd><strong>Required.</strong> This must be the root node. Contains <code><item></code> and/or 82 visible, enabled, or checkable). Contains one or more <code><item></code> elements. Must be a 87 …<dd><em>Resource ID</em>. A unique resource ID. To create a new resource ID for this item, use the… 112 … <tr><td><code>single</code></td><td>Only one item can be checked (use radio buttons)</td></tr> 121 <dt id="item-element"><code><item></code></dt> [all …]
|
D | style-resource.jd | 47 <<a href="#item-element">item</a> 49 ><em>style_value</em></item> 64 <dd>Defines a single style. Contains {@code <item>} elements. 78 <dt id="item-element"><code><item></code></dt> 103 <item name="android:textSize">20sp</item> 104 <item name="android:textColor">#008</item>
|
/frameworks/base/core/java/android/content/pm/ |
D | ParceledListSlice.java | 87 public boolean append(T item) { in append() argument 92 item.writeToParcel(mParcel, PARCELABLE_WRITE_RETURN_VALUE); in append() 111 T item = null; in populateList() local 113 item = creator.createFromParcel(mParcel); in populateList() 114 list.add(item); in populateList() 120 return item; in populateList()
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | menus.jd | 60 <dd>The vertical list of menu items exposed by the "More" menu item in the Icon Menu. 62 menu item and the rest.</dd> 69 <dd>A floating list of menu items that the user opens by pressing a menu item in the Options 70 Menu or a context menu. A submenu item cannot support a nested submenu. </dd> 91 in an {@code <item>} to create a submenu.</dd> 92 <dt><code><item></code></dt> 93 <dd>Creates a {@link android.view.MenuItem}, which represents a single item in a menu.</dd> 95 <dd>An optional, invisible container for {@code <item>} elements. It allows you to 104 <item android:id="@+id/new_game" 107 <item android:id="@+id/quit" [all …]
|
/frameworks/base/core/jni/ |
D | android_util_EventLog.cpp | 106 jobject item = env->GetObjectArrayElement(value, copied); in android_util_EventLog_writeEvent_Array() local 107 if (item == NULL || env->IsInstanceOf(item, gStringClass)) { in android_util_EventLog_writeEvent_Array() 109 const char *str = item != NULL ? env->GetStringUTFChars((jstring) item, NULL) : "NULL"; in android_util_EventLog_writeEvent_Array() 116 if (item != NULL) env->ReleaseStringUTFChars((jstring) item, str); in android_util_EventLog_writeEvent_Array() 117 } else if (env->IsInstanceOf(item, gIntegerClass)) { in android_util_EventLog_writeEvent_Array() 118 jint intVal = env->GetIntField(item, gIntegerValueID); in android_util_EventLog_writeEvent_Array() 123 } else if (env->IsInstanceOf(item, gLongClass)) { in android_util_EventLog_writeEvent_Array() 124 jlong longVal = env->GetLongField(item, gLongValueID); in android_util_EventLog_writeEvent_Array() 135 env->DeleteLocalRef(item); in android_util_EventLog_writeEvent_Array()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 118 ListItem item = mActivitiesList.get(position); in intentForPosition() local 119 intent.setClassName(item.packageName, item.className); in intentForPosition() 120 if (item.extras != null) { in intentForPosition() 121 intent.putExtras(item.extras); in intentForPosition() 158 private void bindView(View view, ListItem item) { in bindView() argument 160 text.setText(item.label); in bindView() 161 if (item.icon == null) { in bindView() 162 item.icon = mIconResizer.createIconThumbnail( in bindView() 163 item.resolveInfo.loadIcon(getPackageManager())); in bindView() 165 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in bindView() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | GenericInflater.java | 424 T item = (mFactory == null) ? null : mFactory.onCreateItem(name, mContext, attrs); in createItemFromTag() local 426 if (item == null) { in createItemFromTag() 428 item = onCreateItem(name, attrs); in createItemFromTag() 430 item = createItem(name, null, attrs); in createItemFromTag() 434 if (DEBUG) System.out.println("Created item is: " + item); in createItemFromTag() 435 return item; in createItemFromTag() 481 T item = createItemFromTag(parser, name, attrs); in rInflate() local 488 ((P) parent).addItemFromInflater(item); in rInflate() 493 rInflate(parser, item, attrs); in rInflate()
|