Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java230 private boolean acquireResource(ResourceCounter counter) { in acquireResource() argument
237 mWaitOnResource = counter; in acquireResource()
240 synchronized (counter) { in acquireResource()
241 if (counter.value > 0) { in acquireResource()
242 counter.value--; in acquireResource()
246 counter.wait(); in acquireResource()
261 private void releaseResource(ResourceCounter counter) { in releaseResource() argument
262 synchronized (counter) { in releaseResource()
263 counter.value++; in releaseResource()
264 counter.notifyAll(); in releaseResource()
/packages/services/Car/service/src/com/android/car/stats/
DVmsClientLogger.java89 AtomicLong counter; in logConnectionState() local
91 counter = mConnectionStateCounters.computeIfAbsent(connectionState, in logConnectionState()
94 counter.incrementAndGet(); in logConnectionState()
98 AtomicLong counter; in getConnectionStateCount() local
100 counter = mConnectionStateCounters.get(connectionState); in getConnectionStateCount()
102 return counter == null ? 0L : counter.get(); in getConnectionStateCount()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2ePerformanceTest.java208 CountDownLatch counter = new CountDownLatch(EXPECTED_INVOCATIONS); in stressTestHvacProperties() local
211 new Thread(() -> invokeSetAndGetForHvacFloat(mgr, cfg, cfg.getAreaIds()[0], counter)), in stressTestHvacProperties()
212 new Thread(() -> invokeSetAndGetForHvacFloat(mgr, cfg, cfg.getAreaIds()[1], counter)))); in stressTestHvacProperties()
218 counter.await(EXPECTED_DURATION_MS, TimeUnit.MILLISECONDS); in stressTestHvacProperties()
219 long missingInvocations = counter.getCount(); in stressTestHvacProperties()
229 CarPropertyConfig<Float> cfg, int areaId, CountDownLatch counter) { in invokeSetAndGetForHvacFloat() argument
234 while (counter.getCount() > 0) { in invokeSetAndGetForHvacFloat()
244 counter.countDown(); in invokeSetAndGetForHvacFloat()
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java61 final CurrentUserAndManagedProfilePolicyInstalledAppCounter counter = in calculateNumberOfPolicyInstalledApps() local
64 counter.execute(); in calculateNumberOfPolicyInstalledApps()
66 counter.executeInForeground(); in calculateNumberOfPolicyInstalledApps()
80 final CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter counter = in calculateNumberOfAppsWithAdminGrantedPermissions() local
84 counter.execute(); in calculateNumberOfAppsWithAdminGrantedPermissions()
86 counter.executeInForeground(); in calculateNumberOfAppsWithAdminGrantedPermissions()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DApplicationFeatureProviderImpl.java61 final CurrentUserAndManagedProfilePolicyInstalledAppCounter counter = in calculateNumberOfPolicyInstalledApps() local
64 counter.execute(); in calculateNumberOfPolicyInstalledApps()
66 counter.executeInForeground(); in calculateNumberOfPolicyInstalledApps()
80 final CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter counter = in calculateNumberOfAppsWithAdminGrantedPermissions() local
84 counter.execute(); in calculateNumberOfAppsWithAdminGrantedPermissions()
86 counter.executeInForeground(); in calculateNumberOfAppsWithAdminGrantedPermissions()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DNfcImportVCardActivity.java105 VCardEntryCounter counter = null; in createImportRequest() local
113 counter = new VCardEntryCounter(); in createImportRequest()
115 parser.addInterpreter(counter); in createImportRequest()
123 counter = new VCardEntryCounter(); in createImportRequest()
125 parser.addInterpreter(counter); in createImportRequest()
155 detector.getEstimatedCharset(), vcardVersion, counter.getCount()); in createImportRequest()
DImportVCardActivity.java319 VCardEntryCounter counter = null; in constructImportRequest() local
332 counter = new VCardEntryCounter(); in constructImportRequest()
334 mVCardParser.addInterpreter(counter); in constructImportRequest()
351 counter = new VCardEntryCounter(); in constructImportRequest()
353 mVCardParser.addInterpreter(counter); in constructImportRequest()
378 vcardVersion, counter.getCount()); in constructImportRequest()
/packages/services/Telephony/src/com/android/phone/
DCarrierXmlParser.java240 int counter = 1; in makeCommand() local
243 if (commandParameter.containsKey(counter)) { in makeCommand()
247 && informationSet.containsKey(commandParameter.get(counter))) { in makeCommand()
248 getInputValue = informationSet.get(commandParameter.get(counter)); in makeCommand()
251 result = result + STAR_SIGN + commandParameter.get(counter); in makeCommand()
254 commandParameter.get(counter)); in makeCommand()
260 counter++; in makeCommand()
/packages/modules/ExtServices/src/android/ext/services/notification/
DEntityTypeCounter.java63 EntityTypeCounter counter = new EntityTypeCounter(); in fromTextLinks() local
69 counter.increment(entityType); in fromTextLinks()
71 return counter; in fromTextLinks()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java667 int counter = 0; in tryCompute() local
674 while (targetData == null && counter < TRY_MAX) { in tryCompute()
680 counter++; in tryCompute()
785 int counter = 0; in getKeyStore() local
787 while ((counter <= TRY_MAX) && (keyStore == null)) { in getKeyStore()
795 counter++; in getKeyStore()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java654 public final int counter; field in EapSimAkaAttribute.AtCounter
664 this.counter = Short.toUnsignedInt(byteBuffer.getShort()); in AtCounter()
668 public AtCounter(int counter) throws EapSimAkaInvalidAttributeException { in AtCounter() argument
670 this.counter = counter; in AtCounter()
676 byteBuffer.putShort((short) counter); in encode()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoritesTileAdapter.java188 int counter = 0; in saveCursorToCache() local
217 if (starred < 1 && counter >= TILES_SOFT_LIMIT) { in saveCursorToCache()
287 counter++; in saveCursorToCache()
309 counter, in saveCursorToCache()
317 LogUtil.v("PhoneFavoritesTileAdapter.saveCursorToCache", "counter: %d", counter); in saveCursorToCache()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapVcardList.java71 VCardEntryCounter counter = new VCardEntryCounter(); in parse() local
77 parser.addInterpreter(counter); in parse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppCounterTest.java182 final InstalledAppCounterTestable counter = new InstalledAppCounterTestable(installReason); in count() local
184 counter.execute(); in count()
188 counter.executeInForeground(); in count()
DInstalledAppListerTest.java154 final InstalledAppListerTestable counter = new InstalledAppListerTestable(); in testCountInstalledAppsAcrossAllUsers() local
155 counter.execute(); in testCountInstalledAppsAcrossAllUsers()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp246 ValueCounter counter; in TEST_F() local
247 doc_.Accept(counter); in TEST_F()
248 EXPECT_EQ(4339u, counter.count_); in TEST_F()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardRequest.java120 final VCardEntryCounter counter = new VCardEntryCounter(); in parseVCard() local
135 counter, false, null); in parseVCard()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java243 CountDownLatch counter = new CountDownLatch(1); in testAnalyticsVideo() local
247 counter.countDown(); in testAnalyticsVideo()
262 counter.await(10000, TimeUnit.MILLISECONDS); in testAnalyticsVideo()
/packages/apps/Dialer/java/com/android/dialer/logging/
DLoggingBindingsStub.java42 int counter, in logSpeedDialContactComposition() argument
DLoggingBindings.java69 int counter, in logSpeedDialContactComposition() argument
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java965 int counter = 0; in getLooseMatches() local
970 while ((cursor.moveToNext()) && (counter < MAX_ENTRIES)) { in getLooseMatches()
1006 counter++; in getLooseMatches()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtCounterTest.java64 assertEquals(COUNTER_INT, atCounter.counter); in testDecodeAtCounter()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java1683 int counter = 0; in getTagDefinitionsForTagId() local
1688 defs[counter++] = def; in getTagDefinitionsForTagId()
1691 if (counter == 0) { in getTagDefinitionsForTagId()
1695 return Arrays.copyOfRange(defs, 0, counter); in getTagDefinitionsForTagId()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java1683 int counter = 0; in getTagDefinitionsForTagId() local
1688 defs[counter++] = def; in getTagDefinitionsForTagId()
1691 if (counter == 0) { in getTagDefinitionsForTagId()
1695 return Arrays.copyOfRange(defs, 0, counter); in getTagDefinitionsForTagId()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java1662 int counter = 0; in getTagDefinitionsForTagId() local
1667 defs[counter++] = def; in getTagDefinitionsForTagId()
1670 if (counter == 0) { in getTagDefinitionsForTagId()
1674 return Arrays.copyOfRange(defs, 0, counter); in getTagDefinitionsForTagId()

12