/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/os/ |
D | IdleHandlerTest.java | 61 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 …]
|
D | MessageQueueTest.java | 30 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/ |
D | CallStack.cpp | 211 : 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 …]
|
D | VectorImpl.cpp | 44 : 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/ |
D | IdleCache.java | 48 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/ |
D | Constraint.cpp | 22 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/ |
D | BulkCursorToCursorAdaptor.java | 36 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/ |
D | VCardEntryCounter.java | 21 private int mCount; field in VCardEntryCounter 24 return mCount; in getCount() 37 mCount++; in endRecord()
|
/frameworks/base/core/java/android/os/ |
D | PowerManager.java | 209 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()
|
D | AsyncTask.java | 138 private final AtomicInteger mCount = new AtomicInteger(1); 141 return new Thread(r, "AsyncTask #" + mCount.getAndIncrement());
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteCursor.java | 60 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/ |
D | BufferObjectManager.h | 67 mutable volatile int32_t mCount; 73 android_atomic_inc(&mCount); in incStrong() 76 if (android_atomic_dec(&mCount) == 1) { in decStrong()
|
D | BufferObjectManager.cpp | 38 : TokenManager(), mCount(0) in EGLBufferObjectManager()
|
/frameworks/base/include/utils/ |
D | CallStack.h | 61 size_t size() const { return mCount; } in size() 67 size_t mCount; variable
|
D | VectorImpl.h | 63 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
|
D | RefBase.h | 150 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/ |
D | HeaderSet.java | 180 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/ |
D | BatteryStatsImpl.java | 224 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/ |
D | ServiceTest.java | 131 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/ |
D | Constraint.h | 180 int mCount; /**< the count. */
|
/frameworks/base/services/java/com/android/server/ |
D | PowerManagerService.java | 286 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/ |
D | performance.jd | 172 = mCount</code>). This is an excellent habit for C++, because the compiler can 187 <pre>for (int i = 0; i < this.mCount; i++) 191 <pre> int count = this.mCount;
|