Searched refs:percent (Results 1 - 25 of 25) sorted by relevance

/haiku/headers/private/system/arch/x86/
H A Dapm_defs.h18 int32 percent; member in struct:apm_battery_info
/haiku/src/apps/soundrecorder/
H A DDrawingTidbits.h19 ShiftComponent(uchar component, float percent) argument
21 // change the color by <percent>, make sure we aren't rounding
23 if (percent >= 1)
24 return (uchar)(component * (2 - percent));
26 return (uchar)(255 - percent * (255 - component));
H A DDrawingTidbits.cpp16 ShiftColor(rgb_color color, float percent) argument
19 ShiftComponent(color.red, percent),
20 ShiftComponent(color.green, percent),
21 ShiftComponent(color.blue, percent),
/haiku/src/apps/networkstatus/
H A DRadioView.h21 void SetPercent(int32 percent);
29 static void Draw(BView* view, BRect rect, int32 percent,
49 static void _SetColor(BView* view, int32 percent,
51 static bool _IsDisabled(int32 percent, int32 index,
H A DRadioView.cpp39 RadioView::SetPercent(int32 percent) argument
41 if (percent < 0)
42 percent = 0;
43 if (percent > 100)
44 percent = 100;
46 if (percent == fPercent)
49 fPercent = percent;
91 RadioView::Draw(BView* view, BRect rect, int32 percent, int32 maxCount) argument
101 _SetColor(view, percent, 0, i, count);
227 RadioView::_SetColor(BView* view, int32 percent, int3 argument
244 _IsDisabled(int32 percent, int32 index, int32 count) argument
[all...]
/haiku/src/apps/sudoku/
H A DSudokuGenerator.h26 void _Progress(BMessenger progress, const char* text, float percent);
H A DProgressWindow.cpp130 float percent; local
131 if (message->FindFloat("percent", &percent) == B_OK)
132 fStatusBar->Update(percent - fStatusBar->CurrentValue());
H A DSudokuGenerator.cpp46 float percent)
51 update.AddFloat("percent", percent);
45 _Progress(BMessenger progress, const char* text, float percent) argument
/haiku/src/apps/showimage/
H A DProgressWindow.cpp122 float percent; local
123 if (message->FindFloat("percent", &percent) == B_OK)
124 fStatusBar->Update(percent - fStatusBar->CurrentValue());
/haiku/src/apps/activitymonitor/
H A DDataSource.cpp1012 int64 percent = int64(1000.0 * (active - fPreviousActive) local
1014 if (percent < 0)
1015 percent = 0;
1016 if (percent > 1000)
1017 percent = 1000;
1022 return percent;
1163 int64 percent = int64(1000.0 * (active - fPreviousActive) local
1165 if (percent < 0)
1166 percent = 0;
1167 if (percent > 100
[all...]
/haiku/src/apps/powerstatus/
H A DAPMDriverInterface.cpp55 info->capacity = apmInfo.percent;
H A DPowerStatusView.cpp211 double percent = fPercent; local
212 if (percent > 1.0)
213 percent = 1.0;
214 else if (percent < 0.0 || !fHasBattery)
215 percent = 0.0;
229 if (percent > 0.0)
230 unfilled.left += unfilled.Width() * percent;
235 if (percent > 0.0) {
238 if (percent <= kLowBatteryPercentage)
240 else if (percent <
[all...]
/haiku/src/system/kernel/arch/x86/32/
H A Dapm.cpp223 info->percent = regs.ecx & 0xff;
224 if (info->percent > 100 || info->percent < 0)
225 info->percent = -1;
227 info->time_left = info->percent >= 0 ? (int32)(regs.edx & 0xffff) : -1;
/haiku/src/kits/tracker/
H A DPose.cpp59 int32 percent
63 if (percent < 5)
64 return -2 - percent;
65 return percent;
326 int32 percent = CalcFreeSpace(volume); local
327 if (fPercent != percent) {
328 if (percent > 100)
331 fPercent = percent;
857 int32 percent = fPercent > -1 ? fPercent : -2 - fPercent; local
858 int32 barPos = int32(barHeight * percent / 100.
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/
H A DNodeManager.h74 virtual void SetVolume(float percent);
H A DPlaybackManager.h90 virtual void SetVolume(float percent) = 0;
H A DNodeManager.cpp253 NodeManager::SetVolume(float percent) argument
/haiku/src/apps/softwareupdater/
H A DSoftwareUpdaterWindow.h82 void SetDownloadProgress(float percent);
125 float percent);
H A DSoftwareUpdaterWindow.cpp263 float percent; local
264 result = message->FindFloat(kKeyPercentage, &percent);
273 fStatusBar->SetTo(percent, packageName.String(),
277 fListView->UpdatePackageProgress(packageName.String(), percent);
1079 PackageItem::SetDownloadProgress(float percent) argument
1081 fDownloadProgress = percent;
1203 PackageListView::UpdatePackageProgress(const char* packageName, float percent) argument
1205 // Update only every 1 percent change
1206 int16 wholePercent = int16(percent);
1212 if (percent
[all...]
/haiku/src/apps/mediaplayer/
H A DMainWin.h91 void _ResizeWindow(int percent,
H A DMainWin.cpp1497 int percent = _CurrentVideoSizeInPercent(); local
1504 if (percent == 100)
2066 int percent = _CurrentVideoSizeInPercent(); local
2067 int newSize = percent * (100 + percentDiff) / 100;
2073 if (newSize != percent) {
2082 MainWin::_ResizeWindow(int percent, bool useNoVideoWidth, bool stayOnScreen) argument
2089 videoWidth = (videoWidth * percent) / 100;
2090 videoHeight = (videoHeight * percent) / 100;
/haiku/src/add-ons/input_server/filters/shortcut_catcher/
H A DCommandActuators.cpp1326 // Find the percent part, if any
1327 char* percent = strchr(temp, '%'); local
1328 if (percent) {
1330 char* beginNum = percent - 1;
1343 while (beginNum <= percent)
/haiku/src/bin/debug/strace/
H A Dstrace.cpp534 double percent = stats.time * 100.0 / sSyscallTime; local
538 " %10" B_PRIu64 " %s\n", percent, stats.time, stats.count, perCall,
/haiku/src/add-ons/translators/raw/
H A DRAW.cpp2084 int32 percent, val, total, i;
2087 percent = int32(fInputWidth * fInputHeight * 0.01);
2092 percent = 0;
2096 if ((total += fHistogram[val][c]) > percent)
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/dev/bce/
H A Dif_bcereg.h483 #define DB_OR_RANDOMFALSE(percent)
484 #define DB_AND_RANDOMFALSE(percent)
486 #define DB_OR_RANDOMTRUE(percent)
487 #define DB_AND_RANDOMTRUE(percent)

Completed in 227 milliseconds