Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt29 import android.net.ConnectivityManager.TYPE_MOBILE
73 private val supportedTypes = arrayOf(TYPE_WIFI, TYPE_WIFI_P2P, TYPE_ETHERNET, TYPE_MOBILE,
139 tracker.add(TYPE_MOBILE, mobileNai) in testSupl()
140 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE) in testSupl()
153 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, DISCONNECTED, TYPE_MOBILE) in testSupl()
161 tracker.add(TYPE_MOBILE, mobileNai) in testAddNetwork()
163 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork()
167 tracker.add(TYPE_MOBILE, secondMobileNai) in testAddNetwork()
168 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork()
171 tracker.remove(TYPE_MOBILE, wifiNai, false /* wasDefault */) in testAddNetwork()
[all …]
DConnectivityServiceTest.java56 import static android.net.ConnectivityManager.TYPE_MOBILE;
2031 assertTrue(mCm.isNetworkSupported(TYPE_MOBILE)); in testNetworkTypes()
2047 ExpectedBroadcast b = expectConnectivityAction(TYPE_MOBILE, DetailedState.CONNECTED); in testNetworkFeature()
2067 b = expectConnectivityAction(TYPE_MOBILE, DetailedState.DISCONNECTED); in testNetworkFeature()
2080 ExpectedBroadcast b = expectConnectivityAction(TYPE_MOBILE, DetailedState.CONNECTED); in testLingering()
3475 ExpectedBroadcast b = expectConnectivityAction(TYPE_MOBILE, DetailedState.CONNECTED); in testMMSonCell()
7056 assertNetworkInfo(TYPE_MOBILE, DetailedState.CONNECTED); in testVpnUnderlyingNetworkSuspended()
7059 assertActiveNetworkInfo(TYPE_MOBILE, DetailedState.CONNECTED); in testVpnUnderlyingNetworkSuspended()
7072 assertNetworkInfo(TYPE_MOBILE, DetailedState.SUSPENDED); in testVpnUnderlyingNetworkSuspended()
7075 assertActiveNetworkInfo(TYPE_MOBILE, DetailedState.SUSPENDED); in testVpnUnderlyingNetworkSuspended()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkInfoTest.kt40 const val TYPE_MOBILE = ConnectivityManager.TYPE_MOBILE constant
61 TYPE_MOBILE -> assertNetworkInfo(netInfo, MOBILE_TYPE_NAME) in testAccessNetworkInfoProperties()
88 val networkInfo = NetworkInfo(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_LTE, in testConstructor()
91 assertEquals(TYPE_MOBILE, networkInfo.type) in testConstructor()
111 val networkInfo = NetworkInfo(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_LTE, in testSetDetailedState()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DContactsPopulator.java48 .addPhoneNumber(new PhoneNumber("+1-302-6365454", Phone.TYPE_MOBILE))
57 .addPhoneNumber(new PhoneNumber("(425) 739-5600", Phone.TYPE_MOBILE))
66 .addPhoneNumber(new PhoneNumber("+44 (0) 20 7031 3000", Phone.TYPE_MOBILE))
92 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE))
98 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE))
104 .addPhoneNumber(new PhoneNumber("+971 4 4509500", Phone.TYPE_MOBILE))
109 .addPhoneNumber(new PhoneNumber("+55-31-2128-6800", Phone.TYPE_MOBILE))
113 Contact.builder().addPhoneNumber(new PhoneNumber("611", Phone.TYPE_MOBILE)).build(),
117 .addPhoneNumber(new PhoneNumber("*86 512-343-5283", Phone.TYPE_MOBILE))
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java20 import static android.net.ConnectivityManager.TYPE_MOBILE;
229 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI); in testDunFromTelephonyManagerMeansDun()
233 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI, TYPE_MOBILE_DUN); in testDunFromTelephonyManagerMeansDun()
240 assertFalse(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunFromTelephonyManagerMeansDun()
253 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
257 TYPE_WIFI, TYPE_MOBILE); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
261 TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI, TYPE_MOBILE_DUN); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
277 assertTrue(msg, cfg.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
281 assertTrue(msg, cfgWifiMobile.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
284 assertFalse(msg, cfgWifiHipri.preferredUpstreamIfaceTypes.contains(TYPE_MOBILE)); in testDunNotRequiredFromTelephonyManagerMeansNoDun()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilder.java155 if (phoneTypeLhs == Phone.TYPE_MOBILE && in build()
156 phoneTypeRhs == Phone.TYPE_MOBILE) { in build()
158 } else if (phoneTypeLhs == Phone.TYPE_MOBILE) { in build()
160 } else if (phoneTypeRhs == Phone.TYPE_MOBILE) { in build()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt20 import android.net.ConnectivityManager.TYPE_MOBILE
71 buildNetworkState(TYPE_MOBILE, subscriberId = subscriberId) in buildMobileNetworkState()
178 val mobileImsi1Unmetered = buildNetworkState(TYPE_MOBILE, TEST_IMSI1, null /* ssid */, in testCarrierMeteredMatches()
362 matchOemManagedIdent(TYPE_MOBILE, MATCH_MOBILE, subscriberId = TEST_IMSI1) in testOemManagedMatchesIdent()
363 matchOemManagedIdent(TYPE_MOBILE, MATCH_MOBILE_WILDCARD) in testOemManagedMatchesIdent()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt23 import android.net.ConnectivityManager.TYPE_MOBILE
37 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java21 import static android.net.ConnectivityManager.TYPE_MOBILE;
416 case TYPE_MOBILE: in getUpstreamIfaceTypes()
441 if (!containsOneOf(upstreamIfaceTypes, TYPE_MOBILE, TYPE_MOBILE_HIPRI)) { in getUpstreamIfaceTypes()
442 upstreamIfaceTypes.add(TYPE_MOBILE); in getUpstreamIfaceTypes()
DUpstreamNetworkMonitor.java21 import static android.net.ConnectivityManager.TYPE_MOBILE;
105 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java279 return mNetworkType == ConnectivityManager.TYPE_MOBILE; in isCellConnected()
409 case ConnectivityManager.TYPE_MOBILE: in updateConnectivityStatus()
410 mNetworkType = ConnectivityManager.TYPE_MOBILE; in updateConnectivityStatus()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java168 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToNetwork()
188 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToWifi()
208 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToEthernet()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java303 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS); in startMmsConnectivity()
318 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS); in endMmsConnectivity()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactDisplayUtils.java99 case Phone.TYPE_MOBILE: in getPhoneLabelResourceId()
155 case Phone.TYPE_MOBILE: in getSmsLabelResourceId()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java113 mValues1.put(Email.TYPE, Email.TYPE_MOBILE); in testDataItemCollapsing_email()
125 assertEquals(Math.min(Email.TYPE_MOBILE, Email.TYPE_HOME), in testDataItemCollapsing_email()
298 mValues1.put(Phone.TYPE, Phone.TYPE_MOBILE); in testDataItemCollapsing_phone()
309 assertEquals(Phone.TYPE_MOBILE, in testDataItemCollapsing_phone()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactDisplayUtils.java60 case Phone.TYPE_MOBILE: in getPhoneLabelResourceId()
115 case Phone.TYPE_MOBILE: in getSmsLabelResourceId()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java137 ConnectivityManager.TYPE_MOBILE, TEST_SUBSCRIBER_ID, startTime, endTime); in testQueryDetails()
206 runQueryDetailsAndCheckTemplate(ConnectivityManager.TYPE_MOBILE, in testNetworkTemplateWhenRunningQueryDetails_NoSubscriberId()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DConnectivityManagerCompatUtils.java33 manager.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE, in isActiveNetworkMetered()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java217 "425-555-1235", Phone.TYPE_MOBILE, "", "1", Long.valueOf(1), 1 }, in getAllContactListCursor()
240 "425-555-1235", Phone.TYPE_MOBILE, "", "1", Long.valueOf(1), 1}, in getFrequentContactListCursor()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java557 public static final int TYPE_MOBILE = 0; field in ConnectivityManager
747 TYPE_MOBILE,
781 private static final int MIN_NETWORK_TYPE = TYPE_MOBILE;
978 case TYPE_MOBILE: in getNetworkTypeName()
1043 case TYPE_MOBILE: in isNetworkTypeMobile()
1694 if (networkType == TYPE_MOBILE) { in networkCapabilitiesForFeature()
1851 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java85 phoneType = Phone.TYPE_MOBILE; in NamePhoneTypePair()
184 builder.withValue(Email.TYPE, Email.TYPE_MOBILE); in actuallyImportOneSimContact()
/packages/apps/Contacts/src/com/android/contacts/
DTypePrecedence.java47 Phone.TYPE_MOBILE,
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsCollectionTest.java19 import static android.net.ConnectivityManager.TYPE_MOBILE;
219 identSet.add(new NetworkIdentity(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_UNKNOWN, in testAccessLevels()
474 ident.add(new NetworkIdentity(ConnectivityManager.TYPE_MOBILE, -1, TEST_IMSI, null, in testAugmentPlanGigantic()
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/
DContactTestUtils.java73 ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE); in createContact()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsagePreference.java82 ? ConnectivityManager.TYPE_MOBILE : ConnectivityManager.TYPE_WIFI); in getIntent()

123