/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | UserHistoryForgettingCurveUtils.java | 69 // All words with level >= 1 had been saved. 70 // Invalid words with level == 0 had been saved. 71 // Valid words words with level == 0 had *not* been saved. 133 private static int calcFreq(int elapsedTime, int count, int level) { argument 134 if (level <= 0) { 140 ++level; 143 final int l = Math.min(FC_LEVEL_MAX, Math.max(0, level)); 147 /* pakcage */ static byte calcFc(int elapsedTime, int count, int level) { argument 150 final int l = Math.min(FC_LEVEL_MAX, Math.max(0, level)); 157 final int level [all...] |
H A D | LocaleUtils.java | 40 // Locale match level constants. 41 // A higher level of match is guaranteed to have a higher numerical value. 64 // The compared locales are fully identical. This is the best match level. 67 // The level at which a match is "normally" considered a locale match with standard algorithms. 71 // Make this match the maximum match level. If this evolves to have more than 2 digits 141 * Return a string that represents this match level, with better matches first. 153 * Find out whether a match level should be considered a match. 155 * This method takes a match level as returned by the #getMatchLevel method, and returns whether 158 * @param level the match level, a 161 isMatch(int level) argument [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
H A D | PieItem.java | 33 private int level; field in class:PieItem 43 public PieItem(View view, int level) { argument 45 this.level = level; 51 public PieItem(View view, int level, PieView sym) { argument 53 this.level = level; 110 return level;
|
/packages/apps/Nfc/nci/jni/ |
H A D | PowerSwitch.h | 39 ** Description: UNKNOWN_LEVEL: power level is unknown because the stack is off. 62 ** UNKNOWN_LEVEL: power level is unknown. 122 void initialize (PowerLevel level); 129 ** Description: Get the current power level of the controller. 131 ** Returns: Power level. 141 ** Description: Set the controller's power level. 142 ** level: power level. 147 bool setLevel (PowerLevel level); 240 ** Description: Decode power level t [all...] |
H A D | PowerSwitch.cpp | 98 void PowerSwitch::initialize (PowerLevel level) argument 105 ALOGD ("%s: level=%s (%u)", fn, powerLevelToString(level), level); 110 switch (level) 114 mCurrLevel = level; 119 mCurrLevel = level; 134 ** Description: Get the current power level of the controller. 136 ** Returns: Power level. 141 PowerLevel level local 385 powerLevelToString(PowerLevel level) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | PieItem.java | 37 private int level; field in class:PieItem 52 public PieItem(Drawable drawable, int level) { argument 54 this.level = level; 88 public void setLevel(int level) { argument 89 this.level = level; 133 return level;
|
H A D | PieRenderer.java | 381 private void layoutLabel(int level) { argument 383 * (mArcRadius + (level + 2) * mRadiusInc)); 384 int y = mArcCenterY - mArcRadius - (level + 2) * mRadiusInc; 390 private void layoutItems(int level, List<PieItem> items) { argument 394 mPieCenterX, mArcCenterY - level * mRadiusInc); 406 int y = mArcCenterY - (level * mRadiusInc) - (int) (r * Math.sin(angle)) - h / 2; 409 item.setLevel(level); 411 layoutItems(level + 1, item.getItems()); 565 int level = getLevel(); 566 drawArc(canvas, level, getOpenIte 583 drawArc(Canvas canvas, int level, PieItem item) argument 596 drawItem(int level, int pos, int count, Canvas canvas, PieItem item, float alpha) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | TileImageViewAdapter.java | 76 // at (50, 50) with sample level 1 (ie, down sampled by 2^1) and the 87 public Bitmap getTile(int level, int x, int y, int tileSize) { argument 89 return getTileWithoutReusingBitmap(level, x, y, tileSize); 92 int t = tileSize << level; 119 options.inSampleSize = (1 << level); 141 int level, int x, int y, int tileSize) { 142 int t = tileSize << level; 158 options.inSampleSize = (1 << level); 175 (overlapRegion.left - wantRegion.left) >> level, 176 (overlapRegion.top - wantRegion.top) >> level, nul 140 getTileWithoutReusingBitmap( int level, int x, int y, int tileSize) argument [all...] |
H A D | BitmapTileProvider.java | 74 public Bitmap getTile(int level, int x, int y, int tileSize) { argument 75 x >>= level; 76 y >>= level; 85 Bitmap mipmap = mMipmaps[level];
|
H A D | TileImageView.java | 81 // The mLevel variable indicates which level of bitmap we should use. 138 // If level > 0, it does the same operation on a down-scaled version of 139 // the original image (down-scaled by a factor of 2^level), but (x, y) 143 public Bitmap getTile(int level, int x, int y, int tileSize); argument 201 // 1. Decide the tile level we want to use for display. 219 // We want to keep one more tile level as texture in addition to what 221 // next level. We choose a level closer to the current scale. 251 // Recycle unused tiles: if the level of the active tile is outside the 256 int level 292 getRange(Rect out, int cX, int cY, int level, int rotation) argument 302 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument 513 obtainTile(int x, int y, int level) argument 536 activateTile(int x, int y, int level) argument 549 getTile(int x, int y, int level) argument 553 makeTileKey(int x, int y, int level) argument 590 drawTile(GLCanvas canvas, int tx, int ty, int level, float x, float y, float length) argument 661 Tile(int x, int y, int level) argument 714 update(int x, int y, int level) argument [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | PieItem.java | 38 private int level; field in class:PieItem 57 public PieItem(Drawable drawable, int level) { argument 59 this.level = level; 131 return level;
|
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { argument 128 return getTileWithoutReusingBitmap(level, x, y, tileSize); 131 int t = tileSize << level; 138 mOptions.inSampleSize = (1 << level); 156 int level, int x, int y, int tileSize) { 158 int t = tileSize << level; 163 mOptions.inSampleSize = (1 << level); 180 (mOverlapRegion.left - mWantRegion.left) >> level, 181 (mOverlapRegion.top - mWantRegion.top) >> level, null); 155 getTileWithoutReusingBitmap( int level, int x, int y, int tileSize) argument
|
/packages/inputmethods/PinyinIME/jni/share/ |
H A D | dictbuilder.cpp | 191 // The root and first level nodes is less than kMaxSpellingNum + 1 772 size_t level) { 773 if (level >= kMaxLemmaSize || item_end <= item_start) 782 uint16 spl_idx_node = lma_last_start->spl_idx_arr[level]; 787 uint16 spl_idx_current = lma_current->spl_idx_arr[level]; 799 assert(level < kMaxLemmaSize); 800 if (parent_son_num > max_sonbuf_len_[level]) 801 max_sonbuf_len_[level] = parent_son_num; 803 total_son_num_[level] += parent_son_num; 804 total_sonbuf_num_[level] 770 construct_subset(void* parent, LemmaEntry* lemma_arr, size_t item_start, size_t item_end, size_t level) argument [all...] |
H A D | spellingtrie.cpp | 428 size_t item_start, size_t item_end, size_t level, SpellingNode* parent) { 429 if (level >= spelling_size_ || item_end <= item_start || NULL == parent) 437 char char_for_node = spelling_last_start[level]; 444 char char_current = spelling_current[level]; 463 char_for_node = spelling_last_start[level]; 466 if (spelling_last_start[level + 1] != '\0') 473 char char_current = spelling_current[level]; 481 // For quick search in the first level 482 if (0 == level) 489 if (spelling_last_start[level 427 construct_spellings_subset( size_t item_start, size_t item_end, size_t level, SpellingNode* parent) argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 79 // The mLevel variable indicates which level of bitmap we should use. 152 * If level > 0, it does the same operation on a down-scaled version of 153 * the original image (down-scaled by a factor of 2^level), but (x, y) 158 public Bitmap getTile(int level, int x, int y, Bitmap reuse); argument 253 // 1. Decide the tile level we want to use for display. 272 // We want to keep one more tile level as texture in addition to what 274 // next level. We choose the level closest to the current scale. 306 // Recycle unused tiles: if the level of the active tile is outside the 311 int level 349 getRange(Rect out, int cX, int cY, int level, int rotation) argument 359 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument 519 obtainTile(int x, int y, int level) argument 546 activateTile(int x, int y, int level) argument 559 getTile(int x, int y, int level) argument 563 makeTileKey(int x, int y, int level) argument 596 drawTile(GLCanvas canvas, int tx, int ty, int level, float x, float y, float length) argument 671 Tile(int x, int y, int level) argument 727 update(int x, int y, int level) argument [all...] |
H A D | TiledImageView.java | 361 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { argument 368 mCanvas.drawColor(COLORS[level]); 373 tileSize <<= level; 376 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint);
|
/packages/apps/Launcher3/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 79 // The mLevel variable indicates which level of bitmap we should use. 152 * If level > 0, it does the same operation on a down-scaled version of 153 * the original image (down-scaled by a factor of 2^level), but (x, y) 158 public Bitmap getTile(int level, int x, int y, Bitmap reuse); argument 253 // 1. Decide the tile level we want to use for display. 272 // We want to keep one more tile level as texture in addition to what 274 // next level. We choose the level closest to the current scale. 306 // Recycle unused tiles: if the level of the active tile is outside the 311 int level 349 getRange(Rect out, int cX, int cY, int level, int rotation) argument 359 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument 519 obtainTile(int x, int y, int level) argument 546 activateTile(int x, int y, int level) argument 559 getTile(int x, int y, int level) argument 563 makeTileKey(int x, int y, int level) argument 596 drawTile(GLCanvas canvas, int tx, int ty, int level, float x, float y, float length) argument 671 Tile(int x, int y, int level) argument 727 update(int x, int y, int level) argument [all...] |
H A D | TiledImageView.java | 361 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { argument 368 mCanvas.drawColor(COLORS[level]); 373 tileSize <<= level; 376 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint);
|
/packages/apps/Launcher3/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 153 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { argument 156 return getTileWithoutReusingBitmap(level, x, y, tileSize); 159 int t = tileSize << level; 166 mOptions.inSampleSize = (1 << level); 184 int level, int x, int y, int tileSize) { 186 int t = tileSize << level; 191 mOptions.inSampleSize = (1 << level); 208 (mOverlapRegion.left - mWantRegion.left) >> level, 209 (mOverlapRegion.top - mWantRegion.top) >> level, null); 183 getTileWithoutReusingBitmap( int level, int x, int y, int tileSize) argument
|
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/ |
H A D | Utf8ByteLengthFilterTest.java | 35 level = TestLevel.COMPLETE, 41 level = TestLevel.COMPLETE,
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | TileDrawable.java | 122 protected boolean onLevelChange(int level) { argument 123 return mInner.setLevel(level);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | LocaleUtils.java | 38 // Locale match level constants. 39 // A higher level of match is guaranteed to have a higher numerical value. 62 // The compared locales are fully identical. This is the best match level. 65 // The level at which a match is "normally" considered a locale match with standard algorithms. 69 // Make this match the maximum match level. If this evolves to have more than 2 digits 139 * Return a string that represents this match level, with better matches first. 151 * Find out whether a match level should be considered a match. 153 * This method takes a match level as returned by the #getMatchLevel method, and returns whether 156 * @param level the match level, a 159 isMatch(final int level) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | LogUtils.java | 166 * Checks to see whether or not a log for the specified tag is loggable at the specified level. 168 public static boolean isLoggable(String tag, int level) { argument 169 if (MAX_ENABLED_LOG_LEVEL > level) { 172 return Log.isLoggable(tag, level) || Log.isLoggable(TAG, level); 352 * The error will always be logged at level ASSERT with the call stack. 370 * The error will always be logged at level ASSERT with the call stack.
|
/packages/inputmethods/PinyinIME/jni/include/ |
H A D | dictbuilder.h | 47 // In the tree, root's level is -1. 48 // Lemma nodes for root, and level 0 136 size_t item_start, size_t item_end, size_t level);
|
H A D | spellingtrie.h | 103 // Used to get the first level sons. 131 size_t level, SpellingNode *parent);
|