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