/frameworks/compile/mclinker/unittests/ |
D | FactoriesTest.cpp | 59 int counter = 0; in TEST_F() local 63 ASSERT_EQ(counter, *(*data).data); in TEST_F() 66 ++counter; in TEST_F() 80 int counter = 0; in TEST_F() local 84 ASSERT_EQ(counter, *(*data).data); in TEST_F() 87 ++counter; in TEST_F() 102 int counter = 0; in TEST_F() local 106 ASSERT_EQ(counter, *(*data).data); in TEST_F() 109 ++counter; in TEST_F() 119 int counter = 0; in TEST_F() local [all …]
|
D | HashTableTest.cpp | 249 int counter = 0; in TEST_F() local 252 ++counter; in TEST_F() 254 EXPECT_EQ(400000, counter); in TEST_F() 271 int counter = 0; in TEST_F() local 275 ++counter; in TEST_F() 277 EXPECT_EQ(1, counter); in TEST_F()
|
D | LinearAllocatorTest.cpp | 115 int counter = 0; in TEST_F() local 120 pointer->one = counter; in TEST_F() 122 ++counter; in TEST_F()
|
D | RTLinearAllocatorTest.cpp | 116 int counter = 0; in TEST_F() local 121 pointer->one = counter; in TEST_F() 123 ++counter; in TEST_F()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCounterTest.java | 35 final BatteryStatsImpl.Counter counter = new BatteryStatsImpl.Counter(timeBase); in testCounter() local 39 counter.stepAtomic(); in testCounter() 40 counter.stepAtomic(); in testCounter() 41 counter.stepAtomic(); in testCounter() 42 counter.stepAtomic(); in testCounter() 43 counter.stepAtomic(); in testCounter() 44 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter() 45 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter() 46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter() 50 counter.stepAtomic(); in testCounter() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BluetoothPowerCalculator.java | 40 final BatteryStats.ControllerActivityCounter counter = u.getBluetoothControllerActivity(); in calculateApp() local 41 if (counter == null) { in calculateApp() 45 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 46 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 47 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 49 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateApp() 69 final BatteryStats.ControllerActivityCounter counter = in calculateRemaining() local 72 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() 73 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining() 74 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining() [all …]
|
D | WifiPowerCalculator.java | 43 final BatteryStats.ControllerActivityCounter counter = u.getWifiControllerActivity(); in calculateApp() local 44 if (counter == null) { in calculateApp() 48 final long idleTime = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 49 final long txTime = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 50 final long rxTime = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 77 final BatteryStats.ControllerActivityCounter counter = stats.getWifiControllerActivity(); in calculateRemaining() local 79 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() 80 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining() 81 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining() 86 double powerDrainMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining()
|
/frameworks/av/drm/libmediadrm/ |
D | DrmMetrics.cpp | 64 void ExportCounterMetric(const android::CounterMetric<T> &counter, in ExportCounterMetric() argument 70 std::string success_count_name = counter.metric_name() + ".ok.count"; in ExportCounterMetric() 71 std::string error_count_name = counter.metric_name() + ".error.count"; in ExportCounterMetric() 73 counter.ExportValues( in ExportCounterMetric() 88 std::string error_list_name = counter.metric_name() + ".error.list"; in ExportCounterMetric() 96 const android::CounterMetric<T> &counter, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument 101 counter.ExportValues([&](const T &attribute, const int64_t value) { in ExportCounterMetricWithAttributeNames() 102 std::string name = counter.metric_name() + "." + in ExportCounterMetricWithAttributeNames() 268 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local 270 counter->set_count(value); in GetSerializedMetrics() [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | UnnecessaryCalculationTest.java | 51 assertEquals(1, obja.counter); in testDontSetUnnecessaryFlags() 52 assertEquals(1, objb.counter); in testDontSetUnnecessaryFlags() 53 assertEquals(0, objc.counter); in testDontSetUnnecessaryFlags() 59 assertEquals(1, obja.counter); in testDontSetUnnecessaryFlags() 60 assertEquals(1, objb.counter); in testDontSetUnnecessaryFlags() 61 assertEquals(0, objc.counter); in testDontSetUnnecessaryFlags() 65 int counter = 0; field in UnnecessaryCalculationTest.BasicObjWithCounter 69 counter ++; in boolMethod()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListItemFocusablesFarApartTest.java | 86 int counter = 0; in testPanWhenNextFocusableTooFarDown() local 89 if (counter > 5) fail("couldn't reach next button within " + counter + " downs"); in testPanWhenNextFocusableTooFarDown() 92 … assertFalse("after " + counter + " downs, top button not visible, should not have focus", in testPanWhenNextFocusableTooFarDown() 94 …assertFalse("after " + counter + " downs, neither top button nor botom button visible, nothng with… in testPanWhenNextFocusableTooFarDown() 97 … assertTrue("after " + counter + " downs, top button still visible, should have focus", in testPanWhenNextFocusableTooFarDown() 101 assertEquals("after " + counter + " downs, " + in testPanWhenNextFocusableTooFarDown() 107 counter++; in testPanWhenNextFocusableTooFarDown()
|
/frameworks/layoutlib/bridge/src/com/android/internal/util/ |
D | VirtualRefBasePtr_Delegate.java | 38 long counter = sRefCount.get(ptr); in nIncStrong() local 39 sRefCount.put(ptr, ++counter); in nIncStrong() 44 long counter = sRefCount.get(ptr); in nDecStrong() local 46 if (counter > 1) { in nDecStrong() 47 sRefCount.put(ptr, --counter); in nDecStrong()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | AverageFilter.java | 34 private int counter = 0; field in AverageFilter 57 if (counter < NUM_FRAMES && counter >= 0) { in onProcess() 58 temp[counter] = ((Float)inFrameValue.getValue()).floatValue(); in onProcess() 61 counter = (counter + 1) % NUM_FRAMES; in onProcess()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | NetworkWatchlistServiceTests.java | 81 int counter = 0; field in NetworkWatchlistServiceTests.TestIIpConnectivityMetrics 97 counter++; in addNetdEventCallback() 104 counter--; in removeNetdEventCallback() 146 assertEquals(connectivityMetrics.counter, 0); in testStartStopWatchlistLogging() 149 assertEquals(connectivityMetrics.counter, 1); in testStartStopWatchlistLogging() 151 assertEquals(connectivityMetrics.counter, 1); in testStartStopWatchlistLogging() 153 assertEquals(connectivityMetrics.counter, 0); in testStartStopWatchlistLogging() 155 assertEquals(connectivityMetrics.counter, 0); in testStartStopWatchlistLogging() 157 assertEquals(connectivityMetrics.counter, 1); in testStartStopWatchlistLogging() 159 assertEquals(connectivityMetrics.counter, 0); in testStartStopWatchlistLogging()
|
/frameworks/base/test-runner/src/android/test/ |
D | SyncBaseInstrumentation.java | 62 int counter = 0; in syncProvider() local 65 while (counter < 2) { in syncProvider() 74 counter = 0; in syncProvider() 77 counter++; in syncProvider()
|
/frameworks/opt/telephony/tools/ |
D | tdi | 25 counter="--ei counter $2"; 27 echo "counter=$counter" 40 …adb shell am broadcast -a com.android.internal.telephony.$the_DC.action_fail_bringup $counter $fai…
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | TaskManagerBench.cpp | 97 atomic_int counter(0); in BM_Thread_enqueueTask() local 101 thread->queue().post([&counter]() { counter++; }); in BM_Thread_enqueueTask() 107 if (counter != expected) { in BM_Thread_enqueueTask() 108 printf("Ran %d lambads, should have been %d\n", counter.load(), expected); in BM_Thread_enqueueTask()
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 92 fifo_counter_t counter = *descriptor->readCounterAddress; in AudioEndpoint_validateQueueDescriptor() local 94 (int) counter); in AudioEndpoint_validateQueueDescriptor() 95 *descriptor->readCounterAddress = counter; in AudioEndpoint_validateQueueDescriptor() 100 fifo_counter_t counter = *descriptor->writeCounterAddress; in AudioEndpoint_validateQueueDescriptor() local 102 (int) counter); in AudioEndpoint_validateQueueDescriptor() 103 *descriptor->writeCounterAddress = counter; in AudioEndpoint_validateQueueDescriptor()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | chvr_filter.cpp | 35 int index, counter; in CombinedHorzVertRingFilter() local 153 for (counter = 0; counter < 5; counter++) in CombinedHorzVertRingFilter() 156 sum = sum - v[counter] + *ptr_n; in CombinedHorzVertRingFilter() 311 for (counter = 0; counter < 5; counter++) in CombinedHorzVertRingFilter() 314 sum = sum - v[counter] + *ptr_n; in CombinedHorzVertRingFilter()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 176 for (const auto& counter : mPastBuckets) { in onDumpReportLocked() local 177 const MetricDimensionKey& dimensionKey = counter.first; in onDumpReportLocked() 207 for (const auto& bucket : counter.second) { in onDumpReportLocked() 328 for (const auto& counter : *mCurrentSlicedCounter) { in flushCurrentBucketLocked() 329 info.mCount = counter.second; in flushCurrentBucketLocked() 330 auto& bucketList = mPastBuckets[counter.first]; in flushCurrentBucketLocked() 333 counter.first.toString().c_str(), in flushCurrentBucketLocked() 334 (long long)counter.second); in flushCurrentBucketLocked()
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestGetPositionUri.cpp | 148 SLuint16 counter = 0; in TestGetPositionUri() local 269 while ((counter*1000) < durationInMsec) { in TestGetPositionUri() 270 counter++; in TestGetPositionUri() 275 counter); in TestGetPositionUri() 278 fprintf(stderr, "position is %dms %ds after start\n", posInMsec, counter); in TestGetPositionUri() 283 if (((SLint32)posInMsec > (counter*1000 + TIME_TOLERANCE_MS)) || in TestGetPositionUri() 284 ((SLint32)posInMsec < (counter*1000 - TIME_TOLERANCE_MS))) { in TestGetPositionUri()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | ExprModel.java | 358 int counter = 0; 365 expr.setId(counter++); 375 expr.setId(counter++); 394 parent.setId(counter++); 411 fieldAccessExpr.setId(counter++); 432 mInvalidateAnyFlagIndex = counter ++; 434 mInvalidateableFieldLimit = counter; 443 L.d("requirement id for %s is %d", expr, counter); 444 expr.setRequirementId(counter); 447 counter += 2; [all …]
|
/frameworks/av/media/libaaudio/src/utility/ |
D | MonotonicCounter.h | 46 void set(int64_t counter) { in set() argument 47 mCounter64 = counter; in set()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 170 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) { in writeUid() 171 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 189 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) { in writeUid() 190 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 208 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) { in writeUid() 209 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 434 final BatteryStats.Counter counter = entry.getValue(); in writePkg() local 435 if (counter != null) { in writePkg() 437 entry.getKey(), counter.getCountLocked(STATS_SINCE_UNPLUGGED)); in writePkg()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | GraphExporter.java | 73 int counter = 0; in exportAsDot() local 76 if(++counter != inputPorts.size()) dotFile.write(" | "); in exportAsDot() 88 int counter = 0; in exportAsDot() local 91 if(++counter != outputPorts.size()) dotFile.write(" | "); in exportAsDot()
|
/frameworks/support/transition/src/androidTest/java/androidx/transition/ |
D | AutoTransitionTest.java | 55 final LayoutCounter counter = new LayoutCounter(); in testLayoutBetweenFadeAndChangeBounds() local 61 mView1.addOnLayoutChangeListener(counter); in testLayoutBetweenFadeAndChangeBounds() 80 counter.reset(); in testLayoutBetweenFadeAndChangeBounds()
|