/haiku/src/libs/print/libprint/ |
H A D | PagesView.cpp | 40 BPoint position(3, 3); in Draw() local 43 _DrawPages(position, 1, 3); in Draw() 44 position += next; in Draw() 45 _DrawPages(position, 1, 3); in Draw() 50 _DrawPages(position, page, 2); in Draw() 51 position += next; in Draw() 56 void PagesView::_DrawPages(BPoint position, int number, int count) in _DrawPages() argument 58 position.x += kPageHorizontalIndent * (count - 1); in _DrawPages() 68 _DrawPage(position, page); in _DrawPages() 69 position += next; in _DrawPages() [all …]
|
/haiku/src/add-ons/kernel/network/ppp/modem/ |
H A D | ModemDevice.cpp | 66 int32 result, position = 0; in modem_get_line() local 68 while(position < length) { in modem_get_line() 69 result = read(handle, string + position, 1); in modem_get_line() 73 if (string[position] == '\r') { in modem_get_line() 74 string[position] = 0; in modem_get_line() 76 position = 0; in modem_get_line() 80 return position; in modem_get_line() 83 position++; in modem_get_line() 127 int32 length = 0, position = 0; in worker_thread() local 132 if (position == MODEM_MTU) in worker_thread() [all …]
|
/haiku/src/apps/mediaplayer/supplier/ |
H A D | MediaTrackAudioSupplier.cpp | 304 int64 position, int64 frames) const in _CopyFrames() argument 309 source = (char*)source + frameSize * (position - sourceOffset); in _CopyFrames() 310 target = (char*)target + frameSize * (position - targetOffset); in _CopyFrames() 323 int64 position, int64 frames) const in _CopyFrames() argument 325 _CopyFrames(buffer->data, buffer->offset, target, targetOffset, position, in _CopyFrames() 430 MediaTrackAudioSupplier::_FindUsableBufferFor(int64 position) const in _FindUsableBufferFor() 432 Buffer* buffer = _FindBufferAtFrame(position); in _FindUsableBufferFor() 443 MediaTrackAudioSupplier::_GetBuffersFor(BList& buffers, int64 position, in _GetBuffersFor() argument 450 int32 startFrame = max(position, buffer->offset); in _GetBuffersFor() 451 int32 endFrame = min(position + frames, buffer->offset + buffer->size); in _GetBuffersFor() [all …]
|
H A D | MediaTrackAudioSupplier.h | 49 int64 position, int64 frames) const; 51 int64 targetOffset, int64 position, 60 Buffer* _FindUsableBufferFor(int64 position) const; 61 void _GetBuffersFor(BList& buffers, int64 position, 65 status_t _ReadBuffer(Buffer* buffer, int64 position); 66 status_t _ReadBuffer(Buffer* buffer, int64 position, 70 int64& position, int64& frames, 74 int64 position, int64 frames, 77 status_t _FindKeyFrameForward(int64& position); 78 status_t _FindKeyFrameBackward(int64& position); [all …]
|
/haiku/src/kits/media/experimental/ |
H A D | AdapterIO.cpp | 49 status_t FlushBefore(off_t position, BPositionIO* buffer, const void* oldBuffer, in FlushBefore() argument 53 off_t relative = _PositionToRelative(position); in FlushBefore() 71 status_t EvaluatePosition(off_t position, off_t totalSize) in EvaluatePosition() argument 73 if (position < 0) in EvaluatePosition() 76 if (position < fStartOffset) in EvaluatePosition() 79 if (totalSize > 0 && position > totalSize) { in EvaluatePosition() 92 status_t WaitForData(off_t position, off_t size) in WaitForData() argument 101 while (bufferSize < position + size) { in WaitForData() 118 virtual ssize_t ReadAt(off_t position, void* buffer, in ReadAt() argument 124 _PositionToRelative(position), buffer, size); in ReadAt() [all …]
|
/haiku/src/add-ons/screen_savers/flurry/ |
H A D | Star.cpp | 47 s->position[i] = RandFlt(-10000.0, 10000.0); in InitStar() 88 s->position[0] = 250.0f * cf * (float)cos(11.0 * (thisPointInRadians in UpdateStar() 90 s->position[1] = 250.0f * cf * (float)sin(12.0 * (thisPointInRadians in UpdateStar() 92 s->position[2] = 250.0f * (float)cos((23.0 * (thisPointInRadians in UpdateStar() 99 tmpX1 = s->position[0] * cr - s->position[1] * sr; in UpdateStar() 100 tmpY1 = s->position[1] * cr + s->position[0] * sr; in UpdateStar() 101 tmpZ1 = s->position[2]; in UpdateStar() 119 s->position[0] = (float)tmpX4; in UpdateStar() 120 s->position[1] = (float)tmpY4; in UpdateStar() 121 s->position[2] = (float)tmpZ4; in UpdateStar()
|
H A D | Spark.cpp | 50 s->position[i] = RandFlt(-100.0, 100.0); in InitSpark() 69 z = s->position[2]; in DrawSpark() 70 sx = s->position[0] * info->sys_glWidth / z + info->sys_glWidth * 0.5f; in DrawSpark() 71 sy = s->position[1] * info->sys_glWidth / z + info->sys_glHeight * 0.5f; in DrawSpark() 244 old[i] = s->position[i]; in UpdateSpark() 260 s->position[0] = fieldRange * cf in UpdateSpark() 262 s->position[1] = fieldRange * cf * in UpdateSpark() 264 s->position[2] = fieldRange * in UpdateSpark() 271 tmpX1 = s->position[0] * cr - s->position[1] * sr; in UpdateSpark() 272 tmpY1 = s->position[1] * cr + s->position[0] * sr; in UpdateSpark() [all …]
|
/haiku/src/kits/storage/ |
H A D | FileIO.cpp | 47 BFileIO::ReadAt(off_t position, void* buffer, size_t size) in ReadAt() argument 50 off_t oldPosition = _Seek(position, SEEK_SET); in ReadAt() 65 BFileIO::WriteAt(off_t position, const void* buffer, size_t size) in WriteAt() argument 68 off_t oldPosition = _Seek(position, SEEK_SET); in WriteAt() 83 BFileIO::Seek(off_t position, uint32 seekMode) in Seek() argument 85 if (fseeko(fFile, position, seekMode) < 0) in Seek() 111 off_t position = _Seek(0, SEEK_END); in GetSize() local 112 if (position < 0) in GetSize() 113 return position; in GetSize() 116 off_t size = _Seek(position, SEEK_SET); in GetSize() [all …]
|
H A D | FileDescriptorIO.cpp | 47 BFileDescriptorIO::ReadAt(off_t position, void* buffer, size_t size) in ReadAt() argument 49 ssize_t bytesRead = pread(fFD, buffer, size, position); in ReadAt() 55 BFileDescriptorIO::WriteAt(off_t position, const void* buffer, size_t size) in WriteAt() argument 57 ssize_t bytesWritten = pwrite(fFD, buffer, size, position); in WriteAt() 63 BFileDescriptorIO::Seek(off_t position, uint32 seekMode) in Seek() argument 65 off_t result = lseek(fFD, position, seekMode); in Seek()
|
/haiku/src/add-ons/translators/shared/ |
H A D | StreamBuffer.cpp | 196 StreamBuffer::Seek(off_t position, uint32 seekMode) in Seek() argument 201 && (fPos + position < fLen) in Seek() 202 && (fPos + position >= 0)) { in Seek() 203 fPos += position; in Seek() 206 && (fLen + position < fBufferSize) in Seek() 207 && (fLen + position >= 0)) { in Seek() 208 fLen += position; in Seek() 222 return fStream->Seek(position, seekMode); in Seek() 243 off_t position = fStream->Position(); in Position() local 245 position -= (fLen - fPos); in Position() [all …]
|
/haiku/src/apps/soundrecorder/ |
H A D | TrackSlider.cpp | 128 TrackSlider::_DrawCounter(bigtime_t timestamp, float position, bool isTracking) in _DrawCounter() argument 141 float counterX = position; in _DrawCounter() 191 TrackSlider::_DrawMarker(float position) in _DrawMarker() argument 200 AddLine(BPoint(position,SLIDER_BASE+7), BPoint(position-4,SLIDER_BASE+3), in _DrawMarker() 202 AddLine(BPoint(position-4,SLIDER_BASE+3), BPoint(position-4,SLIDER_BASE+1), in _DrawMarker() 204 AddLine(BPoint(position-4,SLIDER_BASE+1), BPoint(position+4,SLIDER_BASE+1), in _DrawMarker() 206 AddLine(BPoint(position+4,SLIDER_BASE+1), BPoint(position+4,SLIDER_BASE+3), in _DrawMarker() 208 AddLine(BPoint(position+4,SLIDER_BASE+3), BPoint(position,SLIDER_BASE+7), in _DrawMarker() 212 AddLine(BPoint(position-3,SLIDER_BASE+2), BPoint(position+3,SLIDER_BASE+2), in _DrawMarker() 214 AddLine(BPoint(position-3,SLIDER_BASE+3), BPoint(position-1,SLIDER_BASE+5), in _DrawMarker() [all …]
|
/haiku/src/apps/mediaplayer/interface/ |
H A D | PositionToolTip.cpp | 37 void Update(bigtime_t position, bigtime_t duration) in Update() argument 42 if (position != -1) { in Update() 43 position /= 1000000L; in Update() 45 if (position == fPosition && duration == fDuration) { in Update() 50 fPosition = position; in Update() 96 PositionToolTip::Update(bigtime_t position, bigtime_t duration) in Update() argument 98 fView->Update(position, duration); in Update()
|
/haiku/src/tests/kits/opengl/glsl/ |
H A D | CH06-brick.frag | 22 vec2 position, useBrick; 24 position = MCposition / BrickSize; 26 if (fract(position.y * 0.5) > 0.5) 27 position.x += 0.5; 29 position = fract(position); 31 useBrick = step(position, BrickPct);
|
/haiku/src/kits/debugger/source_language/c_family/ |
H A D | CLanguageTokenizer.h | 82 ParseException(const char* message, int32 position) in ParseException() argument 84 position(position) in ParseException() 90 position(other.position) in ParseException() 95 int32 position; variable 103 int32 position, int32 type); 109 int32 position; member
|
/haiku/src/kits/support/ |
H A D | DataPositionIOWrapper.cpp | 49 BDataPositionIOWrapper::ReadAt(off_t position, void* buffer, size_t size) in ReadAt() argument 51 if (position != fPosition) in ReadAt() 59 BDataPositionIOWrapper::WriteAt(off_t position, const void* buffer, in WriteAt() argument 62 if (position != fPosition) in WriteAt() 70 BDataPositionIOWrapper::Seek(off_t position, uint32 seekMode) in Seek() argument 74 return position == 0 ? B_OK : B_NOT_SUPPORTED; in Seek() 76 return position == fPosition ? B_OK : B_NOT_SUPPORTED; in Seek()
|
/haiku/src/system/kernel/debug/ |
H A D | debug_parser.cpp | 104 int32 position; member 106 void SetTo(const char* string, int32 length, int32 position, int32 type) in SetTo() 112 this->position = position; in SetTo() 120 position = 0; in Unset() 129 parse_exception(const char* message, int32 position) in parse_exception() argument 134 message, position); in parse_exception() 139 sExceptionPosition = position; in parse_exception() 176 void SetPosition(int32 position) in SetPosition() argument 178 fCurrentChar = fString + position; in SetPosition() 192 SetPosition(fCurrentToken.position); in SetCommandMode() [all …]
|
H A D | debug.cpp | 250 insert_chars_into_line(char* buffer, int32& position, int32& length, in insert_chars_into_line() argument 254 if (position < length) { in insert_chars_into_line() 255 memmove(buffer + position + charCount, buffer + position, in insert_chars_into_line() 256 length - position); in insert_chars_into_line() 260 memcpy(buffer + position, chars, charCount); in insert_chars_into_line() 261 int32 oldPosition = position; in insert_chars_into_line() 262 position += charCount; in insert_chars_into_line() 270 if (position < length) in insert_chars_into_line() 271 kprintf("\x1b[%" B_PRId32 "D", length - position); in insert_chars_into_line() 276 insert_char_into_line(char* buffer, int32& position, int32& length, char c) in insert_char_into_line() argument [all …]
|
/haiku/src/kits/interface/layouter/ |
H A D | CollapsingLayouter.cpp | 40 SetElementPosition(int32 element, int32 position) in SetElementPosition() argument 42 fElements[element] = position; in SetElementPosition() 86 int32 position; member 93 position(-1), in ElementInfo() 106 position = other.position; in SetTo() 181 if (fLayouter && elementInfo.position >= 0) in SetWeight() 182 fLayouter->SetWeight(elementInfo.position, weight); in SetWeight() 226 info->SetElementPosition(i, fElements[i].position); in Layout() 290 element.position = -1; in _DoCollapse() 293 element.position = i - shift; in _DoCollapse() [all …]
|
H A D | Layouter.cpp | 21 LayoutInfo::ElementRangeSize(int32 position, int32 length) in ElementRangeSize() argument 24 return ElementSize(position); in ElementRangeSize() 26 int lastIndex = position + length - 1; in ElementRangeSize() 28 - ElementLocation(position); in ElementRangeSize()
|
/haiku/headers/private/shared/ |
H A D | ExpressionParser.h | 19 ParseException(const char* message, int32 position) in ParseException() argument 21 position(position) in ParseException() 27 position(other.position) in ParseException() 32 int32 position; variable
|
/haiku/headers/os/support/ |
H A D | DataIO.h | 58 virtual ssize_t ReadAt(off_t position, void* buffer, 60 virtual ssize_t WriteAt(off_t position, const void* buffer, 63 status_t ReadAtExactly(off_t position, void* buffer, 65 status_t WriteAtExactly(off_t position, 69 virtual off_t Seek(off_t position, uint32 seekMode) = 0; 99 virtual ssize_t ReadAt(off_t position, void* buffer, 101 virtual ssize_t WriteAt(off_t position, const void* buffer, 104 virtual off_t Seek(off_t position, uint32 seekMode); 132 virtual ssize_t ReadAt(off_t position, void* buffer, 134 virtual ssize_t WriteAt(off_t position, const void* buffer, [all …]
|
/haiku/src/apps/debuganalyzer/gui/chart/ |
H A D | LegendChartAxis.cpp | 54 float position = (value - fRange.min) * scale - legendSize / 2; in _LegendPosition() local 55 if (position + legendSize > totalSize) in _LegendPosition() 56 position = totalSize - legendSize; in _LegendPosition() 57 if (position < 0) in _LegendPosition() 58 position = 0; in _LegendPosition() 59 return position; in _LegendPosition() 97 float position = _LegendPosition(info->value, info->size.*sizeField, in _FilterLegends() local 100 int32 previousEnd = (int32)ceilf(position + info->size.*sizeField); in _FilterLegends() 104 float position = _LegendPosition(info->value, info->size.*sizeField, in _FilterLegends() local 107 if (position - spacing < previousEnd in _FilterLegends() [all …]
|
/haiku/src/tools/restest/ |
H A D | OffsetFile.cpp | 86 OffsetFile::Seek(off_t position, uint32 seekMode) in Seek() argument 95 if (position >= 0) in Seek() 96 result = fCurrentPosition = position; in Seek() 102 if (size + position >= 0) in Seek() 103 result = fCurrentPosition = size + position; in Seek() 109 if (fCurrentPosition + position >= 0) in Seek() 110 result = fCurrentPosition += position; in Seek()
|
/haiku/src/add-ons/kernel/drivers/misc/ |
H A D | mem.c | 29 static area_id mem_map_target(off_t position, size_t length, uint32 protection, 111 mem_read(void* cookie, off_t position, void* buffer, size_t* numBytes) in mem_read() argument 123 area = mem_map_target(position, *numBytes, B_READ_AREA, &virtualAddress); in mem_read() 138 mem_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) in mem_write() argument 150 area = mem_map_target(position, *numBytes, B_WRITE_AREA, &virtualAddress); in mem_write() 165 mem_map_target(off_t position, size_t length, uint32 protection, in mem_map_target() argument 178 physicalAddress = (phys_addr_t)position & ~((off_t)B_PAGE_SIZE - 1); in mem_map_target() 181 offset = position - (off_t)physicalAddress; in mem_map_target()
|
/haiku/src/apps/expander/ |
H A D | ExpanderSettings.cpp | 98 BPoint position; in ExpanderSettings() local 112 && read_data(file, position)) { in ExpanderSettings() 120 if (screen.Frame().Contains(position)) in ExpanderSettings() 121 fMessage.ReplacePoint("window_position", position); in ExpanderSettings() 158 BPoint position; in ~ExpanderSettings() local 161 if (fMessage.FindPoint("window_position", &position) == B_OK in ~ExpanderSettings() 187 file.Write(&position, sizeof(position)); in ~ExpanderSettings() 232 BPoint position; in UpdateFrom() local 234 if (message->FindPoint("window_position", &position) == B_OK) in UpdateFrom() 235 fMessage.ReplacePoint("window_position", position); in UpdateFrom()
|