summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJayachandran Chinnakkannu <jayachandranc@google.com>2020-03-02 21:18:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-02 21:18:50 +0000
commite7fa928e88a711ff5fcedbe0b0f13801fca6ae97 (patch)
treecb61bca9254cc6aa6167b2cc9f9ab240ba5755f7 /tests
parent4531cc8eaabe3a0bbec1675b4e52d87a6a89aefe (diff)
parent71844d18b32d2c40f51c7f2f633e9387ec25ce50 (diff)
Merge "Make IccCardConstants APIs hidden as per API concil's feedback" into rvc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
index d1d5ecf57..36904e041 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
@@ -149,7 +149,6 @@ import android.telephony.TelephonyManager;
import androidx.test.filters.SmallTest;
import com.android.internal.os.PowerProfile;
-import com.android.internal.telephony.TelephonyIntents;
import com.android.internal.util.AsyncChannel;
import com.android.server.wifi.WifiServiceImpl.LocalOnlyRequestorCallback;
import com.android.server.wifi.hotspot2.PasspointManager;
@@ -3870,11 +3869,11 @@ public class WifiServiceImplTest extends WifiBaseTest {
mLooper.dispatchAll();
verify(mContext).registerReceiver(mBroadcastReceiverCaptor.capture(),
(IntentFilter) argThat((IntentFilter filter) ->
- filter.hasAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED)));
+ filter.hasAction(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED)));
int userHandle = TEST_USER_HANDLE;
// Send the broadcast
- Intent intent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
+ Intent intent = new Intent(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED);
intent.putExtra(Intent.EXTRA_USER_HANDLE, userHandle);
mBroadcastReceiverCaptor.getValue().onReceive(mContext, intent);
verifyNoMoreInteractions(mWifiCountryCode);
@@ -3889,14 +3888,13 @@ public class WifiServiceImplTest extends WifiBaseTest {
mLooper.dispatchAll();
verify(mContext).registerReceiver(mBroadcastReceiverCaptor.capture(),
(IntentFilter) argThat((IntentFilter filter) ->
- filter.hasAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED)));
+ filter.hasAction(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED)));
int userHandle = TEST_USER_HANDLE;
// Send the broadcast
- Intent intent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
+ Intent intent = new Intent(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED);
intent.putExtra(Intent.EXTRA_USER_HANDLE, userHandle);
- intent.putExtra(Intent.EXTRA_REBROADCAST_ON_UNLOCK, true);
- intent.putExtra(Intent.EXTRA_SIM_STATE, Intent.SIM_STATE_ABSENT);
+ intent.putExtra(TelephonyManager.EXTRA_SIM_STATE, Intent.SIM_STATE_ABSENT);
mBroadcastReceiverCaptor.getValue().onReceive(mContext, intent);
verifyNoMoreInteractions(mWifiCountryCode);
}