Home
last modified time | relevance | path

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

123

/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.java30 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/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.java59 mCount = 0; in InputMethodSubtypeArray()
62 mCount = subtypes.size(); in InputMethodSubtypeArray()
63 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
74 mCount = source.readInt(); in InputMethodSubtypeArray()
75 if (mCount > 0) { in InputMethodSubtypeArray()
91 if (mCount == 0) { in writeToParcel()
92 dest.writeInt(mCount); in writeToParcel()
118 dest.writeInt(mCount); in writeToParcel()
136 if (index < 0 || mCount <= index) { in get()
153 instance = new InputMethodSubtype[mCount]; in get()
[all …]
/frameworks/base/core/java/android/net/http/
DIdleCache.java48 private int mCount = 0; field in IdleCache
72 HttpLog.v("IdleCache size " + mCount + " host " + host); in cacheConnection()
75 if (mCount < IDLE_CACHE_MAX) { in cacheConnection()
83 mCount++; in cacheConnection()
100 if (mCount > 0) { in getConnection()
108 mCount--; in getConnection()
118 for (int i = 0; mCount > 0 && i < IDLE_CACHE_MAX; i++) { in clear()
124 mCount--; in clear()
130 if (mCount > 0) { in clearIdle()
138 mCount--; in clearIdle()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DReferenceCountedTrigger.java32 int mCount; field in ReferenceCountedTrigger
61 if (mCount == 0 && !mFirstIncRunnables.isEmpty()) { in increment()
67 mCount++; in increment()
79 boolean ensureLastDecrement = (mCount == 0); in addLastDecrementRunnable()
87 mCount--; in decrement()
88 if (mCount == 0 && !mLastDecRunnables.isEmpty()) { in decrement()
93 } else if (mCount < 0) { in decrement()
119 return mCount;
DNamedCounter.java24 int mCount; field in NamedCounter
35 String name = mPrefix + mCount + mSuffix; in nextName()
36 mCount++; in nextName()
/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/base/core/java/android/database/sqlite/
DSQLiteCursor.java52 private int mCount = NO_COUNT; field in SQLiteCursor
132 if (mCount == NO_COUNT) { in getCount()
135 return mCount; in getCount()
142 if (mCount == NO_COUNT) { in fillWindow()
144 mCount = mQuery.fillWindow(mWindow, startPos, requiredPos, true); in fillWindow()
147 Log.d(TAG, "received count(*) from native_fill_window: " + mCount); in fillWindow()
228 mCount = NO_COUNT; in requery()
245 mCount = NO_COUNT; in setWindow()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java572 private int mCount; field in AutomaticBrightnessController.AmbientLightRingBuffer
594 if (mCount == mCapacity) { in push()
619 mCount++; in push()
623 if (mCount == 0) { in prune()
627 while (mCount > 1) { in prune()
643 mCount -= 1; in prune()
652 return mCount; in size()
656 return mCount == 0; in isEmpty()
662 mCount = 0; in clear()
668 float[] lux = new float[mCount]; in toString()
[all …]
/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/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/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/database/
DBulkCursorToCursorAdaptor.java35 private int mCount; field in BulkCursorToCursorAdaptor
46 mCount = d.count; in initialize()
71 return mCount; in getCount()
136 mCount = mBulkCursor.requery(getObserver()); in requery()
137 if (mCount != -1) { in requery()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp180 mWorkers.mRunningCount = mWorkers.mCount; in launchThreads()
183 for (uint32_t ct = 0; ct < mWorkers.mCount; ct++) { in launchThreads()
274 mWorkers.mCount = 0; in init()
279 mWorkers.mCount = (uint32_t)(cpu - 1); in init()
281 ALOGV("%p Launching thread(s), CPUs %i", mRSC, mWorkers.mCount + 1); in init()
283 mWorkers.mThreadId = (pthread_t *) calloc(mWorkers.mCount, sizeof(pthread_t)); in init()
284 mWorkers.mNativeThreadId = (pid_t *) calloc(mWorkers.mCount, sizeof(pid_t)); in init()
285 mWorkers.mLaunchSignals = new Signal[mWorkers.mCount]; in init()
290 mWorkers.mRunningCount = mWorkers.mCount; in init()
301 for (uint32_t ct=0; ct < mWorkers.mCount; ct++) { in init()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DFilteringCursorWrapper.java36 private int mCount; field in FilteringCursorWrapper
54 while (cursor.moveToNext() && mCount < count) { in FilteringCursorWrapper()
64 mPosition[mCount++] = cursor.getPosition(); in FilteringCursorWrapper()
68 Log.d(TAG, "Before filtering " + cursor.getCount() + ", after " + mCount); in FilteringCursorWrapper()
94 return mCount; in getCount()
DRootCursorWrapper.java31 private final int mCount; field in RootCursorWrapper
48 mCount = maxCount; in RootCursorWrapper()
50 mCount = count; in RootCursorWrapper()
89 return mCount; in getCount()
/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()
/frameworks/native/opengl/libagl/
DBufferObjectManager.h67 mutable volatile int32_t mCount;
73 android_atomic_inc(&mCount); in incStrong()
76 if (android_atomic_dec(&mCount) == 1) { in decStrong()
/frameworks/native/services/sensorservice/
DFusion.cpp181 mCount[0] = 0; in init()
182 mCount[1] = 0; in init()
183 mCount[2] = 0; in init()
235 mCount[0]++; in checkInitComplete()
239 mCount[1]++; in checkInitComplete()
244 mCount[2]++; in checkInitComplete()
245 if (mCount[2] == 64) { in checkInitComplete()
254 mData[0] *= 1.0f/mCount[0]; in checkInitComplete()
255 mData[1] *= 1.0f/mCount[1]; in checkInitComplete()
256 mData[2] *= 1.0f/mCount[2]; in checkInitComplete()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DElement.java923 int mCount; field in Element.Builder
937 mCount = 0; in Builder()
974 if(mCount == mElements.length) { in add()
975 Element[] e = new Element[mCount + 8]; in add()
976 String[] s = new String[mCount + 8]; in add()
977 int[] as = new int[mCount + 8]; in add()
978 System.arraycopy(mElements, 0, e, 0, mCount); in add()
979 System.arraycopy(mElementNames, 0, s, 0, mCount); in add()
980 System.arraycopy(mArraySizes, 0, as, 0, mCount); in add()
985 mElements[mCount] = element; in add()
[all …]
/frameworks/base/media/java/android/mtp/
DMtpPropertyList.java27 private int mCount; field in MtpPropertyList
54 int index = mCount++; in append()
65 int index = mCount++; in append()
/frameworks/base/rs/java/android/renderscript/
DElement.java1011 int mCount; field in Element.Builder
1021 mCount = 0; in Builder()
1053 if(mCount == mElements.length) { in add()
1054 Element[] e = new Element[mCount + 8]; in add()
1055 String[] s = new String[mCount + 8]; in add()
1056 int[] as = new int[mCount + 8]; in add()
1057 System.arraycopy(mElements, 0, e, 0, mCount); in add()
1058 System.arraycopy(mElementNames, 0, s, 0, mCount); in add()
1059 System.arraycopy(mArraySizes, 0, as, 0, mCount); in add()
1064 mElements[mCount] = element; in add()
[all …]
/frameworks/av/media/img_utils/src/
DDngUtils.cpp22 OpcodeListBuilder::OpcodeListBuilder() : mCount(0), mOpList(), mEndianOut(&mOpList, BIG) { in OpcodeListBuilder()
35 return mOpList.getSize() + sizeof(mCount); in getSize()
39 return mCount; in getCount()
43 uint32_t count = convertToBigEndian(mCount); in buildOpList()
276 mCount++; in addGainMap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java207 private int mCount; field in DozeLog.SummaryStats
210 mCount++; in append()
214 if (mCount == 0) return; in dump()
218 pw.print(mCount); in dump()
220 final double perHr = (double) mCount / (System.currentTimeMillis() - sSince) in dump()

123