Searched refs:size (Results 1 - 25 of 712) sorted by relevance

1234567891011>>

/packages/apps/Email/emailcommon/src/org/apache/commons/io/filefilter/
H A DSizeFileFilter.java23 * 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/apps/Email/emailcommon/src/org/apache/commons/io/input/
H A DNullInputStream.java25 * 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 DNullReader.java25 * 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/Email/emailcommon/src/org/apache/james/mime4j/field/address/
H A DDomainList.java47 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 DMailboxList.java47 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++) {
H A DGroup.java61 for (int i = 0; i < mailboxList.size(); i++) {
63 if (i + 1 < mailboxList.size())
72 for (int i = 0; i < mailboxList.size(); i++)
/packages/apps/Calculator/src/com/android/calculator2/
H A DHistory.java39 int size = in.readInt();
40 for (int i = 0; i < size; ++i) {
67 out.writeInt(mEntries.size());
87 if (mPos < mEntries.size() - 1) {
96 if (mEntries.size() >= MAX_ENTRIES) {
99 if (mEntries.size() < 2 ||
100 !text.equals(mEntries.elementAt(mEntries.size() - 2).getBase())) {
101 mEntries.insertElementAt(new HistoryEntry(text), mEntries.size() - 1);
103 mPos = mEntries.size() - 1;
/packages/apps/Browser/src/com/android/browser/
H A DSnapshotByteArrayOutputStream.java24 // Maximum size, this needs to be small enough such that an entire row
46 if ((size() + expandBy) > MAX_SIZE) {
47 throw new IOException("Exceeded max size!");
51 public int size() { method in class:SnapshotByteArrayOutputStream
52 return mStream.size();
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSkbTemplate.java37 * of the key can be overwritten, including the size.
115 if (mKeyTypeList.size() != keyType.mKeyTypeId) return false;
121 if (typeId < 0 || typeId > mKeyTypeList.size()) return null;
134 int size = mKeyIconRecords.size();
136 while (pos < size) {
144 int size = mKeyIconRecords.size();
146 while (pos < size) {
161 int size
[all...]
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
H A DWalkAroundWallpaper.java171 // Try to find a preview size that matches the screen first
173 for (Camera.Size size : sizes) {
175 size.width == metrics.heightPixels && size.height == metrics.widthPixels) ||
177 size.width == metrics.widthPixels && size.height == metrics.heightPixels)) {
178 params.setPreviewSize(size.width, size.height);
183 // If no suitable preview size was found, try to find something large enough
185 for (Camera.Size size
[all...]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DICalendarTest.java16 assertEquals(0, prop.getParameterNames().size());
18 assertEquals(1, prop.getParameterNames().size());
20 assertEquals(1, prop.getParameterNames().size());
22 assertEquals(2, prop.getParameterNames().size());
24 assertEquals(2, prop.getParameterNames().size());
26 assertEquals(3, prop.getParameterNames().size());
79 assertEquals(2, component.getPropertyNames().size());
81 assertEquals(2, prop1.getParameterNames().size());
85 assertEquals(2, props.size());
99 assertEquals(2, property.getParameterNames().size());
[all...]
/packages/inputmethods/PinyinIME/jni/share/
H A Dutf16char.cpp97 size_t size = 0;
98 while ((char16)'\0' != utf16_str[size])
99 size++;
100 return size;
111 int utf16_strncmp(const char16 *str1, const char16 *str2, size_t size) { argument
113 while (pos < size && str1[pos] == str2[pos] && (char16)'\0' != str1[pos])
116 if (pos == size)
140 char16* utf16_strncpy(char16 *dst, const char16 *src, size_t size) { argument
141 if (NULL == src || NULL == dst || 0 == size)
149 if (dst < src || (dst > src && dst >= src + size)) {
[all...]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/decoder/
H A DUnboundedFifoByteBuffer.java77 * @param initialSize the initial size of the buffer
78 * @throws IllegalArgumentException if the size is less than 1
82 throw new IllegalArgumentException("The size must be greater than 0");
92 * @return this buffer's size
94 public int size() { method in class:UnboundedFifoByteBuffer
95 int size = 0;
98 size = buffer.length - head + tail;
100 size = tail - head;
103 return size;
112 return (size()
[all...]
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
H A DMockObserverNode.java63 return uri.getPathSegments().size() + 1;
84 int N = mChildren.size();
100 int size = mChildren.size();
101 for (int i = 0; i < size; i++) {
106 size--;
110 size = mObservers.size();
111 for (int i = 0; i < size; i++) {
119 if (mChildren.size()
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DBitmapTileProvider.java47 mBackup = list.remove(list.size() - 1);
48 mMipmaps = list.toArray(new Bitmap[list.size()]);
72 int size = tileSize + 2 * borderSize;
73 Bitmap result = Bitmap.createBitmap(size, size, mConfig);
84 if (endX < size || endY < size) {
85 return Bitmap.createBitmap(result, 0, 0, Math.min(size, endX),
86 Math.min(size, endY));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordComposer.java86 public final int size() { method in class:WordComposer
118 final int newIndex = size();
150 final int size = size();
151 if (size > 0) {
152 final int lastPos = size - 1;
158 if (size() == 0) {
168 if (size() == 0) {
187 return (mCapsCount > 0) && (mCapsCount == size());
/packages/apps/Nfc/src/com/android/nfc/snep/
H A DSnepMessenger.java94 int size;
109 size = mSocket.receive(partial);
110 if (DBG) Log.d(TAG, "read " + size + " bytes");
111 if (size < 0) {
118 } else if (size < HEADER_LENGTH) {
126 readSize = size - HEADER_LENGTH;
127 buffer.write(partial, 0, size);
152 size = mSocket.receive(partial);
153 if (DBG) Log.d(TAG, "read " + size + " bytes");
154 if (size <
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DInvertedChartAxis.java39 public boolean setSize(float size) { argument
40 mSize = size;
41 return mWrapped.setSize(size);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DComboAlbum.java45 int size = set.getMediaItemCount();
47 if (start < size) {
48 int fetchCount = (start + count <= size) ? count : size - start;
51 count -= fetchItems.size();
54 start -= size;
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DSuggestionsTest.java55 assertEquals(mExpectedCorpora.size(), mSuggestions.getExpectedResultCount());
60 assertEquals(mExpectedCorpora.size(), expectedCorpora.size());
61 for (int i=0; i<mExpectedCorpora.size(); ++i) {
67 for (int i=0; i<mExpectedCorpora.size(); ++i) {
82 assertEquals(includedCorpora.size(), 1);
/packages/apps/Camera/src/com/android/camera/ui/
H A DIndicatorControlBar.java98 // We want the icons to be square (size x size)
99 int size = height;
101 mSecondLevelIcon.layout(padding, 0, padding + size, size);
105 mZoomControl.layout(padding + size, 0, width - padding - size, size);
109 mCameraPicker.layout(width - padding - size, 0, width - padding, size);
[all...]
H A DOneRowGridView.java42 int size = mInternalRequestedColumnWidth * n;
43 widthMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
/packages/apps/Email/src/com/android/email/activity/
H A DUiUtilities.java32 * Formats the given size as a String in bytes, kB, MB or GB. Ex: 12,315,000 = 11 MB
34 public static String formatSize(Context context, long size) { argument
43 if (size < KB) {
45 value = (int) size;
46 } else if (size < MB) {
48 value = (int) (size / KB);
49 } else if (size < GB) {
51 value = (int) (size / MB);
54 value = (int) (size / GB);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/languageswitcher/
H A DLanguageSwitcher.java59 return mLocales.size();
89 if (mLocales.size() == 0) {
105 for (int i = 0; i < mLocales.size(); i++) {
165 final int size = mLocales.size();
166 return (mCurrentIndex + 1) % size;
170 final int size = mLocales.size();
171 return (mCurrentIndex - 1 + size) % size;
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetSource.java25 public int size(); method in interface:WidgetSource

Completed in 557 milliseconds

1234567891011>>