Use byte count rather than string length for NMS component name check

Bug: 505067993
Test: atest NotificationManagerServiceTest
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:9581befdf4db092b4ac5500b5146906c5dbc568c
Merged-In: Ie1bf232340770e1237f80177bb0b86eabeda3635
Change-Id: Ie1bf232340770e1237f80177bb0b86eabeda3635
2 files changed