/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 | RTLinearAllocatorTest.cpp | 116 int counter = 0; in TEST_F() local 121 pointer->one = counter; in TEST_F() 123 ++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 | BinTreeTest.cpp | 177 int counter = 0; in TEST_F() local 179 ++counter; in TEST_F() 182 ASSERT_EQ(1, counter); in TEST_F() 249 int counter = 0; in TEST_F() local 251 ++counter; in TEST_F() 254 ASSERT_EQ(1, 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/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/base/services/retaildemo/java/com/android/server/retaildemo/ |
D | PreloadAppsInstaller.java | 70 AppInstallCounter counter = new AppInstallCounter(mContext, userId); in installApps() local 72 counter.setExpectedAppsCount(0); in installApps() 83 installExistingPackage(packageName, userId, counter); in installApps() 89 installPackage(file, userId, counter); in installApps() 97 counter.setExpectedAppsCount(expectedCount); in installApps() 101 AppInstallCounter counter) { in installExistingPackage() argument 111 counter.appInstallFinished(); in installExistingPackage() 115 private void installPackage(File file, final int userId, AppInstallCounter counter) in installPackage() argument 133 installExistingPackage(basePackageName, UserHandle.USER_SYSTEM, counter); in installPackage() 139 installExistingPackage(basePackageName, userId, counter); in installPackage() [all …]
|
/frameworks/base/tools/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/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/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 88 fifo_counter_t counter = *descriptor->readCounterAddress; in AudioEndpoint_validateQueueDescriptor() local 90 (int) counter); in AudioEndpoint_validateQueueDescriptor() 91 *descriptor->readCounterAddress = counter; in AudioEndpoint_validateQueueDescriptor() 96 fifo_counter_t counter = *descriptor->writeCounterAddress; in AudioEndpoint_validateQueueDescriptor() local 98 (int) counter); in AudioEndpoint_validateQueueDescriptor() 99 *descriptor->writeCounterAddress = counter; in AudioEndpoint_validateQueueDescriptor()
|
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/ |
D | HistogramPredictor.java | 96 public void setCounter(HashMap<String, HashMap<String, Integer> > counter) { in setCounter() argument 98 mCounter.putAll(counter); in setCounter() 210 HistogramCounter counter = entry.getValue(); in findTopClasses() local 214 HashMap<String, Double> scoreMap = counter.getClassScores(featureValue); in findTopClasses() 280 HistogramCounter counter = mPredictor.get(featureName); in addSample() local 281 counter.addSample(sampleId, featureValue); in addSample() 294 for (HistogramCounter counter : mPredictor.values()) { in resetPredictor() 295 counter.resetCounter(); in resetPredictor() 360 HashMap<String, HashMap<String, Integer> > counter = in loadClassCounter() local 364 for (HashMap<String, Integer> map : counter.values()) { in loadClassCounter()
|
/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/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/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/tests/src/android/support/transition/ |
D | AutoTransitionTest.java | 53 final LayoutCounter counter = new LayoutCounter(); in testLayoutBetweenFadeAndChangeBounds() local 59 mView1.addOnLayoutChangeListener(counter); in testLayoutBetweenFadeAndChangeBounds() 78 counter.reset(); in testLayoutBetweenFadeAndChangeBounds()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcFailBringUp.java | 63 public void saveParameters(int counter, int failCause, int suggestedRetryTime) { in saveParameters() argument 64 mCounter = counter; in saveParameters()
|
/frameworks/av/media/libaudiohal/ |
D | EffectBufferHalHidl.cpp | 36 static std::atomic<uint64_t> counter{1}; in makeUniqueId() local 37 return counter++; in makeUniqueId()
|