/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | LegacyTypeTrackerTest.kt | 29 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 …]
|
D | ConnectivityServiceTest.java | 56 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/ |
D | NetworkInfoTest.kt | 40 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/ |
D | ContactsPopulator.java | 48 .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/ |
D | TetheringConfigurationTest.java | 20 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/ |
D | FrequentContactsCursorBuilder.java | 155 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/ |
D | NetworkTemplateTest.kt | 20 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/ |
D | ConnectivityServiceTestUtils.kt | 23 import android.net.ConnectivityManager.TYPE_MOBILE 37 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringConfiguration.java | 21 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()
|
D | UpstreamNetworkMonitor.java | 21 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/ |
D | ConnectivityListener.java | 279 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/ |
D | UtilsTest.java | 168 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/ |
D | MmsNetworkManager.java | 303 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/ |
D | ContactDisplayUtils.java | 99 case Phone.TYPE_MOBILE: in getPhoneLabelResourceId() 155 case Phone.TYPE_MOBILE: in getSmsLabelResourceId()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/ |
D | DataItemTests.java | 113 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/ |
D | ContactDisplayUtils.java | 60 case Phone.TYPE_MOBILE: in getPhoneLabelResourceId() 115 case Phone.TYPE_MOBILE: in getSmsLabelResourceId()
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 137 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/ |
D | ConnectivityManagerCompatUtils.java | 33 manager.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE, in isActiveNetworkMetered()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 217 "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/ |
D | ConnectivityManager.java | 557 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/ |
D | SimContacts.java | 85 phoneType = Phone.TYPE_MOBILE; in NamePhoneTypePair() 184 builder.withValue(Email.TYPE, Email.TYPE_MOBILE); in actuallyImportOneSimContact()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | TypePrecedence.java | 47 Phone.TYPE_MOBILE,
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 19 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/ |
D | ContactTestUtils.java | 73 ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE); in createContact()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsagePreference.java | 82 ? ConnectivityManager.TYPE_MOBILE : ConnectivityManager.TYPE_WIFI); in getIntent()
|