Hugo Benichi
cf96a1b36d
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: 37013369
(cherry picked from commit ff3e6ccca1 )
Change-Id: Icf047532aa551fbe0a70721cfb95507eaa84d51e
2017-08-03 14:19:43 +09:00
..
2017-02-20 17:32:12 +00:00
2017-07-14 07:25:51 +09:00
2017-08-03 14:19:43 +09:00
2017-07-05 14:33:35 +00:00
2017-02-22 12:56:38 +09:00
2017-04-13 22:17:50 +00:00
2017-01-26 18:51:49 +09:00
2016-02-02 15:18:41 -08:00
2016-05-10 13:24:16 -07:00
2016-03-31 23:51:32 +09:00
2017-06-05 13:27:11 -06:00
2017-01-26 18:52:11 +09:00
2017-05-19 00:58:41 +00:00
2016-12-13 17:15:38 +00:00
2017-06-02 03:18:56 +00:00
2016-12-13 17:15:38 +00:00
2016-09-06 12:49:48 -07:00
2017-03-31 13:28:45 +09:00
2017-04-20 09:26:18 -07:00
2017-01-23 10:51:41 -08:00
2017-05-02 12:23:05 -07:00
2016-05-10 13:24:16 -07:00
2016-10-17 10:32:40 -07:00
2017-01-30 15:05:53 -08:00
2017-07-24 16:03:33 -07:00
2017-02-28 22:01:20 -08:00
2017-07-24 16:03:33 -07:00
2017-06-05 22:28:21 +00:00
2017-06-02 03:18:56 +00:00
2017-06-02 03:18:56 +00:00
2017-07-24 16:03:33 -07:00
2017-06-02 03:18:56 +00:00
2017-06-02 03:18:56 +00:00
2017-06-02 03:18:56 +00:00
2017-06-02 03:18:56 +00:00
2017-07-19 00:54:54 +09:00
2017-07-14 04:26:42 +09:00
2015-10-27 17:11:27 +09:00
2017-01-06 14:18:07 +00:00
2017-01-06 14:18:07 +00:00
2017-01-06 14:18:07 +00:00
2017-04-14 18:22:10 +09:00
2016-08-29 11:27:16 -07:00
2016-06-29 17:41:32 +01:00
2016-04-12 08:54:36 -04:00
2017-06-06 17:40:01 -07:00
2017-07-28 23:54:05 +00:00
2017-01-26 18:52:32 +09:00
2017-07-05 21:30:52 +09:00
2017-02-14 18:39:57 -08:00
2016-06-03 11:45:12 -07:00
2016-02-08 10:41:21 +00:00
2017-06-05 13:27:11 -06:00
2017-05-11 15:43:57 +00:00
2017-04-14 18:23:45 +09:00
2017-06-05 13:27:11 -06:00
2017-02-24 10:50:12 -08:00
2017-03-24 16:08:32 -07:00
2017-04-21 18:47:35 +00:00
2016-04-24 14:39:34 -06:00
2017-01-26 18:52:32 +09:00
2017-01-17 14:16:01 -08:00
2017-05-17 10:33:01 -07:00
2016-12-15 10:21:08 +00:00
2017-07-12 09:25:15 +09:00
2016-05-26 14:50:37 +00:00
2016-05-24 15:22:55 -07:00
2016-09-27 11:24:32 -07:00
2016-05-04 10:25:55 -07:00
2017-04-15 00:40:58 +00:00
2017-01-26 18:52:11 +09:00
2017-06-26 20:38:15 +01:00
2016-05-18 16:17:03 +09:00
2017-04-14 18:22:10 +09:00
2017-06-05 13:27:11 -06:00
2016-05-13 16:03:11 +00:00
2017-01-26 04:49:33 +00:00
2017-07-14 17:22:47 +02:00
2017-02-08 14:50:34 -08:00