Home
last modified time | relevance | path

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

12345678910>>...17

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBaseDataTest.java55 info.level = 1; in baseInformation()
59 info.level = 2; in baseInformation()
66 info.level = 3; in baseInformation()
104 BaseData.BaseInformation level = data.getLevelOne(); in parseBaseData() local
105 assertThat(level.presentationDelay).isEqualTo(new byte[] {0x01, 0x02, 0x03}); in parseBaseData()
106 assertThat(level.numSubGroups).isEqualTo(1); in parseBaseData()
109 level = data.getLevelTwo().get(0); in parseBaseData()
111 assertThat(level.numSubGroups).isEqualTo(1); in parseBaseData()
112 assertThat(level.codecId).isEqualTo(new byte[] {0x00, 0x00, 0x00, 0x00, 0x00}); in parseBaseData()
113 assertThat(level.codecConfigLength).isEqualTo(2); in parseBaseData()
[all …]
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DDynamicLogger.java78 public void log(LogLevel level, String tag, @FormatString String msgFmt, Object... msgArgs) { in log() argument
79 mRealLogger.log(level, tag, msgFmt, msgArgs); in log()
85 LogLevel level, in log() argument
90 mRealLogger.log(level, tag, throwable, msgFmt, msgArgs); in log()
127 private static void call(LogLevel level, String tag, @Nullable Method method, Object... args) { in call() argument
130 sFallbackLogger.log(level, tag, "%s", args); in call()
145 LogLevel level, in call() argument
152 sFallbackLogger.log(level, tag, throwable, "%s", args); in call()
204 LogLevel level, String tag, @FormatString String msgFmt, Object... msgArgs) { in log() argument
206 switch (level) { in log()
[all …]
DAndroidSdk.java72 Level(int level) { in Level() argument
73 mLevel = level; in Level()
78 public boolean isAtLeast(Level level) { in isAtLeast() argument
79 return mLevel >= level.mLevel; in isAtLeast()
89 public static Level forLevel(int level) { in forLevel() argument
90 switch (level) { in forLevel()
106 if (level > VIC) { in forLevel()
110 level, DEV.mLevel); in forLevel()
113 throw new IllegalArgumentException("Unsupported level: " + level); in forLevel()
141 public static Range forAtLeast(int level) { in forAtLeast() argument
[all …]
DLogEntry.java29 public final LogLevel level; field in LogEntry
34 public LogEntry(LogLevel level, String tag, String message) { in LogEntry() argument
35 this(level, tag, message, /* throwable= */ null); in LogEntry()
38 public LogEntry(LogLevel level, String tag, String message, @Nullable Throwable throwable) { in LogEntry() argument
39 this.level = Objects.requireNonNull(level, "level cannot be null"); in LogEntry()
47 return Objects.hash(level, message, tag, throwable); in hashCode()
56 return level == other.level in equals()
65 + level in toString()
106 check("level").that(mActual.level).isEqualTo(expected); in hasLevel()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DS2CellOrderingTest.java32 for (int level = 0; level <= S2Support.MAX_S2_LEVEL; level++) { in ordering()
33 long minCellIdNumeric = S2CellOrdering.getMinCellIdNumeric(level); in ordering()
34 long maxCellIdNumeric = S2CellOrdering.getMaxCellIdNumeric(level); in ordering()
36 long faceMinCellIdNumeric = asUnsignedNumeric(S2Support.cellId(level, faceId, 0)); in ordering()
38 S2Support.cellId(level, faceId, S2Support.getMaxIndex(level))); in ordering()
40 if (level == 0) { in ordering()
42 assertEquals("level=" + level + ", faceId=" + faceId, in ordering()
45 assertTrue("level=" + level + ", faceId=" + faceId, in ordering()
50 assertEquals("level=" + level + ", faceId=" + faceId, in ordering()
53 assertTrue("level=" + level + ", faceId=" + faceId, in ordering()
[all …]
/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 …]
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/
DMockitoKotlinHelpers.kt49 level = ERROR
62 level = ERROR in eq()
75 level = WARNING in eq()
82 level = WARNING in eq()
95 level = WARNING in eq()
107 level = ERROR in eq()
122 level = ERROR in eq()
136 level = ERROR in eq()
163 @Deprecated("Replace with mockito-kotlin. See http://go/mockito-kotlin", level = WARNING) in eq()
173 level = ERROR
[all …]
/packages/modules/Bluetooth/system/log/src/
Dvlog_syslog.cc51 void vlog(Level level, char const* tag, source_location location, in vlog() argument
55 if (level < current_level) { in vlog()
61 switch (level) { in vlog()
96 if (level == Level::kFatal) { in vlog()
105 void SetLogLevelForTag(char const* tag, uint8_t level) { in SetLogLevelForTag() argument
106 if (level < bluetooth::log_internal::Level::kVerbose || in SetLogLevelForTag()
107 level > bluetooth::log_internal::Level::kFatal) { in SetLogLevelForTag()
108 level = bluetooth::log_internal::GetDefaultLogLevel(); in SetLogLevelForTag()
112 tag, static_cast<bluetooth::log_internal::Level>(level)); in SetLogLevelForTag()
115 void SetDefaultLogLevel(uint8_t level) { in SetDefaultLogLevel() argument
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DAccessPointPreference.java101 int level, IconInjector iconInjector) { in AccessPointPreference() argument
108 mLevel = level; in AccessPointPreference()
160 protected void updateIcon(int level, Context context) { in updateIcon() argument
161 if (level == -1) { in updateIcon()
166 Drawable drawable = mIconInjector.getIcon(level); in updateIcon()
218 int level = mAccessPoint.getLevel(); in refresh() local
220 if (level != mLevel || wifiSpeed != mWifiSpeed) { in refresh()
221 mLevel = level; in refresh()
256 int level = ap.getLevel(); in buildContentDescription() local
257 if (level >= 0 && level < WIFI_CONNECTION_STRENGTH.length) { in buildContentDescription()
[all …]
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/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/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBloodGlucoseFormatterTest.kt119 val record = getRecord(level = 25.0, mealType = MEAL_TYPE_DINNER) in <lambda>()
127 val record = getRecord(level = 25.0, mealType = MEAL_TYPE_SNACK) in <lambda>()
135 val record = getRecord(level = 25.0, mealType = MEAL_TYPE_LUNCH) in <lambda>()
143 val record = getRecord(level = 25.0, mealType = MEAL_TYPE_BREAKFAST) in <lambda>()
151 val record = getRecord(level = 25.0, relationToMeal = RELATION_TO_MEAL_BEFORE_MEAL) in <lambda>()
159 val record = getRecord(level = 25.0, relationToMeal = RELATION_TO_MEAL_AFTER_MEAL) in <lambda>()
167 val record = getRecord(level = 25.0, relationToMeal = RELATION_TO_MEAL_FASTING) in <lambda>()
175 val record = getRecord(level = 25.0, relationToMeal = RELATION_TO_MEAL_GENERAL) in formatValue_general_showsRelationToMeal()
183 val record = getRecord(level = 25.0, source = SPECIMEN_SOURCE_WHOLE_BLOOD) in <lambda>()
191 val record = getRecord(level = 25.0, source = SPECIMEN_SOURCE_SERUM) in <lambda>()
[all …]
/packages/modules/AdServices/shared/tests/host-side/java/com/android/adservices/shared/testing/
DHostSideDynamicLoggerTest.java150 private void assertLogEntry(LogLevel level, String message) { in assertLogEntry() argument
156 String expectedMessage = getExpectedMessage(level, mTag, message); in assertLogEntry()
160 .hasLevel(level) in assertLogEntry()
166 LogLevel level, Throwable throwable, String message) throws IOException { in assertLogEntryWithFlattenedException() argument
167 assertLogEntry(level, DynamicLogger.getMessageWithFlattenedException(message, throwable)); in assertLogEntryWithFlattenedException()
171 LogLevel level, Throwable throwable, String message) throws IOException { in assertLogEntryWithMultiLineException() argument
178 String expectedMessage = getExpectedMessage(level, mTag, message); in assertLogEntryWithMultiLineException()
182 .hasLevel(level) in assertLogEntryWithMultiLineException()
197 .hasLevel(level) in assertLogEntryWithMultiLineException()
204 getExpectedMessage(level, throwable.toString()) + "\n")); in assertLogEntryWithMultiLineException()
[all …]
/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/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/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/
Dsource_deactivation.json67 // Should not result in an event-level report as top level filter data
93 // Should result in an event-level report and deactivate the third source.
114 // Should not result in an event-level report as the third source was
136 // Should not result in an event-level report as the third source was
201 // Should not result in an event-level report as filter data doesn't match.
202 // Top level filters match, so the second corresponding source should
227 // Should not result in an event-level report as the second source was
Devent_report_windows.json55 // Should result in an event-level report in the first window
78 // Should not result in an event-level report as the event report start
104 // Should result in an event-level report in the first window.
127 // Should not result in an event-level report.
150 // Should result in an event-level report in the last window.
173 // Should not result in an event-level report as the last window was
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DBatteryInfo.java39 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); in handleBatteryStatusIntent() local
42 if (level != -1 && scale > 0) { in handleBatteryStatusIntent()
43 return level / (float) scale; in handleBatteryStatusIntent()
45 LogUtil.e(TAG, "Bad Battery Changed intent: batteryLevel= %d, scale=%d", level, scale); in handleBatteryStatusIntent()
60 float level = handleBatteryStatusIntent(stickyIntent); in batteryOkForTraining() local
64 if (requireBatteryNotLow && level < minBatteryLevel) { in batteryOkForTraining()
68 level, in batteryOkForTraining()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dsyslog.rs28 fn SetLogLevelForTag(tag: *const c_char, level: u8); in SetLogLevelForTag()
29 fn SetDefaultLogLevel(level: u8); in SetDefaultLogLevel()
40 pub fn set_log_level_for_tag(tag: &str, level: Level) { in set_log_level_for_tag()
44 SetLogLevelForTag(cstr.as_ptr(), level.to_u8().unwrap_or(DEFAULT_LEVEL)); in set_log_level_for_tag()
52 pub fn set_default_log_level(level: Level) { in set_default_log_level()
54 SetDefaultLogLevel(level.to_u8().unwrap_or(DEFAULT_LEVEL)); in set_default_log_level()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_logging.rs55 let level = if self.is_debug { LevelFilter::Debug } else { LevelFilter::Info }; in initialize() localVariable
58 env_logger::Builder::new().filter(None, level).init(); in initialize()
69 .map(|()| log::set_max_level(level)); in initialize()
112 let level = if self.is_debug { LevelFilter::Debug } else { LevelFilter::Info }; in set_debug_logging() localVariable
113 log::set_max_level(level); in set_debug_logging()
116 let level = self.get_libbluetooth_level(); in set_debug_logging() localVariable
117 set_default_log_level(level); in set_debug_logging()
/packages/modules/Bluetooth/android/pandora/server/src/
DSecurity.kt125 val level = request.le in <lambda>() constant
126 if (level == LE_LEVEL1) true in <lambda>()
127 else if (level == LE_LEVEL4) in <lambda>()
131 waitLESecurityLevel(bluetoothDevice, level) in <lambda>()
136 val level = request.classic in <lambda>() constant
137 if (level == LEVEL0) true in <lambda>()
138 else if (level >= LEVEL3) in <lambda>()
142 waitBREDRSecurityLevel(bluetoothDevice, level) in <lambda>()
168 level: SecurityLevel in <lambda>()
171 return when (level) { in <lambda>()
[all …]
/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp91 void PowerSwitch::initialize(PowerLevel level) { in initialize() argument
96 LOG(DEBUG) << StringPrintf("%s: level=%s (%u)", fn, powerLevelToString(level), in initialize()
97 level); in initialize()
104 switch (level) { in initialize()
107 mCurrLevel = level; in initialize()
112 mCurrLevel = level; in initialize()
132 PowerLevel level = UNKNOWN_LEVEL; in getLevel() local
134 level = mCurrLevel; in getLevel()
136 return level; in getLevel()
378 const char* PowerSwitch::powerLevelToString(PowerLevel level) { in powerLevelToString() argument
[all …]
/packages/modules/Bluetooth/floss/pandora/floss/
Dcmd_utils.py49 def __init__(self, level, prefix): argument
51 self._level = level
101 def create_logger(self, level=logging.DEBUG, prefix=''): argument
108 logger = _PipeLogger(level=level, prefix=prefix)
121 def create_logger(level=logging.DEBUG, prefix=''): argument
132 return _logging_service.create_logger(level=level, prefix=prefix)
210 stdout = create_logger(level=logging.DEBUG, prefix=prefix)
212 stderr = create_logger(level=logging.ERROR, prefix=prefix)
/packages/apps/Settings/src/com/android/settings/network/telephony/
DNetworkOperatorPreference.kt92 val level = (cellInfo ?: return).cellSignalStrength.level in isSameCell() constant
93 if (DBG) Log.d(TAG, "refresh level: $level") in isSameCell()
94 setIcon(level) in isSameCell()
100 override fun setIcon(level: Int) { in setIcon()
101 if (!useNewApi || level < 0 || level >= SignalStrength.NUM_SIGNAL_STRENGTH_BINS) { in setIcon()
106 level, in setIcon()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DRssiUtil.java52 for (int level = 0; level < thresholds.length; level++) { in calculateSignalLevel()
53 if (rssi < thresholds[level]) { in calculateSignalLevel()
54 return level; in calculateSignalLevel()

12345678910>>...17