/third_party/e2fsprogs/lib/e2p/ |
D | percent.c | 21 unsigned int e2p_percent(int percent, unsigned int base) in e2p_percent() argument 25 if (!percent) in e2p_percent() 27 if (100 % percent == 0) in e2p_percent() 28 return base / (100 / percent); in e2p_percent() 30 return (base / 100) * percent; in e2p_percent() 31 return base * percent / 100; in e2p_percent() 41 int percent; in main() local 50 percent = strtoul(argv[1], &p, 0); in main() 62 printf("%d percent of %u is %u.\n", percent, base, in main() 63 e2p_percent(percent, base)); in main()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/ |
D | SDL_power.c | 30 int *percent); 48 SDL_GetPowerInfo_Hardwired(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Hardwired() argument 51 *percent = -1; in SDL_GetPowerInfo_Hardwired() 98 SDL_GetPowerInfo(int *seconds, int *percent) in SDL_GetPowerInfo() argument 110 if (percent == NULL) { in SDL_GetPowerInfo() 111 percent = &_percent; in SDL_GetPowerInfo() 115 if (implementations[i](&retval, seconds, percent)) { in SDL_GetPowerInfo() 122 *percent = -1; in SDL_GetPowerInfo()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/psp/ |
D | SDL_syspower.c | 33 int *percent) in SDL_GetPowerInfo_PSP() argument 41 *percent = -1; in SDL_GetPowerInfo_PSP() 46 *percent = -1; in SDL_GetPowerInfo_PSP() 49 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP() 53 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP() 57 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/linux/ |
D | SDL_syspower.c | 123 SDL_bool * charging, int *seconds, int *percent) in check_proc_acpi_battery() argument 193 if ((pct < 0) && (*percent < 0)) { in check_proc_acpi_battery() 196 if (pct > *percent) { in check_proc_acpi_battery() 205 *percent = pct; in check_proc_acpi_battery() 236 int *seconds, int *percent) in SDL_GetPowerInfo_Linux_proc_acpi() argument 245 *percent = -1; in SDL_GetPowerInfo_Linux_proc_acpi() 255 seconds, percent); in SDL_GetPowerInfo_Linux_proc_acpi() 322 int *seconds, int *percent) in SDL_GetPowerInfo_Linux_proc_apm() argument 411 *percent = -1; in SDL_GetPowerInfo_Linux_proc_apm() 418 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Linux_proc_apm() [all …]
|
/third_party/abseil-cpp/absl/strings/internal/str_format/ |
D | parser.h | 132 const char* percent = static_cast<const char*>(memchr(p, '%', end - p)); in ParseFormatString() local 133 if (!percent) { in ParseFormatString() 138 if (ABSL_PREDICT_FALSE(!consumer.Append(string_view(p, percent - p)))) { in ParseFormatString() 141 if (ABSL_PREDICT_FALSE(percent + 1 >= end)) return false; in ParseFormatString() 143 auto tag = GetTagForChar(percent[1]); in ParseFormatString() 152 p = percent + 2; in ParseFormatString() 161 !consumer.ConvertOne(conv, string_view(percent + 1, 1)))) { in ParseFormatString() 164 } else if (percent[1] != '%') { in ParseFormatString() 166 p = ConsumeUnboundConversion(percent + 1, end, &conv, &next_arg); in ParseFormatString() 169 conv, string_view(percent + 1, p - (percent + 1))))) { in ParseFormatString() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
D | parser.h | 154 const char* percent = static_cast<const char*>(memchr(p, '%', end - p)); in ParseFormatString() local 155 if (!percent) { in ParseFormatString() 160 if (ABSL_PREDICT_FALSE(!consumer.Append(string_view(p, percent - p)))) { in ParseFormatString() 163 if (ABSL_PREDICT_FALSE(percent + 1 >= end)) return false; in ParseFormatString() 165 auto tag = GetTagForChar(percent[1]); in ParseFormatString() 174 p = percent + 2; in ParseFormatString() 183 !consumer.ConvertOne(conv, string_view(percent + 1, 1)))) { in ParseFormatString() 186 } else if (percent[1] != '%') { in ParseFormatString() 188 p = ConsumeUnboundConversion(percent + 1, end, &conv, &next_arg); in ParseFormatString() 191 conv, string_view(percent + 1, p - (percent + 1))))) { in ParseFormatString() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/android/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Android(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Android() argument 37 if (Android_JNI_GetPowerInfo(&plugged, &charged, &battery, seconds, percent) != -1) { in SDL_GetPowerInfo_Android() 46 *percent = -1; in SDL_GetPowerInfo_Android() 54 *percent = -1; in SDL_GetPowerInfo_Android()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/macosx/ |
D | SDL_syspower.c | 40 SDL_bool * charging, int *seconds, int *percent) in checkps() argument 122 if ((pct < 0) && (*percent < 0)) { in checkps() 125 if (pct > *percent) { in checkps() 134 *percent = pct; in checkps() 144 SDL_GetPowerInfo_MacOSX(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_MacOSX() argument 149 *percent = -1; in SDL_GetPowerInfo_MacOSX() 167 seconds, percent); in SDL_GetPowerInfo_MacOSX()
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testpower.c | 20 int seconds, percent; in report_power() local 21 const SDL_PowerState state = SDL_GetPowerInfo(&seconds, &percent); in report_power() 48 if (percent == -1) { in report_power() 51 SDL_Log("Percent left: %d%%\n", percent); in report_power()
|
/third_party/node/deps/npm/node_modules/gauge/ |
D | template-item.js | 11 function percent (num) { function 37 this.length = Math.round(this.overallOutputLength * percent(this.length)) 40 this.minLength = Math.round(this.overallOutputLength * percent(this.minLength)) 43 this.maxLength = Math.round(this.overallOutputLength * percent(this.maxLength))
|
/third_party/uboot/u-boot-2020.01/fs/ext4/ |
D | unsparse.c | 222 int percent; in ext4_unsparse() local 224 percent = (int)n; in ext4_unsparse() 226 if (percent != percent_complete) { in ext4_unsparse() 227 percent_complete = percent; in ext4_unsparse() 232 percent); in ext4_unsparse() 415 int percent; in ufs_ext4_unsparse() local 418 percent = (int)n; in ufs_ext4_unsparse() 420 if (percent != percent_complete) { in ufs_ext4_unsparse() 421 percent_complete = percent; in ufs_ext4_unsparse() 426 percent); in ufs_ext4_unsparse()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/emscripten/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Emscripten(SDL_PowerState *state, int *seconds, int *percent) in SDL_GetPowerInfo_Emscripten() argument 44 *percent = -1; in SDL_GetPowerInfo_Emscripten() 54 *percent = batteryState.level * 100; in SDL_GetPowerInfo_Emscripten()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/windows/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Windows(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Windows() argument 56 *percent = -1; in SDL_GetPowerInfo_Windows() 63 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Windows()
|
/third_party/toybox/toys/posix/ |
D | df.c | 100 unsigned long long size, used, avail, percent, block; in show_mt() local 131 if (!(used+avail)) percent = 0; in show_mt() 133 percent = (used*100)/(used+avail); in show_mt() 134 if (used*100 != percent*(used+avail)) percent++; in show_mt() 158 w, size_str, w, used_str, w, avail_str, w-1, percent, mt->dir); in show_mt() 164 TT.column_widths[4], percent, in show_mt()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsundelete.c | 643 opts.percent = -1; in parse_options() 738 if (opts.percent == -1) { in parse_options() 740 opts.percent = strtol(optarg, &end, 0); in parse_options() 847 (opts.percent != -1) || in parse_options() 860 if ((opts.percent < -1) || (opts.percent > 100)) { in parse_options() 1446 int percent = 0; in calc_percentage() local 1481 percent = 100; in calc_percentage() 1482 data->percent = 100; in calc_percentage() 1538 data->percent = (clusters_free * 100) / in calc_percentage() 1541 percent = max(percent, data->percent); in calc_percentage() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/video/ |
D | pwm_backlight.c | 130 static int pwm_backlight_set_brightness(struct udevice *dev, int percent) in pwm_backlight_set_brightness() argument 142 if (percent == BACKLIGHT_OFF) { in pwm_backlight_set_brightness() 144 percent = 0; in pwm_backlight_set_brightness() 146 if (percent == BACKLIGHT_DEFAULT) { in pwm_backlight_set_brightness() 150 level = priv->levels[percent * (priv->num_levels - 1) in pwm_backlight_set_brightness() 155 percent / 100; in pwm_backlight_set_brightness()
|
/third_party/icu/icu4c/source/test/testdata/ |
D | numberpermutationtest.txt | 4 compact-short percent unit-width-narrow 18 compact-short percent unit-width-full-name 88 scientific/+ee/sign-always percent unit-width-narrow 102 scientific/+ee/sign-always percent unit-width-full-name 172 compact-short percent precision-integer 186 compact-short percent .000 200 compact-short percent .##/@@@+ 214 compact-short percent @@ 340 scientific/+ee/sign-always percent precision-integer 354 scientific/+ee/sign-always percent .000 [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/ |
D | numberpermutationtest.txt | 4 compact-short percent unit-width-narrow 18 compact-short percent unit-width-full-name 88 scientific/+ee/sign-always percent unit-width-narrow 102 scientific/+ee/sign-always percent unit-width-full-name 172 compact-short percent precision-integer 186 compact-short percent .000 200 compact-short percent .##/@@@+ 214 compact-short percent @@ 340 scientific/+ee/sign-always percent precision-integer 354 scientific/+ee/sign-always percent .000 [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/haiku/ |
D | SDL_syspower.c | 44 SDL_GetPowerInfo_Haiku(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Haiku() argument 106 *percent = -1; in SDL_GetPowerInfo_Haiku() 113 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Haiku()
|
/third_party/python/Lib/ |
D | locale.py | 183 def _format(percent, value, grouping=False, monetary=False, *additional): argument 185 formatted = percent % ((value,) + additional) 187 formatted = percent % value 189 if percent[-1] in 'eEfFgG': 199 elif percent[-1] in 'diu': 244 def format(percent, value, grouping=False, monetary=False, *additional): argument 253 match = _percent_re.match(percent) 254 if not match or len(match.group())!= len(percent): 256 "format specifier, %s not valid") % repr(percent)) 257 return _format(percent, value, grouping, monetary, *additional)
|
/third_party/XKeyboardConfig/build/usr/local/share/X11/xkb/symbols/nokia_vndr/ |
D | rx-44 | 21 key <AB04> { [ v, V, percent, percent ] }; 54 key <AB03> { [ c, C, percent, percent ] }; 87 key <AB02> { [ x, X, percent, percent ] }; 113 key <AC02> { [ s, S, percent, percent ] }; 152 key <AC05> { [ g, G, percent, percent ] }; 205 …ey <AB02> { type="EIGHT_LEVEL", [ x, X, percent, percent, Cyrillic_che, Cyrillic_CHE, percen…
|
/third_party/XKeyboardConfig/symbols/nokia_vndr/ |
D | rx-44 | 21 key <AB04> { [ v, V, percent, percent ] }; 54 key <AB03> { [ c, C, percent, percent ] }; 87 key <AB02> { [ x, X, percent, percent ] }; 113 key <AC02> { [ s, S, percent, percent ] }; 152 key <AC05> { [ g, G, percent, percent ] }; 205 …ey <AB02> { type="EIGHT_LEVEL", [ x, X, percent, percent, Cyrillic_che, Cyrillic_CHE, percen…
|
/third_party/ffmpeg/libavfilter/ |
D | vf_vaguedenoiser.c | 39 float percent; member 64 const float percent); 76 …{ "percent", "set percent of full denoising", OFFSET(percent),AV_OPT_TYPE_FLOAT, {.dbl=85}, 0,100… 340 const float percent) in hard_thresholding() argument 342 const float frac = 1.f - percent * 0.01f; in hard_thresholding() 355 const float threshold, const float percent) in soft_thresholding() argument 357 const float frac = 1.f - percent * 0.01f; in soft_thresholding() 358 const float shift = threshold * 0.01f * percent; in soft_thresholding() 375 const float percent) in qian_thresholding() argument 377 const float percent01 = percent * 0.01f; in qian_thresholding() [all …]
|
/third_party/uboot/u-boot-2020.01/cmd/ |
D | sf.c | 336 int percent; in do_spi_flash_read_write() local 339 percent = (int)n; in do_spi_flash_read_write() 345 if (percent != percent_complete) { in do_spi_flash_read_write() 346 percent_complete = percent; in do_spi_flash_read_write() 349 "complete.", offset, percent); in do_spi_flash_read_write() 438 int percent; in do_spi_flash_erase() local 441 percent = (int)n; in do_spi_flash_erase() 447 if (percent != percent_complete) { in do_spi_flash_erase() 448 percent_complete = percent; in do_spi_flash_erase() 451 offset, percent); in do_spi_flash_erase()
|
/third_party/uboot/u-boot-2020.01/include/ |
D | backlight.h | 33 int (*set_brightness)(struct udevice *dev, int percent); 53 int backlight_set_brightness(struct udevice *dev, int percent);
|