android_packages_modules_Co.../core/java/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hugo Benichi 43ea1e5532 NsdManager: remove duplicated argument validation
This patch simplifies argument validation in NsdManager public api and
regroup duplicated validation into common methods.

This makes stack traces more actionable as now specific errors will
cause the api to throw exception from specific methods, whereas before
IllegalArgumentException would be thrown from inside the same api method
for different reasons.

This patch also includes a couple of other small cleanups.

Test: $ runtest -x frameworks/base/tests/net/../NsdManagerTest.java
Bug: 35362108
Bug: 37013369
Bug: 62044295
Bug: 63826516
Merged-In: Iaad13e13976e9bf8f508d7188f823f8184ac414b

(cherry pick from commit f2c64f8725)

Change-Id: I5e6a1ecc6b98069ef0089bbceecf73f7692df227
2017-08-01 02:45:23 +00:00
..
app/usage Annotate @SystemApi with required permissions. 2017-06-05 13:27:11 -06:00
net NsdManager: remove duplicated argument validation 2017-08-01 02:45:23 +00:00