Home
last modified time | relevance | path

Searched refs:totalCount (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/native/bpf_headers/
DBpfMapTest.cpp175 int totalCount = 0; in TEST_F() local
177 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F()
180 totalCount++; in TEST_F()
185 EXPECT_EQ((int)TEST_MAP_SIZE, totalCount); in TEST_F()
194 int totalCount = 0; in TEST_F() local
196 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F()
201 totalCount++; in TEST_F()
206 EXPECT_EQ((int)TEST_MAP_SIZE, totalCount); in TEST_F()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlidingWindow.java82 public int totalCount; field in AlbumSetSlidingWindow.AlbumSetEntry
240 AlbumSetEntry entry, String title, int totalCount, int sourceType) { in isLabelChanged() argument
242 || entry.totalCount != totalCount in isLabelChanged()
249 int totalCount = mSource.getTotalCount(slotIndex); in updateAlbumSetEntry() local
259 if (isLabelChanged(entry, title, totalCount, sourceType)) { in updateAlbumSetEntry()
261 entry.totalCount = totalCount; in updateAlbumSetEntry()
270 slotIndex, title, totalCount, sourceType); in updateAlbumSetEntry()
486 int slotIndex, String title, int totalCount, int sourceType) { in AlbumLabelLoader() argument
489 mTotalCount = totalCount; in AlbumLabelLoader()
543 entry.title, entry.totalCount, entry.sourceType); in onSlotSizeChanged()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DNotificationImportExportListener.java101 int totalCount) { in onImportParsed() argument
106 final String totalCountString = String.valueOf(totalCount); in onImportParsed()
118 totalCount, currentCount); in onImportParsed()
205 int jobId, String displayName, int totalCount, int currentCount) { in constructProgressNotification() argument
227 .setProgress(totalCount, currentCount, totalCount == - 1) in constructProgressNotification()
235 if (totalCount > 0) { in constructProgressNotification()
237 NumberFormat.getPercentInstance().format((double) currentCount / totalCount); in constructProgressNotification()
DVCardImportExportListener.java27 int totalCount); in onImportParsed() argument
DExportProcessor.java268 private void doProgressNotification(Uri uri, int totalCount, int currentCount) { in doProgressNotification() argument
277 totalCount, currentCount); in doProgressNotification()
DNfcImportVCardActivity.java239 int currentCount, int totalCount) { in onImportParsed() argument
/packages/providers/TvProvider/src/com/android/providers/tv/
DEpgDataCleanupService.java125 int totalCount; in clearOverflowWatchHistory() local
128 totalCount = cursor.getCount(); in clearOverflowWatchHistory()
129 int overflowCount = totalCount - maxEntryCount; in clearOverflowWatchHistory()
147 Log.d(TAG, "Deleted " + deleteCount + " of " + totalCount + " watched programs" in clearOverflowWatchHistory()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java283 private void generateOrderArray(int totalCount) { in generateOrderArray() argument
284 if (mOrder.length != totalCount) { in generateOrderArray()
285 mOrder = new int[totalCount]; in generateOrderArray()
286 for (int i = 0; i < totalCount; ++i) { in generateOrderArray()
290 for (int i = totalCount - 1; i > 0; --i) { in generateOrderArray()
293 if (mOrder[0] == mLastIndex && totalCount > 1) { in generateOrderArray()
294 Utils.swap(mOrder, 0, mRandom.nextInt(totalCount - 1) + 1); in generateOrderArray()
DAlbumSetDataLoader.java241 public int totalCount; field in AlbumSetDataLoader.UpdateInfo
303 mTotalCount[pos] = info.totalCount; in call()
374 info.totalCount = info.item.getTotalMediaItemCount(); in run()
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/
DByteArrayParceledSlice.java65 int totalCount = 0; in getByteArray() local
67 totalCount += slices.get(i).length; in getByteArray()
69 byte[] result = new byte[totalCount]; in getByteArray()
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DCountMetricsTests.java363 int totalCount = 0; in testPartialBucketCountMetric()
365 totalCount += bucket.getCount(); in testPartialBucketCountMetric()
367 assertThat(totalCount).isEqualTo(2); in testPartialBucketCountMetric()
502 long totalCount = data.getBucketInfoList().stream() local
505 assertThat(totalCount).isEqualTo(6);
512 totalCount = data.getBucketInfoList().stream()
515 assertThat(totalCount).isEqualTo(3);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkChangeContentProvider.java63 int totalCount = mSharedPreferences.getInt(NetworkChangeDetectionConfigs.PREFERENCE_KEY, in query() local
67 cursor.addRow(new Object[]{totalCount}); in query()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/mediacognitionservices/
DMediaCognitionServiceTest.java126 int totalCount = 100; in testProcessMediaLargeData() local
127 for (int count = 1; count <= totalCount; count++) { in testProcessMediaLargeData()
153 assertEquals(count, totalCount); in testProcessMediaLargeData()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java223 public void onImportProgress(int visitedCount, int totalCount, in onImportProgress() argument
230 mClientActivity.onImportProgress(visitedCount, totalCount, pathIfSuccessful); in onImportProgress()
232 mNotificationBuilder.setProgress(totalCount, visitedCount, false) in onImportProgress()
DIngestActivity.java476 public void onImportProgress(final int visitedCount, final int totalCount, in onImportProgress() argument
480 mProgressState.max = totalCount; in onImportProgress()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java135 private boolean isContentSound(int totalCount) { in isContentSound() argument
136 if (mPhotos.size() < Math.min(totalCount, MAX_PHOTO_COUNT)) return false; in isContentSound()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DManageMicPermissionsPreferenceControllerTest.java212 private void setAppsForUser(int grantedCount, int totalCount, in setAppsForUser() argument
227 permissionAllAppsCountCallback.getValue().onCountPermissionApps(totalCount); in setAppsForUser()
DManageCameraPermissionsPreferenceControllerTest.java212 private void setAppsForUser(int grantedCount, int totalCount, in setAppsForUser() argument
227 permissionAllAppsCountCallback.getValue().onCountPermissionApps(totalCount); in setAppsForUser()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java541 final int totalCount = intMapSize + longMapSize + stringMapSize + floatMapSize; in writeKeyValuePairs() local
543 if (totalCount > MAX_KEY_VALUE_PAIRS) { in writeKeyValuePairs()
547 mPos += mBuffer.putByte(mPos, (byte) totalCount); in writeKeyValuePairs()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DBpfNetworkStatsTest.cpp180 int totalCount = 0; in TEST_F() local
183 [&totalCount, &totalSum](const uint64_t& key, const BpfMap<uint64_t, UidTagValue>&) { in TEST_F()
185 totalCount++; in TEST_F()
190 EXPECT_EQ(5, totalCount); in TEST_F()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java197 int totalCount = 0; in getTypeFrequencies() local
201 totalCount++; in getTypeFrequencies()
209 typeCount.put(FREQUENCY_TOTAL, totalCount); in getTypeFrequencies()
1313 int totalCount = 0; in migrateGenericWithTypeColumn() local
1316 if (typeOverallMax != -1 && totalCount >= typeOverallMax) { in migrateGenericWithTypeColumn()
1353 totalCount++; in migrateGenericWithTypeColumn()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java640 int totalCount = 0; in getDeletedFileTotalCountBypassingDatabase() local
642 totalCount += mDeletedFileCountsBypassingDatabase[i]; in getDeletedFileTotalCountBypassingDatabase()
644 return totalCount; in getDeletedFileTotalCountBypassingDatabase()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java45 void onImportProgress(int visitedCount, int totalCount, String pathIfSuccessful); in onImportProgress() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java1726 for (int totalCount = repeats + 1; totalCount > 0;) {
1747 totalCount--;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceDaoTest.java2996 int totalCount, in verifyCustomAudienceStats() argument
3000 assertEquals(totalCount, customAudienceStats.getTotalCustomAudienceCount()); in verifyCustomAudienceStats()

12