SAN FRANCISCO — Hewlett-Packard on Wednesday outlined a billion-dollar bet to reshape its huge personal-computer and mobile-device business to be more like Apple, using an in-house operating system ...