/frameworks/base/core/tests/coretests/src/android/os/ |
D | IdleHandlerTest.java | 60 int mCount; in testOneShotFirst() 64 mCount = 0; in testOneShotFirst() 73 if (mCount == 1) { in testOneShotFirst() 77 "Idle handler called " + mCount + " times")); in testOneShotFirst() 83 mCount++; in testOneShotFirst() 94 int mCount; in testOneShotLater() 98 mCount = 0; in testOneShotLater() 109 if (mCount == 1) { in testOneShotLater() 113 "Idle handler called " + mCount + " times")); in testOneShotLater() 119 mCount++; in testOneShotLater() [all …]
|
D | MessageQueueTest.java | 30 int mCount; field in MessageQueueTest.BaseTestHandler 48 if (mCount <= mLastMessage) { in handleMessage() 49 if (msg.what != mCount) { in handleMessage() 51 "Expected message #" + mCount in handleMessage() 53 } else if (mCount == mLastMessage) { 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() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
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() 105 other.mCount = nullptr; 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() 117 other.mCount = nullptr; in TEST() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
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() 153 if (index < 0 || index >= mCount) { in offsetOf() 155 + mCount); in offsetOf() [all …]
|
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()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | SparseRectFArray.java | 149 if (mCount == 0) { in checkIndex() 152 if (mKeys[mCount - 1] >= key) { in checkIndex() 170 final int requiredIndexArraySize = mCount + 1; in ensureBufferSize() 173 System.arraycopy(mKeys, 0, newArray, 0, mCount); in ensureBufferSize() 176 final int requiredCoordinatesArraySize = (mCount + 1) * 4; in ensureBufferSize() 179 System.arraycopy(mCoordinates, 0, newArray, 0, mCount * 4); in ensureBufferSize() 185 System.arraycopy(mFlagsArray, 0, newArray, 0, mCount); in ensureBufferSize() 207 final int baseCoordinatesIndex = mCount * 4; in append() 212 final int flagsIndex = mCount; in append() 214 mKeys[mCount] = key; in append() [all …]
|
D | InputMethodSubtypeArray.java | 56 mCount = 0; in InputMethodSubtypeArray() 59 mCount = subtypes.size(); in InputMethodSubtypeArray() 60 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray() 71 mCount = source.readInt(); in InputMethodSubtypeArray() 72 if (mCount > 0) { in InputMethodSubtypeArray() 88 if (mCount == 0) { in writeToParcel() 89 dest.writeInt(mCount); in writeToParcel() 115 dest.writeInt(mCount); in writeToParcel() 133 if (index < 0 || mCount <= index) { in get() 150 instance = new InputMethodSubtype[mCount]; in get() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | WorkerPool.cpp | 126 mCount = 0; in WorkerPool() 141 mRunningCount = mCount; in ~WorkerPool() 144 for (uint32_t ct = 0; ct < mCount; ct++) { in ~WorkerPool() 148 for (uint32_t ct = 0; ct < mCount; ct++) { in ~WorkerPool() 165 mCount = (uint32_t)cpu; in init() 167 __android_log_print(ANDROID_LOG_INFO, "Bench", "ThreadLaunch %i", mCount); in init() 169 mThreadId = (pthread_t *) calloc(mCount, sizeof(pthread_t)); in init() 170 mNativeThreadId = (pid_t *) calloc(mCount, sizeof(pid_t)); in init() 171 mLaunchSignals = new Signal[mCount]; in init() 175 mRunningCount = mCount; in init() [all …]
|
/frameworks/base/core/java/android/view/ |
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()
|
/frameworks/base/libs/hwui/utils/ |
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
|
/frameworks/base/core/java/android/app/usage/ |
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();
|
/frameworks/base/core/java/android/os/health/ |
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()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/ |
D | ReferenceCountedTrigger.java | 30 int mCount; field in ReferenceCountedTrigger 62 if (mCount == 0 && !mFirstIncRunnables.isEmpty()) { in increment() 68 mCount++; in increment() 83 mCount--; in decrement() 84 if (mCount == 0) { in decrement() 86 } else if (mCount < 0) { in decrement() 128 return mCount; in getCount()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | PointerCountClassifier.java | 25 private int mCount; field in PointerCountClassifier 28 mCount = 0; in PointerCountClassifier() 41 mCount = 1; in onTouchEvent() 45 ++mCount; in onTouchEvent() 51 return PointerCountEvaluator.evaluate(mCount); in getFalseTouchEvaluation()
|
D | SpeedAnglesClassifier.java | 94 private float mCount; field in SpeedAnglesClassifier.Data 104 mCount = 1.0f; in Data() 137 mCount += 1.0; in addPoint() 144 final float v = mSumSquares / mCount - (mSum / mCount) * (mSum / mCount); in getAnglesVariance() 147 + " count=" + mCount + " result=" + v); in getAnglesVariance()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
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 …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NumericTextView.java | 50 private int mCount; field in NumericTextView 75 mCount = 0; in onFocusChanged() 81 if (mCount == 0) { in onFocusChanged() 266 if (mCount > 0) { in handleKeyUp() 268 mCount--; in handleKeyUp() 271 if (mCount < mMaxCount) { in handleKeyUp() 276 mCount++; in handleKeyUp() 284 if (mCount > 0) { in handleKeyUp() 288 formattedValue = String.format("%0" + mCount + "d", mValue); in handleKeyUp() 297 final boolean isFinished = mCount >= mMaxCount || mValue * RADIX > mMaxValue; in handleKeyUp()
|
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 …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | AutoSizingList.java | 40 private int mCount; field in AutoSizingList 68 if (mCount != count) { in onMeasure() 70 mCount = count; in onMeasure() 94 for (int i = 0; i < mCount; i++) { in rebindChildren() 105 while (getChildCount() > mCount) { in rebindChildren() 120 if (mCount > getDesiredCount()) { 121 mCount = getDesiredCount();
|
/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiFramer.java | 39 private int mCount; field in MidiFramer 70 mCount = 1; in onSend() 88 mCount = 1; in onSend() 102 mBuffer[mCount++] = currentByte; in onSend() 107 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend() 109 mCount = 1; in onSend()
|
/frameworks/base/core/java/com/android/internal/os/ |
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()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteCursor.java | 57 private int mCount = NO_COUNT; field in SQLiteCursor 139 if (mCount == NO_COUNT) { in getCount() 142 return mCount; in getCount() 152 if (mCount == NO_COUNT) { in fillWindow() 153 mCount = mQuery.fillWindow(mWindow, requiredPos, requiredPos, true); in fillWindow() 156 Log.d(TAG, "received count(*) from native_fill_window: " + mCount); in fillWindow() 237 mCount = NO_COUNT; in requery() 254 mCount = NO_COUNT; in setWindow()
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | TiffEntryImpl.h | 57 uint32_t mCount; variable 66 : mTag(tag), mType(static_cast<uint16_t>(type)), mCount(count), mEnd(end) { in TiffEntryImpl() 77 return mCount; in getCount() 104 uint32_t total = sizeof(T) * mCount; in getActualSize() 128 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); in writeTagInfo() 134 uint32_t count = mCount; in writeTagInfo() 160 uint32_t count = mCount; in writeData() 188 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); in writeTagInfo() 206 for (uint32_t i = 0; i < mCount; ++i) { in writeData()
|
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/ |
D | TestActivity.java | 27 int mCount; field in TestActivity 32 Log.w(TAG, "****** step " + mCount + " resume"); 33 mCount++; 36 Log.w(TAG, "step " + mCount + " pause");
|