Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 1193) sorted by relevance

12345678910>>...48

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java63 int size = CharEncoding.getCharArraySize(characters); in getPtNodeCharactersSize() local
64 if (characters.length > 1) size += FormatSpec.PTNODE_TERMINATOR_SIZE; in getPtNodeCharactersSize()
65 return size; in getPtNodeCharactersSize()
87 return BinaryDictIOUtils.getPtNodeCountSize(nodeArray.mData.size()); in getPtNodeCountSize()
94 int size = FormatSpec.PTNODE_ATTRIBUTE_FLAGS_SIZE; in getShortcutSize() local
99 size += CharEncoding.getCharSize(codePoint); in getShortcutSize()
101 size += FormatSpec.PTNODE_TERMINATOR_SIZE; in getShortcutSize()
102 return size; in getShortcutSize()
113 int size = FormatSpec.PTNODE_SHORTCUT_LIST_SIZE_SIZE; in getShortcutListSize() local
115 size += getShortcutSize(shortcut); in getShortcutListSize()
[all …]
DBinaryDictIOUtils.java313 int size = 0; in writeString() local
319 size++; in writeString()
324 size += 3; in writeString()
328 size += FormatSpec.PTNODE_TERMINATOR_SIZE; in writeString()
329 return size; in writeString()
344 int size = FormatSpec.PTNODE_FLAGS_SIZE; in writePtNode() local
348 size += writeSInt24ToStream(destination, parentOffset); in writePtNode()
353 size++; in writePtNode()
355 size += writeSInt24ToStream(destination, info.mCharacters[i]); in writePtNode()
360 size++; in writePtNode()
[all …]
DFusionDictionary.java225 final int size = mShortcutTargets.size(); in getShortcut() local
226 for (int i = 0; i < size; ++i) { in getShortcut()
243 final int size = mBigrams.size(); in getBigram() local
244 for (int i = 0; i < size; ++i) { in getBigram()
269 final int size = shortcutTargets.size(); in update() local
270 for (int i = 0; i < size; ++i) { in update()
285 final int size = bigrams.size(); in update() local
286 for (int i = 0; i < size; ++i) { in update()
426 for (int i = 0; i < stack.size(); ++i) { in checkStack()
634 if (nodeArray.mData.size() <= insertionIndex) return CHARACTER_NOT_FOUND_INDEX; in findIndexOfChar()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/
DPreconditions.java268 public static int checkElementIndex(int index, int size) { in checkElementIndex() argument
269 return checkElementIndex(index, size, "index"); in checkElementIndex()
286 public static int checkElementIndex(int index, int size, String desc) { in checkElementIndex() argument
288 if (index < 0 || index >= size) { in checkElementIndex()
289 throw new IndexOutOfBoundsException(badElementIndex(index, size, desc)); in checkElementIndex()
294 private static String badElementIndex(int index, int size, String desc) { in badElementIndex() argument
297 } else if (size < 0) { in badElementIndex()
298 throw new IllegalArgumentException("negative size: " + size); in badElementIndex()
300 return format("%s (%s) must be less than size (%s)", desc, index, size); in badElementIndex()
317 public static int checkPositionIndex(int index, int size) { in checkPositionIndex() argument
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DPreconditions.java268 public static int checkElementIndex(int index, int size) { in checkElementIndex() argument
269 return checkElementIndex(index, size, "index"); in checkElementIndex()
286 public static int checkElementIndex(int index, int size, String desc) { in checkElementIndex() argument
288 if (index < 0 || index >= size) { in checkElementIndex()
289 throw new IndexOutOfBoundsException(badElementIndex(index, size, desc)); in checkElementIndex()
294 private static String badElementIndex(int index, int size, String desc) { in badElementIndex() argument
297 } else if (size < 0) { in badElementIndex()
298 throw new IllegalArgumentException("negative size: " + size); in badElementIndex()
300 return format("%s (%s) must be less than size (%s)", desc, index, size); in badElementIndex()
317 public static int checkPositionIndex(int index, int size) { in checkPositionIndex() argument
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java16 assertEquals(0, prop.getParameterNames().size()); in testAddParameter()
18 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
20 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
22 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
24 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
26 assertEquals(3, prop.getParameterNames().size()); in testAddParameter()
79 assertEquals(2, component.getPropertyNames().size()); in testParseBasicComponent()
81 assertEquals(2, prop1.getParameterNames().size()); in testParseBasicComponent()
85 assertEquals(2, props.size()); in testParseBasicComponent()
99 assertEquals(2, property.getParameterNames().size()); in testParseQuotedParam()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java70 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset()
104 for (int i = 0; i < mFilters.size(); i++) { in getPositionForRepresentation()
113 for (int i = 0; i < mFilters.size(); i++) { in getFilterRepresentationForType()
122 for (int i = 0; i < mFilters.size(); i++) { in getPositionForType()
175 for (int i = 0; i < mFilters.size(); i++) { in hasModifications()
221 if (preset.mFilters.size() != mFilters.size()) { in same()
230 if (mFilters.size() > 0 || preset.mFilters.size() > 0) { in same()
236 for (int i = 0; i < preset.mFilters.size(); i++) { in same()
254 if (preset.mFilters.size() != mFilters.size()) { in equals()
263 if (mFilters.size() > 0 || preset.mFilters.size() > 0) { in equals()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java224 int id = mAlerts.size(); in addAlertRow()
323 + debugStr, expected.mAlertIdsInDigest.length, actual.mNw.size()); in validateNotificationsAndReset()
324 for (int i = 0; i < actual.mNw.size(); i++) { in validateNotificationsAndReset()
356 for (int digestIndex = 0; digestIndex < actual.mNw.size(); digestIndex++) { in printActualNotifications()
743 assertEquals(0, lowPriority.size()); in testProcessQuery_skipDeclinedDismissed()
744 assertEquals(0, mediumPriority.size()); in testProcessQuery_skipDeclinedDismissed()
745 assertEquals(1, highPriority.size()); in testProcessQuery_skipDeclinedDismissed()
770 assertEquals(0, lowPriority.size()); in testProcessQuery_newAlert()
771 assertEquals(0, mediumPriority.size()); in testProcessQuery_newAlert()
772 assertEquals(2, highPriority.size()); in testProcessQuery_newAlert()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueueTests.java69 assertEquals(0, mQueue.size()); in testEmpty()
75 assertEquals(1, mQueue.size()); in testAdd()
78 assertEquals(2, mQueue.size()); in testAdd()
81 assertEquals(3, mQueue.size()); in testAdd()
84 assertEquals(4, mQueue.size()); in testAdd()
97 assertEquals(3, mQueue.size()); in testRemove()
100 assertEquals(2, mQueue.size()); in testRemove()
103 assertEquals(2, mQueue.size()); in testRemove()
106 assertEquals(1, mQueue.size()); in testRemove()
109 assertEquals(0, mQueue.size()); in testRemove()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFilenameUtils.java264 int size = filename.length(); in doNormalize() local
265 if (size == 0) { in doNormalize()
273 char[] array = new char[size + 2]; // +1 for possible extra slash, +2 for arraycopy in doNormalize()
285 if (array[size - 1] != SYSTEM_SEPARATOR) { in doNormalize()
286 array[size++] = SYSTEM_SEPARATOR; in doNormalize()
291 for (int i = prefix + 1; i < size; i++) { in doNormalize()
293 System.arraycopy(array, i, array, i - 1, size - i); in doNormalize()
294 size--; in doNormalize()
300 for (int i = prefix + 1; i < size; i++) { in doNormalize()
303 if (i == size - 1) { in doNormalize()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyboard.java187 if (mKeyRows.size() == 0) return false; in addSoftKey()
188 KeyRow keyRow = mKeyRows.get(mKeyRows.size() - 1); in addSoftKey()
214 for (int row = 0; row < mKeyRows.size(); row++) { in setSkbCoreSize()
220 for (int i = 0; i < softKeys.size(); i++) { in setSkbCoreSize()
274 return mKeyRows.size(); in getRowNum()
280 if (null != mKeyRows && mKeyRows.size() > row) { in getKeyRowForDisplay()
291 if (null != mKeyRows && mKeyRows.size() > row) { in getKey()
293 if (softKeys.size() > location) { in getKey()
306 int rowNum = mKeyRows.size(); in mapToKey()
314 int keyNum = softKeys.size(); in mapToKey()
[all …]
DSkbTemplate.java115 if (mKeyTypeList.size() != keyType.mKeyTypeId) return false; in addKeyType()
121 if (typeId < 0 || typeId > mKeyTypeList.size()) return null; in getKeyType()
134 int size = mKeyIconRecords.size(); in addDefaultKeyIcons() local
136 while (pos < size) { in addDefaultKeyIcons()
144 int size = mKeyIconRecords.size(); in getDefaultKeyIcon() local
146 while (pos < size) { in getDefaultKeyIcon()
161 int size = mKeyIconRecords.size(); in getDefaultKeyIconPopup() local
163 while (pos < size) { in getDefaultKeyIconPopup()
184 int size = mKeyRecords.size(); in addDefaultKey() local
186 while (pos < size) { in addDefaultKey()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java492 float size = Math.min(width, height) * 0.5f - DEFAULT_RING_THICKNESS; in drawFrame() local
494 rect.set(-size, -size, size, size); in drawFrame()
513 size -= (SMALL_GAP + lastRingThickness); in drawFrame()
514 rect.set(-size, -size, size, size); in drawFrame()
526 size -= (SMALL_GAP + lastRingThickness); in drawFrame()
527 rect.set(-size, -size, size, size); in drawFrame()
539 size -= (LARGE_GAP + lastRingThickness); in drawFrame()
540 rect.set(-size, -size, size, size); in drawFrame()
553 size -= (SMALL_GAP + lastRingThickness); in drawFrame()
554 rect.set(-size, -size, size, size); in drawFrame()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
DNullInputStream.java65 private long size; field in NullInputStream
79 public NullInputStream(long size) { in NullInputStream() argument
80 this(size, true, false); in NullInputStream()
94 public NullInputStream(long size, boolean markSupported, boolean throwEofException) { in NullInputStream() argument
95 this.size = size; in NullInputStream()
115 return size; in getSize()
124 long avail = size - position; in available()
184 if (position == size) { in read()
223 if (position == size) { in read()
228 if (position > size) { in read()
[all …]
DNullReader.java65 private long size; field in NullReader
79 public NullReader(long size) { in NullReader() argument
80 this(size, true, false); in NullReader()
94 public NullReader(long size, boolean markSupported, boolean throwEofException) { in NullReader() argument
95 this.size = size; in NullReader()
115 return size; in getSize()
168 if (position == size) { in read()
207 if (position == size) { in read()
212 if (position > size) { in read()
213 returnLength = length - (int)(position - size); in read()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java105 pos = strLayer.size() - 1; in getStrSegment()
107 if (pos >= strLayer.size() || pos < 0) { in getStrSegment()
146 return this.toString(layer, 0, mStringLayer[layer].size() - 1); in toString()
165 if (strUplayer.size() <= 0) { in modifyUpper()
170 strUplayer.add(new StrSegment(toString(layer), 0, mStringLayer[layer].size() - 1)); in modifyUpper()
177 StrSegment last = strUplayer.get(strUplayer.size() - 1); in modifyUpper()
182 modifyUpper(uplayer, strUplayer.size()-1, 1, 1); in modifyUpper()
188 for (int i = 0; i < strUplayer.size(); i++) { in modifyUpper()
236 for (int i = next; i < strUplayer.size(); i++) { in modifyUpper()
248 for (int i = 1; i < strUplayer.size(); i++) { in modifyUpper()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dbuffer_with_extendable_buffer.cpp26 bool BufferWithExtendableBuffer::writeUintAndAdvancePosition(const uint32_t data, const int size, in writeUintAndAdvancePosition() argument
28 if (!(size >= 1 && size <= 4)) { in writeUintAndAdvancePosition()
29 AKLOGI("writeUintAndAdvancePosition() is called with invalid size: %d", size); in writeUintAndAdvancePosition()
33 if (!checkAndPrepareWriting(*pos, size)) { in writeUintAndAdvancePosition()
41 ByteArrayUtils::writeUintAndAdvancePosition(buffer, data, size, pos); in writeUintAndAdvancePosition()
50 const size_t size = ByteArrayUtils::calculateRequiredByteCountToStoreCodePoints( in writeCodePointsAndAdvancePosition() local
52 if (!checkAndPrepareWriting(*pos, size)) { in writeCodePointsAndAdvancePosition()
70 mAdditionalBuffer.size() + EXTEND_ADDITIONAL_BUFFER_SIZE_STEP; in extendBuffer()
74 mAdditionalBuffer.resize(mAdditionalBuffer.size() + EXTEND_ADDITIONAL_BUFFER_SIZE_STEP); in extendBuffer()
78 bool BufferWithExtendableBuffer::checkAndPrepareWriting(const int pos, const int size) { in checkAndPrepareWriting() argument
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationsState.java93 long size; field in ApplicationsState.AppEntry
122 this.size = SIZE_UNKNOWN; in AppEntry()
183 if (object1.size < object2.size) return 1;
184 if (object1.size > object2.size) return -1;
352 for (int i=0; i<mSessions.size(); i++) { in rebuildActiveSessions()
380 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
385 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
390 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
396 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
401 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
[all …]
DRunningState.java432 if (mServices.size() > 0) { in ensureLabel()
529 final int NP = mDependentProcesses.size(); in buildDependencyChain()
542 if (mLastNumDependentProcesses != mDependentProcesses.size()) { in buildDependencyChain()
544 mLastNumDependentProcesses = mDependentProcesses.size(); in buildDependencyChain()
552 final int NP = mDependentProcesses.size(); in addDependentProcesses()
610 for (int i=0; i<mChildren.size(); i++) { in update()
627 setDescription(context, (mProcess.mPid > 0 ? 1 : 0) + mOtherProcesses.size(), in update()
628 mServices.size()); in update()
632 for (int i=0; i<mServices.size(); i++) { in update()
646 for (int i=0; i<mChildren.size(); i++) { in updateSize()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DMatrixUtils.java46 final float[][] squareMatrix1, final int size) { in findPivotAndSwapRow() argument
49 for (int i = row + 1; i < size; ++i) { in findPivotAndSwapRow()
56 for (int j = 0; j < size; ++j) { in findPivotAndSwapRow()
72 final float[][] squareMatrix1, final int size) throws MatrixOperationFailedException { in sweep() argument
77 for (int j = 0; j < size; ++j) { in sweep()
81 for (int i = 0; i < size; i++) { in sweep()
84 for (int j = row; j < size; ++j) { in sweep()
87 for (int j = 0; j < size; ++j) { in sweep()
102 final int size = squareMatrix.length; in inverse() local
103 if (squareMatrix[0].length != size || inverseMatrix.length != size in inverse()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndfdic.c74 … convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size);
151 …6 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size) in convert_to_yomi() argument
179 if (((ret + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
180 return (size / sizeof(NJ_CHAR)); in convert_to_yomi()
189 if (((ret + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
190 return (size / sizeof(NJ_CHAR)); in convert_to_yomi()
206 NJ_UINT16 ylen, dic_ylen, j, size; in yomi_strcmp_forward() local
210 size = sizeof(buf); in yomi_strcmp_forward()
221 if (size < ((dic_ylen + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { in yomi_strcmp_forward()
232 dic_ylen = convert_to_yomi(hdl, area, DATA_YOMI_SIZE(data), stroke, size); in yomi_strcmp_forward()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java308 int n = mActiveTiles.size(); in layoutTiles()
323 int size = mTileSize << i; in layoutTiles() local
325 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
326 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
340 int n = mActiveTiles.size(); in invalidateTiles()
379 int size = mTileSize << level; in getRange() local
380 left = Math.max(0, size * (left / size)); in getRange()
381 top = Math.max(0, size * (top / size)); in getRange()
402 int n = mActiveTiles.size(); in freeTextures()
438 int size = (mTileSize << level); in draw() local
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java308 int n = mActiveTiles.size(); in layoutTiles()
323 int size = mTileSize << i; in layoutTiles() local
325 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
326 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
340 int n = mActiveTiles.size(); in invalidateTiles()
379 int size = mTileSize << level; in getRange() local
380 left = Math.max(0, size * (left / size)); in getRange()
381 top = Math.max(0, size * (top / size)); in getRange()
402 int n = mActiveTiles.size(); in freeTextures()
438 int size = (mTileSize << level); in draw() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java253 int n = mActiveTiles.size(); in layoutTiles()
268 int size = sTileSize << i; in layoutTiles() local
270 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles()
271 for (int x = r.left, right = r.right; x < right; x += size) { in layoutTiles()
284 int n = mActiveTiles.size(); in invalidateTiles()
322 int size = sTileSize << level; in getRange() local
323 left = Math.max(0, size * (left / size)); in getRange()
324 top = Math.max(0, size * (top / size)); in getRange()
376 int n = mActiveTiles.size(); in freeTextures()
432 int size = (sTileSize << level); in render() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java128 int n = items.size(); in run()
150 int m = mClusters.size(); in run()
159 return mClusters.size(); in getNumberOfClusters()
165 ArrayList<Path> result = new ArrayList<Path>(items.size()); in getCluster()
166 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
194 int numClusters = mClusters.size(); in compute()
195 int numCurrClusterItems = mCurrCluster.size(); in compute()
230 if (mCurrCluster.size() > 0) { in compute()
231 int numClusters = mClusters.size(); in compute()
232 int numCurrClusterItems = mCurrCluster.size(); in compute()
[all …]

12345678910>>...48