This patch is a partial cherry-pick from commitc356ea7eb9for the BitUtils and NetworkCapabilities classes. Bug: 34901696 Test: none (cherry picked from commitc356ea7eb9) Merged-In: Id04f9080e7f75608deeb49306aec34941e71794c Change-Id: I64eae49f646365b7cd1683a689315fe03bf0bdd9