/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 49 const int level = clampToVisibleEntryLevelRange(newHistoricalInfo->getLevel()); in createUpdatedHistoricalInfo() local 51 return HistoricalInfo(timestamp, level, count); in createUpdatedHistoricalInfo() 57 const int level = clampToValidLevelRange(newHistoricalInfo->getLevel()); in createUpdatedHistoricalInfo() local 59 return HistoricalInfo(timestamp, level, count); in createUpdatedHistoricalInfo() 167 /* static */ int ForgettingCurveUtils::clampToVisibleEntryLevelRange(const int level) { in clampToVisibleEntryLevelRange() argument 168 return std::min(std::max(level, MIN_VISIBLE_LEVEL), MAX_LEVEL); in clampToVisibleEntryLevelRange() 176 /* static */ int ForgettingCurveUtils::clampToValidLevelRange(const int level) { in clampToValidLevelRange() argument 177 return std::min(std::max(level, 0), MAX_LEVEL); in clampToValidLevelRange() 199 for (int level = 0; level <= MAX_LEVEL; ++level) { in ProbabilityTable() local 200 mTables[tableId][level].resize(MAX_ELAPSED_TIME_STEP_COUNT + 1); in ProbabilityTable() [all …]
|
D | trie_map.cpp | 219 const Entry &bitmapEntry, const int level) const { in getTerminalEntryIndex() 220 const int label = getLabel(hashedKey, level); in getTerminalEntryIndex() 228 return getTerminalEntryIndex(key, hashedKey, entry, level + 1); in getTerminalEntryIndex() 248 const int bitmapEntryIndex, const int level) const { in getInternal() 250 readEntry(bitmapEntryIndex), level); in getInternal() 276 const int bitmapEntryIndex, const Entry &bitmapEntry, const int level) { in putInternal() argument 277 const int label = getLabel(hashedKey, level); in putInternal() 288 return putInternal(key, value, hashedKey, entryIndex, entry, level + 1); in putInternal() 295 return addNewEntryByResolvingConflict(key, value, hashedKey, entry, entryIndex, level); in putInternal() 311 const int level) { in addNewEntryByResolvingConflict() argument [all …]
|
D | forgetting_curve_utils.h | 68 int getProbability(const int tableId, const int level, in getProbability() argument 70 return mTables[tableId][level][elapsedTimeStepCount]; in getProbability() 89 static int getBaseProbabilityForLevel(const int tableId, const int level); 107 static int clampToVisibleEntryLevelRange(const int level); 108 static int clampToValidLevelRange(const int level);
|
D | trie_map.h | 292 const Entry &bitmapEntry, const int level) const; 294 const int bitmapEntryIndex, const int level) const; 296 const int bitmapEntryIndex, const Entry &bitmapEntry, const int level); 299 const int level); 334 AK_FORCE_INLINE int getLabel(const uint32_t hashedKey, const int level) const { in getLabel() argument 335 return (hashedKey >> (level * NUM_OF_BITS_USED_FOR_ONE_LEVEL)) & LABEL_MASK; in getLabel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 143 public Bitmap getTile(int level, int x, int y, int tileSize); in getTile() argument 256 int level = tile.mTileLevel; in layoutTiles() local 257 if (level < fromLevel || level >= endLevel in layoutTiles() 258 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 292 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument 293 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange() 303 int cX, int cY, int level, float scale, int rotation) { in getRange() argument 322 int size = sTileSize << level; in getRange() 412 int level = mLevel; in render() local 427 if (level != mLevelCount && !isScreenNailAnimating()) { in render() [all …]
|
D | TileImageViewAdapter.java | 87 public Bitmap getTile(int level, int x, int y, int tileSize) { in getTile() argument 89 return getTileWithoutReusingBitmap(level, x, y, tileSize); in getTile() 92 int t = tileSize << level; in getTile() 119 options.inSampleSize = (1 << level); in getTile() 141 int level, int x, int y, int tileSize) { in getTileWithoutReusingBitmap() argument 142 int t = tileSize << level; in getTileWithoutReusingBitmap() 158 options.inSampleSize = (1 << level); in getTileWithoutReusingBitmap() 175 (overlapRegion.left - wantRegion.left) >> level, in getTileWithoutReusingBitmap() 176 (overlapRegion.top - wantRegion.top) >> level, null); in getTileWithoutReusingBitmap()
|
D | BitmapTileProvider.java | 74 public Bitmap getTile(int level, int x, int y, int tileSize) { in getTile() argument 75 x >>= level; in getTile() local 76 y >>= level; in getTile() local 85 Bitmap mipmap = mMipmaps[level]; in getTile()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 158 public Bitmap getTile(int level, int x, int y, Bitmap reuse); in getTile() argument 311 int level = tile.mTileLevel; in layoutTiles() local 312 if (level < fromLevel || level >= endLevel in layoutTiles() 313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 349 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument 350 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange() 360 int cX, int cY, int level, float scale, int rotation) { in getRange() argument 379 int size = mTileSize << level; in getRange() 420 int level = mLevel; in draw() local 437 if (level != mLevelCount) { in draw() [all …]
|
D | TiledImageView.java | 361 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { in getTile() argument 368 mCanvas.drawColor(COLORS[level]); in getTile() 373 tileSize <<= level; in getTile() local 376 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint); in getTile()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 158 public Bitmap getTile(int level, int x, int y, Bitmap reuse); in getTile() argument 311 int level = tile.mTileLevel; in layoutTiles() local 312 if (level < fromLevel || level >= endLevel in layoutTiles() 313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 349 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument 350 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange() 360 int cX, int cY, int level, float scale, int rotation) { in getRange() argument 379 int size = mTileSize << level; in getRange() 420 int level = mLevel; in draw() local 437 if (level != mLevelCount) { in draw() [all …]
|
D | TiledImageView.java | 373 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { in getTile() argument 380 mCanvas.drawColor(COLORS[level]); in getTile() 385 tileSize <<= level; in getTile() local 388 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint); in getTile()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | Layout.java | 56 void Log(int level) { in Log() argument 289 void Log(int level) { in Log() argument 290 Log.d("Layout", indent(level) + "LayoutGetter"); in Log() 292 l.Log(level + 1); in Log() 425 void Log(int level) { in Log() argument 426 Log.d("Layout", indent(level) + "Header " + mAppearence); in Log() 428 i.Log(level + 1); in Log() 519 void Log(int level) { in Log() argument 520 Log.d("Layout", indent(level) + "Action #" + mActionId + " " + mAppearence); in Log() 593 void Log(int level) { in Log() argument [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | PowerSwitch.cpp | 97 void PowerSwitch::initialize (PowerLevel level) in initialize() argument 104 ALOGD ("%s: level=%s (%u)", fn, powerLevelToString(level), level); in initialize() 109 switch (level) in initialize() 113 mCurrLevel = level; in initialize() 118 mCurrLevel = level; in initialize() 140 PowerLevel level = UNKNOWN_LEVEL; in getLevel() local 142 level = mCurrLevel; in getLevel() 144 return level; in getLevel() 400 const char* PowerSwitch::powerLevelToString (PowerLevel level) in powerLevelToString() argument 402 switch (level) in powerLevelToString()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieItem.java | 33 private int level; field in PieItem 43 public PieItem(View view, int level) { in PieItem() argument 45 this.level = level; in PieItem() 51 public PieItem(View view, int level, PieView sym) { in PieItem() argument 53 this.level = level; in PieItem() 110 return level; in getLevel()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { in getTile() argument 128 return getTileWithoutReusingBitmap(level, x, y, tileSize); in getTile() 131 int t = tileSize << level; in getTile() 138 mOptions.inSampleSize = (1 << level); in getTile() 156 int level, int x, int y, int tileSize) { in getTileWithoutReusingBitmap() argument 158 int t = tileSize << level; in getTileWithoutReusingBitmap() 163 mOptions.inSampleSize = (1 << level); in getTileWithoutReusingBitmap() 180 (mOverlapRegion.left - mWantRegion.left) >> level, in getTileWithoutReusingBitmap() 181 (mOverlapRegion.top - mWantRegion.top) >> level, null); in getTileWithoutReusingBitmap()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | AccessPoint.java | 247 mRssi = result.level; in loadResult() 265 protected void updateIcon(int level, Context context) { in updateIcon() argument 266 if (level == -1) { in updateIcon() 286 drawable.setLevel(level); in updateIcon() 348 if (WifiManager.compareSignalLevel(result.level, mRssi) > 0) { in update() 350 mRssi = result.level; in update() 508 if (result.level > rssi5) { in getVisibilityStatus() 509 rssi5 = result.level; in getVisibilityStatus() 516 scans5GHz.append(",").append(result.level); in getVisibilityStatus() 528 if (result.level > rssi24) { in getVisibilityStatus() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 436 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { in getTile() argument 439 return getTileWithoutReusingBitmap(level, x, y, tileSize); in getTile() 442 int t = tileSize << level; in getTile() 449 mOptions.inSampleSize = (1 << level); in getTile() 467 int level, int x, int y, int tileSize) { in getTileWithoutReusingBitmap() argument 469 int t = tileSize << level; in getTileWithoutReusingBitmap() 474 mOptions.inSampleSize = (1 << level); in getTileWithoutReusingBitmap() 491 (mOverlapRegion.left - mWantRegion.left) >> level, in getTileWithoutReusingBitmap() 492 (mOverlapRegion.top - mWantRegion.top) >> level, null); in getTileWithoutReusingBitmap()
|
/packages/apps/Camera2/src/com/android/camera/debug/ |
D | Log.java | 122 private static boolean isLoggable(Tag tag, int level) { in isLoggable() argument 128 return LogHelper.getOverrideLevel() <= level; in isLoggable() 131 isDebugOsBuild() || shouldLog(tag, level); in isLoggable() 139 private static boolean shouldLog(Tag tag, int level) { in shouldLog() argument 141 return android.util.Log.isLoggable(CAMERA_LOGTAG_PREFIX, level) in shouldLog() 142 || android.util.Log.isLoggable(tag.toString(), level); in shouldLog()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/ |
D | bigram_dict_content.cpp | 42 int level = 0; in getBigramEntryAndAdvancePosition() local 47 level = bigramListBuffer->readUintAndAdvancePosition( in getBigramEntryAndAdvancePosition() 73 const HistoricalInfo historicalInfo(timestamp, level, count); in getBigramEntryAndAdvancePosition() 92 const int timestamp, const int level, const int count, int *const entryWritingPos) { in writeBigramEntryAttributesAndAdvancePosition() argument 107 if (!bigramListBuffer->writeUintAndAdvancePosition(level, in writeBigramEntryAttributesAndAdvancePosition() 110 level); in writeBigramEntryAttributesAndAdvancePosition()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcessStatsMemDetail.java | 100 float level, CharSequence value) { in addDetailsItem() argument 111 progress.setProgress(Math.round(level*100)); in addDetailsItem() 118 float level = ((float)mMemTimes[i])/mTotalTime; in fillMemStateSection() local 119 addDetailsItem(mMemStateParent, labels[i], level, in fillMemStateSection() 127 float level = (float)(weight/mMemTotalWeight); in addMemUseDetailsItem() local 130 addDetailsItem(parent, title, level, value); in addMemUseDetailsItem()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | PieItem.java | 38 private int level; field in PieItem 57 public PieItem(Drawable drawable, int level) { in PieItem() argument 59 this.level = level; in PieItem() 131 return level; in getLevel()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 398 final int level = bandLevels[band]; in setParameterBoolean() local 400 audioSession, Key.eq_band_level, level, band); in setParameterBoolean() 643 final short level = equalizerEffect.getBandLevel(band); in setParameterInt() local 644 editor.putInt(Key.eq_band_level.toString() + band, level); in setParameterInt() local 1152 short level = 0; in openSession() local 1155 level = eQPresetCIExtremeBandLevel[band]; in openSession() 1158 level = (short) prefs.getInt( in openSession() 1162 equalizerEffect.setBandLevel(band, level); in openSession()
|
D | ActivityMusic.java | 695 final short level = (short) (progress + mEqualizerMinBandLevel); in onProgressChanged() local 697 equalizerBandUpdate(band, level); in onProgressChanged() 746 final int level = bandLevels[band]; in equalizerUpdateDisplay() local 747 final int progress = level - mEqualizerMinBandLevel; in equalizerUpdateDisplay() 760 private void equalizerBandUpdate(final int band, final int level) { in equalizerBandUpdate() argument 762 ControlPanelEffect.Key.eq_band_level, level, band); in equalizerBandUpdate()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PreloadIconDrawable.java | 168 protected boolean onLevelChange(int level) { in onLevelChange() argument 169 mProgress = level; in onLevelChange() 177 if (level > 0) { in onLevelChange() 183 ((FastBitmapDrawable) mIcon).setGhostModeEnabled(level <= 0); in onLevelChange()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | LogUtils.java | 168 public static boolean isLoggable(String tag, int level) { in isLoggable() argument 169 if (MAX_ENABLED_LOG_LEVEL > level) { in isLoggable() 172 return Log.isLoggable(tag, level) || Log.isLoggable(TAG, level); in isLoggable()
|