/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LongSamplingCounterTest.java | 70 assertEquals(COUNT, getCount()); in testReadWriteParcel() 76 assertEquals(8 * COUNT, getCount()); in testReadWriteParcel() 79 assertEquals(COUNT, getCount()); in testReadWriteParcel() 87 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel() 93 assertEquals(8 * COUNT, getCount()); in testReadWriteSummaryParcel() 96 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel() 103 assertEquals(COUNT, getCount()); in testOnTimeStarted() 105 assertEquals(COUNT, getCount()); in testOnTimeStarted() 111 assertEquals(COUNT, getCount()); in testOnTimeStopped() 113 assertEquals(COUNT, getCount()); in testOnTimeStopped() [all …]
|
/frameworks/ex/common/tests/src/com/android/common/widget/ |
D | GroupingListAdapterTests.java | 55 int count = cursor.getCount(); 120 assertEquals(3, mAdapter.getCount()); in testGroupingWithoutGroups() 130 assertEquals(2, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheBeginning() 140 assertEquals(4, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheBeginning() 153 assertEquals(2, mAdapter.getCount()); in testGroupingWithExpandCollapseCycleAtTheBeginning() 162 assertEquals(3, mAdapter.getCount()); in testGroupingWithCollapsedGroupInTheMiddle() 173 assertEquals(6, mAdapter.getCount()); in testGroupingWithExpandedGroupInTheMiddle() 186 assertEquals(3, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheEnd() 197 assertEquals(6, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheEnd() 210 assertEquals(6, mAdapter.getCount()); in testGroupingWithMultipleCollapsedGroups() [all …]
|
D | CompositeCursorAdapterTest.java | 88 assertEquals(5, adapter.getCount()); in testGetCountNoEmptySections() 99 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewNoEmptySections() 114 assertEquals(7, adapter.getCount()); in testGetCountWithHeadersAndNoEmptySections() 125 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHeadersNoEmptySections() 139 assertEquals(3, adapter.getCount()); in testGetCountWithHiddenEmptySection() 189 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHiddenEmptySections() 203 assertEquals(4, adapter.getCount()); in testGetCountWithShownEmptySection() 213 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithShownEmptySections()
|
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/ |
D | GnssMetrics.java | 271 if (locationFailureStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString() 272 msg.numLocationReportProcessed = locationFailureStatistics.getCount(); in dumpGnssMetricsAsProtoString() 275 if (timeToFirstFixSecStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString() 276 msg.numTimeToFirstFixProcessed = timeToFirstFixSecStatistics.getCount(); in dumpGnssMetricsAsProtoString() 281 if (positionAccuracyMeterStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString() 282 msg.numPositionAccuracyProcessed = positionAccuracyMeterStatistics.getCount(); in dumpGnssMetricsAsProtoString() 287 if (topFourAverageCn0Statistics.getCount() > 0) { in dumpGnssMetricsAsProtoString() 288 msg.numTopFourAverageCn0Processed = topFourAverageCn0Statistics.getCount(); in dumpGnssMetricsAsProtoString() 305 if (mTopFourAverageCn0StatisticsL5.getCount() > 0) { in dumpGnssMetricsAsProtoString() 306 msg.numL5TopFourAverageCn0Processed = mTopFourAverageCn0StatisticsL5.getCount(); in dumpGnssMetricsAsProtoString() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 96 assertEquals(2, ca.getCount()); in testCreateLive() 107 assertEquals(0, ca.getCount()); in testCreateNull() 118 assertEquals(2, ca.getCount()); in testChangeCursorLive() 126 assertEquals(5, ca.getCount()); in testChangeCursorLive() 137 assertEquals(2, ca.getCount()); in testChangeCursorNull() 143 assertEquals(0, ca.getCount()); in testChangeCursorNull() 165 assertEquals(2, ca.getCount()); in testChangeCursorColumns() 180 assertEquals(0, ca.getCount()); in testNullConstructor() 190 assertEquals(0, ca.getCount()); in testChangeNullToMapped() 193 assertEquals(2, ca.getCount()); in testChangeNullToMapped() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 93 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments() 126 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments() 156 assertEquals(3, cursor.getCount()); in testPutStorageDocuments() 206 assertEquals(3, cursor.getCount()); in testPutChildDocuments() 282 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 299 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 315 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 338 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() 356 assertEquals(0, cursor.getCount()); in testRestoreIdForRootDocuments() 371 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() [all …]
|
D | MtpDocumentsProviderTest.java | 154 assertEquals(1, cursor.getCount()); in testOpenDeviceOnDemand() 212 assertEquals(2, cursor.getCount()); in testQueryRoots() 230 assertEquals(2, cursor.getCount()); in testQueryRoots() 277 assertEquals(2, cursor.getCount()); in testQueryRoots_error() 321 assertEquals(1, cursor.getCount()); in testQueryDocument() 358 assertEquals(1, cursor.getCount()); in testQueryDocument_directory() 385 assertEquals(1, cursor.getCount()); in testQueryDocument_forStorage() 409 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithSingleStorage() 440 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithTwoStorages() 471 assertEquals(1, cursor.getCount()); in testQueryChildDocuments() [all …]
|
/frameworks/base/core/java/android/database/ |
D | AbstractCursor.java | 93 abstract public int getCount(); in getCount() method in AbstractCursor 232 final int count = getCount(); in moveToPosition() 276 return moveToPosition(getCount() - 1); in moveToLast() 291 return mPos == 0 && getCount() != 0; in isFirst() 296 int cnt = getCount(); in isLast() 302 if (getCount() == 0) { in isBeforeFirst() 310 if (getCount() == 0) { in isAfterLast() 313 return mPos == getCount(); in isAfterLast() 335 if (getCount() > 0) { in getColumnIndex() 514 if (-1 == mPos || getCount() == mPos) { in checkPosition() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseCursorTest.java | 153 assertSame(3, c.getCount()); in testCursor1() 209 assertEquals(0, c.getCount()); in testCursor2() 250 assertEquals(1, c.getCount()); in testLargeField() 271 int count = c.getCount(); in onChanged() 309 assertEquals(count, c.getCount()); in testManyRowsLong() 345 assertEquals(count, c.getCount()); in testManyRowsTxt() 383 assertEquals(count, c.getCount()); in testManyRowsTxtLong() 393 assertEquals(3, c.getCount()); in testRequery() 396 assertEquals(3, c.getCount()); in testRequery() 407 assertEquals(1, c.getCount()); in testRequeryWithSelection() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchStackFromBottomTest.java | 49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions() 63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp() 80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown() 97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast() 114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
|
/frameworks/rs/tests/cpp_api/cppbasic/ |
D | compute.cpp | 53 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute() 56 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute() 57 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute() 60 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute() 85 int *buf = new int[t->getCount()]; in test_compute() 86 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
|
/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
D | compute.cpp | 53 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute() 56 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute() 57 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute() 60 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute() 85 int *buf = new int[t->getCount()]; in test_compute() 86 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
|
/frameworks/base/core/java/android/widget/ |
D | HeaderViewListAdapter.java | 134 public int getCount() { in getCount() method in HeaderViewListAdapter 136 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount() 161 adapterCount = mAdapter.getCount(); in isEnabled() 182 adapterCount = mAdapter.getCount(); in getItem() 196 int adapterCount = mAdapter.getCount(); in getItemId() 222 adapterCount = mAdapter.getCount(); in getView() 236 int adapterCount = mAdapter.getCount(); in getItemViewType()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | ItemGroup.java | 120 final int count = child.getCount(); in addChild() 137 final int childCount = child.getCount(); in removeChild() 154 final int numRemoved = getCount(); in clear() 165 public int getCount() { in getCount() method in ItemGroup 209 childPos = getCount(); in getChildPosition() 282 if (item.getCount() > 0) { in updateDataIfNeeded() 285 count += item.getCount(); in updateDataIfNeeded()
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodSubtypeArrayTest.java | 44 assertEquals(subtypes.size(), array.getCount()); in testInstantiate() 50 assertEquals(subtypes.size(), clonedArray.getCount()); in testInstantiate() 56 assertEquals(clonedArray.getCount(), clonedClonedArray.getCount()); in testInstantiate()
|
/frameworks/ml/nn/runtime/ |
D | ModelBuilder.cpp | 632 auto getCount = [this, &operation](uint32_t tailStartIndex, const std::vector<TailSpec>& tail) { in getNumTrailingArgumentsToRemove() local 645 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 651 return getCount(7, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 660 uint32_t count = getCount(10, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 668 uint32_t count = getCount(7, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 679 uint32_t count = getCount(11, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 687 uint32_t count = getCount(8, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 696 return getCount(2, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 703 return getCount(1, {TS::INT32_NEGATIVE_ONE}); in getNumTrailingArgumentsToRemove() 711 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() [all …]
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapterTest.java | 36 null /* desiredMimeType */, null /* lookupKey */).getCount()); in testRemoveUndesiredDestinations() 44 assertEquals(1, result.getCount()); in testRemoveUndesiredDestinations() 52 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations() 62 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations() 72 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | BaseCursorPagerAdapter.java | 80 public int getCount() { in getCount() method in BaseCursorPagerAdapter 82 return mCursor.getCount(); in getCount() 173 Log.v(TAG, "swapCursor old=" + (mCursor == null ? -1 : mCursor.getCount()) + in swapCursor() 174 "; new=" + (newCursor == null ? -1 : newCursor.getCount())); in swapCursor() 248 SparseIntArray itemPosition = new SparseIntArray(mCursor.getCount()); in setItemPosition()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListWithNoFadingEdgeTest.java | 47 mListView.getChildCount() < mListView.getCount()); in testPreconditions() 54 final int numItems = mListView.getCount(); in testScrollDownToBottom() 67 final int numItems = mListView.getCount(); in testScrollFromBottomToTop()
|
D | ListOfThinItemsTest.java | 49 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions() 58 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() 68 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom() 90 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
|
D | ListWithScreenOfNoSelectablesTest.java | 46 final int numItems = mListView.getCount(); in testPreconditions() 52 mListView.getChildCount() < mListView.getCount()); in testPreconditions() 72 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListTouchBottomGravityTest.java | 53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions() 68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPullDown() 87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
|
D | ListTouchBottomGravityManyTest.java | 56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions() 91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp() 111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testNoScroll() 133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testShortScroll()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wallpaper/ |
D | WallpaperServiceTests.java | 74 1, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit() 79 1, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit() 87 0, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridSetSelectionBaseTest.java | 49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions() 58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd() 74 final int target = mGridView.getAdapter().getCount() / 2; in testSetSelectionToMiddle()
|