Chun-Ku Lin
24b045c987
Move DisplayDataSizeTest to AndroidJunitTest
...
**Root cause**
- When DisplayDataSizeTest was created, it was ignored already due to
b/214161063. That means the test never passed in the beginning.
- The default display's type in Robolectric is TYPE_UNKNOWN. However, in
the constructor of DisplayDensityUtils, we check all the display that is
not TYPE_INTERNAL can't be a default display. Hence the test failed.
- Even if we shadow the DisplayInfo to have TYPE_INTERNAL for default
display, the test still failed, because whenever we tried to get the
default display density we always get 0, and doens't have other diplay
density values. Hence we can't test increasing the display size in
Robolectric Test.
Note: the solution here is a workaround for waiting AsyncTask to finish.
If we ever change the implementation in DisplayDensityUtils to not use
AsyncTask, we'll need to update the test.
Bug: 279082331
Test: atest DisplaySizeDataTest --iterations 20
Change-Id: I3ccee5e7ba4d9399a8b715d84a9d53e106f88762
2023-06-07 00:06:48 +00:00
..
2021-07-15 11:11:17 +08:00
2023-06-02 22:15:15 +00:00
2023-03-20 21:24:02 +08:00
2023-03-20 21:24:02 +08:00
2021-07-15 11:11:17 +08:00
2023-02-18 08:43:36 +08:00
2022-07-18 15:50:52 +08:00
2023-05-23 19:06:33 +00:00
2023-02-16 05:59:01 +00:00
2022-05-13 08:13:36 +00:00
2022-03-16 06:13:20 +08:00
2022-11-01 07:07:47 +00:00
2023-06-02 06:47:38 +00:00
2023-01-14 03:42:08 +00:00
2023-02-16 05:59:01 +00:00
2022-09-08 07:44:17 +08:00
2023-06-02 23:23:22 +00:00
2022-01-24 08:10:43 +08:00
2022-01-20 08:38:27 +00:00
2023-02-15 06:32:57 +08:00
2023-06-01 17:50:10 +00:00
2021-10-05 10:09:04 +08:00
2023-05-19 21:32:19 +00:00
2019-11-28 14:31:48 +08:00
2022-07-18 15:50:52 +08:00
2022-07-18 15:50:52 +08:00
2022-07-18 15:50:52 +08:00
2023-05-23 22:19:55 +00:00
2022-05-03 11:06:34 +00:00
2022-02-22 19:01:51 +00:00
2022-07-12 10:51:59 +08:00
2022-02-09 10:50:28 +01:00
2023-05-23 22:19:55 +00:00
2022-12-27 12:12:11 +08:00
2023-02-09 10:17:25 +08:00
2022-05-03 11:06:34 +00:00
2020-12-01 01:18:57 +00:00
2023-02-09 10:17:25 +08:00
2023-02-23 09:17:03 +00:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-17 12:00:43 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2023-03-20 21:24:02 +08:00
2022-08-17 12:00:43 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2023-05-23 22:19:55 +00:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2022-08-02 10:25:15 +08:00
2023-03-20 21:24:02 +08:00
2022-08-17 12:00:43 +08:00
2022-08-02 10:25:15 +08:00
2022-07-25 09:18:11 +08:00
2022-07-12 10:51:59 +08:00
2023-05-23 22:19:55 +00:00
2020-10-05 10:22:37 +08:00
2023-02-09 21:00:50 +08:00
2023-05-23 22:19:55 +00:00
2021-07-20 17:01:21 -04:00
2020-10-05 10:22:37 +08:00
2023-02-09 21:00:50 +08:00
2023-06-03 04:56:22 +00:00
2023-02-23 09:17:03 +00:00
2023-05-09 16:48:35 +00:00
2023-02-23 09:17:03 +00:00
2021-03-17 23:01:36 +08:00
2021-03-17 23:05:37 +08:00
2022-05-03 11:06:34 +00:00
2023-03-07 15:42:29 +00:00
2023-05-19 21:32:19 +00:00
2023-05-19 21:32:19 +00:00
2023-05-12 13:46:53 +08:00
2023-01-14 03:42:08 +00:00
2023-05-09 06:26:39 +00:00
2023-05-25 11:20:11 +00:00
2023-05-09 06:26:39 +00:00
2023-06-01 09:54:35 +00:00
2023-05-12 13:46:53 +08:00
2023-05-31 19:59:29 +00:00
2023-02-09 10:17:25 +08:00
2020-02-25 09:06:12 +00:00
2022-03-10 07:51:48 +08:00
2023-05-23 22:19:55 +00:00
2022-02-21 17:18:04 +01:00
2023-01-31 21:48:49 +00:00
2021-04-15 18:41:44 +08:00
2022-01-20 08:38:27 +00:00
2023-02-10 19:19:11 +00:00
2023-04-12 00:51:45 +00:00
2023-02-16 09:49:01 +01:00
2023-02-16 09:49:01 +01:00
2023-05-19 21:32:19 +00:00
2023-05-19 21:32:19 +00:00
2020-08-19 11:59:59 +08:00
2019-06-27 22:59:55 +08:00
2023-03-31 17:38:14 +00:00
2022-03-31 21:49:13 +08:00
2023-05-19 21:32:19 +00:00
2023-05-19 21:32:19 +00:00
2021-07-02 21:13:31 +08:00
2023-02-09 10:17:25 +08:00
2023-05-19 21:32:19 +00:00
2023-02-09 21:00:50 +08:00
2023-05-09 06:26:39 +00:00
2023-04-13 19:57:32 +00:00
2023-02-09 21:00:50 +08:00
2022-03-23 19:44:33 +08:00
2022-07-12 10:51:59 +08:00
2023-04-29 00:42:45 +08:00
2022-07-12 10:51:59 +08:00
2022-04-27 15:25:30 +08:00
2023-02-15 06:32:57 +08:00
2023-05-19 21:32:19 +00:00
2022-05-03 11:06:34 +00:00
2022-12-05 22:51:17 +08:00
2022-12-11 22:11:02 +08:00
2022-07-05 15:32:37 +08:00
2023-01-06 12:14:47 -08:00
2022-07-29 14:50:05 +08:00
2022-07-29 14:50:05 +08:00
2022-07-29 14:50:05 +08:00
2022-07-12 10:51:59 +08:00
2022-07-12 10:51:59 +08:00
2023-06-02 22:52:13 +00:00
2023-02-15 06:32:57 +08:00
2023-06-02 03:04:37 +00:00
2023-02-15 06:32:57 +08:00
2023-02-15 06:32:57 +08:00
2023-06-03 06:29:43 +00:00
2022-05-03 11:06:34 +00:00
2022-01-19 14:40:18 +00:00
2023-03-15 22:39:24 +00:00
2023-05-19 21:32:19 +00:00
2022-01-19 14:40:18 +00:00
2023-05-09 06:26:39 +00:00