/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | IdleHandlerTest.java | 60 int mCount; in testOneShotFirst() 64 mCount = 0; in testOneShotFirst() 83 mCount++; in testOneShotFirst() 94 int mCount; in testOneShotLater() 98 mCount = 0; in testOneShotLater() 119 mCount++; in testOneShotLater() 131 int mCount; in testRepeatedFirst() 135 mCount = 0; in testRepeatedFirst() 154 mCount++; in testRepeatedFirst() 165 int mCount; in testRepeatedLater() [all …]
|
H A D | MessageQueueTest.java | 30 int mCount; field in MessageQueueTest.BaseTestHandler 48 if (mCount <= mLastMessage) { in handleMessage() 49 if (msg.what != mCount) { in handleMessage() 56 mCount++; in handleMessage() 71 mCount = 0; in testMessageOrder() 90 mCount = 0; in testAtFrontOfQueue() 110 int mCount; field in MessageQueueTest.TestFieldIntegrityHandler 128 if (mCount <= mLastMessage) { in handleMessage() 129 if (msg.what != mCount) { in handleMessage() 136 mCount++; in handleMessage() [all …]
|
/aosp14/frameworks/base/libs/hwui/tests/unit/ |
H A D | ThreadBaseTests.cpp | 98 explicit Counter(EventCount* count) : mCount(count) { mCount->construct++; } in TEST() 100 Counter(const Counter& other) : mCount(other.mCount) { in TEST() 101 if (mCount) mCount->copy++; in TEST() 104 Counter(Counter&& other) : mCount(other.mCount) { in TEST() 106 if (mCount) mCount->move++; in TEST() 110 mCount = other.mCount; in TEST() 111 if (mCount) mCount->copy++; in TEST() 116 mCount = other.mCount; in TEST() 118 if (mCount) mCount->move++; in TEST() 123 if (mCount) mCount->destruct++; in TEST() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/utils/ |
H A D | RollingBuffer.java | 27 private int mCount; field in RollingBuffer 50 if (mCount >= mSize) { in add() 56 mCount++; in add() 65 return mCount; in size() 113 mCount -= index; in truncate() 128 mCount = 0; in clear() 141 for (int i = 0; i < mCount; i++) { in toString() 144 if (i + 1 != mCount) { in toString() 155 + mCount); in offsetOf() 170 mEnd = mCount; in expandBuffer() [all …]
|
H A D | History.java | 30 private int mCount; field in History 55 mCount = 0; in History() 72 if (mCount < mSize) { in add() 73 mCount++; in add() 88 for (int i = 0; i < mCount; i++) { in toString() 93 if (i + 1 != mCount) { in toString()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | SparseRectFArray.java | 150 if (mCount == 0) { in checkIndex() 153 if (mKeys[mCount - 1] >= key) { in checkIndex() 213 final int flagsIndex = mCount; in append() 215 mKeys[mCount] = key; in append() 216 ++mCount; in append() 219 private int mCount = 0; field in SparseRectFArray.SparseRectFArrayBuilder 226 return mCount <= 0; in isEmpty() 237 if (mCount == 0) { in reset() 242 mCount = 0; in reset() 247 if (builder.mCount == 0) { in SparseRectFArray() [all …]
|
H A D | InputMethodSubtypeArray.java | 57 mCount = 0; in InputMethodSubtypeArray() 60 mCount = subtypes.size(); in InputMethodSubtypeArray() 72 mCount = source.readInt(); in InputMethodSubtypeArray() 73 if (mCount < 0) { in InputMethodSubtypeArray() 76 if (mCount > 0) { in InputMethodSubtypeArray() 92 if (mCount == 0) { in writeToParcel() 93 dest.writeInt(mCount); in writeToParcel() 119 dest.writeInt(mCount); in writeToParcel() 137 if (index < 0 || mCount <= index) { in get() 167 return mCount; in getCount() [all …]
|
/aosp14/frameworks/base/tests/JankBench/app/src/main/jni/ |
H A D | WorkerPool.cpp | 126 mCount = 0; in WorkerPool() 141 mRunningCount = mCount; in ~WorkerPool() 144 for (uint32_t ct = 0; ct < mCount; ct++) { in ~WorkerPool() 165 mCount = (uint32_t)cpu; in init() 171 mLaunchSignals = new Signal[mCount]; in init() 175 mRunningCount = mCount; in init() 186 for (uint32_t ct=0; ct < mCount; ct++) { in init() 189 mCount = ct; in init() 239 maxThreads = mCount; in launchWork() 241 if ((uint32_t)maxThreads > mCount) { in launchWork() [all …]
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | HandlerActionQueue.java | 30 private int mCount; field in HandlerActionQueue 43 mActions = GrowingArrayUtils.append(mActions, mCount, handlerAction); in postDelayed() 44 mCount++; in postDelayed() 50 final int count = mCount; in removeCallbacks() 71 mCount = j; in removeCallbacks() 83 for (int i = 0, count = mCount; i < count; i++) { in executeActions() 89 mCount = 0; in executeActions() 94 return mCount; in size() 98 if (index >= mCount) { in getRunnable() 105 if (index >= mCount) { in getDelay()
|
/aosp14/system/core/libutils/ |
H A D | VectorImpl.cpp | 50 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl() 60 ALOGW_IF(mCount, in ~VectorImpl() 73 if (rhs.mCount) { in operator =() 75 mCount = rhs.mCount; in operator =() 79 mCount = 0; in operator =() 294 mCount = 0; in finish_vector() 299 _shrink(0, mCount); in clear() 356 if (size > mCount) { in resize() 357 result = insertAt(mCount, size - mCount); in resize() 446 mCount = new_size; in _grow() [all …]
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | RingBuffer.h | 35 size_t size() const { return mCount; } in size() 39 if (mCount < SIZE) { in next() 40 mCount++; in next() 49 T& operator[](size_t index) { return mBuffer[(mHead + index + 1) % mCount]; } 51 const T& operator[](size_t index) const { return mBuffer[(mHead + index + 1) % mCount]; } 54 mCount = 0; in clear() 61 size_t mCount = 0; variable
|
/aosp14/frameworks/base/core/java/android/app/usage/ |
H A D | EventStats.java | 56 public int mCount; field in EventStats 70 mCount = stats.mCount; in EventStats() 114 return mCount; in getCount() 145 mCount += right.mCount; in add() 160 dest.writeInt(mCount); in writeToParcel() 172 stats.mCount = in.readInt();
|
/aosp14/frameworks/base/core/java/android/os/health/ |
H A D | TimerStat.java | 31 private int mCount; field in TimerStat 61 mCount = count; in TimerStat() 70 mCount = in.readInt(); in TimerStat() 85 out.writeInt(mCount); in writeToParcel() 93 mCount = count; in setCount() 100 return mCount; in getCount()
|
H A D | HealthKeys.java | 184 int mCount; field in HealthKeys.SortedIntArray 198 mArray[mCount++] = value; in addValue() 206 if (mCount == mArray.length) { in getArray() 210 final int[] result = new int[mCount]; in getArray() 211 System.arraycopy(mArray, 0, result, 0, mCount); in getArray()
|
/aosp14/frameworks/base/core/java/android/service/autofill/ |
H A D | SavedDatasetsInfo.java | 60 private final int mCount; field in SavedDatasetsInfo 109 this.mCount = count; in SavedDatasetsInfo() 111 IntRange.class, null, mCount, in SavedDatasetsInfo() 130 return mCount; in getCount() 141 "count = " + mCount + in toString() 159 && mCount == that.mCount; in equals() 170 _hash = 31 * _hash + mCount; in hashCode()
|
/aosp14/system/core/libutils/include/utils/ |
H A D | LightRefBase.h | 37 inline LightRefBase() : mCount(0) { } in LightRefBase() 39 mCount.fetch_add(1, std::memory_order_relaxed); in incStrong() 42 if (0 == mCount.fetch_add(1, std::memory_order_relaxed)) { in incStrongRequireStrong() 47 if (mCount.fetch_sub(1, std::memory_order_release) == 1) { in decStrong() 54 return mCount.load(std::memory_order_relaxed); in getStrongCount() 66 mutable std::atomic<int32_t> mCount;
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | KernelWakelockReaderTest.java | 132 assertEquals(34, entry.mCount); in testOneWakelock() 166 assertEquals(2, entry.mCount); in testDuplicateWakelocksAccumulate() 216 assertEquals(20, entry.mCount); in testOneWakeLockInfo() 235 assertEquals(10, entry1.mCount); in testTwoWakeLockInfos() 239 assertEquals(20, entry2.mCount); in testTwoWakeLockInfos() 256 assertEquals(10, entry.mCount); in testWakeLockInfosBecomeStale() 268 assertEquals(20, entry.mCount); in testWakeLockInfosBecomeStale() 301 assertEquals(34, entry.mCount); in testAggregateStatsNoNativeWakelocks() 320 assertEquals(10, entry.mCount); in testAggregateStatsNoKernelWakelocks() 340 assertEquals(34, entry1.mCount); in testAggregateStatsBothKernelAndNativeWakelocks() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NumericTextView.java | 51 private int mCount; field in NumericTextView 76 mCount = 0; in onFocusChanged() 82 if (mCount == 0) { in onFocusChanged() 267 if (mCount > 0) { in handleKeyUp() 269 mCount--; in handleKeyUp() 272 if (mCount < mMaxCount) { in handleKeyUp() 277 mCount++; in handleKeyUp() 285 if (mCount > 0) { in handleKeyUp() 289 formattedValue = String.format("%0" + mCount + "d", mValue); in handleKeyUp() 298 final boolean isFinished = mCount >= mMaxCount || mValue * RADIX > mMaxValue; in handleKeyUp()
|
H A D | GapWorker.java | 69 int mCount; field in GapWorker.LayoutPrefetchRegistryImpl 77 mCount = 0; in collectPrefetchPositionsFromView() 100 if (mCount > layout.mPrefetchMaxCountObserved) { in collectPrefetchPositionsFromView() 101 layout.mPrefetchMaxCountObserved = mCount; in collectPrefetchPositionsFromView() 115 final int storagePosition = mCount * 2; in addPosition() 129 mCount++; in addPosition() 134 final int count = mCount * 2; in lastPrefetchIncludedPosition() 215 totalTaskCount += view.mPrefetchRegistry.mCount; in buildTaskList() 226 for (int j = 0; j < prefetchRegistry.mCount * 2; j += 2) { in buildTaskList() 307 if (innerPrefetchRegistry.mCount != 0) { in prefetchInnerRecyclerViewWithDeadline() [all …]
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 29 private int mCount = 0; field in CountedDataInputStream 40 return mCount; in getReadByteCount() 46 mCount += (r >= 0) ? r : 0; in read() 53 mCount += (r >= 0) ? r : 0; in read() 60 mCount += (r >= 0) ? 1 : 0; in read() 67 mCount += skip; in skip() 76 long cur = mCount; in skipTo()
|
/aosp14/frameworks/base/core/java/com/android/internal/midi/ |
H A D | MidiFramer.java | 39 private int mCount; field in MidiFramer 70 mCount = 1; in onSend() 88 mCount = 1; in onSend() 108 mBuffer[mCount++] = currentByte; in onSend() 113 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend() 115 mCount = 1; in onSend()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | RpmStats.java | 44 e.mCount = count; in getAndUpdatePlatformState() 63 public int mCount; // totalNumberOfTimesVotedSinceBoot field in RpmStats.PowerStateElement 67 this.mCount = count; in PowerStateElement() 74 public int mCount; // totalTransitions field in RpmStats.PowerStatePlatformSleepState 88 e.mCount = count; in putVoter() 108 e.mCount = count; in putState()
|
/aosp14/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteCursor.java | 57 private int mCount = NO_COUNT; field in SQLiteCursor 131 if (mCount == NO_COUNT) { in getCount() 134 return mCount; in getCount() 144 if (mCount == NO_COUNT) { in fillWindow() 145 mCount = mQuery.fillWindow(mWindow, requiredPos, requiredPos, true); in fillWindow() 148 Log.d(TAG, "received count(*) from native_fill_window: " + mCount); in fillWindow() 229 mCount = NO_COUNT; in requery() 246 mCount = NO_COUNT; in setWindow()
|
/aosp14/frameworks/base/core/java/android/database/ |
H A D | BulkCursorToCursorAdaptor.java | 35 private int mCount; field in BulkCursorToCursorAdaptor 45 mCount = d.count; in initialize() 70 return mCount; in getCount() 135 mCount = mBulkCursor.requery(getObserver()); in requery() 136 if (mCount != -1) { in requery()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | UpdateLock.java | 43 int mCount = 0; field in UpdateLock 119 if (!mRefCounted || mCount++ == 0) { in acquireLocked() 144 if (!mRefCounted || --mCount == 0) { in releaseLocked() 154 if (mCount < 0) { in releaseLocked()
|