commit | a20e60c40724fe7cf316acab03bda0700984f3c3 | [log] [tgz] |
---|---|---|
author | Nate Jiang <qiangjiang@google.com> | Fri Feb 26 21:48:23 2021 -0800 |
committer | Nate Jiang <qiangjiang@google.com> | Mon Mar 01 16:52:08 2021 -0800 |
tree | c4253658d5c59a57d92ca257a76f59a9d5249773 | |
parent | 56d04b4b5c80dcb3f8ce6821ab0773d8013bd8de [diff] |
Only use VcnManager&VcnNetworkPolicyListener API when SDK match Only create the listener when it's on S devices. For unit test, create the mock inside the test class with SDK check to avoid setup failure due to VcnManager/VcnNetworkPolicyListener not existing on Android R. Use AnswerWithArguments to replace lambda to avoid Junit initializationError. Bug: 181379244 Test: atest FrameworksWifiTests Change-Id: If9f7c3098294a27cf7b1cb3f3a0fd229aae2848b