[NAN] Add validity checks for service name

Add checks that the service name is valid per spec (see bug for
details). Stores internally as a byte[] for further propagation.

Bug: 30000106
Change-Id: Iab413aba6755c97bfca0332d6eaa21f636e47f3f
(cherry picked from commit 06c7beb6d172b03b7183a5c727b9d669be59a9f1)
3 files changed
tree: 818b43119f10bbfbb7ce62b03bf9210bbbe1ac85
  1. framework/