Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 223) sorted by relevance

123456789

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp52 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 …]
Dtrie_map.cpp252 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 …]
Dforgetting_curve_utils.h66 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/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/
DS2CellOrderingTest.java31 for (int level = 0; level <= S2Support.MAX_S2_LEVEL; level++) { in ordering()
32 long minCellIdNumeric = S2CellOrdering.getMinCellIdNumeric(level); in ordering()
33 long maxCellIdNumeric = S2CellOrdering.getMaxCellIdNumeric(level); in ordering()
35 long faceMinCellIdNumeric = asUnsignedNumeric(S2Support.cellId(level, faceId, 0)); in ordering()
37 S2Support.cellId(level, faceId, S2Support.getMaxIndex(level))); in ordering()
39 if (level == 0) { in ordering()
41 assertEquals("level=" + level + ", faceId=" + faceId, in ordering()
44 assertTrue("level=" + level + ", faceId=" + faceId, in ordering()
49 assertEquals("level=" + level + ", faceId=" + faceId, in ordering()
52 assertTrue("level=" + level + ", faceId=" + faceId, in ordering()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DAccessPointPreference.java102 int level, IconInjector iconInjector) { in AccessPointPreference() argument
110 mLevel = level; in AccessPointPreference()
162 protected void updateIcon(int level, Context context) { in updateIcon() argument
163 if (level == -1) { in updateIcon()
168 Drawable drawable = mIconInjector.getIcon(level); in updateIcon()
220 int level = mAccessPoint.getLevel(); in refresh() local
222 if (level != mLevel || wifiSpeed != mWifiSpeed) { in refresh()
223 mLevel = level; in refresh()
261 int level = ap.getLevel(); in buildContentDescription() local
262 if (level >= 0 && level < WIFI_CONNECTION_STRENGTH.length) { in buildContentDescription()
[all …]
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/
DS2Support.java57 int level = getS2Level(cellId); in cellIdToString() local
60 return Long.toUnsignedString(cellId) + " (level=" + level + " faceId=" + faceId in cellIdToString()
101 public static long cellId(int level, int faceId, long index) { in cellId() argument
107 long maxIndexValue = getMaxIndex(level); in cellId()
110 "index=" + index + " > the max index value at level=" + level in cellId()
116 int storageBitCountForLevel = storageBitCountForLevel(level); in cellId()
146 public static int storageBitCountForLevel(int level) { in storageBitCountForLevel() argument
147 checkValidLevel(level); in storageBitCountForLevel()
148 return FACE_BIT_COUNT + (BIT_COUNT_PER_LEVEL * level); in storageBitCountForLevel()
166 int level = getS2Level(cellId); in offsetCellId() local
[all …]
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java158 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/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java142 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 …]
DTileImageViewAdapter.java87 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/
DTiledImageRenderer.java158 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/
DSeatWarmerController.java44 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/modules/Wifi/framework/java/android/net/wifi/
DScanResult.java303 public int level; field in ScanResult
483 public int level; field in ScanResult.RadioChainInfo
487 return "RadioChainInfo: id=" + id + ", level=" + level; in toString()
499 return id == other.id && level == other.level; in equals()
504 return Objects.hash(id, level); in hashCode()
1077 byte[] osuProviders, String caps, int level, int frequency, long tsf) { in ScanResult() argument
1090 this.level = level; in ScanResult()
1104 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() argument
1110 this.level = level; in ScanResult()
1125 int level, int frequency, in ScanResult() argument
[all …]
/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp90 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/modules/NeuralNetworks/tools/api/
DNeuralNetworksTypes.t64 // Operations below are available since NNAPI feature level 1.
68 // Operations below are available since NNAPI feature level 2.
72 // Operations below are available since NNAPI feature level 3.
76 // Operations below are available since NNAPI feature level 4.
87 * Available since NNAPI feature level 1.
125 * Each update of the NNAPI specification yields a new NNAPI feature level enum value.
126 * NNAPI feature level corrseponds to an NNAPI specification version that a driver
129 * A feature level up to and including "FEATURE_LEVEL_5" maps directly to
130 * the Android API level that introduced the corresponding update of the NNAPI
131 * specification. Feature levels after Android API level 31 have no association with
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DSeatWarmerButton.java39 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/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java125 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/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dprettywriter.h149 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/Settings/src/com/android/settings/network/telephony/
DNetworkOperatorPreference.java135 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh() local
136 if (DBG) Log.d(TAG, "refresh level: " + String.valueOf(level)); in refresh()
137 mLevel = level; in refresh()
144 public void setIcon(int level) { in setIcon() argument
145 updateIcon(level); in setIcon()
255 private void updateIcon(int level) { in updateIcon() argument
256 if (!mUseNewApi || level < 0 || level >= NUM_SIGNAL_STRENGTH_BINS) { in updateIcon()
260 setIcon(MobileNetworkUtils.getSignalStrengthIcon(context, level, NUM_SIGNAL_STRENGTH_BINS, in updateIcon()
/packages/apps/Messaging/src/com/android/messaging/util/
DLogSaver.java57 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()
DLogUtil.java219 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/modules/Wifi/framework/tests/src/android/net/wifi/
DScanResultTest.java175 writeScanResult.radioChainInfos[0].level = -45; in verifyScanResultParcelWithRadioChainInfo()
178 writeScanResult.radioChainInfos[1].level = -54; in verifyScanResultParcelWithRadioChainInfo()
202 scanResult.radioChainInfos[0].level = -45; in verifyScanResultCopyWithRadioChainInfo()
205 scanResult.radioChainInfos[1].level = -54; in verifyScanResultCopyWithRadioChainInfo()
253 scanResult.radioChainInfos[0].level = -45; in verifyScanResultToStringWithRadioChainInfo()
256 scanResult.radioChainInfos[1].level = -54; in verifyScanResultToStringWithRadioChainInfo()
303 result.level = TEST_LEVEL; in createScanResult()
316 assertEquals(expected.level, actual.level); in assertScanResultEquals()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DRssiUtil.java31 for (int level = 0; level < thresholds.length; level++) { in calculateSignalLevel()
32 if (rssi < thresholds[level]) { in calculateSignalLevel()
33 return level; in calculateSignalLevel()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java210 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/
DAutofillLoggingLevelPreferenceController.java96 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/
DHvacController.java80 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 …]

123456789