/frameworks/base/tests/net/java/com/android/server/ |
D | LegacyTypeTrackerTest.kt | 20 import android.net.ConnectivityManager.TYPE_MOBILE 49 private val supportedTypes = arrayOf(TYPE_MOBILE, TYPE_WIFI, TYPE_ETHERNET) 76 mTracker.add(TYPE_MOBILE, mobileNai) in testAddNetwork() 78 assertSame(mTracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork() 82 mTracker.add(TYPE_MOBILE, secondMobileNai) in testAddNetwork() 83 assertSame(mTracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork() 86 mTracker.remove(TYPE_MOBILE, wifiNai, false /* wasDefault */) in testAddNetwork() 87 assertSame(mTracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork() 91 mTracker.remove(TYPE_MOBILE, mobileNai, false /* wasDefault */) in testAddNetwork() 92 assertSame(mTracker.getNetworkForType(TYPE_MOBILE), secondMobileNai) in testAddNetwork() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | ConnectivityManagerMobileTest.java | 57 if (!waitForNetworkState(ConnectivityManager.TYPE_MOBILE, in setUp() 89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in test3GToWifiNotification() 93 assertEquals("active network is not mobile", ConnectivityManager.TYPE_MOBILE, ni.getType()); in test3GToWifiNotification() 160 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP() 206 assertTrue("mobile not enabled", waitForNetworkState(ConnectivityManager.TYPE_MOBILE, in testDisconnectWifi() 226 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G() 242 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G() 333 assertEquals("network type is not MOBILE", ConnectivityManager.TYPE_MOBILE, in verifyCellularConnection()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | TetheringConfigurationTest.java | 20 import static android.net.ConnectivityManager.TYPE_MOBILE; 148 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI); in testDunFromTelephonyManagerMeansDun() 152 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI, TYPE_MOBILE_DUN); in testDunFromTelephonyManagerMeansDun() 159 assertFalse(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunFromTelephonyManagerMeansDun() 172 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI); in testDunNotRequiredFromTelephonyManagerMeansNoDun() 176 TYPE_WIFI, TYPE_MOBILE); in testDunNotRequiredFromTelephonyManagerMeansNoDun() 180 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI, TYPE_MOBILE_DUN); in testDunNotRequiredFromTelephonyManagerMeansNoDun() 196 assertTrue(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun() 200 assertTrue(msg, cfgWifiMobile.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun() 203 assertFalse(msg, cfgWifiHipri.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconHolder.java | 34 public static final int TYPE_MOBILE = 2; field in StatusBarIconHolder 68 holder.mType = TYPE_MOBILE; in fromMobileIconState() 106 case TYPE_MOBILE: in isVisible() 127 case TYPE_MOBILE: in setVisible()
|
D | StatusBarIconController.java | 21 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_MOBILE; 251 case TYPE_MOBILE: in addHolder() 359 case TYPE_MOBILE: in onSetIconHolder()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | SimStatusImeiInfoPreferenceControllerTest.java | 61 connectivityManager.setNetworkSupported(ConnectivityManager.TYPE_MOBILE, true); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue() 73 connectivityManager.setNetworkSupported(ConnectivityManager.TYPE_MOBILE, false); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconControllerTest.java | 18 import static com.android.systemui.statusbar.phone.StatusBarIconHolder.TYPE_MOBILE; 84 holder = holderForType(TYPE_MOBILE); in testCallOnAdd_forManager() 91 case TYPE_MOBILE: in holderForType()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 19 import static android.net.ConnectivityManager.TYPE_MOBILE; 238 return mConnectivityManager.isNetworkSupported(TYPE_MOBILE) in isMobileDataSupported() 254 return ConnectivityManager.TYPE_MOBILE; in getNetworkType() 261 return ConnectivityManager.TYPE_MOBILE; in getNetworkType()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkIdentitySet.java | 28 import static android.net.ConnectivityManager.TYPE_MOBILE; 77 metered = (type == TYPE_MOBILE); in NetworkIdentitySet()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | TetheringConfiguration.java | 21 import static android.net.ConnectivityManager.TYPE_MOBILE; 241 case TYPE_MOBILE: in getUpstreamIfaceTypes() 266 if (!containsOneOf(upstreamIfaceTypes, TYPE_MOBILE, TYPE_MOBILE_HIPRI)) { in getUpstreamIfaceTypes() 267 upstreamIfaceTypes.add(TYPE_MOBILE); in getUpstreamIfaceTypes()
|
/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 21 import static android.net.ConnectivityManager.TYPE_MOBILE; 390 return (sForceAllNetworkTypes || (ident.mType == TYPE_MOBILE && ident.mMetered)) in matchesMobile() 423 return sForceAllNetworkTypes || (ident.mType == TYPE_MOBILE && ident.mMetered); in matchesMobileWildcard()
|
D | ConnectivityManager.java | 524 public static final int TYPE_MOBILE = 0; field in ConnectivityManager 712 private static final int MIN_NETWORK_TYPE = TYPE_MOBILE; 820 case TYPE_MOBILE: in getNetworkTypeName() 873 case TYPE_MOBILE: in isNetworkTypeMobile() 1470 if (networkType == TYPE_MOBILE) { in networkCapabilitiesForFeature() 1566 NetworkCapabilities testCap = networkCapabilitiesForFeature(TYPE_MOBILE, type); in inferLegacyTypeForNetworkCapabilities() 1705 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
D | WifiStressTest.java | 253 waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED, in testWifiReconnectionAfterSleep() 266 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState()); in testWifiReconnectionAfterSleep()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 133 ConnectivityManager.TYPE_MOBILE, subscriberId, startTime, endTime); in testQueryDetails() 180 ConnectivityManager.TYPE_MOBILE, null, startTime, endTime); in testQueryDetails_NoSubscriberId()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 21 import static android.net.ConnectivityManager.TYPE_MOBILE; 266 ConnectivityManager.TYPE_MOBILE, in getTemplateMatchingNetworkIdentity() 393 mStatsManager.registerUsageCallback(mNetworkTemplate, TYPE_MOBILE, budget, in registerUsageCallback()
|
D | Nat464Xlat.java | 58 ConnectivityManager.TYPE_MOBILE,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | EmergencyCryptkeeperText.java | 87 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in update()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | OperatorNameView.java | 122 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in update()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerSignalTest.java | 59 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in testNoIconWithoutMobile() 121 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in testNoSimlessIconWithoutMobile()
|
D | NetworkControllerBaseTest.java | 130 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(true); in setUp() 199 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in setUpNoMobileData()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 19 import static android.net.ConnectivityManager.TYPE_MOBILE; 215 identSet.add(new NetworkIdentity(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_UNKNOWN, in testAccessLevels() 470 ident.add(new NetworkIdentity(ConnectivityManager.TYPE_MOBILE, -1, TEST_IMSI, null, in testAugmentPlanGigantic()
|
D | NetworkStatsObserversTest.java | 19 import static android.net.ConnectivityManager.TYPE_MOBILE; 225 TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_UNKNOWN, in makeTestIdentSet()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 118 final int networkType = ConnectivityManager.TYPE_MOBILE; in loadPolicyData_shouldRecordUsageFromPolicyCycle()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardJapanizationTests.java | 370 .put(Phone.TYPE, Phone.TYPE_MOBILE); in testJapanesePhoneNumberCommon() 392 .put(Phone.TYPE, Phone.TYPE_MOBILE); in testJapanesePhoneNumberDoCoMo()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE; in updateConnectedFlags()
|