Searched refs:counter (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/opt/telephony/tools/
H A Dtdi25 counter="--ei counter $2";
27 echo "counter=$counter"
40 adb shell am broadcast -a com.android.internal.telephony.$the_DC.action_fail_bringup $counter $fail_cause $suggested_retry_time
/frameworks/compile/mclinker/unittests/
H A DFactoriesTest.cpp59 int counter = 0; local
63 ASSERT_EQ(counter, *(*data).data);
66 ++counter;
80 int counter = 0; local
84 ASSERT_EQ(counter, *(*data).data);
87 ++counter;
102 int counter = 0; local
106 ASSERT_EQ(counter, *(*data).data);
109 ++counter;
119 int counter local
166 int counter = 0; local
175 int counter = 0; local
191 int counter = 0; local
[all...]
H A DLinearAllocatorTest.cpp106 int counter = 0;
108 ASSERT_EQ(counter, (*data).one);
109 ++counter;
115 int counter = 0; local
120 pointer->one = counter;
122 ++counter;
127 counter = 0;
129 ASSERT_EQ(counter, (*data).one);
130 ++counter;
H A DRTLinearAllocatorTest.cpp107 int counter = 0;
109 ASSERT_EQ(counter, (*data).one);
110 ++counter;
116 int counter = 0; local
121 pointer->one = counter;
123 ++counter;
128 counter = 0;
130 ASSERT_EQ(counter, (*data).one);
131 ++counter;
H A DHashTableTest.cpp249 int counter = 0; local
252 ++counter;
254 EXPECT_EQ(400000, counter);
271 int counter = 0; local
275 ++counter;
277 EXPECT_EQ(1, counter);
H A DBinTreeTest.cpp177 int counter = 0; local
179 ++counter;
182 ASSERT_EQ(1, counter);
249 int counter = 0; local
251 ++counter;
254 ASSERT_EQ(1, counter);
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DUnnecessaryCalculationTest.java51 assertEquals(1, obja.counter);
52 assertEquals(1, objb.counter);
53 assertEquals(0, objc.counter);
59 assertEquals(1, obja.counter);
60 assertEquals(1, objb.counter);
61 assertEquals(0, objc.counter);
65 int counter = 0; field in class:UnnecessaryCalculationTest.BasicObjWithCounter
69 counter ++;
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/util/
H A DVirtualRefBasePtr_Delegate.java38 long counter = sRefCount.get(ptr);
39 sRefCount.put(ptr, ++counter);
44 long counter = sRefCount.get(ptr);
46 if (counter > 1) {
47 sRefCount.put(ptr, --counter);
/frameworks/base/core/java/com/android/internal/os/
H A DBluetoothPowerCalculator.java40 final BatteryStats.ControllerActivityCounter counter = u.getBluetoothControllerActivity();
41 if (counter == null) {
45 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType);
46 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType);
47 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType);
49 double powerMah = counter.getPowerCounter().getCountLocked(statsType)
69 final BatteryStats.ControllerActivityCounter counter =
72 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType);
73 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType);
74 final long rxTimeMs = counter
[all...]
H A DWifiPowerCalculator.java43 final BatteryStats.ControllerActivityCounter counter = u.getWifiControllerActivity();
44 if (counter == null) {
48 final long idleTime = counter.getIdleTimeCounter().getCountLocked(statsType);
49 final long txTime = counter.getTxTimeCounters()[0].getCountLocked(statsType);
50 final long rxTime = counter.getRxTimeCounter().getCountLocked(statsType);
77 final BatteryStats.ControllerActivityCounter counter = stats.getWifiControllerActivity();
79 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType);
80 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType);
81 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType);
86 double powerDrainMah = counter
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListItemFocusablesFarApartTest.java86 int counter = 0;
89 if (counter > 5) fail("couldn't reach next button within " + counter + " downs");
92 assertFalse("after " + counter + " downs, top button not visible, should not have focus",
94 assertFalse("after " + counter + " downs, neither top button nor botom button visible, nothng within first list " +
97 assertTrue("after " + counter + " downs, top button still visible, should have focus",
101 assertEquals("after " + counter + " downs, " +
107 counter++;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DAverageFilter.java34 private int counter = 0; field in class:AverageFilter
57 if (counter < NUM_FRAMES && counter >= 0) {
58 temp[counter] = ((Float)inFrameValue.getValue()).floatValue();
61 counter = (counter + 1) % NUM_FRAMES;
/frameworks/base/test-runner/src/android/test/
H A DSyncBaseInstrumentation.java62 int counter = 0;
65 while (counter < 2) {
74 counter = 0;
77 counter++;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcFailBringUp.java35 // counter with its --ei option name and default value
36 static final String COUNTER = "counter";
63 public void saveParameters(int counter, int failCause, int suggestedRetryTime) { argument
64 mCounter = counter;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dchvr_filter.cpp35 int index, counter; local
84 for (br = mbr + 1; br < mbr + 3; br++) /* br is the row counter in blocks */
91 for (bc = mbc; bc < mbc + 2; bc++) /* bc is the column counter in blocks */
153 for (counter = 0; counter < 5; counter++)
156 sum = sum - v[counter] + *ptr_n;
248 for (br = mbr; br < mbr + 2; br++) /* br is the row counter in blocks */
250 for (bc = mbc + 1; bc < mbc + 3; bc++) /* bc is the column counter in blocks */
311 for (counter
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphExporter.java73 int counter = 0;
76 if(++counter != inputPorts.size()) dotFile.write(" | ");
88 int counter = 0;
91 if(++counter != outputPorts.size()) dotFile.write(" | ");
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
H A DHistogramPredictor.java96 public void setCounter(HashMap<String, HashMap<String, Integer> > counter) { argument
98 mCounter.putAll(counter);
210 HistogramCounter counter = entry.getValue();
214 HashMap<String, Double> scoreMap = counter.getClassScores(featureValue);
280 HistogramCounter counter = mPredictor.get(featureName);
281 counter.addSample(sampleId, featureValue);
294 for (HistogramCounter counter : mPredictor.values()) {
295 counter.resetCounter();
360 HashMap<String, HashMap<String, Integer> > counter =
364 for (HashMap<String, Integer> map : counter
[all...]
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestGetPositionUri.cpp148 SLuint16 counter = 0; local
269 while ((counter*1000) < durationInMsec) {
270 counter++;
275 counter);
278 fprintf(stderr, "position is %dms %ds after start\n", posInMsec, counter);
283 if (((SLint32)posInMsec > (counter*1000 + TIME_TOLERANCE_MS)) ||
284 ((SLint32)posInMsec < (counter*1000 - TIME_TOLERANCE_MS))) {
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DExprModel.java309 int counter = 0;
316 expr.setId(counter++);
326 expr.setId(counter++);
343 parent.setId(counter++);
360 fieldAccessExpr.setId(counter++);
381 mInvalidateAnyFlagIndex = counter ++;
383 mInvalidateableFieldLimit = counter;
392 L.d("requirement id for %s is %d", expr, counter);
393 expr.setRequirementId(counter);
396 counter
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DHealthStatsBatteryStatsWriter.java169 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) {
170 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED);
188 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) {
189 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED);
207 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) {
208 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED);
434 final BatteryStats.Counter counter = entry.getValue();
435 if (counter != null) {
437 entry.getKey(), counter.getCountLocked(STATS_SINCE_UNPLUGGED));
/frameworks/av/media/libstagefright/foundation/
H A DADebug.cpp158 // calculate initial counter value based on serial number
179 // MINOR: use modulo for counter and time, so that their sum does not
182 time_t counter = (time(NULL) / timeDivisor) % modulo + plus + serialNum % modulo;
183 bool enable = allow && (counter % modulo < limit);
/frameworks/native/libs/gui/
H A DBufferQueueCore.cpp42 static volatile int32_t counter = 0; local
44 android_atomic_inc(&counter));
48 static std::atomic<uint32_t> counter{0};
50 return id | counter++;
/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeToBuffQueue.cpp67 static int counter=0; variable
176 counter++;
180 if (counter % 1000 == 0) {
184 printf("DecPlayCallback called (iteration %d): current position=%u ms\n", counter, msec);
/frameworks/compile/mclinker/lib/Core/
H A DLinker.cpp107 static int counter = 0; local
114 mcld::outs() << counter++ << " * " << (*input)->name();
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c215 * Calculates the counter, treated as a 16-byte little-endian number, used to generate the keystream
220 * @param[out] pCounter A reference to the counter.
239 * Decrypts the byte at the current file position using AES-128-CTR. In CTR (or "counter") mode,
250 unsigned char counter[AES_BLOCK_SIZE]; local
251 FwdLockFile_CalculateCounter(pSession->pEncryptedSessionKey, blockIndex, counter);
252 AES_encrypt(counter, pSession->keyStream, &pSession->encryptionRoundKeys);

Completed in 2442 milliseconds

12