/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 57 private ConnectivityManager mCm; field in ConnectivityManagerLegacyTest 65 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 93 Network[] networks = mCm.getAllNetworks(); in getIpAddresses() 95 NetworkInfo ni = mCm.getNetworkInfo(networks[i]); in getIpAddresses() 99 LinkProperties lp = mCm.getLinkProperties(networks[i]); in getIpAddresses() 159 int ret = mCm.startUsingNetworkFeature(TYPE_MOBILE, FEATURE_ENABLE_HIPRI); in testStartUsingNetworkFeature_enableHipri() 165 mCm.requestRouteToHost(TYPE_MOBILE_HIPRI, ipv4AddrToInt(HOST_ADDRESS1))); in testStartUsingNetworkFeature_enableHipri() 174 int ret = mCm.stopUsingNetworkFeature(TYPE_MOBILE, FEATURE_ENABLE_HIPRI); in testStartUsingNetworkFeature_enableHipri() 195 NetworkInfo ni = mCm.getNetworkInfo(TYPE_MOBILE); in testStartUsingNetworkFeature() 198 mCm.startUsingNetworkFeature(TYPE_MOBILE, invalidFeature)); in testStartUsingNetworkFeature() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 88 private ConnectivityManager mCm; field in ConnectivityManagerTest 98 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 129 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE_FOTA)); in testIsNetworkTypeValid() 130 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE_IMS)); in testIsNetworkTypeValid() 131 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE_CBS)); in testIsNetworkTypeValid() 132 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.TYPE_WIFI_P2P)); in testIsNetworkTypeValid() 133 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE_IA)); in testIsNetworkTypeValid() 134 assertFalse(mCm.isNetworkTypeValid(-1)); in testIsNetworkTypeValid() 135 assertTrue(mCm.isNetworkTypeValid(0)); in testIsNetworkTypeValid() 136 assertTrue(mCm.isNetworkTypeValid(ConnectivityManager.MAX_NETWORK_TYPE)); in testIsNetworkTypeValid() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 49 private static ConnectivityManager mCm; field in PhoneStateListenerTest 56 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 69 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testPhoneStateListener() 84 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnServiceStateChanged() 121 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnSignalStrengthChanged() 158 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnSignalStrengthsChanged() 206 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnMessageWaitingIndicatorChanged() 244 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnCallForwardingIndicatorChanged() 283 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnCellLocationChanged() 320 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testOnCallStateChanged() [all …]
|
D | SubscriptionManagerTest.java | 32 private static ConnectivityManager mCm; field in SubscriptionManagerTest 43 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 56 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testGetActiveSubscriptionInfoCount() 65 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testActiveSubscriptions()
|
D | CellLocationTest.java | 37 private static ConnectivityManager mCm; field in CellLocationTest 45 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 58 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testCellLocation()
|
D | TelephonyManagerTest.java | 47 private static ConnectivityManager mCm; field in TelephonyManagerTest 55 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 68 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testListen() 235 boolean nwSupported = mCm.isNetworkSupported(mCm.TYPE_WIFI); in verifyDeviceId() 241 } else if (mCm.getNetworkInfo(ConnectivityManager.TYPE_BLUETOOTH) != null) { in verifyDeviceId() 245 assertTrue(mCm.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET) != null); in verifyDeviceId()
|
D | CellInfoTest.java | 41 private static ConnectivityManager mCm; field in CellInfoTest 53 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 64 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in testCellInfo()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 48 private ConnectivityManager mCm; field in ConnectivityConstraintTest 64 mCm = in setUp() 200 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) { in checkDeviceSupportsMobileData() 288 NetworkInfo[] allNetworkInfo = mCm.getAllNetworkInfo(); in onReceive() 314 return mExpectedState == mCm.getNetworkInfo(mNetworkType).getState(); in hasExpectedState()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 83 protected ConnectivityManager mCm; field in AbstractRestrictBackgroundNetworkTestCase 94 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 405 final NetworkInfo info = mCm.getActiveNetworkInfo(); in setMeteredNetwork() 406 final boolean metered = mCm.isActiveNetworkMetered(); in setMeteredNetwork() 433 final NetworkInfo info = mCm.getActiveNetworkInfo(); in resetMeteredNetwork() 435 if (!mCm.isActiveNetworkMetered()) { in resetMeteredNetwork() 451 info = mCm.getActiveNetworkInfo(); in assertActiveNetworkMetered() 461 mCm.isActiveNetworkMetered()); in assertActiveNetworkMetered()
|
D | MixedModesTest.java | 142 if (mCm.isActiveNetworkMetered()) { in testDataAndBatterySaverModes_nonMeteredNetwork()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 113 private ConnectivityManager mCm; field in NetworkUsageStatsTest 123 NetworkInfo networkInfo = mCm.getNetworkInfo(network); in exerciseRemoteHost() 174 mCm = (ConnectivityManager) getInstrumentation().getContext() in setUp() 264 mCm.requestNetwork(new NetworkRequest.Builder() in shouldTestThisNetworkType()
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 128435 private final com.android.internal.telephony.gsm.CommandsInterface mCm
|