That can be a bit of a tricky question.
In general, OEMs are required to release
kernel source code (since it's derived from the GPL'd Linux kernel). They have no obligation to release source for proprietary hardware drivers (which is why Nexus devices get the compiled
binaries published - that source code can't be included in the Android Open Source Project) or any of their proprietary software or applications.
Clear as mud?