Searched refs:numItems (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithNoFadingEdgeTest.java52 final int numItems = mListView.getCount();
54 for (int i = 0; i < numItems; i++) {
58 assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition());
63 final int numItems = mListView.getCount();
67 mListView.setSelection(numItems - 1);
72 for (int i = numItems - 1; i >=0; i--) {
H A DListOfThinItemsTest.java53 final int numItems = mListView.getAdapter().getCount();
55 for (int i = 0; i < numItems; i++) {
81 final int numItems = mListView.getAdapter().getCount();
83 for (int i = 0; i < numItems - 1; i++) {
87 numItems - 1, mListView.getSelectedItemPosition());
92 for (int i = 0; i < numItems; i++) {
93 int expectedPostion = numItems - (i + 1);
H A DListWithScreenOfNoSelectablesTest.java45 final int numItems = mListView.getCount();
46 for (int i = 1; i < numItems; i++) {
H A DListOfItemsTallerThanScreenTest.java132 final int numItems = mListView.getAdapter().getCount();
135 while (mListView.getSelectedItemPosition() < (numItems - 1)) {
153 assertEquals(numItems - 1, mListView.getSelectedItemPosition());
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java54 mItems = new MenuItem[mParams.numItems];
55 mWasItemClicked = new boolean[mParams.numItems];
66 for (int i = 0; i < mParams.numItems; i++) {
140 for (int i = 0; i < mParams.numItems; i++) {
150 private int numItems = 10; field in class:MenuScenario.Params
159 public Params setNumItems(int numItems) { argument
160 this.numItems = numItems;
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java38 public static final String BUNDLE_PARAM_NUM_ITEMS = "com.google.test.numItems";
98 * @param numItems The number of items in the list.
103 public static Bundle getBundleFor(int numItems, int numRowsPerItem, double itemScreenHeightFactor) { argument
105 bundle.putInt(BUNDLE_PARAM_NUM_ITEMS, numItems);
136 int numItems = icicle.getInt(BUNDLE_PARAM_NUM_ITEMS, -1);
137 if (numItems != -1) {
138 mNumItems = numItems;
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationDelegate.java31 void onPanelRevealed(boolean clearEffects, int numItems); argument
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java182 int numItems = getChildCount();
183 if (numItems == 0) {
190 Math.min((int) Math.ceil(numItems / (float) mMaxItemsPerRow), mMaxRows);
197 layoutItemsUsingGravity(curNumRows, numItems);
199 if (curNumRows >= numItems) {
216 * @param numItems The total number of items (across all rows) contained in
220 private void layoutItemsUsingGravity(int numRows, int numItems) { argument
221 int numBaseItemsPerRow = numItems / numRows;
222 int numLeftoverItems = numItems % numRows;
659 int numItems
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DMetaData.cpp395 size_t numItems = mItems.size(); local
396 parcel.writeUint32(uint32_t(numItems));
397 for (size_t i = 0; i < numItems; i++) {
412 uint32_t numItems; local
413 if (parcel.readUint32(&numItems) == OK) {
415 for (size_t i = 0; i < numItems; i++) {
/frameworks/base/core/java/com/android/internal/statusbar/
H A DIStatusBarService.aidl51 void onPanelRevealed(boolean clearNotificationEffects, int numItems);
/frameworks/base/core/tests/coretests/src/android/util/
H A DGridScenario.java106 public Params setNumItems(int numItems) { argument
107 mNumItems = numItems;
H A DListScenario.java121 public Params setNumItems(int numItems) { argument
122 mNumItems = numItems;
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DGridWidgetTest.java1127 final int numItems = 200;
1137 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems);
1141 boolean[] focusable = new boolean[numItems];
1178 final int numItems = 100;
1179 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems);
1183 boolean[] focusable = new boolean[numItems];
1211 final int numItems = 100;
1212 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems);
1243 final int numItems = 100;
1244 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems);
[all...]
/frameworks/rs/
H A DrsAllocation.cpp366 uint32_t numItems = mHal.state.type->getCellCount(); local
367 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded();
375 uint32_t numItems = type->getPackedSizeBytes() / paddedBytes; local
383 for (uint32_t i = 0; i < numItems; i ++) {
406 for (uint32_t i = 0; i < numItems; i ++) {
430 uint32_t numItems = mHal.state.type->getCellCount(); local
433 uint8_t *dst = new uint8_t[numItems * unpaddedBytes];
/frameworks/base/core/java/android/widget/
H A DGallery.java711 int numItems = mItemCount;
813 int numItems = mItemCount;
829 while (curLeftEdge < galleryRight && curPosition < numItems) {
H A DEditor.java2511 final int numItems = mSuggestionHelper.getSuggestionInfo(suggestionInfoArray, null);
2512 for (int i = 0; i < numItems; i++) {
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DComponentTest.java719 int numItems = launchables.size();
720 assertEquals(0, numItems);
/frameworks/base/services/core/java/com/android/server/statusbar/
H A DStatusBarManagerService.java707 public void onPanelRevealed(boolean clearNotificationEffects, int numItems) { argument
711 mNotificationDelegate.onPanelRevealed(clearNotificationEffects, numItems);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBar.java1157 int numItems = hideAnimatedList.size();
1158 for (int i = numItems - 1; i >= 0; i--) {
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp6664 size_t numItems = entryIndex - (typeMap.entryOffset + index); local
6665 if (typeMap.entryMap.insertAt(0xffffffff, index, numItems) < 0) {

Completed in 1114 milliseconds