History log of /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.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/GsmCdmaPhoneTest.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/GsmCdmaPhoneTest.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/GsmCdmaPhoneTest.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/GsmCdmaPhoneTest.java
8b38cd985149b459969dd2ac9e8013d852dc6760 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
2a0b347e9a5f349ac0fe1220c8549a70643b8934 26-Oct-2016 Jordan Liu <jminjie@google.com> Merge "Update reference to config_default_vm_number"
am: bd9734a4ae

Change-Id: Ia412832b377581f72b1d8dc0da22f0ef8f426d42
f271e16613936c9f9600f20ae88cd9b865b88c6a 02-Sep-2016 Jordan Liu <jminjie@google.com> Update reference to config_default_vm_number

For the switch to CarrierConfig, update the methods used to set and get
this value to the new ones available through CarrierConfig.
Merged-In: I7fa7305dbdc708771bd87d092fdea88552515013

Bug: 29873049
Change-Id: I7fa7305dbdc708771bd87d092fdea88552515013
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
3374f09335e5b7681af05a35dd7454b565f8bb72 14-Sep-2016 Jordan Liu <jminjie@google.com> Mark flaky presubmit tests as @Postsubmit

Previously tests passing <95% of the time were considered flaky. Now we
mark any test passing <99% of the time as flaky.
Also increase wait time before assert in switchToCdma which was failing
inconsistently.

Bug: 31041734
Change-Id: Ibb353c99049b049f57d0f67b5027278d58c5f69b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
7e9240253edb59e0aa657de434faa1ccdf17a742 29-Aug-2016 Amit Mahajan <amitmahajan@google.com> Fixed failing tests.

Also marked some of them @Postsubmit.

Bug: 31041734
Change-Id: I9a93bbb6d7f9c28fa90bab260d837761bc07eb77
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
5452ccfc4d32fab9933bdcfe775c38f73d4e1b15 05-May-2016 Robert Greenwalt <rgreenwalt@google.com> Base APN State on the state of the ApnContext.

Stop using enablement or activeness as a proxy for state and
just ask for the state. Enablement has changed (since L)
to indicate if we should look for a connection and is not
representative of if we have a connection.

bug:26785653
Change-Id: I8c1edda733509d2539989e727809c13002abf37f
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
f83b2ff83d82e570a3a3011df7b566c477d687cd 13-Apr-2016 Jack Yu <jackyu@google.com> Merge "Moved ERI configuration files from resoures to Carrier Config." into nyc-dev
2dd874066ed871c8adf50f58e4b025d525db78eb 09-Apr-2016 Jack Yu <jackyu@google.com> Moved ERI configuration files from resoures to Carrier Config.

Used Carrier Config to load correct ERI configuration file since
there are MCC/MNC shared by different carriers.

bug: 23887558
Change-Id: Ibe2ff7862bf50e31b52fb783c49bda993f8d2ca7
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
0cf8dcd827da174a7d7f366aa8caa5dd29206ea1 13-Apr-2016 Amit Mahajan <amitmahajan@google.com> Fix voicemail number related unit test.

Bug: 26032015
Change-Id: I3fc9343f05f142c2916fd16572950962d3f3e325
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
fd6ce6219b41f9735240b9d0665d27c32482abd1 31-Mar-2016 Amit Mahajan <amitmahajan@google.com> Add implementation for mock Settings content provider.

Bug: 25691379
Change-Id: I2dd74c529f489613cca4b8b04cbb445cee8c902e
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
af59a35e945d60fc9ffb305c494a695b35b8a942 16-Mar-2016 fionaxu <fionaxu@google.com> TelephonyManager unit test cleanup

Bug: 25691379
Change-Id: I129c8b4f04ad7e6d777857e8c7853de7a86348cc
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
9b745eec57bcd55e1a33cfe9f20cbd8125286e91 08-Mar-2016 Amit Mahajan <amitmahajan@google.com> Merge "Support for call forwarding status for multi-sim." into nyc-dev
d520d895c1af9974f61235bdf35cf5221abbe98a 05-Mar-2016 Amit Mahajan <amitmahajan@google.com> Support for call forwarding status for multi-sim.

Includes changes for multi-sim voicemail count support and
unit test.

Bug: 18108420
Change-Id: I8d7a4e796491c8d90ad213242ff37747043c72a1
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
ecac744a4e585e3c7af95ffa06fa3e711131200c 02-Mar-2016 Amit Mahajan <amitmahajan@google.com> First unit test for ImsPhone.

Bug: 25691379
Change-Id: I61a2f0805220782e7dbebaf50604b596ef3ba24b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
de9c22e95d4e2797076db0c6b798e54f0638b7f0 26-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit test for emergency callback mode start/end.

Bug: 25691379
Bug: 27378459
Change-Id: I5c93f6bb6f5e9c9b0da8851c8461c378c18c8c58
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
14bdfdca7a5412edf5fbdd6573e0f608233a5ae8 24-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit test for GsmCdmaPhone (handling of messages rcvd on creation)

Includes access modifier cleanup in Phone

Bug: 25691379
Change-Id: If14eba8665f031c866a5d199078317d9d9e1291d
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
e5e4b94927937ac5cbc83ac577d4a572fa412784 16-Dec-2015 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - Create the new SubscriptionMonitor

Add some unit tests too.

Change-Id: I2b8d36ccd254a8b6743137dcc8593fb8171de6d3
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
2d6df73e3bebb7d6aebd628730b9d20b23f1637a 11-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for CallForwardingOption in GsmCdmaPhone

Bug: 25691379
Change-Id: Ic8e5b8c96d93f9c3a09b0a2f7a22e9357372ba9c
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
97b3c4e45f156d8d5ae25a32357c9b31e018da32 10-Feb-2016 Amit Mahajan <amitmahajan@google.com> Support for storing voicemail count for multi-sim.

Bug: 18108420
Change-Id: I08edb714b839b44472b3b7a4d0aba287da2969d3
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
9c96807d990cdd3f4bb2d3f0fd56a1e78a95b353 10-Feb-2016 Jack Yu <jackyu@google.com> Test infrastructure improvement and code clean up.

Added instance replacement infrastructure and auto-restore functionality.
Cleauped up test cases.
Fixed copyright year.

bug: 25691379
Change-Id: I7e9b0b121c38c3a2c7375b262e2a121abb9c9a59
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
21e1b42d578d90611f76c37d58841543821502fd 10-Feb-2016 Jack Yu <jackyu@google.com> Revert "Test infrastructure improvement and code clean up."

This reverts commit 01d7b95381a5247520e7fe4ac40d10bcced525cf.

Change-Id: I2cb03e799dc5ce2a3bd1bcf8da21fb5fe7043672
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
01d7b95381a5247520e7fe4ac40d10bcced525cf 10-Feb-2016 Jack Yu <jackyu@google.com> Test infrastructure improvement and code clean up.

Added instance replacement infrastructure and auto-restore functionality.
Cleauped up test cases.
Fixed copyright year.

bug: 25691379
Change-Id: Ie3c778df828575d10e9164922210cc5b05723b45
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
153077e0b2d9ff6f115a0739dac1d64931bffb91 10-Feb-2016 Amit Mahajan <amitmahajan@google.com> Update voicemail number related unit test.

Bug: 25691379
Change-Id: Ia80a455c99a21f50348d9ca3ef2b3e69179c93e7
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
78867803826b15ff95c8ee8c7c6f65dfb7ad258f 09-Feb-2016 Amit Mahajan <amitmahajan@google.com> New unit test for GsmCdmaPhone and fixes for some existing tests

Bug: 25691379
Change-Id: I323fdef84792459db312df7bd58917e52a1a995e
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
7be665f8b55afde15fde2b0cd93e5c0c20a12c0f 09-Feb-2016 Amit Mahajan <amitmahajan@google.com> Fix locally failing tests.

Delay should be added on test thread, not on HandlerThread

Bug: 25691379
Change-Id: Ibe902cfe10a3a1d4cd3519732b2753c6575e19eb
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
f152b32a20be664788536a223b9ac7a52f69e4dd 06-Feb-2016 Amit Mahajan <amitmahajan@google.com> Fix failing tests by cleaning up properly in tearDown.

Bug: 25691379
Change-Id: I829278ee371e9903e73891cee2a0986686d72ee5
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
b9d551db1795b30598e2ce98cfae7106788c12d6 05-Feb-2016 fionaxu <fionaxu@google.com> handle diff systemproperties to fix Test failures

BUG=25691379

Change-Id: I13c079a26dc1c1a971471bef55770b97d489e39f
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
32b5fbb1a340fa16e2c37c276517ef10a4934500 03-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for GsmCdmaPhone.

Also creating abstract class TelephonyTest that can be extended
by other unit tests.

Bug: 25691379
Change-Id: I9437642a0bab68c6b573954e587181ff7d04d217
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
5d5ca33a24e6b73a48b575a0e1a5e790784d0bb7 27-Jan-2016 Amit Mahajan <amitmahajan@google.com> Unit test for CdmaSmsDispatcher

Bug: 25691379
Change-Id: I9d4f209ad1a20435ae8841e5f15ce8a94b52fa42
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
91680ad599f9e15a32c3a9798021778e8d4eab6e 22-Jan-2016 Amit Mahajan <amitmahajan@google.com> First unit test for GsmSMSDispatcher.

This includes a verifier class that can be used to check if a
function in RIL was called by the class under test.

Bug: 25691379
Change-Id: I187fe6c482dd6f32fbc4bdadb90e7a4412d7d795
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
ec334adf4017ca172f44612d01456e671f922344 19-Jan-2016 Amit Mahajan <amitmahajan@google.com> First unit test for SMS (EVENT_NEW_SMS in GsmInboundSmsHandler).

Bug: 25691379
Change-Id: Iacb24b23c224a8889cc549d02aa0dbd415e3c3d7
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
bba3bfb3b840ab938deaf4cf14881bc6d51c3e5c 19-Jan-2016 Amit Mahajan <amitmahajan@google.com> Fix for failing unit test.

Bug: 25691379
Change-Id: I004f2990c9d30f697ce66cad2e5bae8c282eb083
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
0c3ec24396bb8c21b4d89f743b626c13dd35ba7b 15-Jan-2016 Amit Mahajan <amitmahajan@google.com> Added unit tests for GsmCdmaPhone

Bug: 25691379
Change-Id: Ide4d50b10da332334fc4717ff1e7428f8b158056
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
dd4b0f4b5a2def03bd45637be5ceed3e86781f68 16-Dec-2015 Amit Mahajan <amitmahajan@google.com> Added isPhoneTypeCdma() and isPhoneTypeCdmaLte()

Also includes:
- Removed unnecessary unreg/reg of phone with CallManager on
voice radio tech change. This is needed as otherwise Ims Phone may
get unreg but not reg again (on radio tech change).
- Allowing reg/unreg in GsmCdmaPhone regardless of phone type
- Removed unused Call.mIsGeneric

Bug: 25793157
Change-Id: Ie2093a50c1cf64918782076127decff90968fe72
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java
0a567c9ed954f295df83c753239646c6f6a04128 24-Nov-2015 Amit Mahajan <amitmahajan@google.com> Adding initial tests for GsmCdmaCall and GsmCdmaPhone.

Also includes:
- Changes to fix/comment out failing tests
- Some cleanup in CallManager related to deletion of PhoneBase and
PhoneProxy
- ContextFixture containing mock Context for all telephony tests
- Phone test that exercises BroadcastReceiver support in the mock
Context
- Test showing how static function can be mocked

Bug: 25691379
Change-Id: Ia38423cef3cfb86389d044cac4e601983fae1192
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java