/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 52 const int level = clampToVisibleEntryLevelRange(newHistoricalInfo->getLevel()); in createUpdatedHistoricalInfo() local 54 return HistoricalInfo(timestamp, level, count); in createUpdatedHistoricalInfo() 62 const int level = clampToValidLevelRange(newHistoricalInfo->getLevel() + 1); in createUpdatedHistoricalInfo() local 63 return HistoricalInfo(timestamp, level, 0 /* count */); in createUpdatedHistoricalInfo() 65 const int level = clampToValidLevelRange(newHistoricalInfo->getLevel()); in createUpdatedHistoricalInfo() local 66 return HistoricalInfo(timestamp, level, clampToValidCountRange(count, headerPolicy)); in createUpdatedHistoricalInfo() 162 /* static */ int ForgettingCurveUtils::clampToVisibleEntryLevelRange(const int level) { in clampToVisibleEntryLevelRange() argument 163 return std::min(std::max(level, MIN_VISIBLE_LEVEL), MAX_LEVEL); in clampToVisibleEntryLevelRange() 171 /* static */ int ForgettingCurveUtils::clampToValidLevelRange(const int level) { in clampToValidLevelRange() argument 172 return std::min(std::max(level, 0), MAX_LEVEL); in clampToValidLevelRange() [all …]
|
D | trie_map.cpp | 252 const Entry &bitmapEntry, const int level) const { in getTerminalEntryIndex() 253 const int label = getLabel(hashedKey, level); in getTerminalEntryIndex() 261 return getTerminalEntryIndex(key, hashedKey, entry, level + 1); in getTerminalEntryIndex() 284 const int bitmapEntryIndex, const int level) const { in getInternal() 286 readEntry(bitmapEntryIndex), level); in getInternal() 312 const int bitmapEntryIndex, const Entry &bitmapEntry, const int level) { in putInternal() argument 313 const int label = getLabel(hashedKey, level); in putInternal() 324 return putInternal(key, value, hashedKey, entryIndex, entry, level + 1); in putInternal() 335 return addNewEntryByResolvingConflict(key, value, hashedKey, entry, entryIndex, level); in putInternal() 351 const int level) { in addNewEntryByResolvingConflict() argument [all …]
|
D | forgetting_curve_utils.h | 66 int getProbability(const int tableId, const int level, in getProbability() argument 68 return mTables[tableId][level][elapsedTimeStepCount]; in getProbability() 87 static int getBaseProbabilityForLevel(const int tableId, const int level); 106 static int clampToVisibleEntryLevelRange(const int level); 107 static int clampToValidLevelRange(const int level);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 142 public Bitmap getTile(int level, int x, int y, int tileSize); in getTile() argument 255 int level = tile.mTileLevel; in layoutTiles() local 256 if (level < fromLevel || level >= endLevel in layoutTiles() 257 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 291 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument 292 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange() 302 int cX, int cY, int level, float scale, int rotation) { in getRange() argument 321 int size = sTileSize << level; in getRange() 411 int level = mLevel; in render() local 426 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()
|
/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 …]
|
/packages/apps/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 …]
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/ |
D | SeatWarmerController.java | 44 public void onPassengerSeatWarmerChange(int level) { 47 if (level < SeatWarmerButton.HEAT_OFF) { 50 mPassengerSeatButton.setHeatLevel(level); 55 public void onDriverSeatWarmerChange(int level) { 58 if (level < SeatWarmerButton.HEAT_OFF) { 61 mDriverSeatButton.setHeatLevel(level); 69 public void onSeatWarmerButtonClicked(@SeatWarmerButton.HeatingLevel int level) { 70 mHvacController.setPassengerSeatWarmerLevel(level); 77 public void onSeatWarmerButtonClicked(@SeatWarmerButton.HeatingLevel int level) { 78 mHvacController.setDriverSeatWarmerLevel(level);
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | NetworkOperatorPreference.java | 76 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh() local 77 if (DBG) Log.d(TAG, "refresh level: " + String.valueOf(level)); in refresh() 78 if (mLevel != level) { in refresh() 79 mLevel = level; in refresh() 87 public void setIcon(int level) { in setIcon() argument 88 updateIcon(level); in setIcon() 109 private void updateIcon(int level) { in updateIcon() argument 110 if (!mUseNewApi || level < 0 || level >= NUM_SIGNAL_STRENGTH_BINS) { in updateIcon() 114 setIcon(MobileNetworkUtils.getSignalStrengthIcon(context, level, NUM_SIGNAL_STRENGTH_BINS, in updateIcon()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | NetworkOperatorPreference.java | 83 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh() local 84 if (DBG) Log.d(TAG, "refresh level: " + String.valueOf(level)); in refresh() 85 if (mLevel != level) { in refresh() 86 mLevel = level; in refresh() 94 public void setIcon(int level) { in setIcon() argument 95 updateIcon(level); in setIcon() 116 private void updateIcon(int level) { in updateIcon() argument 117 if (level < 0 || level >= NUMBER_OF_LEVELS) return; in updateIcon() 121 SignalDrawable.getState(level, NUMBER_OF_LEVELS, false /* cutOut */)); in updateIcon()
|
/packages/apps/Nfc/nci/jni/ |
D | PowerSwitch.cpp | 90 void PowerSwitch::initialize(PowerLevel level) { in initialize() argument 96 "%s: level=%s (%u)", fn, powerLevelToString(level), level); in initialize() 103 switch (level) { in initialize() 106 mCurrLevel = level; in initialize() 111 mCurrLevel = level; in initialize() 131 PowerLevel level = UNKNOWN_LEVEL; in getLevel() local 133 level = mCurrLevel; in getLevel() 135 return level; in getLevel() 381 const char* PowerSwitch::powerLevelToString(PowerLevel level) { in powerLevelToString() argument 382 switch (level) { in powerLevelToString()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | prettywriter.h | 149 typename Base::Level* level = Base::level_stack_.template Top<typename Base::Level>(); in PrettyPrefix() local 151 if (level->inArray) { in PrettyPrefix() 152 if (level->valueCount > 0) { in PrettyPrefix() 161 if (level->valueCount > 0) { in PrettyPrefix() 162 if (level->valueCount % 2 == 0) { in PrettyPrefix() 174 if (level->valueCount % 2 == 0) in PrettyPrefix() 177 if (!level->inArray && level->valueCount % 2 == 0) in PrettyPrefix() 179 level->valueCount++; in PrettyPrefix()
|
/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/Car/Hvac/src/com/android/car/hvac/ui/ |
D | SeatWarmerButton.java | 39 void onSeatWarmerButtonClicked(@HeatingLevel int level); in onSeatWarmerButtonClicked() argument 90 public void setHeatLevel(@HeatingLevel int level) { in setHeatLevel() argument 91 mCurrentHeatSetting = level; in setHeatLevel() 95 private Drawable getDrawableForState(@HeatingLevel int level) { in getDrawableForState() argument 96 switch (level) { in getDrawableForState() 109 private @HeatingLevel int getNextHeatSetting(@HeatingLevel int level) { in getNextHeatSetting() argument 110 switch (level) { in getNextHeatSetting()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | LogSaver.java | 57 public abstract void log(int level, String tag, String msg); in log() argument 110 void set(int tid, int level, long time, String tag, String message) { in set() argument 115 this.mLevelString = getLevelString(level); in set() 145 public void log(int level, String tag, String msg) { in log() argument 151 rec.set(Process.myTid(), level, System.currentTimeMillis(), tag, msg); in log() local 250 public void log(int level, String tag, String msg) { in log() argument 254 Process.myPid(), Process.myTid(), getLevelString(level), tag, msg)); in log() 275 private static String getLevelString(final int level) { in getLevelString() argument 276 switch (level) { in getLevelString()
|
D | LogUtil.java | 219 private static void println(final int level, final String tag, final String msg) { in println() argument 220 android.util.Log.println(level, tag, msg); in println() 223 if (serviceLog != null && level >= android.util.Log.DEBUG) { in println() 224 serviceLog.log(level, tag, msg); in println() 236 public static void save(final int level, final String tag, final String msg) { in save() argument 239 serviceLog.log(level, tag, msg); in save() 247 public static boolean isLoggable(final String tag, final int level) { in isLoggable() argument 248 return android.util.Log.isLoggable(tag, level); in isLoggable()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 210 int level = p.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in printCameraInfo() local 211 … Log.v(TAG, "CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL: " + getHardwareLevelName(level)); in printCameraInfo() 269 public static String getTimestampSourceName(Integer level) { in getTimestampSourceName() argument 270 if (level == null) return "null"; in getTimestampSourceName() 271 switch (level) { in getTimestampSourceName() 280 public static String getFocusDistanceCalibrationName(Integer level) { in getFocusDistanceCalibrationName() argument 281 if (level == null) return "null"; in getFocusDistanceCalibrationName() 282 switch (level) { in getFocusDistanceCalibrationName() 317 public static String getHardwareLevelName(int level) { in getHardwareLevelName() argument 318 switch (level) { in getHardwareLevelName()
|
/packages/apps/Settings/src/com/android/settings/development/autofill/ |
D | AutofillLoggingLevelPreferenceController.java | 96 final int level = Settings.Global.getInt(mContext.getContentResolver(), in updateOptions() local 100 if (level == AutofillManager.FLAG_ADD_CLIENT_DEBUG) { in updateOptions() 102 } else if (level == AutofillManager.FLAG_ADD_CLIENT_VERBOSE) { in updateOptions() 113 int level = AutofillManager.NO_LOGGING; in writeLevel() local 115 level = Integer.parseInt((String) newValue); in writeLevel() 118 Settings.Global.AUTOFILL_LOGGING_LEVEL, level); in writeLevel() local
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 80 public void onPassengerSeatWarmerChange(int level) { in onPassengerSeatWarmerChange() argument 83 public void onDriverSeatWarmerChange(int level) { in onDriverSeatWarmerChange() argument 259 void handleSeatWarmerUpdate(int zone, int level) { in handleSeatWarmerUpdate() argument 260 boolean shouldPropagate = mDataStore.shouldPropagateSeatWarmerLevelUpdate(zone, level); in handleSeatWarmerUpdate() 262 Log.d(TAG, "Seat Warmer Update, zone: " + zone + " level: " + level + in handleSeatWarmerUpdate() 269 mCallbacks.get(i).onDriverSeatWarmerChange(level); in handleSeatWarmerUpdate() 271 mCallbacks.get(i).onPassengerSeatWarmerChange(level); in handleSeatWarmerUpdate() 531 public void setDriverSeatWarmerLevel(int level) { in setDriverSeatWarmerLevel() argument 532 setSeatWarmerLevel(VehicleAreaSeat.SEAT_ROW_1_LEFT, level); in setDriverSeatWarmerLevel() 535 public void setPassengerSeatWarmerLevel(int level) { in setPassengerSeatWarmerLevel() argument [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/autofill/ |
D | AutofillLoggingLevelPreferenceController.java | 96 final int level = Settings.Global.getInt(mContext.getContentResolver(), in updateOptions() local 100 if (level == AutofillManager.FLAG_ADD_CLIENT_DEBUG) { in updateOptions() 102 } else if (level == AutofillManager.FLAG_ADD_CLIENT_VERBOSE) { in updateOptions() 113 int level = AutofillManager.NO_LOGGING; in writeLevel() local 115 level = Integer.parseInt((String) newValue); in writeLevel() 118 Settings.Global.AUTOFILL_LOGGING_LEVEL, level); in writeLevel() local
|
/packages/apps/TV/src/com/android/tv/parental/ |
D | ContentRatingLevelPolicy.java | 37 @ContentRatingLevel int level) { in getRatingsForLevel() argument 38 if (level == TvSettings.CONTENT_RATING_LEVEL_NONE) { in getRatingsForLevel() 40 } else if (level == TvSettings.CONTENT_RATING_LEVEL_HIGH) { in getRatingsForLevel() 42 } else if (level == TvSettings.CONTENT_RATING_LEVEL_MEDIUM) { in getRatingsForLevel() 44 } else if (level == TvSettings.CONTENT_RATING_LEVEL_LOW) { in getRatingsForLevel()
|
D | ParentalControlSettings.java | 119 ContentRatingsManager manager, @ContentRatingLevel int level) { in setContentRatingLevel() argument 121 if (level == currentLevel) { in setContentRatingLevel() 127 TvSettings.setContentRatingLevel(mContext, level); in setContentRatingLevel() 128 if (level == TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in setContentRatingLevel() 133 mRatings = ContentRatingLevelPolicy.getRatingsForLevel(this, manager, level); in setContentRatingLevel() 134 if (level != TvSettings.CONTENT_RATING_LEVEL_NONE in setContentRatingLevel()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieItem.java | 34 private int level; field in PieItem 52 public PieItem(Drawable drawable, int level) { in PieItem() argument 54 this.level = level; in PieItem() 113 return level; in getLevel()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieItem.java | 37 private int level; field in PieItem 56 public PieItem(Drawable drawable, int level) { in PieItem() argument 58 this.level = level; in PieItem() 130 return level; in getLevel()
|
/packages/modules/SdkExtensions/ |
D | README.md | 3 SdkExtensions is a module that decides the extension SDK level of the device, 4 and provides APIs for applications to query the extension SDK level. 13 exposes APIs to applications to query the extension SDK level. 15 ## Deriving extension SDK level 22 ## Reading extension SDK level
|