Makoto Onuki
cc4bbeb76a
Make DPM/DPMS unit-testable
...
- Now all services that DPMS uses are injectable.
- Introduce some wrappers to make static methods and final class mockable.
(e.g. for Binder.getCallingUid())
- In unit tests we replace those with Mockito mocks, except we use a partial
mock for PackageManager, because we use way too many methods of this and
most of them are okay to use directly.
- To install a partial mock to PackageManager, I needed to make
ApplicationPackageManager @hide public non-final.
- For a starter, added tests for DPM.setAmin().
Bug 24061108
Change-Id: I2afd51d8bc0038992d5f9be38c686260be775b75
2015-09-22 12:47:44 -07:00
..
2015-09-22 12:47:44 -07:00
2015-07-31 13:10:55 -07:00
2015-08-25 18:06:15 +00:00
2015-02-28 14:47:49 -05:00
2015-08-21 13:28:00 -07:00
2015-08-14 16:21:52 +01:00
2015-07-15 10:44:43 -07:00
2015-09-11 17:15:19 -07:00
2015-09-04 11:02:35 -07:00
2015-05-08 17:17:16 -07:00
2015-09-11 17:15:19 -07:00
2015-09-03 18:23:21 -07:00
2015-09-03 14:56:04 -04:00
2015-07-14 10:03:06 -07:00
2015-09-09 12:45:55 -07:00
2015-06-05 02:18:35 +00:00
2014-08-14 02:10:41 +00:00
2015-08-01 17:04:28 +00:00
2015-08-11 15:02:42 -04:00
2015-02-28 14:47:49 -05:00
2015-05-06 09:44:53 -07:00
2015-04-08 18:04:11 +08:00
2015-09-22 12:47:44 -07:00
2015-06-24 17:28:01 -07:00
2015-09-09 07:31:17 -07:00
2015-09-10 13:54:28 -07:00
2015-06-17 11:41:45 -07:00
2015-08-27 13:16:09 -04:00
2015-01-13 17:34:17 -08:00
2015-08-06 09:59:32 -07:00
2015-08-13 16:57:29 -07:00
2015-07-29 10:22:30 -07:00
2015-07-14 10:03:06 -07:00
2015-07-29 15:20:21 -07:00
2015-09-10 23:40:15 +00:00
2014-09-26 13:38:12 -07:00
2015-04-30 12:52:32 -07:00
2015-04-30 12:52:32 -07:00
2015-06-09 18:17:44 -07:00
2015-08-31 14:10:04 -07:00
2015-05-14 14:12:16 -07:00
2015-03-03 22:25:13 +00:00
2015-09-11 17:15:19 -07:00
2015-04-21 16:59:12 -07:00
2015-06-24 17:28:01 -07:00
2014-08-26 11:16:59 -07:00
2015-03-26 18:57:36 -07:00
2015-06-08 11:53:35 -04:00
2015-08-13 11:29:51 -07:00
2015-04-23 22:14:19 +00:00
2015-07-08 22:26:24 +00:00
2014-12-02 15:34:20 -08:00
2015-08-12 21:57:59 -07:00
2015-05-18 18:13:41 -07:00
2015-04-13 18:03:05 +00:00
2015-03-09 10:39:21 +00:00
2015-04-29 14:02:55 -07:00
2015-09-03 14:55:27 -04:00
2015-04-30 12:52:32 -07:00
2014-11-11 00:42:18 +00:00
2015-09-04 10:10:42 -04:00
2015-09-10 13:13:45 -04:00
2015-05-08 13:34:30 -04:00
2015-06-18 15:12:44 -04:00
2015-06-17 11:41:45 -07:00
2015-06-09 19:52:23 -07:00
2014-08-26 15:54:25 -07:00
2015-08-31 11:36:16 -04:00
2015-02-18 07:49:03 -08:00
2015-05-01 15:38:01 +01:00
2015-07-08 22:26:24 +00:00
2015-02-19 15:31:11 -08:00
2015-04-13 16:53:43 +00:00
2015-01-30 15:37:45 -08:00
2015-04-28 18:49:47 +01:00
2015-09-22 12:47:44 -07:00
2015-02-26 09:47:10 -08:00
2015-08-12 21:57:59 -07:00
2015-08-12 21:57:59 -07:00
2015-02-12 11:01:06 -08:00
2015-06-05 16:36:22 -07:00
2015-07-28 12:52:11 -07:00
2015-03-09 10:39:21 +00:00