/frameworks/base/core/java/com/android/internal/util/ |
TokenBucket.java | 44 private int mAvailable; // Current number of available tokens. 56 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); 73 mAvailable = Math.min(tokens, mCapacity); 85 return mAvailable; 91 return mAvailable > 0; 109 if (n > mAvailable) { 110 int got = mAvailable; 111 mAvailable = 0; 114 mAvailable -= n; 121 mAvailable = Math.min(mCapacity, mAvailable + diff) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
ObjectPool.java | 26 private FixedSizeArray<Object> mAvailable; 47 Object result = mAvailable.removeLast(); 55 mAvailable.add(entry); 60 return mAvailable.getCapacity() - mAvailable.getCount(); 65 mAvailable = new FixedSizeArray<Object>(mSize); 73 return mAvailable;
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
BufferPool.java | 30 private int mAvailable; 41 if (mAvailable != 0) { 42 mAvailable -= 1; 43 return grow(mBuffers[mAvailable], needed); 62 mBuffers[mAvailable++] = buffer;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
LayoutState.java | 47 int mAvailable; 108 + "mAvailable=" + mAvailable
|
LinearLayoutManager.java | 588 if (mLayoutState.mAvailable > 0) { 589 extraForEnd += mLayoutState.mAvailable; 598 if (mLayoutState.mAvailable > 0) { 600 extraForStart = mLayoutState.mAvailable; 613 if (mLayoutState.mAvailable > 0) { 614 extraForStart += mLayoutState.mAvailable; 623 if (mLayoutState.mAvailable > 0) { 624 extraForEnd = mLayoutState.mAvailable; 733 mLayoutState.mAvailable = 0; 742 mLayoutState.mAvailable = 0 [all...] |
StaggeredGridLayoutManager.java | [all...] |
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
CarProjectionManagerTest.java | 42 private final Semaphore mAvailable = new Semaphore(0); 51 mAvailable.release(); 74 assertEquals(0, mAvailable.availablePermits()); 77 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 86 assertEquals(0, mAvailable.availablePermits()); 89 assertEquals(0, mAvailable.availablePermits()); 98 assertEquals(0, mAvailable.availablePermits()); 101 assertEquals(0, mAvailable.availablePermits()); 104 assertEquals(0, mAvailable.availablePermits()); 106 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)) [all...] |
CarRadioManagerTest.java | 45 private Semaphore mAvailable; 73 if (mAvailable.availablePermits() != 0) { 76 mAvailable.release(); 106 if (mAvailable.availablePermits() != 0) { 110 mAvailable.release(); 125 if (mAvailable.availablePermits() != 0) { 130 mAvailable.release(); 143 mAvailable = new Semaphore(0); 155 assertEquals("Lock should be freed by now.", 0, mAvailable.availablePermits()); 156 // mAvailable.acquire(1) [all...] |
CarCabinManagerTest.java | 46 private Semaphore mAvailable; 65 mAvailable = new Semaphore(0); 140 assertEquals(0, mAvailable.availablePermits()); 143 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 154 assertEquals(0, mAvailable.availablePermits()); 157 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 205 mAvailable.release();
|
CarHvacManagerTest.java | 48 private Semaphore mAvailable; 74 mAvailable = new Semaphore(0); 162 assertEquals(0, mAvailable.availablePermits()); 165 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 175 assertEquals(0, mAvailable.availablePermits()); 178 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 188 assertEquals(0, mAvailable.availablePermits()); 191 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); 238 mAvailable.release();
|
/frameworks/av/camera/ndk/impl/ |
ACameraManager.h | 95 mAvailable(callback->onCameraAvailable), 100 return (mAvailable == other.mAvailable && 110 if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable; 116 ACameraManager_AvailabilityCallback mAvailable;
|
ACameraManager.cpp | 337 cb.mAvailable : cb.mUnavailable;
|
/frameworks/native/libs/sensor/ |
SensorEventQueue.cpp | 40 : mSensorEventConnection(connection), mRecBuffer(NULL), mAvailable(0), mConsumed(0), 66 if (mAvailable == 0) { 72 mAvailable = static_cast<size_t>(err); 75 size_t count = min(numEvents, mAvailable); 77 mAvailable -= count;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
VolumeSeekBarPreferenceControllerTest.java | 108 private boolean mAvailable; 118 mAvailable = available; 133 return mAvailable;
|
/frameworks/base/core/java/com/android/internal/widget/ |
LinearLayoutManager.java | 565 if (mLayoutState.mAvailable > 0) { 566 extraForEnd += mLayoutState.mAvailable; 575 if (mLayoutState.mAvailable > 0) { 577 extraForStart = mLayoutState.mAvailable; 590 if (mLayoutState.mAvailable > 0) { 591 extraForStart += mLayoutState.mAvailable; 600 if (mLayoutState.mAvailable > 0) { 601 extraForEnd = mLayoutState.mAvailable; 709 mLayoutState.mAvailable = 0; 718 mLayoutState.mAvailable = 0 [all...] |
/frameworks/native/libs/sensor/include/sensor/ |
SensorEventQueue.h | 102 size_t mAvailable;
|
/packages/apps/TV/src/com/android/tv/ |
TimeShiftManager.java | 193 return mPlayController.mAvailable; 469 return mPlayController.mAvailable 479 return mPlayController.mAvailable && mPlayController.mPlayStatus == PLAY_STATUS_PAUSED; 498 mProgramManager.onAvailabilityChanged(mPlayController.mAvailable, 509 if (mPlayController.mAvailable) { 585 private boolean mAvailable; 610 if (!SoftPreconditions.checkState(mAvailable, TAG, 655 if (mAvailable == newAvailable) { 658 mAvailable = newAvailable; 668 if (mAvailable) { [all...] |
/frameworks/base/services/core/java/com/android/server/job/ |
JobServiceContext.java | 54 * - Execution of a new job is handled by the {@link #mAvailable}. This bit is flipped once when a 125 private boolean mAvailable; 181 mAvailable = true; 194 if (!mAvailable) { 250 mAvailable = false; 735 mAvailable = true;
|
/prebuilts/sdk/current/support/v7/recyclerview/libs/ |
android-support-v7-recyclerview.jar | |