History log of /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
950aec10f2545e9f3da0ecb6331e2a5772c2483a 18-Jul-2017 Charles He <qiurui@google.com> Merge "Add isAlwaysOnVpnPackageSupported to ConnectivityServiceMock"
81fb11f98aacea95db02ef477c44993f860c29a6 28-Jun-2017 Charles He <qiurui@google.com> Add isAlwaysOnVpnPackageSupported to ConnectivityServiceMock

As we add a new @hide method isAlwaysOnVpnPackageSupported to
IConnectivityManager interface, we're adding it to this mock class here
as well.

Test: builds
Bug: 36650087
Change-Id: I787ecfa0a114c6058dd21a48ff00ae3f70d0ce97
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
820ca11b8f6c2e56545fb40198fca1bdb9e230c7 22-Jun-2017 Udam Saini <udam@google.com> Updating mock for ConnectivityService

Change-Id: Ia70f8736c0ac453f1b535cc7f27112990298b54d
Test: manual and make
bug:62348162
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
9848cbfdbe7ec8fe3eeb9b488a90567e86c7e8cf 24-May-2017 Jack Yu <jackyu@google.com> Fixed file descriptor leak in telephony unit tests
am: ae6e8f99bd

Change-Id: Ice665b510922057b5940b08504c578b14d3587ab
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/mocks/ConnectivityServiceMock.java
6984316a4ec5d1255beaa4f99ba5927d4718e4ff 02-May-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Add startCaptivePortalApp to ConnectivityServiceMock." into oc-dev
am: 13e9d1a2cf

Change-Id: I089f48fa8bb28d3218a22b49fe4bac03fe336e52
1d315f3a1df8b3494876dae5f9d373320b0dda2a 01-May-2017 Lorenzo Colitti <lorenzo@google.com> Add startCaptivePortalApp to ConnectivityServiceMock.

Bug: 36656914
Test: mmm -j64 frameworks/base/services frameworks/opt/telephony
Change-Id: I946d7c8e4e88caf777c82b4174631efc92552216
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
2eaa4816cc9fd5451157d6ab64b6bf96584a4945 19-Apr-2017 Shunta Sato <shunta.sato@sonymobile.com> Make tetherChangePermission to be secured for AppOps permission

Symptom:
AppOps verified the incorrect package of calling tether state
changing API.
It threw SecurityException by mistake.

Solution:
Pass the correct package name to enforceTetherChangePermission.

Bug: 32931147
Change-Id: Ib10db45768e62d9b7ffe0318ca97edaaf2513802
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
75dd4e6f367d24ec8ed39618652a57047c1fbb78 25-Jan-2017 Lorenzo Colitti <lorenzo@google.com> Keep ConnectivityServiceMock building.

Test: builds
Bug: 34630278

(cherry picked from commit 698956f008d1c045e71d8fa53d5634083968755c)

Change-Id: Id2a599f716022422ab2b8983e58e85ed5c33963f
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
7030a0d88ab21b3de0fc53f1beb5f7fbd3120424 07-Mar-2017 Erik Kline <ek@google.com> Merge "Remove request{LinkProperties,NetworkCapabilities} by NetworkRequest" am: 079277986d am: e68d80a102
am: a126780901

Change-Id: If51c68abb987b3554b97dfbf225a6ef51800521f
94f0e6849458add4b95772cca53262d147b52845 07-Mar-2017 Erik Kline <ek@google.com> Remove request{LinkProperties,NetworkCapabilities} by NetworkRequest

Test: treehugger
Bug: 32163131
Change-Id: Idbc6ad949540c62d7db727f52d93fcd8fda694d8
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
e2f722fd7ea7fc47fc262576c579719bdf68cc30 16-Feb-2017 Etan Cohen <etancohen@google.com> Merge "[CM] Deprecate maximum timeout value for request network" am: df54365c75 am: 416796eda2 am: cf2e62d6aa
am: fb0ed8b20c

Change-Id: Id3fd25302a6df3cd06e651a895ab5f8d9146a0cb
32b26bf2d118436aad28bfdfd7ca19b5def4af71 06-Feb-2017 Etan Cohen <etancohen@google.com> [CM] Deprecate maximum timeout value for request network

Modify mock to match modification of ConnectivityService behavior.

Bug: 31399536
Test: unit tests and CTS for ConnectivityManager
Change-Id: I1f07465adda7b9c3c4d9ed3c5e27d7b26ad61572
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
698956f008d1c045e71d8fa53d5634083968755c 25-Jan-2017 Lorenzo Colitti <lorenzo@google.com> Keep ConnectivityServiceMock building.

Test: builds
Bug: 34630278
Change-Id: I9b7a82539ad33b77a1549248fef87cae788896da
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
c39c5bf3b6b73b5e812d7761af5b5656f55be1f1 18-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Add stub of avoidUnvalidated() to ConnectivityServiceMock.

Bug: 31075769
Change-Id: I18041a2d11895f3d9b00f077dc4eef1f450e791c
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
f0bf1d1994dca3e60635cd342ed56d7b018cece4 07-Jul-2016 Erik Kline <ek@google.com> Keep mock CS inline with real CS.

Bug: 9580643
Change-Id: If663d1b24accd7e0624931fbfdf3cafcbf177923
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
4be10a245ce355d84d70e61cb63d29ed525b478a 30-Jun-2016 Lorenzo Colitti <lorenzo@google.com> Keep ConnectivityServiceMock in sync with reality.

Bug: 23113288
Change-Id: Ic16841cc746a1a35eb6b9325d350c9c860b81dd6
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
64fbcce906012e4b429c354ba3a200a6ee410010 01-Jul-2016 Lorenzo Colitti <lorenzo@google.com> Keep telephony mocks in sync with NetworkRequest changes.

Bug: 23113288
Change-Id: I1a107045d23a0a05ace4550779e23a2be424c0f8
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
6e79d7d52d9ddb79b7e9a15a2be4797e9a5af25f 04-May-2016 Robin Lee <rgl@google.com> Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev
92867f07cf5873b840256c52dc9c2ab5d3455416 03-May-2016 Robin Lee <rgl@google.com> Add lockdownEnabled parameter to always-on VPN API

Allows callers to opt-out of blockading network traffic during boot and
on VPN app failure.

Bug: 26694104
Change-Id: I01572241eec5b21501b79a030ccd1c3aff0f21d9
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
8ca2e656bd1143d671e893191b08ff93a4bd2692 28-Apr-2016 Jeff Sharkey <jsharkey@android.com> Follow framework refactoring.

Bug: 26571724
Change-Id: Ie88f0099f365e65eb025d8c6fc516b9580390c2f
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
511b719a26518314300725337f84bdd511e224f2 24-Mar-2016 Robin Lee <rgl@google.com> Track ConnectivityService hidden API in mock

Bug: 27074270
Change-Id: Ifd94e9a2060f540044dfda67931635eff5899f6b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
d2ffcaf3bee89edd228d6a9d603df8d6c434ea67 26-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> resolve mrege conflicts of 6a49b2401a to nyc-dev

Change-Id: I61ec6a761ea05c9437aea3000f65909c440aaf9c
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/mocks/ConnectivityServiceMock.java
6bfc71d2b5340f6274b3e63926a7068e364fc9ff 28-Jan-2016 Robert Greenwalt <rgreenwalt@google.com> 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: I0ee67e6b05a5571b2f3c4e641823cf029420cb50
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.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/mocks/ConnectivityServiceMock.java