History log of /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ae6e8f99bdb297f906d6dcdc0a385ba27eee47fd 23-May-2017 Jack Yu <jackyu@google.com> Fixed file descriptor leak in telephony unit tests

The handler thread in SimulatedCommands was not closed after
each unit test run. Fixed by adding a dispose method to quit
the thread.

Also use quit() instead of quitSafely() for all thread quiting
because we don't care if the messages were dispatched or not
after the test. This can fix some messages sending to dead
threads non-harmful exceptions in the output debug messages.

Test: Telephony unit tests
bug: 29579544
Change-Id: I112e46b0147a1950046a35cd9ac2498560c6ee1b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java
26c3198e70345a70e5dfa8ee422c7c4e60916cbe 31-May-2016 Lorenzo Colitti <lorenzo@google.com> Switch to using StringNetworkSpecifier.

Bug: 27533960
Test: unit tests
Change-Id: Ic763178bb1d85e9ec1734953415a416e3216fd40
Merged-In: I85c575d620970063a396af06d84080a2cceb4293
Merged-In: Ie59fbfc49b07496057973a3279d6b9ef5bb9d4bd
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java
6ffa56f54d0318c10526b8a64f85ed0841de5380 25-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> Fix PhoneSwitcherTest

Meant to go from score 0 -> 100 -> 0 and check for changes but
instead did 0 -> 100 -> 100.

Change-Id: I0ac3378809bf2914d3c36514030a29b4e9028851
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java
3baedf2ead743a2c67dcac03733cec52bcef5636 25-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> Don't let other networks fool the Switcher

It needs to be aware of all NetworkRequests regardless of whether
higher-scored NetworkFactories are satisfying them so we don't
switch off a phone just because we're on wifi.

Note that this behavior isn't necessarily bad, just a policy change,
unexpected and unwanted.

bug:27340021
Change-Id: I10a8d66c4117cbcb5db898c47f7cbdb1e2beb45b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java
bc2eba9036e430ea40a47ab708c0386fa567ec9c 28-Jan-2016 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - Make PhoneSwitcher class.

Monitors subscription->phone mapping, default subscription setting and
all mobile network requests to prioritize things, activate/deactivate phones
and also notify the curious about which phones are currently active.

Change-Id: I933876a018aebbbcfd86f48451d8b6e47646266e
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneSwitcherTest.java