Home
last modified time | relevance | path

Searched refs:mCount (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/os/
DIdleHandlerTest.java61 int mCount; in testOneShotFirst()
65 mCount = 0; in testOneShotFirst()
74 if (mCount == 1) { in testOneShotFirst()
78 "Idle handler called " + mCount + " times")); in testOneShotFirst()
84 mCount++; in testOneShotFirst()
95 int mCount; in testOneShotLater()
99 mCount = 0; in testOneShotLater()
110 if (mCount == 1) { in testOneShotLater()
114 "Idle handler called " + mCount + " times")); in testOneShotLater()
120 mCount++; in testOneShotLater()
[all …]
DMessageQueueTest.java32 int mCount; field in MessageQueueTest.BaseTestHandler
50 if (mCount <= mLastMessage) { in handleMessage()
51 if (msg.what != mCount) { in handleMessage()
53 "Expected message #" + mCount in handleMessage()
55 } else if (mCount == mLastMessage) { in handleMessage()
58 mCount++; in handleMessage()
73 mCount = 0; in testMessageOrder()
92 mCount = 0; in testAtFrontOfQueue()
112 int mCount; field in MessageQueueTest.TestFieldIntegrityHandler
130 if (mCount <= mLastMessage) { in handleMessage()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DSparseRectFArray.java149 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 …]
DInputMethodSubtypeArray.java54 mCount = 0; in InputMethodSubtypeArray()
57 mCount = subtypes.size(); in InputMethodSubtypeArray()
58 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
69 mCount = source.readInt(); in InputMethodSubtypeArray()
70 if (mCount > 0) { in InputMethodSubtypeArray()
86 if (mCount == 0) { in writeToParcel()
87 dest.writeInt(mCount); in writeToParcel()
113 dest.writeInt(mCount); in writeToParcel()
131 if (index < 0 || mCount <= index) { in get()
148 instance = new InputMethodSubtype[mCount]; in get()
[all …]
/frameworks/base/core/java/android/view/
DHandlerActionQueue.java32 private int mCount; field in HandlerActionQueue
45 mActions = GrowingArrayUtils.append(mActions, mCount, handlerAction); in postDelayed()
46 mCount++; in postDelayed()
52 final int count = mCount; in removeCallbacks()
73 mCount = j; in removeCallbacks()
85 for (int i = 0, count = mCount; i < count; i++) { in executeActions()
91 mCount = 0; in executeActions()
96 return mCount; in size()
100 if (index >= mCount) { in getRunnable()
107 if (index >= mCount) { in getDelay()
/frameworks/base/libs/hwui/utils/
DRingBuffer.h35 size_t size() const { return mCount; } in size()
39 if (mCount < SIZE) { in next()
40 mCount++; in next()
54 return mBuffer[(mHead + index + 1) % mCount];
58 return mBuffer[(mHead + index + 1) % mCount];
62 mCount = 0; in clear()
69 size_t mCount = 0; variable
/frameworks/base/core/java/android/os/health/
DTimerStat.java31 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()
DHealthKeys.java184 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DReferenceCountedTrigger.java30 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()
DNamedCounter.java24 int mCount; field in NamedCounter
35 String name = mPrefix + mCount + mSuffix; in nextName()
36 mCount++; in nextName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DPointerCountClassifier.java25 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()
DSpeedAnglesClassifier.java88 private float mCount; field in SpeedAnglesClassifier.Data
98 mCount = 1.0f; in Data()
131 mCount += 1.0; in addPoint()
138 return mSumSquares / mCount - (mSum / mCount) * (mSum / mCount); in getAnglesVariance()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java49 private int mCount; field in NumericTextView
73 mCount = 0; in onFocusChanged()
79 if (mCount == 0) { in onFocusChanged()
264 if (mCount > 0) { in handleKeyUp()
266 mCount--; in handleKeyUp()
269 if (mCount < mMaxCount) { in handleKeyUp()
274 mCount++; in handleKeyUp()
282 if (mCount > 0) { in handleKeyUp()
286 formattedValue = String.format("%0" + mCount + "d", mValue); in handleKeyUp()
295 final boolean isFinished = mCount >= mMaxCount || mValue * RADIX > mMaxValue; in handleKeyUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoSizingList.java39 private int mCount; field in AutoSizingList
64 if (mCount != count) { in onMeasure()
66 mCount = count; in onMeasure()
84 for (int i = 0; i < mCount; i++) { in rebindChildren()
95 while (getChildCount() > mCount) { in rebindChildren()
110 if (mCount > getDesiredCount()) {
111 mCount = getDesiredCount();
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DCountedDataInputStream.java29 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java90 private int mCount = 0; field in ItemGroup
145 return mCount; in getCount()
186 mCount = 0; in updateDataIfNeeded()
191 mHierarchyStart.put(itemIndex, mCount); in updateDataIfNeeded()
193 mCount += item.getCount(); in updateDataIfNeeded()
206 if (position < 0 || position >= mCount) { in getItemIndex()
207 throw new IndexOutOfBoundsException("size=" + mCount + "; index=" + position); in getItemIndex()
/frameworks/base/core/java/com/android/internal/midi/
DMidiFramer.java39 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/android/database/sqlite/
DSQLiteCursor.java52 private int mCount = NO_COUNT; field in SQLiteCursor
131 if (mCount == NO_COUNT) { in getCount()
134 return mCount; in getCount()
141 if (mCount == NO_COUNT) { in fillWindow()
143 mCount = mQuery.fillWindow(mWindow, startPos, requiredPos, true); in fillWindow()
146 Log.d(TAG, "received count(*) from native_fill_window: " + mCount); in fillWindow()
227 mCount = NO_COUNT; in requery()
244 mCount = NO_COUNT; in setWindow()
/frameworks/av/media/img_utils/include/img_utils/
DTiffEntryImpl.h57 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/base/packages/DocumentsUI/src/com/android/documentsui/
DFilteringCursorWrapper.java37 private int mCount; field in FilteringCursorWrapper
55 while (cursor.moveToNext() && mCount < count) { in FilteringCursorWrapper()
65 mPosition[mCount++] = cursor.getPosition(); in FilteringCursorWrapper()
69 if (DEBUG && mCount != cursor.getCount()) { in FilteringCursorWrapper()
70 Log.d(TAG, "Before filtering " + cursor.getCount() + ", after " + mCount); in FilteringCursorWrapper()
97 return mCount; in getCount()
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/
DTestActivity.java27 int mCount; field in TestActivity
32 Log.w(TAG, "****** step " + mCount + " resume");
33 mCount++;
36 Log.w(TAG, "step " + mCount + " pause");
/frameworks/base/core/java/android/database/
DBulkCursorToCursorAdaptor.java35 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()
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DGridTest.java32 int mCount; field in GridTest.Provider
37 mCount = items.length; in Provider()
38 mEdges = new int[mCount]; in Provider()
43 return mCount; in getCount()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryCounter.java22 private int mCount; field in VCardEntryCounter
25 return mCount; in getCount()
42 mCount++; in onEntryEnded()
/frameworks/base/core/java/android/os/
DUpdateLock.java42 int mCount = 0; field in UpdateLock
113 if (!mRefCounted || mCount++ == 0) { in acquireLocked()
137 if (!mRefCounted || --mCount == 0) { in releaseLocked()
147 if (mCount < 0) { in releaseLocked()

1234