Commit Graph

61390 Commits

Author SHA1 Message Date
X512 898afd0a20 i2c: add device names
Change-Id: I1cb40223cdb43cc7069aee382657aac2b4cfd62b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2481
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-16 11:52:47 +00:00
X512 e3b7218370 pch_i2c: implement acpi_scan_bus
Change-Id: Ib2297246ea53c9e65d602961b615c2e1f4b3478a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2480
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-16 11:52:47 +00:00
X512 47102c0742 Interface Kit: introduce B_TRANSPARENT_BACKGROUND flag
BeOS didn't support transparent views. As documented in the Be Book,
SetViewColor(B_TRANSPARENT_COLOR) only effect is to not fill the
invalidated areas with the view color before calling Draw() (it avoids
flickering, especially when combined with B_FULL_UPDATE_ON_RESIZE).

A previous change made B_TRANSPARENT_COLOR actually make the view
transparent (that is, additionally to the above, the underlying view is
drawn before the transparent children), but it creates compatibility
issues.

In order to keep the API compatible with BeOS, the new behavior is now
enabled explicitly using the B_TRANSPARENT_VIEW flag. This also opens
for future developments like allowing a view color with an alpha
channel (not supported yet).

Adjust programs that require transparent views.

Fixes #15744, #15745.
Helps with #15645.

Change-Id: I529574ea23db0a23579521b263bc8d572775e35a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2275
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-16 00:59:37 +00:00
X512 23177782fd RAWTranslator: fix integer overflow
Pointed by clang.

Change-Id: I6e2c62ccfa7bec381a02b08d54c7469bbb8d7a67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2406
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-16 00:58:41 +00:00
Andrew Lindesay ccf707d0bb HaikuDepot: Fixes for Tabs
Cleans up the code around tab-switching and
also improves some logic around inserting
packages into the list of 'prominent'
packages by using a binary search.

If Haiku is installed into an environment with no
networking then it won't be able to talk to HDS
and so won't know which packages are promoted.
In this case switch the user to the "all packages"
tab so they are not shown a blank panel by default.

Relates to #14675, #14927

Change-Id: I14dd3be4af09a98245ddd0a9704bd8d53ed64a53
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2478
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-16 00:58:30 +00:00
Andrew Lindesay 10cd325cfa HaikuDepot: Check User Auth on Start
The user might have changed their authentication details
on the server and the client won't detect this until
they go to do something.  Instead, if possible, check
this as the client starts.  Also check that the user has
agreed to the current user usage conditions.

As a side-effect this generalizes the logic for process
coordination in the main window and also fixes some bugs
in the main window's progress display as the application
starts.

Relates to #15209

Change-Id: I4c9620648819ecd14fb095e4cb2c66fe7b2a0920
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2467
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-15 07:10:10 +00:00
Niels Sascha Reedijk 5cfca119fb HaikuBook: Add documentation for BCardLayout
This adds documentation for BCardView, BCardLayout and BLayoutBuilder::Cards.
There is also a bit of cleanup for the BSplitView documentation.

It also makes explicit when a developer passes an invalid argument to
BCardLayout::SetVisibleItem(), by making that a debugger() call.

Change-Id: I17ac52cc773bb76c4f81beaa76f72af62a9e10f4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2460
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-14 08:00:13 +00:00
SuhelMehta9 a7725a42a9 ufs2: Add superblock, volume, identify() and mount()
Change-Id: I27a492145fe1a365ceea6d172e332167513f5c3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-14 07:49:54 +00:00
SuhelMehta9 42ddb0b34b Making of UFS file system
System dependencies and kernel interface code has been added.

Change-Id: I770ad6b906ca41d4d84d374cea209e22149fd727
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2344
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-14 07:49:54 +00:00
Niels Sascha Reedijk 4da0550b05 FirstBootPrompt: build fix for gcc 2 after applying change 1718 2020-04-13 20:15:36 +01:00
Murai Takashi c3fcf05777 Firstbootprompt: Localize keymap list
Fixes #15522

Change-Id: I8909f70c0f7abe1fa23ea7c145220b95a3e06395
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1718
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2020-04-13 15:49:26 +00:00
Niels Sascha Reedijk 4b918abdb0 Package Kit: internationalize strings that may be displayed to the user
This fixes #14525.

Change-Id: I25810a4e12caed7aa47717e278591b1716b6198c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2329
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2020-04-13 09:00:10 +00:00
Augustin Cavalier 8e3ce627f2 libroot: Remove rpmalloc.
It seems clear that the architectural designs of rpmalloc are
just not suited for us in the "corner-cases", and probably never
will be.

After R1/beta2, I'll investigate switching us to musl's mallocng,
which is explicitly designed as a system allocator and has much
lower overall memory usage than even glibc's default allocator.
2020-04-12 18:08:41 -04:00
Augustin Cavalier 4ba0a2f80c Deskbar: Enable "Tracker always first" by default.
This received 84% on the forums, so it seems pretty uncontroversial
to enable it by default.

No other option received 70% or more, so I'll leave Humdinger to
decide what the other changes to the defaults should be based
on whatever threshold is decided upon...
2020-04-12 18:06:11 -04:00
Augustin Cavalier ffee10ada1 StyledEdit: Fix build after previous changes. 2020-04-12 17:24:03 -04:00
Adrien Destugues e4225c3b0e Remove struct size hacks in net80211
wpa_supplicant needs to be rebuilt
against it and then this needs to be tested.

Added some FIXMEs to keep track of places I'm not sure if we need to
change anything.

Fixes #14805

Change-Id: I6379dc32b772289960afbfb362365a542a986983
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2225
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-12 21:09:30 +00:00
Pascal Abresch 7bc364740d Stylededit: update rdef
Change-Id: I39a2983518b24713f8f1f79e6b4b3d942b7b894c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2304
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-12 21:07:43 +00:00
Pascal Abresch 619b2670b1 StyledEdit: Add cmd +, cmd - shortcuts for font size
Change-Id: I540ed130322fa1ce7eba62c4a1d1de36b12ccf9a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2303
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-12 21:07:19 +00:00
Alexander von Gluck IV 19733b44fa kits/bluetooth: Style cleanup, add additional vendors
Change-Id: I33ac709fe1dc759bf9b98fe94bd1820278ef33d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2471
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-12 19:41:57 +00:00
Jérôme Duval 01990a00e8 i2c: add acquire_bus/release_bus hooks
Change-Id: I9f55bb824f264175ae5830a2853a1897e3a00139
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2470
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-12 16:55:52 +00:00
Adrien Destugues 48da5bf8ac intel_extreme: Do not early-enable the pipe on pre-SandyBridge
Should fix #15861.
2020-04-12 10:29:36 +02:00
Augustin Cavalier be4c5346eb Update usb.ids. 2020-04-11 22:17:49 -04:00
Augustin Cavalier 18d0902fd2 Update pci.ids. 2020-04-11 22:17:46 -04:00
John Scipione 1482b250a7 IK: Update scroll bars for alternative control look
Scroll bars should look and work identically to before on
HaikuControlLook.

Add DrawScrollBarButton() and DrawScrollBarThumb() and
DrawScrollBarBorder() methods. These methods are used to draw scroll
bars in a generic way so that they can be drawn differently by alternative
control look's (e.g. BeControlLook). Also it gives us back drawing of
scroll bar knobs.  However the knob setting is not exposed in the
interface in this commit.

These methods are in addition to the 2 existing DrawScrollBarBackground()
methods that draw the scroll bar background. One draws the area above and
below the thumb and the other is called by the first to actually draw the
area.

The rest of the drawing besides the backgrounds was being done in
BScrollBar before. To draw the scroll bar arrows and thumb we were recyling
other ControlLook methods, while this worked well enough on HaikuControlLook
it wasn't flexible enough for alternative control looks.

DrawScrollBarButton() is used to draw the four scroll buttons and is
typically (so far) used in combination with DrawArrowShape().

DrawScrollBarThumb() draws the scroll bar thumb.

DrawScrollBarBorder() draws a 1px border around the entire scroll bar,
potentially B_KEYBOARD_NAVIGATION_COLOR if focused (although this is
feature not currently used.)

Draw unscrollable scroll bars as if they were disabled including the
buttons with their arrow shapes, background, and thumb.

Add FBC backwords compatibility macros in ControlLook.cpp

Change-Id: I9237c5ce45d17d674785111d51de951e5686306b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/351
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-11 16:57:54 +00:00
X512 67597f4204 Interface kit: fix regression introduced in hrev53944
In hrev53944 selection is cleared if text view lose focus, but it
don't work properly in StyledEdit, causing clearing selection when
menu is opened. Clear selection on lose focus is needed for text controls,
so when you click on another text control, previosly focused text
control should clear selection. This behavior is working in BeOS, so
some investigation is required.

Fixes #15810.

Change-Id: Ie104fc1d7e76c2cd2b97d3a0462856fe70cccbbf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2355
Reviewed-by: Stefano Ceccherini <stefano.ceccherini@gmail.com>
2020-04-11 16:55:53 +00:00
Jérôme Duval 1e1ea67e73 pch_i2c: add a few more ACPI HID for older chipsets
they should be compatible for I2C I/O

Change-Id: Ifc2bed29813403ef845ca60c9cc22187e2cacc88
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2469
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-11 16:52:15 +00:00
Autocomitter d82800d2db Update translations from Pootle 2020-04-11 08:59:25 +00:00
Jérôme Duval fedaf76622 HttpRequest: fix gcc2 build after f4fce2fd2e 2020-04-10 13:50:55 +02:00
Jérôme Duval 757499353a kernel: add data_acquisition mapping for input devices
busses/i2c needs to be probed also for acpi devices

Change-Id: Ib75b6e8db27361e395560d069dcbf136571b7a8e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2463
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval 1e0d4ffa2e usb_hid: fix trace build, use a macro for device path suffix
no functional change

Change-Id: If8a147727214c8d40853058c033d241c284eec84
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2462
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval ee87ae146f i2c: add diagnostic utility
Change-Id: I7e87457ff6e4210e256f9e41e5555e2d0e1ba20d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2459
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval e4402bc32f pch_i2c: i2c bus driver for Intel PCH (Skylake+)
acpi initial support

Change-Id: Id48b1211356e47b7dec4c74ad49eeb7bd704bc67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2458
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval f6f8cb83e4 i2c: bus manager
Change-Id: Ic2a7d3a4949a06a6e5f35dbb0b43d8239f92a370
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2457
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Rene Gollent <rene@gollent.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval b9d640760e acpi: add ACPI_DEVICE_HANDLE_ITEM
type is acpi_handle, to be used with the ACPI bus manager

Change-Id: Ibbdd81a21bdd57fc651f7a7238e3676033204857
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2456
Reviewed-by: Rene Gollent <rene@gollent.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval ec325c48dc i2c: interfaces for busses, bus_manager, peripherals.
Change-Id: I9c3e92cb1c1833eaadc73fa30fc8757c14c79292
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2455
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval 8f6d605714 acpi: add walk_namespace bus and device method
Change-Id: I03fa43e0ba9b37f6db43f6ff16bbca892684cc49
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2446
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval b5dba2e4ad acpi: add ACPI_DEVICE_ADDR_ITEM and ACPI_DEVICE_CID_ITEM for device nodes
ACPI_DEVICE_HID_ITEM is now optional, instead of an empty string.

Change-Id: I352ffaaad377659f650a0b8c0d56e40a68b739c3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2420
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-10 11:25:39 +00:00
Jérôme Duval 08bc0cc9ca device_manager: add find_child_node
to find a node in the hierarchy.

Change-Id: Iee858f21ce134569bf25fccbef9fe18ea8787e9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2419
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-04-10 11:25:39 +00:00
X512 f4fce2fd2e HttpRequest: use off_t for reply content size
Fixes #15850.

Change-Id: Ic5d64ecba92306cbe798c94ac8e4a7626125e09b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2464
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-08 14:16:46 +00:00
CodeforEvolution d12bb8b148 Fixup Tracker Icon
The last time I checked, dogs don't have the power of telekinesis. :)
Primarily changed the Tracker icon in all places to have the Tracker
mascot hold the window in its mouth (like in BeOS), rather than the
window just levitating in front of the dog.

Change-Id: Ic60d3b0cb47e5995a639b494bf63af9ca21ef7d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2408
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-08 14:13:53 +00:00
navinbarnwal c770613157 libprint: Small code formatting fix
Change-Id: I40735e8994a8a4804401ce2694bb0f305216bbf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2453
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-06 07:02:00 +00:00
Kyle Ambroff-Kao 40aa43588d tests/net: Fix NetworkAddressTest::TestUnset()
This test just checks a default-constructed BNetworkAddress and a
BNetworkAddress that has had its Unset method invoked are in the same
state.

It also compares against a BNetworkAddress that has been constructed
with the AF_INET family. In BeOS R5 this worked because you could
construct a BNetworkAddress with nullptr for the host parameter, but
in Haiku this this leads to Unset() being invoked. So
BNetworkAddress(AF_INET, NULL) is the same as a default-constructed
BNetworkAddress object.

This patch just changes the test to construct the BNetworkAddress used
for comparison with a valid host using the IPv4 loopback address
instead.

Change-Id: Id890110cfa1f3c40a630f9005e2a390e25f6baae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2388
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-04 22:44:37 +00:00
Adrien Destugues 61557c8240 BListView: do not spawn a thread on every mouse click.
That's a bad idea. The drag and drop tracking could get confused enough
to crash app_server (possibly because of calling InitiateDrag multiple
times?)

Fixes #14983.
2020-04-04 11:50:07 +02:00
Autocomitter 1e4cb11ffd Update translations from Pootle 2020-04-04 08:57:41 +00:00
Niels Sascha Reedijk 9663972932 HaikuBook: Add documentation for BSplitView and BLayoutBuilder::Split<>
Change-Id: I4cfb369d21097ff49a53ebfc52ca57cab7c8049b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2443
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-03 17:04:33 +00:00
Jérôme Duval c4f5ebc3df PCI: add set_powerstate and get_powerstate hooks
Change-Id: I8e32b5fccba3461cdb1b0c6e81b15705b2be1c57
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2447
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-02 13:31:56 +00:00
Niels Sascha Reedijk f62c154804 Documentation: synchronize the userguide and the welcome guide from i18n.haiku-os.org
This also applies the change in #15393
2020-03-31 07:05:33 +01:00
Leorize d7e2195b89 installer/CopyEngine: don't return values via class states
_CollectCopyInfo uses fBytesToCopy and fItemsToCopy for the sole purpose
of returning the scan results. This variable in turn was used to add to
the amount of files to copy in the progress bar, causing it to grow
exponentially with every CollectTargets calls.

With the current use case, the variable would have to be reset to 0
everytime CollectTargets is invoked, making it rather useless as a class
state.

This commit turns those variables into _CollectCopyInfo return values,
and also fix the exponential growth of the progress bar target.

Fixes #15826

Change-Id: Ib734febfdd8aaaa12fdfac61be124adb61b28f6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2445
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-03-29 16:33:52 +00:00
Augustin Cavalier a73bad3ed2 nvme_disk: Add locking around request queue access.
Should help with #15123 further.
2020-03-28 16:27:37 -04:00
Augustin Cavalier ce363eca71 nvme_disk: Remove nvme_qpair_poll from nvme_internal.h.
This is now declared in the public header.
2020-03-28 16:27:37 -04:00