Home
last modified time | relevance | path

Searched refs:mItemLengths (Results 1 – 2 of 2) sorted by relevance

/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DGridActivity.java103 int[] mItemLengths; field in GridActivity
143 mItemLengths = intent.getIntArrayExtra(EXTRA_ITEMS); in onCreate()
179 if (mItemLengths == null) { in onCreate()
181 mItemLengths = new int[mNumItems]; in onCreate()
182 for (int i = 0; i < mItemLengths.length; i++) { in onCreate()
184 mItemLengths[i] = mStaggered ? (int)(Math.random() * 180) + 180 : 240; in onCreate()
186 mItemLengths[i] = mStaggered ? (int)(Math.random() * 120) + 120 : 160; in onCreate()
190 mNumItems = mItemLengths.length; in onCreate()
258 int value = mItemLengths[index1]; in swap()
259 mItemLengths[index1] = mItemLengths[index2]; in swap()
[all …]
DGridWidgetTest.java338 for (int i = 0; i < mActivity.mItemLengths.length; i++) { in verifyBoundCount()
339 b.append(mActivity.mItemLengths[i]).append(","); in verifyBoundCount()
2484 int itemLength = mActivity.mItemLengths[0]; in testExtraLayoutSpace()