Home
last modified time | relevance | path

Searched defs:counter (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongMultiStateCounterTest.java42 LongMultiStateCounter counter = new LongMultiStateCounter(2); in setStateAndUpdateValue() local
58 LongMultiStateCounter counter = new LongMultiStateCounter(2); in setEnabled() local
86 LongMultiStateCounter counter = new LongMultiStateCounter(2); in updateThenSetState_timestampOutOfOrder() local
108 LongMultiStateCounter counter = new LongMultiStateCounter(2); in disableThenUpdate_timestampOutOfOrder() local
129 LongMultiStateCounter counter = new LongMultiStateCounter(2); in updateThenEnable_timestampOutOfOrder() local
153 LongMultiStateCounter counter = new LongMultiStateCounter(2); in reset() local
172 LongMultiStateCounter counter = new LongMultiStateCounter(2); in parceling() local
DLongArrayMultiStateCounterTest.java42 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in setStateAndUpdateValue() local
74 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in setValue() local
84 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in setEnabled() local
112 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in reset() local
131 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in parceling() local
169 private void updateValue(LongArrayMultiStateCounter counter, long[] values, int timestamp) { in updateValue()
176 private void assertCounts(LongArrayMultiStateCounter counter, int state, long[] expected) { in assertCounts()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSlidingWindowEventCounterTest.java41 SlidingWindowEventCounter counter = new SlidingWindowEventCounter(100, 3); in test_returnsTrue_ifEnoughEntriesInWindow() local
50 SlidingWindowEventCounter counter = new SlidingWindowEventCounter(100, 3); in test_returnsTrue_ifMoreThanEnoughEntriesInWindow() local
62 SlidingWindowEventCounter counter = new SlidingWindowEventCounter(100, 3); in test_returnsFalse_ifNotEnoughEntriesInWindow() local
71 SlidingWindowEventCounter counter = new SlidingWindowEventCounter(100, 3); in test_returnsFalse_ifEnoughEntriesButTooFarApart() local
/frameworks/base/core/jni/
Dcom_android_internal_os_LongArrayMultiStateCounter.cpp31 battery::LongArrayMultiStateCounter *counter = in native_init() local
37 battery::LongArrayMultiStateCounter *counter = in native_dispose() local
47 battery::LongArrayMultiStateCounter *counter = in native_setEnabled() local
53 battery::LongArrayMultiStateCounter *counter = in native_setState() local
67 battery::LongArrayMultiStateCounter *counter = in native_setValues() local
77 battery::LongArrayMultiStateCounter *counter = in native_updateValues() local
87 battery::LongArrayMultiStateCounter *counter = in native_incrementValues() local
96 battery::LongArrayMultiStateCounter *counter = in native_addCounts() local
104 battery::LongArrayMultiStateCounter *counter = in native_reset() local
110 battery::LongArrayMultiStateCounter *counter = in native_getCounts() local
[all …]
Dcom_android_internal_os_LongMultiStateCounter.cpp63 battery::LongMultiStateCounter *counter = new battery::LongMultiStateCounter(stateCount, 0); in native_init() local
123 battery::LongMultiStateCounter *counter = asLongMultiStateCounter(nativePtr); in native_writeToParcel() local
160 auto counter = std::make_unique<battery::LongMultiStateCounter>(stateCount, 0); in native_initFromParcel() local
/frameworks/av/media/libaaudio/tests/
Dtest_monotonic_counter.cpp38 MonotonicCounter counter; in TEST() local
54 MonotonicCounter counter; in TEST() local
64 MonotonicCounter counter; in TEST() local
73 MonotonicCounter counter; in TEST() local
82 MonotonicCounter counter; in TEST() local
/frameworks/av/drm/libmediadrm/
DDrmMetrics.cpp95 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
103 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
111 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
119 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
127 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
135 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
143 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
/frameworks/compile/mclinker/unittests/
DFactoriesTest.cpp59 int counter = 0; in TEST_F() local
80 int counter = 0; in TEST_F() local
102 int counter = 0; in TEST_F() local
119 int counter = 0; in TEST_F() local
166 int counter = 0; in TEST_F() local
175 int counter = 0; in TEST_F() local
191 int counter = 0; in TEST_F() local
/frameworks/libs/systemui/tracinglib/demo/src/com/android/app/tracing/demo/experiments/
DUtil.kt23 private val counter = AtomicInteger() in <lambda>() constant
/frameworks/base/apct-tests/perftests/core/src/android/os/
DLongArrayMultiStateCounterPerfTest.java129 private void add(long[] counter, long[] delta, long numerator, long denominator) { in add()
144 TestLongArrayMultiStateCounter counter = in javaImplementation() local
159 LongArrayMultiStateCounter counter = new LongArrayMultiStateCounter(2, 4); in nativeImplementation() local
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/
DApiCounterTest.kt37 private val counter = ApiCounter(RESET_INTERVAL_MS, MAX_CALLS_PER_INTERVAL) { currentTime } in <lambda>() constant
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DKeyedObserverTest.kt76 val counter = AtomicInteger() in <lambda>() constant
94 val counter = AtomicInteger() in <lambda>() constant
DObserverTest.kt57 val counter = AtomicInteger() in addObserver_weaklyReferenced() constant
/frameworks/base/core/java/com/android/internal/os/
DKernelSingleUidTimeReader.java249 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs) { in addDelta()
257 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta()
276 public boolean addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta()
292 public boolean addDeltaForTest(int uid, LongArrayMultiStateCounter counter, in addDeltaForTest()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphExporter.java73 int counter = 0; in exportAsDot() local
88 int counter = 0; in exportAsDot() local
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DAccessibilityTest.java156 int[] counter = {0}; in testDialogAccessibility() local
170 private void traverseAccessibilityTree(AccessibilityNodeInfo node, int[] counter) { in traverseAccessibilityTree()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DSystemServiceManagerTest.java68 AtomicInteger counter = new AtomicInteger(0); in testDuplicateServices() local
/frameworks/av/media/module/bufferpool/2.0/tests/
Dallocator.h32 int counter = 0; member
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCounterTest.java37 final BatteryStatsImpl.Counter counter = new BatteryStatsImpl.Counter(timeBase); in testCounter() local
/frameworks/av/media/libaaudio/src/utility/
DMonotonicCounter.h51 void catchUpTo(int64_t counter) { in catchUpTo()
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp78 fifo_counter_t counter = *descriptor->readCounterAddress; in AudioEndpoint_validateQueueDescriptor() local
86 fifo_counter_t counter = *descriptor->writeCounterAddress; in AudioEndpoint_validateQueueDescriptor() local
/frameworks/base/test-runner/src/android/test/
DSyncBaseInstrumentation.java62 int counter = 0; in syncProvider() local
/frameworks/base/libs/androidfw/
DResourceTimer.cpp100 bool ResourceTimer::copy(int counter, Timer &dst, bool reset) { in copy()
254 char const *ResourceTimer::toString(ResourceTimer::Counter counter) { in toString()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DAverageFilter.java34 private int counter = 0; field in AverageFilter
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java421 LongMultiStateCounter counter = in updateEntry() local
453 LongMultiStateCounter counter = mAccumulatedMultiStateChargeMicroCoulomb[i]; in setState() local
488 final LongMultiStateCounter counter = mAccumulatedMultiStateChargeMicroCoulomb[bucket]; in getAccumulatedStandardBucketCharge() local
650 final LongMultiStateCounter counter = in dump() local

1234