Home
last modified time | relevance | path

Searched refs:percentage (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DOxygenSaturationRecord.java48 @NonNull Percentage percentage, in OxygenSaturationRecord() argument
54 Objects.requireNonNull(percentage); in OxygenSaturationRecord()
56 ValidationUtils.requireInRange(percentage.getValue(), 0.0, 100.0, "percentage"); in OxygenSaturationRecord()
58 mPercentage = percentage; in OxygenSaturationRecord()
103 @NonNull Metadata metadata, @NonNull Instant time, @NonNull Percentage percentage) { in Builder() argument
106 Objects.requireNonNull(percentage); in Builder()
109 mPercentage = percentage; in Builder()
DBodyFatRecord.java47 @NonNull Percentage percentage, in BodyFatRecord() argument
53 Objects.requireNonNull(percentage); in BodyFatRecord()
55 ValidationUtils.requireInRange(percentage.getValue(), 0.0, 100.0, "bodyFatPercentage"); in BodyFatRecord()
57 mPercentage = percentage; in BodyFatRecord()
102 @NonNull Metadata metadata, @NonNull Instant time, @NonNull Percentage percentage) { in Builder() argument
105 Objects.requireNonNull(percentage); in Builder()
108 mPercentage = percentage; in Builder()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DUtils.java39 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() argument
40 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage; in formatPercentage()
50 public static String formatPercentage(int percentage) { in formatPercentage() argument
51 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()
55 public static String formatPercentage(double percentage) { in formatPercentage() argument
56 return NumberFormat.getPercentInstance().format(percentage); in formatPercentage()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java69 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() argument
70 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage; in formatPercentage()
80 public static String formatPercentage(int percentage) { in formatPercentage() argument
81 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()
85 public static String formatPercentage(double percentage) { in formatPercentage() argument
86 return NumberFormat.getPercentInstance().format(percentage); in formatPercentage()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerGaugePreference.java94 public void setPercentage(CharSequence percentage) { in setPercentage() argument
95 mProgress = percentage; in setPercentage()
96 mProgressContentDescription = percentage; in setPercentage()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DBodyFatRecordInternal.java39 public BodyFatRecordInternal setPercentage(double percentage) { in setPercentage() argument
40 this.mPercentage = percentage; in setPercentage()
DOxygenSaturationRecordInternal.java40 public OxygenSaturationRecordInternal setPercentage(double percentage) { in setPercentage() argument
41 this.mPercentage = percentage; in setPercentage()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DOxygenSaturationFormatter.kt38 context.getString(R.string.percent), mapOf("value" to record.percentage.value)) in formatValue()
46 context.getString(R.string.percent_long), mapOf("value" to record.percentage.value)) in formatA11yValue()
DBodyFatFormatter.kt36 context.getString(R.string.percent), mapOf("value" to record.percentage.value)) in formatValue()
44 context.getString(R.string.percent_long), mapOf("value" to record.percentage.value)) in formatA11yValue()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java163 private float getValueFromPercentage(final int percentage) { in setupKeyPreviewAnimationScale()
164 return percentage / PERCENTAGE_FLOAT; in setupKeyPreviewAnimationScale()
251 private float getValueFromPercentage(final int percentage) { in setupKeyboardHeight()
252 return percentage / PERCENTAGE_FLOAT; in setupKeyboardHeight()
DSettings.java347 final float percentage = prefs.getFloat( in readKeyboardHeight() local
349 return (percentage != UNDEFINED_PREFERENCE_VALUE_FLOAT) ? percentage : defaultValue; in readKeyboardHeight()
DAdvancedSettingsFragment.java182 private float getValueFromPercentage(final int percentage) { in setupKeypressSoundVolumeSettings()
183 return percentage / PERCENTAGE_FLOAT; in setupKeypressSoundVolumeSettings()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DTopLevelStoragePreferenceControllerTest.java88 final String percentage = NumberFormat.getPercentInstance().format(1); in updateSummary_shouldDisplayUsedPercentAndFreeSpace() local
106 mContext, "storage_summary", percentage, freeSpace)); in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleSeekBarController.java130 private CharSequence formatStateDescription(int percentage) { in formatStateDescription() argument
132 R.string.battery_saver_seekbar_title, Utils.formatPercentage(percentage)); in formatStateDescription()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DCompositeCircleView.java130 int percentage = Math.round((values[i] / total) * 100); in configure() local
132 R.string.privdash_usage_percent, labels[i].getText(), percentage); in configure()
/packages/services/Car/cpp/watchdog/server/src/
DPerformanceProfiler.cpp112 double percentage(uint64_t numer, uint64_t denom) { in percentage() function
216 = percentage(procCpuStatsView.cpuTimeMillis, totalCpuTimeMillis), in constructUidResourceUsageStats()
391 percentage(ioStatsView.bytes[i], totalIoStats[metricsType][i]), in toString()
393 percentage(ioStatsView.fsync[i], totalIoStats[FSYNC_COUNT][i])); in toString()
406 percentage(procCpuStatsView->cpuTimeMillis, totalValue), in toString()
411 percentage(processCpuValue.cpuTimeMillis, in toString()
420 percentage(procStatsView.value, totalValue)); in toString()
423 processValue.value, percentage(processValue.value, procStatsView.value)); in toString()
439 percentage(uidMemoryStats->memoryStats.rssKb, totalRssKb), in toString()
441 percentage(uidMemoryStats->memoryStats.pssKb, totalPssKb), in toString()
[all …]
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppBatteryPreference.kt109 R.string.battery_summary, Utils.formatPercentage(percentage, true)
128 Utils.formatPercentage(percentage, true), in startBatteryDetailPage()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppBatteryPreferenceTest.kt144 on { percentage } doReturn 45.6 in hasConsumePower()
156 on { percentage } doReturn 10.0 in whenClick_openDetailsPage()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt122 fun getOxygenSaturationRecord(time: Instant, percentage: Percentage): OxygenSaturationRecord { in getOxygenSaturationRecord()
123 return OxygenSaturationRecord.Builder(getMetaData(), time, percentage).build() in getOxygenSaturationRecord()
287 assertThat(actualElement.percentage).isEqualTo(expectedElement.percentage) in verifyOxygenSaturationListsEqual()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiNetworkDetailsFragment.java456 void updateBattery(boolean isChanging, int percentage) { in updateBattery() argument
459 ? getString(R.string.hotspot_battery_charging_summary, formatPercentage(percentage)) in updateBattery()
460 : formatPercentage(percentage)); in updateBattery()
/packages/services/Car/car_product/car_ui_portrait/bootanimation/
DREADME27 * **PROGRESS:** whether to show a progress percentage on the last part
28 + The percentage will be displayed with an x-coordinate of 'c', and a
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Diface_battery_manager.rs21 percentage: u32, field
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java193 nodesByDataUsagePercentage.forEach((percentage, nodes) -> { in getDensedStatsData() argument
200 startTime, endTime, percentage); in getDensedStatsData()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DVideoSession.java359 private void handleNotifyBitrateInd(int percentage) { in handleNotifyBitrateInd() argument
361 mCallback.notifyBitrate(percentage); in handleNotifyBitrateInd()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DNotificationImportExportListener.java236 String percentage = in constructProgressNotification() local
238 builder.setContentText(percentage); in constructProgressNotification()

12