/packages/modules/NeuralNetworks/common/random/ |
D | philox_random.h | 135 PhiloxRandom(ResultType counter, Key key) : counter_(counter), key_(key) {} in PhiloxRandom() argument 159 ResultType counter = counter_; in operator() local 164 counter = ComputeSingleRound(counter, key); in operator() 166 counter = ComputeSingleRound(counter, key); in operator() 168 counter = ComputeSingleRound(counter, key); in operator() 170 counter = ComputeSingleRound(counter, key); in operator() 172 counter = ComputeSingleRound(counter, key); in operator() 174 counter = ComputeSingleRound(counter, key); in operator() 176 counter = ComputeSingleRound(counter, key); in operator() 178 counter = ComputeSingleRound(counter, key); in operator() [all …]
|
D | guarded_philox_random.cc | 33 void GuardedPhiloxRandom::Init(random::PhiloxRandom::ResultType counter, in Init() argument 37 generator_ = random::PhiloxRandom(counter, key); in Init()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 247 long counter = 0; in prepareData() local 255 cursor.addRow(new Object[]{++counter, uid, destination, file.getPath()}); in prepareData() 257 idsToOrphan.add(counter); in prepareData() 259 validEntries.put(counter, "com.example" + uid); in prepareData() 265 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData() 267 idsToOrphan.add(counter); in prepareData() 269 validEntries.put(counter, "com.example" + uid); in prepareData() 273 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData() 275 idsToRemove.add(counter); in prepareData() 277 validEntries.put(counter, "com.example" + uid); in prepareData() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | IntCounterTest.java | 45 IntCounter counter = new IntCounter(); in testEmpty() local 46 assertKeyCountsEqual(new Int32Count[0], counter.toProto()); in testEmpty() 54 IntCounter counter = new IntCounter(); in testAddToCounter() local 57 counter.increment(k); in testAddToCounter() 71 assertKeyCountsEqual(expected, counter.toProto()); in testAddToCounter() 79 IntCounter counter = new IntCounter(-5, 100); in testAddToClampedCounter() local 82 counter.increment(k); in testAddToClampedCounter() 91 assertKeyCountsEqual(expected, counter.toProto()); in testAddToClampedCounter()
|
D | ObjectCounterTest.java | 143 ObjectCounter<TestKey> counter = new ObjectCounter<>(); in testAddToCounter() local 145 counter.increment(key); in testAddToCounter() 154 TestKeyProto[] actual = counter.toProto(TestKeyProto.class, CONVERTER); in testAddToCounter()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
D | ThreadPool.java | 230 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/ |
D | VmsClientLogger.java | 89 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/ |
D | E2ePerformanceTest.java | 208 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/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 239 for (const auto& counter : mPastBuckets) { in onDumpReportLocked() local 240 const MetricDimensionKey& dimensionKey = counter.first; in onDumpReportLocked() 264 for (const auto& bucket : counter.second) { in onDumpReportLocked() 411 for (const auto& counter : *mCurrentSlicedCounter) { in flushCurrentBucketLocked() 412 if (countPassesThreshold(counter.second)) { in flushCurrentBucketLocked() 413 info.mCount = counter.second; in flushCurrentBucketLocked() 414 auto& bucketList = mPastBuckets[counter.first]; in flushCurrentBucketLocked() 417 counter.first.toString().c_str(), (long long)counter.second); in flushCurrentBucketLocked()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 568 int counter = 0; in readHashFile() local 569 while (!successful && counter < TRY_MAX) { in readHashFile() 587 infoLog("Fail to open file, try again. counter: " + counter); in readHashFile() 589 counter++; in readHashFile() 592 if (counter > 3) { in readHashFile() 684 int counter = 0; in tryCompute() local 691 while (targetData == null && counter < TRY_MAX) { in tryCompute() 697 counter++; in tryCompute() 802 int counter = 0; in getKeyStore() local 804 while ((counter <= TRY_MAX) && (keyStore == null)) { in getKeyStore() [all …]
|
/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | offload.c | 75 #define COUNT_AND_RETURN(counter, ret) do { \ in DEFINE_BPF_MAP_GRW() argument 76 uint32_t code = BPF_TETHER_ERR_ ## counter; \ in DEFINE_BPF_MAP_GRW() 82 #define TC_DROP(counter) COUNT_AND_RETURN(counter, TC_ACT_SHOT) argument 83 #define TC_PUNT(counter) COUNT_AND_RETURN(counter, TC_ACT_OK) argument 85 #define XDP_DROP(counter) COUNT_AND_RETURN(counter, XDP_DROP) argument 86 #define XDP_PUNT(counter) COUNT_AND_RETURN(counter, XDP_PASS) argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/ |
D | ApplicationFeatureProviderImpl.java | 76 final CurrentUserAndManagedProfilePolicyInstalledAppCounter counter = in calculateNumberOfPolicyInstalledApps() local 79 counter.execute(); in calculateNumberOfPolicyInstalledApps() 81 counter.executeInForeground(); in calculateNumberOfPolicyInstalledApps() 95 final CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter counter = in calculateNumberOfAppsWithAdminGrantedPermissions() local 99 counter.execute(); in calculateNumberOfAppsWithAdminGrantedPermissions() 101 counter.executeInForeground(); in calculateNumberOfAppsWithAdminGrantedPermissions()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | NfcImportVCardActivity.java | 105 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()
|
D | ImportVCardActivity.java | 319 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/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 73 final CurrentUserAndManagedProfilePolicyInstalledAppCounter counter = in calculateNumberOfPolicyInstalledApps() local 76 counter.execute(); in calculateNumberOfPolicyInstalledApps() 78 counter.executeInForeground(); in calculateNumberOfPolicyInstalledApps() 92 final CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter counter = in calculateNumberOfAppsWithAdminGrantedPermissions() local 96 counter.execute(); in calculateNumberOfAppsWithAdminGrantedPermissions() 98 counter.executeInForeground(); in calculateNumberOfAppsWithAdminGrantedPermissions()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | CachedSupplierTest.java | 33 final AtomicInteger counter = new AtomicInteger(); in testSimple() local 37 return counter.incrementAndGet(); in testSimple() 48 assertEquals(1, counter.get()); in testSimple()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | EntityTypeCounter.java | 64 EntityTypeCounter counter = new EntityTypeCounter(); in fromTextLinks() local 70 counter.increment(entityType); in fromTextLinks() 72 return counter; in fromTextLinks()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CarrierXmlParser.java | 241 int counter = 1; in makeCommand() local 244 if (commandParameter.containsKey(counter)) { in makeCommand() 248 && informationSet.containsKey(commandParameter.get(counter))) { in makeCommand() 249 getInputValue = informationSet.get(commandParameter.get(counter)); in makeCommand() 252 result = result + STAR_SIGN + commandParameter.get(counter); in makeCommand() 255 commandParameter.get(counter)); in makeCommand() 261 counter++; in makeCommand()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | PhoneFavoritesTileAdapter.java | 188 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/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | DeviceAtomTestCase.java | 305 int counter = 1; in waitForStatsServiceStart() local 311 Thread.sleep(Math.min(200 * counter, 2_000)); in waitForStatsServiceStart() 312 counter++; in waitForStatsServiceStart()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttribute.java | 701 public final int counter; field in EapSimAkaAttribute.AtCounter 711 this.counter = Short.toUnsignedInt(byteBuffer.getShort()); in AtCounter() 715 public AtCounter(int counter) throws EapSimAkaInvalidAttributeException { in AtCounter() argument 717 this.counter = counter; in AtCounter() 723 byteBuffer.putShort((short) counter); in encode()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | BluetoothPbapVcardList.java | 71 VCardEntryCounter counter = new VCardEntryCounter(); in parse() local 77 parser.addInterpreter(counter); in parse()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppCounterTest.java | 182 final InstalledAppCounterTestable counter = new InstalledAppCounterTestable(installReason); in count() local 184 counter.execute(); in count() 188 counter.executeInForeground(); in count()
|
/packages/services/Car/car-lib/src/android/car/navigation/ |
D | navigation_state.proto | 263 // counter-clockwise roundabout (as seen from above, typical for right-hand 267 // exit") on a counter-clockwise roundabout (as seen from above, typical for 272 // exit") on a counter-clockwise roundabout (as seen from above, typical for 277 // exit") on a counter-clockwise roundabout (as seen from above, typical for 282 // counter-clockwise roundabout (as seen from above, typical for right-hand 286 // exit") on a counter-clockwise roundabout (as seen from above, typical for 291 // exit") on a counter-clockwise roundabout (as seen from above, typical for 296 // exit") on a counter-clockwise roundabout (as seen from above, typical for 301 // counter-clockwise roundabout (as seen from above, typical for right-hand 333 // For example, if the driver is joining a counter-clockwise roundabout
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | rapidjsontest.cpp | 246 ValueCounter counter; in TEST_F() local 247 doc_.Accept(counter); in TEST_F() 248 EXPECT_EQ(4339u, counter.count_); in TEST_F()
|