/packages/apps/Gallery2/src/com/android/photos/data/ |
D | MediaCache.java | 172 public ProcessingJob(Uri uri, MediaSize size, NotifyReady complete, in ProcessingJob() argument 175 this.size = size; in ProcessingJob() 180 public MediaSize size; field in MediaCache.ProcessingJob 205 public void execute(Uri uri, long id, MediaSize size, Object parameter) { 214 public void execute(Uri uri, long id, MediaSize size, Object parameter) { 223 public void execute(Uri uri, long id, MediaSize size, Object parameter) { 230 if (size == MediaSize.Thumbnail) { 412 public File getCachedFile(Uri contentUri, MediaSize size) { in getCachedFile() argument 413 Long cachedId = mDatabaseHelper.getCached(contentUri, size); in getCachedFile() 418 mDatabaseHelper.delete(contentUri, size, mDeleteFile); in getCachedFile() [all …]
|
D | MediaCacheDatabase.java | 49 void execute(Uri uri, long id, MediaSize size, Object parameter); in execute() argument 92 this.size = MediaSize.fromInteger(sizeVal); in QueryCacheResults() 95 public MediaSize size; field in MediaCacheDatabase.QueryCacheResults 114 public Long getCached(Uri uri, MediaSize size) { in getCached() argument 118 uri.toString(), String.valueOf(size.getValue()), in getCached() 143 public MediaSize executeOnBestCached(Uri uri, MediaSize size, Action action) { in executeOnBestCached() argument 148 uri.toString(), String.valueOf(size.getValue()), in executeOnBestCached() 162 public long insert(Uri uri, MediaSize size, Action action, File tempFile) { in insert() argument 168 values.put(Columns.MEDIA_SIZE, size.getValue()); in insert() 173 action.execute(uri, id, size, tempFile); in insert() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 224 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/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 16 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictInputOutput.java | 169 int size = 0; in getCharArraySize() local 170 for (int character : chars) size += getCharSize(character); in getCharArraySize() 171 return size; in getCharArraySize() 290 int size = CharEncoding.getCharArraySize(characters); in getGroupCharactersSize() local 291 if (characters.length > 1) size += FormatSpec.GROUP_TERMINATOR_SIZE; in getGroupCharactersSize() 292 return size; in getGroupCharactersSize() 331 return getGroupCountSize(node.mData.size()); in getGroupCountSize() 338 int size = FormatSpec.GROUP_ATTRIBUTE_FLAGS_SIZE; in getShortcutSize() local 343 size += CharEncoding.getCharSize(codePoint); in getShortcutSize() 345 size += FormatSpec.GROUP_TERMINATOR_SIZE; in getShortcutSize() [all …]
|
D | BinaryDictIOUtils.java | 438 int size = 0; in writeString() local 444 size++; in writeString() 449 size += 3; in writeString() 453 size += FormatSpec.GROUP_TERMINATOR_SIZE; in writeString() 454 return size; in writeString() 491 int size = FormatSpec.GROUP_FLAGS_SIZE; in writeCharGroup() local 495 size += writeSInt24ToStream(destination, parentOffset); in writeCharGroup() 500 size++; in writeCharGroup() 502 size += writeSInt24ToStream(destination, info.mCharacters[i]); in writeCharGroup() 507 size++; in writeCharGroup() [all …]
|
D | FusionDictionary.java | 203 final int size = mShortcutTargets.size(); in getShortcut() local 204 for (int i = 0; i < size; ++i) { in getShortcut() 221 final int size = mBigrams.size(); in getBigram() local 222 for (int i = 0; i < size; ++i) { in getBigram() 247 final int size = shortcutTargets.size(); in update() local 248 for (int i = 0; i < size; ++i) { in update() 263 final int size = bigrams.size(); in update() local 264 for (int i = 0; i < size; ++i) { in update() 403 for (int i = 0; i < stack.size(); ++i) { in checkStack() 614 if (node.mData.size() <= insertionIndex) return CHARACTER_NOT_FOUND; in findIndexOfChar() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | PointerTrackerQueueTests.java | 69 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/Email/src/org/apache/commons/io/ |
D | FilenameUtils.java | 264 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/ |
D | SoftKeyboard.java | 187 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 …]
|
D | SkbTemplate.java | 115 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/ |
D | PolarClockWallpaper.java | 492 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | ComposingText.java | 105 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/apps/Email/src/org/apache/commons/io/input/ |
D | NullInputStream.java | 65 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 …]
|
D | NullReader.java | 65 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/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationsState.java | 93 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 …]
|
D | RunningState.java | 431 if (mServices.size() > 0) { in ensureLabel() 528 final int NP = mDependentProcesses.size(); in buildDependencyChain() 541 if (mLastNumDependentProcesses != mDependentProcesses.size()) { in buildDependencyChain() 543 mLastNumDependentProcesses = mDependentProcesses.size(); in buildDependencyChain() 551 final int NP = mDependentProcesses.size(); in addDependentProcesses() 609 for (int i=0; i<mChildren.size(); i++) { in update() 626 setDescription(context, (mProcess.mPid > 0 ? 1 : 0) + mOtherProcesses.size(), in update() 627 mServices.size()); in update() 631 for (int i=0; i<mServices.size(); i++) { in update() 645 for (int i=0; i<mChildren.size(); i++) { in updateSize() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | ImagePreset.java | 85 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset() 112 for (int i = 0; i < mFilters.size(); i++) { in getPositionForRepresentation() 195 for (int i = 0; i < mFilters.size(); i++) { in hasModifications() 267 for (int i = 0; i < preset.mFilters.size(); i++) { in equals() 283 if (preset.mFilters.size() != mFilters.size()) { in same() 308 if (mFilters.size() > 0 || preset.mFilters.size() > 0) { in same() 314 for (int i = 0; i < preset.mFilters.size(); i++) { in same() 331 for (int i = 0; i < preset.mFilters.size(); i++) { in similarUpTo() 333 if (i < mFilters.size()) { in similarUpTo() 345 return preset.mFilters.size(); in similarUpTo() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 74 … 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/gallery3d/ui/ |
D | TileImageView.java | 253 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/ |
D | TimeClustering.java | 128 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 …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | CallLogGroupBuilderTest.java | 63 assertEquals(0, mFakeGroupCreator.groups.size()); in testAddGroups_NoCalls() 69 assertEquals(0, mFakeGroupCreator.groups.size()); in testAddGroups_OneCall() 76 assertEquals(0, mFakeGroupCreator.groups.size()); in testAddGroups_TwoCallsNotMatching() 84 assertEquals(1, mFakeGroupCreator.groups.size()); in testAddGroups_ThreeCallsMatching() 93 assertEquals(1, mFakeGroupCreator.groups.size()); in testAddGroups_MatchingIncomingAndOutgoing() 105 assertEquals(2, mFakeGroupCreator.groups.size()); in testAddGroups_HeaderSplitsGroups() 165 assertEquals(2, mFakeGroupCreator.groups.size()); in testAddGroups_Mixed() 243 assertEquals(1, mFakeGroupCreator.groups.size()); in assertCallsAreGrouped() 254 assertEquals(0, mFakeGroupCreator.groups.size()); in assertCallsAreNotGrouped() 313 private void assertGroupIs(int cursorPosition, int size, boolean expanded, GroupSpec group) { in assertGroupIs() argument [all …]
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
D | WalkAroundWallpaper.java | 173 for (Camera.Size size : sizes) { in startPreview() 175 size.width == metrics.heightPixels && size.height == metrics.widthPixels) || in startPreview() 177 size.width == metrics.widthPixels && size.height == metrics.heightPixels)) { in startPreview() 178 params.setPreviewSize(size.width, size.height); in startPreview() 185 for (Camera.Size size : sizes) { in startPreview() 186 if (size.width >= metrics.widthPixels && size.height >= metrics.heightPixels) { in startPreview() 187 params.setPreviewSize(size.width, size.height); in startPreview() 205 Camera.Size size = sizes.get(0); in startPreview() local 206 params.setPreviewSize(size.width, size.height); in startPreview()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 427 private static Point getDefaultDisplaySize(Activity activity, Point size) { in getDefaultDisplaySize() argument 430 d.getSize(size); in getDefaultDisplaySize() 432 size.set(d.getWidth(), d.getHeight()); in getDefaultDisplaySize() 434 return size; in getDefaultDisplaySize() 454 for (Size size : sizes) { in getOptimalPreviewSize() 455 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() 457 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 458 optimalSize = size; in getOptimalPreviewSize() 459 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 467 for (Size size : sizes) { in getOptimalPreviewSize() [all …]
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | Util.java | 428 private static Point getDefaultDisplaySize(Activity activity, Point size) { in getDefaultDisplaySize() argument 431 d.getSize(size); in getDefaultDisplaySize() 433 size.set(d.getWidth(), d.getHeight()); in getDefaultDisplaySize() 435 return size; in getDefaultDisplaySize() 455 for (Size size : sizes) { in getOptimalPreviewSize() 456 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() 458 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 459 optimalSize = size; in getOptimalPreviewSize() 460 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 468 for (Size size : sizes) { in getOptimalPreviewSize() [all …]
|