/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
H A D | SizeFileFilter.java | 23 * Filters files based on size, can filter either smaller files or 27 * current directory whose size is greater than 1 MB: 43 /** The size threshold. */ 44 private final long size; field in class:SizeFileFilter 49 * Constructs a new size file filter for files equal to or 50 * larger than a certain size. 52 * @param size the threshold size of the files 53 * @throws IllegalArgumentException if the size is negative 55 public SizeFileFilter(long size) { argument 68 SizeFileFilter(long size, boolean acceptLarger) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | buffer_with_extendable_buffer.cpp | 23 // TODO: Needs to allocate larger memory corresponding to the current vector size. 26 uint32_t BufferWithExtendableBuffer::readUint(const int size, const int pos) const { argument 28 const int posInBuffer = readingPosIsInAdditionalBuffer ? pos - mOriginalBuffer.size() : pos; 29 return ByteArrayUtils::readUint(getBuffer(readingPosIsInAdditionalBuffer), size, posInBuffer); 32 uint32_t BufferWithExtendableBuffer::readUintAndAdvancePosition(const int size, argument 34 const uint32_t value = readUint(size, *pos); 35 *pos += size; 43 *pos -= mOriginalBuffer.size(); 50 *pos += mOriginalBuffer.size(); 54 bool BufferWithExtendableBuffer::extend(const int size) { argument 58 writeUint(const uint32_t data, const int size, const int pos) argument 63 writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos) argument 88 const size_t size = ByteArrayUtils::calculateRequiredByteCountToStoreCodePoints( local 107 extendBuffer(const size_t size) argument 118 checkAndPrepareWriting(const int pos, const int size) argument [all...] |
H A D | buffer_with_extendable_buffer.h | 49 return mOriginalBuffer.size() + mUsedAdditionalBufferSize; 60 return position >= static_cast<int>(mOriginalBuffer.size()); 73 uint32_t readUint(const int size, const int pos) const; 75 uint32_t readUintAndAdvancePosition(const int size, int *const pos) const; 81 return mOriginalBuffer.size(); 85 return mAdditionalBuffer.size() >= ((mMaxAdditionalBufferSize 89 bool extend(const int size); 97 bool writeUint(const uint32_t data, const int size, const int pos); 99 bool writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos); 118 bool extendBuffer(const size_t size); [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | NullInputStream.java | 25 * a stream of a specified size. 46 * public TestInputStream(int size) { 47 * super(size); 65 private long size; field in class:NullInputStream 74 * Create an {@link InputStream} that emulates a specified size 77 * @param size The size of the input stream to emulate. 79 public NullInputStream(long size) { argument 80 this(size, true, false); 85 * size wit 94 NullInputStream(long size, boolean markSupported, boolean throwEofException) argument [all...] |
H A D | NullReader.java | 25 * a reader of a specified size. 46 * public TestReader(int size) { 47 * super(size); 65 private long size; field in class:NullReader 74 * Create a {@link Reader} that emulates a specified size 77 * @param size The size of the reader to emulate. 79 public NullReader(long size) { argument 80 this(size, true, false); 85 * size wit 94 NullReader(long size, boolean markSupported, boolean throwEofException) argument [all...] |
/packages/apps/Messaging/tools/messagegen/ |
H A D | listimages | 19 size=`stat -c%s $file` 20 echo "$file $dimension $size"
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
H A D | allocators.h | 38 // \param size of the memory block in bytes.
40 void* Malloc(size_t size);
44 // \param originalSize The current size in bytes. (Design issue: since some allocator may not book-keep this, explicitly pass to it can save memory.)
45 // \param newSize the new size in bytes.
65 void* Malloc(size_t size) {
argument 66 if (size) // behavior of malloc(0) is implementation defined.
67 return std::malloc(size);
107 /*! \param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
116 /*! The user buffer will be used firstly. When it is full, memory pool allocates new chunk with chunk size.
121 \param size Siz 125 MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) argument 169 size_t size = 0; local 176 Malloc(size_t size) argument 248 size_t size; //!< Current size of allocated memory in bytes. member in struct:MemoryPoolAllocator::ChunkHeader [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | DebugBoundsRenderer.java | 32 public static void drawBounds(Canvas canvas, Paint paint, float size, Rect rect) { argument 33 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); 40 public static void drawBounds(Canvas canvas, Paint paint, float size, RectF rect) { argument 41 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); 48 public static void drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, argument 52 canvas.drawLine(x1, y1, x1 + size, y1, paint); 54 canvas.drawLine(x1, y1, x1, y1 + size, paint); 58 canvas.drawLine(x2 - size, y1, x2, y1, paint); 60 canvas.drawLine(x2, y1, x2, y1 + size, paint); 64 canvas.drawLine(x2 - size, y [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | Preconditions.java | 257 * list or string of size {@code size}. An element index may range from zero, 258 * inclusive, to {@code size}, exclusive. 262 * @param size the size of that array, list or string 265 * less than {@code size} 266 * @throws IllegalArgumentException if {@code size} is negative 268 public static int checkElementIndex(int index, int size) { argument 269 return checkElementIndex(index, size, "index"); 274 * list or string of size { 286 checkElementIndex(int index, int size, String desc) argument 294 badElementIndex(int index, int size, String desc) argument 317 checkPositionIndex(int index, int size) argument 335 checkPositionIndex(int index, int size, String desc) argument 343 badPositionIndex(int index, int size, String desc) argument 368 checkPositionIndexes(int start, int end, int size) argument 375 badPositionIndexes(int start, int end, int size) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | SeparatedFolderListAdapter.java | 44 int size = adapter.getCount(); 47 if (position < size) 51 position -= size; 79 int size = adapter.getCount(); 81 if (position < size) { 86 position -= size; 96 int size = adapter.getCount(); 97 if (position < size) { 101 position -= size;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
H A D | ver2_pt_node_array_reader.cpp | 25 if (ptNodeArrayPos < 0 || ptNodeArrayPos >= static_cast<int>(mBuffer.size())) { 27 AKLOGE("Reading PtNode array info from invalid dictionary position: %d, dict size: %zd", 28 ptNodeArrayPos, mBuffer.size()); 42 if (forwordLinkPos < 0 || forwordLinkPos >= static_cast<int>(mBuffer.size())) { 44 AKLOGE("Reading forward link from invalid dictionary position: %d, dict size: %zd", 45 forwordLinkPos, mBuffer.size());
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
H A D | autocorrection_threshold_utils_test.cpp | 29 &before[0], before.size(), &after[0], after.size());
|
H A D | int_array_view_test.cpp | 30 EXPECT_EQ(intVector.size(), intArrayView.size()); 31 for (int i = 0; i < static_cast<int>(intVector.size()); ++i) { 44 EXPECT_EQ(expectedIndex, intArrayView.size()); 51 EXPECT_EQ(ARRAY_SIZE, intArrayView.size()); 57 EXPECT_EQ(1u, intArrayView.size()); 79 EXPECT_EQ(intArrayView.size(), intArrayView.limit(intArrayView.size()).size()); 80 EXPECT_EQ(intArrayView.size(), intArrayVie [all...] |
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/ |
H A D | offdevice_intermediate_dict.cpp | 26 if (codePoints.empty() || codePoints.size() > MAX_WORD_LENGTH) { 46 for (; i < codePoints.size(); ++i) { 47 if (i >= ptNodeCodePoints.size()) { 56 if (codePoints.size() == i && codePoints.size() == ptNodeCodePoints.size()) { 69 auto newPtNode = codePoints.size() == i 80 if (codePoints.size() != i) { 94 for (size_t i = 0; i < codePoints.size();) { 102 || codePoints.size() < ptNodeCodePoint [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
H A D | DomainList.java | 47 public int size() { method in class:DomainList 48 return domains.size(); 54 * @throws IndexOutOfBoundsException If index is < 0 or >= size(). 57 if (0 > index || size() <= index) 68 for (int i = 0; i < domains.size(); i++) { 71 if (i + 1 < domains.size())
|
H A D | MailboxList.java | 47 public int size() { method in class:MailboxList 48 return mailboxes.size(); 55 if (0 > index || size() <= index) 65 for (int i = 0; i < size(); i++) {
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
H A D | ResolutionUtil.java | 92 * This is the area of the largest size, used for sorting 101 * @param size the new size to be added 103 public void add(Size size) { argument 104 sizes.add(size); 107 public int compare(Size size, Size size2) { 110 size.width() * size.height()); 122 * that users can use a full-sensor size, as well as any of the preferred 148 List<Size> result = new ArrayList<Size>(sizes.size()); 166 area(Size size) argument 276 aspectRatioDescription(Size size) argument 303 aspectRatioNumerator(Size size) argument 316 getApproximateSize(Size size) argument 332 aspectRatioDenominator(Size size) argument 346 getAspectRatio(Size size) argument 451 isBlackListed(@onnull Size size, @Nonnull String blacklistString) argument 460 isBlackListed(@onnull Size size, @Nonnull Set<String> blacklistedSizes) argument [all...] |
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | ByteArrayPool.java | 50 int size = mCachedBuf.size(); 51 if (size > 0) { 52 return mCachedBuf.remove(size - 1); 69 if (mCachedBuf.size() < mMaxNum) { 77 for (int i = 0, c = bufs.size(); i < c; i++) { 78 if (mCachedBuf.size() == mMaxNum) {
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestSelectionDetails.java | 26 public int size; field in class:TestSelectionDetails 89 public int size() { method in class:TestSelectionDetails 90 return size;
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarServiceUtils.java | 144 final int size = list.size(); 145 final float[] array = new float[size]; 146 for (int i = 0; i < size; ++i) { 153 final int size = list.size(); 154 final int[] array = new int[size]; 155 for (int i = 0; i < size; ++i) { 162 final int size = list.size(); [all...] |
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/avrcp/ |
H A D | EvictingQueueTest.java | 14 assertEquals((long) e.size(), (long) 1); 27 assertEquals((long) e.size(), (long) 5); 41 assertEquals((long) e.size(), (long) 5); 45 assertEquals((long) e.size(), (long) 5);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SearchSettings.java | 36 public int getNextVoiceSearchHintIndex(int size); argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | MailObservable.java | 36 final int count = mObservers.size(); 39 mName, observer, count, mObservers.size()); 44 final int count = mObservers.size(); 47 mName, observer, count, mObservers.size());
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | MatrixUtils.java | 47 final float[][] squareMatrix1, final int size) { 50 for (int i = row + 1; i < size; ++i) { 57 for (int j = 0; j < size; ++j) { 73 final float[][] squareMatrix1, final int size) throws MatrixOperationFailedException { 78 for (int j = 0; j < size; ++j) { 82 for (int i = 0; i < size; i++) { 85 for (int j = row; j < size; ++j) { 88 for (int j = 0; j < size; ++j) { 103 final int size = squareMatrix.length; 104 if (squareMatrix[0].length != size || inverseMatri 46 findPivotAndSwapRow(final int row, final float[][] squareMatrix0, final float[][] squareMatrix1, final int size) argument 72 sweep(final int row, final float[][] squareMatrix0, final float[][] squareMatrix1, final int size) argument [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
H A D | FakeImageResource.java | 24 public FakeImageResource(final int size, final String imageId) { argument 26 mSize = size;
|