AirPods work most smoothly with Apple hardware, but they also connect reliably to Android phones, Windows laptops and other Bluetooth devices. The pairing process depends on the platform in use ...
I work in an office where people bring in their laptops and pair them with various Bluetooth devices in the office. The problem is that Bluetooth doesn't deal very well with this particular use case.