/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/tests/coretests/src/android/os/ |
D | IdleHandlerTest.java | 68 int mCount; in testOneShotFirst() 72 mCount = 0; in testOneShotFirst() 81 if (mCount == 1) { in testOneShotFirst() 85 "Idle handler called " + mCount + " times")); in testOneShotFirst() 91 mCount++; in testOneShotFirst() 103 int mCount; in testOneShotLater() 107 mCount = 0; in testOneShotLater() 118 if (mCount == 1) { in testOneShotLater() 122 "Idle handler called " + mCount + " times")); in testOneShotLater() 128 mCount++; in testOneShotLater() [all …]
|
D | MessageQueueTest.java | 39 int mCount; field in MessageQueueTest.BaseTestHandler 57 if (mCount <= mLastMessage) { in handleMessage() 58 if (msg.what != mCount) { in handleMessage() 60 "Expected message #" + mCount in handleMessage() 62 } else if (mCount == mLastMessage) { in handleMessage() 65 mCount++; in handleMessage() 81 mCount = 0; in testMessageOrder() 101 mCount = 0; in testAtFrontOfQueue() 121 int mCount; field in MessageQueueTest.TestFieldIntegrityHandler 139 if (mCount <= mLastMessage) { in handleMessage() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | SparseRectFArray.java | 150 if (mCount == 0) { in checkIndex() 153 if (mKeys[mCount - 1] >= key) { in checkIndex() 171 final int requiredIndexArraySize = mCount + 1; in ensureBufferSize() 174 System.arraycopy(mKeys, 0, newArray, 0, mCount); in ensureBufferSize() 177 final int requiredCoordinatesArraySize = (mCount + 1) * 4; in ensureBufferSize() 180 System.arraycopy(mCoordinates, 0, newArray, 0, mCount * 4); in ensureBufferSize() 186 System.arraycopy(mFlagsArray, 0, newArray, 0, mCount); in ensureBufferSize() 208 final int baseCoordinatesIndex = mCount * 4; in append() 213 final int flagsIndex = mCount; in append() 215 mKeys[mCount] = key; in append() [all …]
|
D | InputMethodSubtypeArray.java | 60 mCount = 0; in InputMethodSubtypeArray() 63 mCount = subtypes.size(); in InputMethodSubtypeArray() 64 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray() 75 mCount = source.readInt(); in InputMethodSubtypeArray() 76 if (mCount < 0) { in InputMethodSubtypeArray() 79 if (mCount > 0) { in InputMethodSubtypeArray() 95 if (mCount == 0) { in writeToParcel() 96 dest.writeInt(mCount); in writeToParcel() 122 dest.writeInt(mCount); in writeToParcel() 140 if (index < 0 || mCount <= index) { 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/native/services/surfaceflinger/Utils/ |
D | RingBuffer.h | 35 size_t size() const { return mCount; } in size() 39 if (mCount < SIZE) { in next() 40 mCount++; in next() 50 return mBuffer[(static_cast<size_t>(mHead + 1) + index) % mCount]; 54 return mBuffer[(static_cast<size_t>(mHead + 1) + index) % mCount]; 58 mCount = 0; in clear() 65 size_t mCount = 0; variable
|
/frameworks/base/core/java/android/content/res/ |
D | TagCounter.java | 28 private int mCount; field in TagCounter 32 mCount = 0; in TagCounter() 37 this.mCount = 0; in reset() 41 mCount += 1; in increment() 45 return mCount <= mMaxValue; in isValid()
|
/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/core/java/android/service/autofill/ |
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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
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()
|
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/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() 108 mBuffer[mCount++] = currentByte; in onSend() 113 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend() 115 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/app/ondeviceintelligence/ |
D | TokenInfo.java | 37 private final long mCount; field in TokenInfo 44 this.mCount = count; in TokenInfo() 52 this.mCount = count; in TokenInfo() 60 return mCount; in getCount() 78 dest.writeLong(mCount); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | GroupedAggregatedLogRecords.java | 112 private int mCount; field in GroupedAggregatedLogRecords.AggregatedLogRecord 116 mCount = 1; in AggregatedLogRecord() 130 mCount++; in record() 135 if (mCount == 1) { in dump() 138 if (mCount > 2) { in dump() 139 pw.println("-> Skipping " + (mCount - 2) + " aggregated entries, latest:"); in dump() 146 if (mCount > 1) { in dump()
|
/frameworks/base/core/java/android/database/sqlite/ |
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()
|
/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");
|