Apply package name size limit to packages

Fixes: 336214088
Test: btest android.devicepolicy.cts.PermitInputMethodsTest#setPermittedInputMethods_packageNameTooLong_throwsException[IncludeRunOnProfileOwnerProfileWithNoDeviceOwner]
Change-Id: If6625fff147e095e1ac81d6ad1815772dbea80ab
5 files changed