Home
last modified time | relevance | path

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

/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/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
44 if (mCount <= mLastMessage) { in handleMessage()
45 if (msg.what != mCount) { in handleMessage()
47 "Expected message #" + mCount in handleMessage()
49 } else if (mCount == mLastMessage) { in handleMessage()
52 mCount++; in handleMessage()
67 mCount = 0; in testMessageOrder()
86 mCount = 0; in testAtFrontOfQueue()
/frameworks/base/libs/utils/
DCallStack.cpp211 : mCount(0) in CallStack()
216 : mCount(rhs.mCount) in CallStack()
218 if (mCount) { in CallStack()
219 memcpy(mStack, rhs.mStack, mCount*sizeof(void*)); in CallStack()
229 mCount = rhs.mCount; in operator =()
230 if (mCount) { in operator =()
231 memcpy(mStack, rhs.mStack, mCount*sizeof(void*)); in operator =()
237 if (mCount != rhs.mCount) in operator ==()
239 return !mCount || (memcmp(mStack, rhs.mStack, mCount*sizeof(void*)) == 0); in operator ==()
247 if (mCount != rhs.mCount) in operator <()
[all …]
DVectorImpl.cpp44 : mStorage(0), mCount(0), mFlags(flags), mItemSize(itemSize) in VectorImpl()
49 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
59 LOG_ASSERT(!mCount, in ~VectorImpl()
63 this, (int)(mCount*mItemSize)); in ~VectorImpl()
73 if (rhs.mCount) { in operator =()
75 mCount = rhs.mCount; in operator =()
79 mCount = 0; in operator =()
92 _do_copy(sb->data(), mStorage, mCount); in editArrayImpl()
269 mCount = 0; in finish_vector()
274 _shrink(0, mCount); in clear()
[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/media/libdrm/mobile2/src/rights/
DConstraint.cpp22 mCount = INIT_VALUE; in Constraint()
39 return (mCount == INIT_VALUE && mTimedCount == INIT_VALUE && in isUnConstraint()
80 if (mInterval == 0 || mCount == 0 || in isValid()
128 mCount = count; in setCount()
134 return mCount; in getCount()
193 if (mCount > 0) in consume()
195 mCount--; in consume()
/frameworks/base/core/java/android/database/
DBulkCursorToCursorAdaptor.java36 private int mCount; field in BulkCursorToCursorAdaptor
44 mCount = mBulkCursor.count(); in set()
76 return mCount; in getCount()
135 int oldCount = mCount; in requery()
137 mCount = mBulkCursor.requery(getObserver(), new CursorWindow( in requery()
139 if (mCount != -1) { in requery()
172 mCount = mBulkCursor.count(); in deleteRow()
173 if (mPos < mCount) { in deleteRow()
178 mPos = mCount; in deleteRow()
/frameworks/base/core/java/android/pim/vcard/
DVCardEntryCounter.java21 private int mCount; field in VCardEntryCounter
24 return mCount; in getCount()
37 mCount++; in endRecord()
/frameworks/base/core/java/android/os/
DPowerManager.java209 int mCount = 0; field in PowerManager.WakeLock
248 if (!mRefCounted || mCount++ == 0) { in acquire()
296 if (!mRefCounted || --mCount == 0) { in release()
303 if (mCount < 0) { in release()
320 + " held=" + mHeld + ", refCount=" + mCount + "}"; in toString()
DAsyncTask.java138 private final AtomicInteger mCount = new AtomicInteger(1);
141 return new Thread(r, "AsyncTask #" + mCount.getAndIncrement());
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java60 private int mCount = NO_COUNT; field in SQLiteCursor
137 int count = mQuery.fillWindow(cw, mMaxRead, mCount); in run()
141 mCount += mMaxRead; in run()
144 mCount = count; in run()
268 if (mCount == NO_COUNT) { in getCount()
271 return mCount; in getCount()
288 mCount = mQuery.fillWindow(mWindow, mInitialRead, 0); in fillWindow()
290 if (mCount == NO_COUNT){ in fillWindow()
291 mCount = startPos + mInitialRead; in fillWindow()
532 mCount = NO_COUNT; in requery()
[all …]
/frameworks/base/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()
DBufferObjectManager.cpp38 : TokenManager(), mCount(0) in EGLBufferObjectManager()
/frameworks/base/include/utils/
DCallStack.h61 size_t size() const { return mCount; } in size()
67 size_t mCount; variable
DVectorImpl.h63 inline size_t size() const { return mCount; } in size()
64 inline bool isEmpty() const { return mCount == 0; } in isEmpty()
130 size_t mCount; // number of items variable
DRefBase.h150 inline LightRefBase() : mCount(0) { } in LightRefBase()
152 android_atomic_inc(&mCount); in incStrong()
155 if (android_atomic_dec(&mCount) == 1) { in decStrong()
161 return mCount; in getStrongCount()
168 mutable volatile int32_t mCount;
/frameworks/base/obex/javax/obex/
DHeaderSet.java180 private Long mCount; // 4 byte unsigned integer field in HeaderSet
257 mCount = null; in setHeader()
266 mCount = (Long)headerValue; in setHeader()
448 return mCount; in getHeader()
506 if (mCount != null) { in getHeaderList()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java224 int mCount; field in BatteryStatsImpl.Counter
231 mPluggedCount = mCount = in.readInt(); in Counter()
243 out.writeInt(mCount); in writeToParcel()
250 mUnpluggedCount = mCount = mPluggedCount; in unplug()
254 mPluggedCount = mCount; in plug()
279 val = mCount; in getCountLocked()
291 pw.println(prefix + "mCount=" + mCount in logState()
298 mCount++; in stepLocked()
302 out.writeInt(mCount); in writeSummaryFromParcelLocked()
303 out.writeInt(mCount - mLoadedCount); in writeSummaryFromParcelLocked()
[all …]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/
DServiceTest.java131 private int mCount; field in ServiceTest.TestConnection
157 mCount++; in onServiceConnected()
159 if (mCount == 1) { in onServiceConnected()
165 if (mCount == 2) { in onServiceConnected()
/frameworks/base/media/libdrm/mobile2/include/rights/
DConstraint.h180 int mCount; /**< the count. */
/frameworks/base/services/java/com/android/server/
DPowerManagerService.java286 int mCount = 0; field in PowerManagerService.UnsynchronizedWakeLock
298 if (!mRefCounted || mCount++ == 0) { in acquire()
311 if (!mRefCounted || --mCount == 0) { in release()
315 if (mCount < 0) { in release()
327 + " mCount=" + mCount + " mHeld=" + mHeld + ")"; in toString()
1095 EventLog.writeEvent(LOG_POWER_SCREEN_BROADCAST_STOP, 1, mBroadcastWakeLock.mCount); in sendNotificationLocked()
1106 EventLog.writeEvent(LOG_POWER_SCREEN_BROADCAST_SEND, mBroadcastWakeLock.mCount); in sendNotificationLocked()
1147 mBroadcastWakeLock.mCount);
1168 mBroadcastWakeLock.mCount);
1187 SystemClock.uptimeMillis() - mScreenOnStart, mBroadcastWakeLock.mCount);
[all …]
/frameworks/base/docs/html/guide/practices/design/
Dperformance.jd172 = mCount</code>). This is an excellent habit for C++, because the compiler can
187 <pre>for (int i = 0; i &lt; this.mCount; i++)
191 <pre> int count = this.mCount;