Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 29) 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/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/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/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/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapVcardList.java71 VCardEntryCounter counter = new VCardEntryCounter(); in parse() local
77 parser.addInterpreter(counter); in parse()
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java233 CountDownLatch counter = new CountDownLatch(1); in testAnalyticsVideo() local
237 counter.countDown(); in testAnalyticsVideo()
252 counter.await(10000, TimeUnit.MILLISECONDS); in testAnalyticsVideo()
/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/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/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()
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto200 // exit") on a counter-clockwise roundabout (as seen from above, typical
242 // For example, if the driver is joining a counter-clockwise roundabout
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java1827 static public long counterValue(byte[] data, Counter counter) in counterValue() argument
1830 int offset = counter.offset(); in counterValue()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz

12