Home
last modified time | relevance | path

Searched refs:newCount (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DPerUidCounter.java61 final long newCount = ((long) mUidToCount.get(uid, 0)) + 1; in incrementCountOrThrow() local
62 if (newCount > mMaxCountPerUid) { in incrementCountOrThrow()
67 mUidToCount.put(uid, (int) newCount); in incrementCountOrThrow()
80 final int newCount = mUidToCount.get(uid, 0) - 1; in decrementCountOrThrow() local
81 if (newCount < 0) { in decrementCountOrThrow()
82 throw new IllegalStateException("BUG: too small count " + newCount + " for UID " + uid); in decrementCountOrThrow()
83 } else if (newCount == 0) { in decrementCountOrThrow()
86 mUidToCount.put(uid, newCount); in decrementCountOrThrow()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFilteringCursorWrapper.java173 int newCount = 0; in filterByCondition() local
176 while (this.moveToNext() && newCount < oldCount) { in filterByCondition()
178 newPositions[newCount++] = mPositions[this.getPosition()]; in filterByCondition()
182 if (DEBUG && newCount != this.getCount()) { in filterByCondition()
183 Log.d(TAG, "Before filtering " + oldCount + ", after " + newCount); in filterByCondition()
185 mCount = newCount; in filterByCondition()
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DSubscriptionManager.java235 int newCount = mClientCountByUpdateRateHz.get(updateRateHz) - 1; in remove() local
236 if (newCount == 0) { in remove()
240 mClientCountByUpdateRateHz.put(updateRateHz, newCount); in remove()
245 int newCount = mClientCountByResolution.get(resolution) - 1; in remove() local
246 if (newCount == 0) { in remove()
250 mClientCountByResolution.put(resolution, newCount); in remove()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DStepsRecordTest.java1538 int newCount = 20; in insertRecords_sameClientRecordIdAndNewData_readNewData() local
1539 List<StepsRecord> newRecords = insertAndReadRecords(recordCount, newCount); in insertRecords_sameClientRecordIdAndNewData_readNewData()
1542 assertThat(record.getCount()).isEqualTo(newCount); in insertRecords_sameClientRecordIdAndNewData_readNewData()
1554 int newCount = 20; in insertRecords_sameClientRecordIdAndNewerVersion_readNewData() local
1555 List<StepsRecord> newRecords = insertAndReadRecords(recordCount, newVersion, newCount); in insertRecords_sameClientRecordIdAndNewerVersion_readNewData()
1558 assertThat(record.getCount()).isEqualTo(newCount); in insertRecords_sameClientRecordIdAndNewerVersion_readNewData()
1569 int newCount = 20; in insertRecords_sameClientRecordIdAndSameVersion_readNewData() local
1570 List<StepsRecord> newRecords = insertAndReadRecords(recordCount, version, newCount); in insertRecords_sameClientRecordIdAndSameVersion_readNewData()
1573 assertThat(record.getCount()).isEqualTo(newCount); in insertRecords_sameClientRecordIdAndSameVersion_readNewData()
1585 int newCount = 20; in insertRecords_sameClientRecordIdAndOlderVersion_readOldData() local
[all …]
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackKeyboardContainer.java1389 final int newCount = suggestions.size(); in updateSuggestions() local
1391 if (newCount < oldCount) { in updateSuggestions()
1393 mSuggestions.removeViews(newCount, oldCount-newCount); in updateSuggestions()
1394 } else if (newCount > oldCount) { in updateSuggestions()
1396 for (int i = oldCount; i < newCount; i++) { in updateSuggestions()
1403 for (int i = 0; i < newCount; i++) { in updateSuggestions()
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/
DMetadataTests.java294 int newCount = getAtomStatsCount(report, StatsSocketLossReportedAtomId); in runTestUntilLossAtomReported() local
295 if (socketLossAtomCount < newCount) { in runTestUntilLossAtomReported()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java450 public void onContactChipsChanged(final int oldCount, final int newCount) { in onContactChipsChanged() argument
451 Assert.isTrue(oldCount != newCount); in onContactChipsChanged()
464 mHost.onParticipantCountChanged(ContactPickerData.getCanAddMoreParticipants(newCount)); in onContactChipsChanged()
DContactRecipientAutoCompleteView.java54 void onContactChipsChanged(int oldCount, int newCount); in onContactChipsChanged() argument
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryActivity.java216 newCount -> {
217 count.setText(StringUtil.getIcuPluralsString(this, newCount,
219 if (newCount == 0) {
DNotificationHistoryAdapter.java164 void onItemDeleted(int newCount); in onItemDeleted() argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java287 int newCount = 0; in render() local
292 if ((r & RENDER_MORE_PASS) != 0) requestedSlot[newCount++] = i; in render()
294 requestCount = newCount; in render()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DConnectedDevicesSliceProvider.java210 int newCount = mPinnedUris.get(sliceUri) - 1; in onSliceUnpinned() local
211 mPinnedUris.put(sliceUri, newCount); in onSliceUnpinned()
212 if (newCount == 0) { in onSliceUnpinned()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java2483 int newCount; in rebuildDocumentCountMapLocked() local
2485 newCount = namespaceStorageInfoProto.getNumAliveDocuments(); in rebuildDocumentCountMapLocked()
2487 newCount = oldCount + namespaceStorageInfoProto.getNumAliveDocuments(); in rebuildDocumentCountMapLocked()
2489 mDocumentCountMapLocked.put(packageName, newCount); in rebuildDocumentCountMapLocked()
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/TV/libs/m2/
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dauto-value-1.5.3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...