Home
last modified time | relevance | path

Searched refs:TYPE_MOBILE (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/tests/net/java/com/android/server/
DLegacyTypeTrackerTest.kt20 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/
DConnectivityManagerMobileTest.java57 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/
DTetheringConfigurationTest.java20 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/
DStatusBarIconHolder.java34 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()
DStatusBarIconController.java21 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/
DSimStatusImeiInfoPreferenceControllerTest.java61 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/
DStatusBarIconControllerTest.java18 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/
DDataUsageController.java19 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/
DNetworkIdentitySet.java28 import static android.net.ConnectivityManager.TYPE_MOBILE;
77 metered = (type == TYPE_MOBILE); in NetworkIdentitySet()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringConfiguration.java21 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/
DNetworkTemplate.java21 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()
DConnectivityManager.java524 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/
DWifiStressTest.java253 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/
DNetworkStatsManagerTest.java133 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/
DMultipathPolicyTracker.java21 import static android.net.ConnectivityManager.TYPE_MOBILE;
266 ConnectivityManager.TYPE_MOBILE, in getTemplateMatchingNetworkIdentity()
393 mStatsManager.registerUsageCallback(mNetworkTemplate, TYPE_MOBILE, budget, in registerUsageCallback()
DNat464Xlat.java58 ConnectivityManager.TYPE_MOBILE,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DEmergencyCryptkeeperText.java87 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DOperatorNameView.java122 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in update()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java59 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in testNoIconWithoutMobile()
121 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in testNoSimlessIconWithoutMobile()
DNetworkControllerBaseTest.java130 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/
DNetworkStatsCollectionTest.java19 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()
DNetworkStatsObserversTest.java19 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/
DNetworkCycleDataLoaderTest.java118 final int networkType = ConnectivityManager.TYPE_MOBILE; in loadPolicyData_shouldRecordUsageFromPolicyCycle()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardJapanizationTests.java370 .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/
DNetworkActivity.java135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE; in updateConnectedFlags()

123