Home
last modified time | relevance | path

Searched refs:numItems (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuScenario.java54 mItems = new MenuItem[mParams.numItems]; in onParamsChanged()
55 mWasItemClicked = new boolean[mParams.numItems]; in onParamsChanged()
66 for (int i = 0; i < mParams.numItems; i++) { in onCreateOptionsMenu()
140 for (int i = 0; i < mParams.numItems; i++) { in findItemPosition()
150 private int numItems = 10; field in MenuScenario.Params
159 public Params setNumItems(int numItems) { in setNumItems() argument
160 this.numItems = numItems; in setNumItems()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithNoFadingEdgeTest.java52 final int numItems = mListView.getCount(); in testScrollDownToBottom() local
54 for (int i = 0; i < numItems; i++) { in testScrollDownToBottom()
58 … assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToBottom()
63 final int numItems = mListView.getCount(); in testScrollFromBottomToTop() local
67 mListView.setSelection(numItems - 1); in testScrollFromBottomToTop()
72 for (int i = numItems - 1; i >=0; i--) { in testScrollFromBottomToTop()
DListOfThinItemsTest.java53 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() local
55 for (int i = 0; i < numItems; i++) { in testScrollToBottom()
81 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop() local
83 for (int i = 0; i < numItems - 1; i++) { in testScrollToTop()
87 numItems - 1, mListView.getSelectedItemPosition()); in testScrollToTop()
92 for (int i = 0; i < numItems; i++) { in testScrollToTop()
93 int expectedPostion = numItems - (i + 1); in testScrollToTop()
DListOfItemsTallerThanScreenTest.java132 final int numItems = mListView.getAdapter().getCount(); in testScrollDownToLastItem() local
135 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem()
153 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
DListWithScreenOfNoSelectablesTest.java45 final int numItems = mListView.getCount(); in testPreconditions() local
46 for (int i = 1; i < numItems; i++) { in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfInternalSelectionViews.java103 …public static Bundle getBundleFor(int numItems, int numRowsPerItem, double itemScreenHeightFactor)… in getBundleFor() argument
105 bundle.putInt(BUNDLE_PARAM_NUM_ITEMS, numItems); in getBundleFor()
136 int numItems = icicle.getInt(BUNDLE_PARAM_NUM_ITEMS, -1); in initFromBundle() local
137 if (numItems != -1) { in initFromBundle()
138 mNumItems = numItems; in initFromBundle()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java182 int numItems = getChildCount(); in layoutItems() local
183 if (numItems == 0) { in layoutItems()
190 Math.min((int) Math.ceil(numItems / (float) mMaxItemsPerRow), mMaxRows); in layoutItems()
197 layoutItemsUsingGravity(curNumRows, numItems); in layoutItems()
199 if (curNumRows >= numItems) { in layoutItems()
220 private void layoutItemsUsingGravity(int numRows, int numItems) { in layoutItemsUsingGravity() argument
221 int numBaseItemsPerRow = numItems / numRows; in layoutItemsUsingGravity()
222 int numLeftoverItems = numItems % numRows; in layoutItemsUsingGravity()
659 int numItems = getChildCount(); in calculateItemFittingMetadata() local
660 for (int i = 0; i < numItems; i++) { in calculateItemFittingMetadata()
/frameworks/av/media/libstagefright/foundation/
DMetaData.cpp395 size_t numItems = mItems.size(); in writeToParcel() local
396 parcel.writeUint32(uint32_t(numItems)); in writeToParcel()
397 for (size_t i = 0; i < numItems; i++) { in writeToParcel()
412 uint32_t numItems; in updateFromParcel() local
413 if (parcel.readUint32(&numItems) == OK) { in updateFromParcel()
415 for (size_t i = 0; i < numItems; i++) { in updateFromParcel()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridWidgetTest.java1129 final int numItems = 200; in testNonFocusableHorizontal() local
1139 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testNonFocusableHorizontal()
1143 boolean[] focusable = new boolean[numItems]; in testNonFocusableHorizontal()
1180 final int numItems = 100; in testNoInitialFocusable() local
1181 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testNoInitialFocusable()
1185 boolean[] focusable = new boolean[numItems]; in testNoInitialFocusable()
1213 final int numItems = 100; in testFocusOutOfEmptyListView() local
1214 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testFocusOutOfEmptyListView()
1245 final int numItems = 100; in testTransferFocusToChildWhenGainFocus() local
1246 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testTransferFocusToChildWhenGainFocus()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationDelegate.java31 void onPanelRevealed(boolean clearEffects, int numItems); in onPanelRevealed() argument
/frameworks/base/core/tests/coretests/src/android/util/
DGridScenario.java106 public Params setNumItems(int numItems) { in setNumItems() argument
107 mNumItems = numItems; in setNumItems()
DListScenario.java121 public Params setNumItems(int numItems) { in setNumItems() argument
122 mNumItems = numItems; in setNumItems()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBarService.aidl51 void onPanelRevealed(boolean clearNotificationEffects, int numItems); in onPanelRevealed() argument
/frameworks/rs/
DrsAllocation.cpp366 uint32_t numItems = mHal.state.type->getCellCount(); in getPackedSize() local
367 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
375 uint32_t numItems = type->getPackedSizeBytes() / paddedBytes; in writePackedData() local
383 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
406 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
430 uint32_t numItems = mHal.state.type->getCellCount(); in packVec3Allocation() local
433 uint8_t *dst = new uint8_t[numItems * unpaddedBytes]; in packVec3Allocation()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DAnimatedRecyclerView.java375 int numItems = mItems.size(); in deleteSelectedItems() local
376 if (numItems > 0) { in deleteSelectedItems()
377 for (int i = numItems - 1; i >= 0; --i) { in deleteSelectedItems()
/frameworks/base/core/java/android/widget/
DGallery.java711 int numItems = mItemCount; in fillToGalleryLeftRtl() local
813 int numItems = mItemCount; in fillToGalleryRightLtr() local
829 while (curLeftEdge < galleryRight && curPosition < numItems) { in fillToGalleryRightLtr()
DEditor.java2511 final int numItems = mSuggestionHelper.getSuggestionInfo(suggestionInfoArray, null); in onCreateContextMenu() local
2512 for (int i = 0; i < numItems; i++) { in onCreateContextMenu()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java722 public void onPanelRevealed(boolean clearNotificationEffects, int numItems) { in onPanelRevealed() argument
726 mNotificationDelegate.onPanelRevealed(clearNotificationEffects, numItems); in onPanelRevealed()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java719 int numItems = launchables.size(); in testNonExplicitResolveAfterEnabling() local
720 assertEquals(0, numItems); in testNonExplicitResolveAfterEnabling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java1197 int numItems = hideAnimatedList.size(); in performDismissAllAnimations() local
1198 for (int i = numItems - 1; i >= 0; i--) { in performDismissAllAnimations()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp6664 size_t numItems = entryIndex - (typeMap.entryOffset + index); in createIdmap() local
6665 if (typeMap.entryMap.insertAt(0xffffffff, index, numItems) < 0) { in createIdmap()