History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiLockManagerTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
029cbaebb9ae0c1ef8596f56101e59984a71d64f 17-Mar-2017 Paul Duffin <paulduffin@google.com> Remove ambiguous wildcard import of org.mockito.Matchers.*

The recent upgrade to Mockito 2.7.13 has caused some problems
for grok (and new javac toolchain). The changed files used
wildcard imports to import the same methods from both Matchers
and Mockito.

This was not a problem previously because in the previous
version of Mockito the Mockito class extended the Matchers class
and so even though two methods with the same name were imported
they were not treated as a conflict because they were treated as
being the same method. In 2.7.13 the Mockito class no longer
extends the Matchers class instead they both extend the
ArgumentMatchers class and so for some reason javac no longer
treats them as the same method.

This was not detected by presubmit builds because jack is
still treating the methods as being the same.

Bug: 32912773
Test: m -j32 ANDROID_FORCE_JACK_ENABLED=disabled FrameworksWifiTests
Change-Id: I4f505b2b0450e14a65ff3a6ba2dc7b3583592047
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiLockManagerTest.java
9563500603c158373e2ee512c4d451783c104660 20-May-2016 Rebecca Silberstein <silberst@google.com> DO NOT MERGE WifiLockManager: create class to manage WifiLocks

( cherry-pick of Ib055078eb0a8555e9a7715d7ce10de1103e73130 from master)

Create new class to maintain WifiLocks requested by applications.

WifiLock management was closely tied to the WifiServiceImpl and made it
very difficult to write tests using different WifiLock modes in
DeviceIdle states. This CL moves the lock management to a new class,
WifiLockManager, and adds tests to check the behavior.

Bug: 28669096
Change-Id: Ib055078eb0a8555e9a7715d7ce10de1103e73130
Test: runtest frameworks-wifi
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiLockManagerTest.java