Home
last modified time | relevance | path

Searched refs:numRows (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/libs/androidfw/
DCursorWindow.cpp68 window->mHeader->numRows, in create()
115 window->mHeader->numRows, in createFromParcel()
144 mHeader->numRows = 0; in clear()
158 if ((cur > 0 || mHeader->numRows > 0) && cur != numColumns) { in setNumColumns()
181 mHeader->numRows--; in allocRow()
183 "from allocRowSlot %d", mHeader->numRows); in allocRow()
190 mHeader->numRows - 1, offsetFromPtr(rowSlot), fieldDirSize, fieldDirOffset); in allocRow()
200 if (mHeader->numRows > 0) { in freeLastRow()
201 mHeader->numRows--; in freeLastRow()
240 uint32_t chunkPos = mHeader->numRows; in allocRowSlot()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java220 private void layoutItemsUsingGravity(int numRows, int numItems) { in layoutItemsUsingGravity() argument
221 int numBaseItemsPerRow = numItems / numRows; in layoutItemsUsingGravity()
222 int numLeftoverItems = numItems % numRows; in layoutItemsUsingGravity()
229 int rowsThatGetALeftoverItem = numRows - numLeftoverItems; in layoutItemsUsingGravity()
232 for (int i = 0; i < numRows; i++) { in layoutItemsUsingGravity()
241 mLayoutNumRows = numRows; in layoutItemsUsingGravity()
255 int numRows = mLayoutNumRows; in doItemsFit() local
256 for (int row = 0; row < numRows; row++) { in doItemsFit()
331 final int numRows = mLayoutNumRows; in positionChildren() local
332 final int numRowsMinus1 = numRows - 1; in positionChildren()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DFocusChangeWithInterestingRectHintTest.java72 final int numRows = mLeftColumn.getNumRows(); in testSnakeBackAndForth() local
73 for (int row = 0; row < numRows; row++) { in testSnakeBackAndForth()
89 if (row < numRows - 1) { in testSnakeBackAndForth()
106 if (row < numRows - 1) { in testSnakeBackAndForth()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp119 int numRows = (height - rowIndex) / 2; in deinterleave() local
120 if (numRows > 8) numRows = 8; in deinterleave()
121 for (int row = 0; row < numRows; ++row) { in deinterleave()
194 int numRows = height - rowIndex; in deinterleave() local
195 if (numRows > 16) numRows = 16; in deinterleave()
196 for (int row = 0; row < numRows; ++row) { in deinterleave()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DDisappearAnimationUtils.java54 public float getRowTranslationScale(int row, int numRows) {
55 return (float) (Math.pow((numRows - row), 2) / numRows);
DAppearAnimationUtils.java250 float getRowTranslationScale(int row, int numRows); in getRowTranslationScale() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java116 int numRows = 0; in getNumRows() local
119 numRows = c.getCount(); in getNumRows()
122 return numRows; in getNumRows()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQuery.java62 int numRows = getSession().executeForCursorWindow(getSql(), getBindArgs(), in fillWindow() local
65 return numRows; in fillWindow()
/frameworks/base/core/java/android/content/
DContentProviderOperation.java309 int numRows; in apply() local
311 numRows = provider.delete(mUri, mSelection, selectionArgs); in apply()
313 numRows = provider.update(mUri, values, mSelection, selectionArgs); in apply()
327 numRows = cursor.getCount(); in apply()
351 if (mExpectedCount != null && mExpectedCount != numRows) { in apply()
353 throw new OperationApplicationException("wrong number of rows: " + numRows); in apply()
356 return new ContentProviderResult(numRows); in apply()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGrid.java208 void setNumRows(int numRows) { in setNumRows() argument
209 if (numRows <= 0) { in setNumRows()
212 if (mNumRows == numRows) { in setNumRows()
215 mNumRows = numRows; in setNumRows()
DHorizontalGridView.java102 public void setNumRows(int numRows) { in setNumRows() argument
103 mLayoutManager.setNumRows(numRows); in setNumRows()
DListRowPresenter.java409 public void setNumRows(int numRows) { in setNumRows() argument
410 this.mNumRows = numRows; in setNumRows()
DGridLayoutManager.java782 public void setNumRows(int numRows) { in setNumRows() argument
783 if (numRows < 0) throw new IllegalArgumentException(); in setNumRows()
784 mNumRowsRequested = numRows; in setNumRows()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DHeadersFragmentTest.java40 static void loadData(ArrayObjectAdapter adapter, int numRows) { in loadData() argument
41 for (int i = 0; i < numRows; ++i) { in loadData()
DHeadersSupportFragmentTest.java43 static void loadData(ArrayObjectAdapter adapter, int numRows) { in loadData() argument
44 for (int i = 0; i < numRows; ++i) { in loadData()
DRowsFragmentTest.java56 static void loadData(ArrayObjectAdapter adapter, int numRows, int repeatPerRow) { in loadData() argument
57 for (int i = 0; i < numRows; ++i) { in loadData()
DRowsSupportFragmentTest.java59 static void loadData(ArrayObjectAdapter adapter, int numRows, int repeatPerRow) { in loadData() argument
60 for (int i = 0; i < numRows; ++i) { in loadData()
/frameworks/base/core/tests/coretests/src/android/util/
DScrollViewScenario.java157 public Params addInternalSelectionView(final int numRows, float heightRatio) { in addInternalSelectionView() argument
160 return new InternalSelectionView(context, numRows, "isv"); in addInternalSelectionView()
DInternalSelectionView.java65 public InternalSelectionView(Context context, int numRows, String label) { in InternalSelectionView() argument
67 mNumRows = numRows; in InternalSelectionView()
/frameworks/base/libs/androidfw/include/androidfw/
DCursorWindow.h92 inline uint32_t getNumRows() { return mHeader->numRows; } in getNumRows()
151 uint32_t numRows; member
/frameworks/base/tools/aapt2/compile/
DPng.cpp991 int numRows; in do9Patch() local
1139 numRows = numYDivs + 1; in do9Patch()
1141 numRows--; in do9Patch()
1144 numRows--; in do9Patch()
1149 if (numRows * numCols > 0x7F) { in do9Patch()
1154 numColors = numRows * numCols; in do9Patch()
/frameworks/base/tools/aapt/
DImages.cpp557 int numRows; in do_9patch() local
698 numRows = numYDivs + 1; in do_9patch()
700 numRows--; in do_9patch()
703 numRows--; in do_9patch()
708 if (numRows * numCols > 0x7F) { in do_9patch()
713 numColors = numRows * numCols; in do_9patch()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java210 private Cursor getCursor(ContentValues contentValues, int numRows) { in getCursor() argument
223 for (i = 0; i < numRows; i++) { in getCursor()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java627 int numRows = rows.size(); in resize() local
628 for (int rowIndex = 0; rowIndex < numRows; ++rowIndex) { in resize()