History log of /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.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/DeviceStateMonitorTest.java
802962613bf8ac5e53d08a6310ceecf031e1b8a5 19-Apr-2017 Amit Mahajan <amitmahajan@google.com> Disable failing unit tests.

All tests pass locally now and should pass on treehugger and apct
as well.

Test: runtest --path frameworks/opt/telephony/tests/telephonytests
Bug: 29579544
Change-Id: I8a038f60e6bed490a2e969258b126f4dfa1f6cb9
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java
cef2ab5e676f7a8187e5cddaa1d2547b13f48f39 25-Mar-2017 Jack Yu <jackyu@google.com> Fixed failed unit tests

Test: runtest --path frameworks/opt/telephony/tests/telephonytests/
bug: 29579544
Change-Id: Ib53a4e7fee5dee1f305303bfbd914e31cdd2ab71
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java
b1fdcf01045090315c5b91d7539007d79f34c9ec 21-Mar-2017 Amit Mahajan <amitmahajan@google.com> Unit test fixes. Most failures were due to new mockito.

Test: runtest --path frameworks/opt/telephony/tests/telephonytests/
Bug: 29579544
Change-Id: Ic228cd7dfc4d8913411a459520d7b7bf71a66d98
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java
516010d13181808ca8205316a419b615e5a9fe5e 08-Mar-2017 Shuoq <shuoq@google.com> Add @FlakyTest annotation to flaky tests in framework/opt/telephony

Bug: 35710737
Test: No change to behavior
Change-Id: I923486c5fb69b241cea59a330ed80077c10adb89
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java
e41c3cd566ccbe92c6880f4ef3be8612f42d0340 05-Mar-2017 Jack Yu <jackyu@google.com> Fixed DeviceStateMonitor unit tests

Test: unit tests
bug: 32223897
Change-Id: Ia165bebd71816ab505a0f0357eba48b415d72524
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java
50b941e59787a21dd2d4f3d25d700538efb9abc5 18-Feb-2017 Jack Yu <jackyu@google.com> Added device state monitor

Added DeviceStateMonitor to replace the legacy screen state RIL
API. Instead of sending the screen state to the modem, the new
device state monitor can explicitly turn on/off the unsolicited
response from the modem based on difference scenarios (e.g.
tethering, charging, screen state). It also sends more device
state to the modem including charging state, power saving state,
and low data expected state.

Note that in order to support the old vendor RIL, framework will
still invoke the legacy screen state API to ensure the best
user experience on those devices.

Test: Manual. Unit tests.
bug: 32223897, 20125037, 28294587

Merged-In: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
Change-Id: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/DeviceStateMonitorTest.java