Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothNameUtils.java79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration() local
80 if (!cm.matches()) { in getColorConfiguration()
84 0xff000000 | Integer.parseInt(cm.group(1), 16), in getColorConfiguration()
85 0xff000000 | Integer.parseInt(cm.group(2), 16), in getColorConfiguration()
86 "p".equals(cm.group(3))); in getColorConfiguration()
87 config.isTransient = "t".equals(cm.group(4)); in getColorConfiguration()
/packages/apps/Settings/tests/robotests/src/com/android/settings/vpn2/
DVpnUtilsTest.java34 final ConnectivityManager cm = mock(ConnectivityManager.class); in testIsAlwaysOnVpnSet() local
35 when(cm.getAlwaysOnVpnPackageForUser(0)).thenReturn("com.example.vpn"); in testIsAlwaysOnVpnSet()
36 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isTrue(); in testIsAlwaysOnVpnSet()
38 when(cm.getAlwaysOnVpnPackageForUser(0)).thenReturn(null); in testIsAlwaysOnVpnSet()
39 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isFalse(); in testIsAlwaysOnVpnSet()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java136 Cursor cm = modernContext.getContentResolver().query(uri, null, null, null)) { in testCorrectness() argument
139 assertEquals(cl.getCount(), cm.getCount()); in testCorrectness()
141 while (cl.moveToNext() && cm.moveToNext()) { in testCorrectness()
148 assertEquals(cl.getColumnName(i), cm.getColumnName(i)); in testCorrectness()
151 cl.getType(i), cm.getType(i)); in testCorrectness()
154 cl.getString(i), cm.getString(i)); in testCorrectness()
161 DatabaseUtils.dumpCursor(cm); in testCorrectness()
/packages/apps/Email/provider_src/com/android/email/
DEmailConnectivityManager.java157 ConnectivityManager cm = in getActiveNetworkType() local
159 return getActiveNetworkType(cm); in getActiveNetworkType()
162 static public int getActiveNetworkType(ConnectivityManager cm) { in getActiveNetworkType() argument
163 NetworkInfo info = cm.getActiveNetworkInfo(); in getActiveNetworkType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java107 final ConnectivityManager cm = mock(ConnectivityManager.class); in isAvailable_wifiOnlyMode_notAvailable() local
108 when(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in isAvailable_wifiOnlyMode_notAvailable()
109 when(mContext.getSystemService(ConnectivityManager.class)).thenReturn(cm); in isAvailable_wifiOnlyMode_notAvailable()
117 final ConnectivityManager cm = mock(ConnectivityManager.class); in isAvailable_secondaryUser_notAvailable() local
118 when(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(true); in isAvailable_secondaryUser_notAvailable()
119 when(mContext.getSystemService(ConnectivityManager.class)).thenReturn(cm); in isAvailable_secondaryUser_notAvailable()
/packages/services/Telephony/src/com/android/phone/
DImsUtil.java125 ConnectivityManager cm = in shouldPromoteWfc() local
127 if (cm != null) { in shouldPromoteWfc()
128 NetworkInfo ni = cm.getActiveNetworkInfo(); in shouldPromoteWfc()
/packages/apps/Settings/src/com/android/settings/
DProxySelector.java147 ConnectivityManager cm = in populateFields() local
150 ProxyInfo proxy = cm.getGlobalProxy(); in populateFields()
239 ConnectivityManager cm = in saveToDb() local
242 cm.setGlobalProxy(p); in saveToDb()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DProxySelector.java147 ConnectivityManager cm = in populateFields() local
150 ProxyInfo proxy = cm.getGlobalProxy(); in populateFields()
239 ConnectivityManager cm = in saveToDb() local
242 cm.setGlobalProxy(p); in saveToDb()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DTetherService.java235 ConnectivityManager cm = in disableWifiTethering() local
237 cm.stopTethering(ConnectivityManager.TETHERING_WIFI); in disableWifiTethering()
241 ConnectivityManager cm = in disableUsbTethering() local
243 cm.setUsbTethering(false); in disableUsbTethering()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DTetherService.java221 ConnectivityManager cm = in disableWifiTethering() local
223 cm.stopTethering(ConnectivityManager.TETHERING_WIFI); in disableWifiTethering()
227 ConnectivityManager cm = in disableUsbTethering() local
229 cm.setUsbTethering(false); in disableUsbTethering()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DConnectivityEligibilityChecker.java42 final ConnectivityManager cm = in isEligible() local
44 NetworkInfo netInfo = cm.getActiveNetworkInfo(); in isEligible()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DConnectToWifiHandler.java46 final ConnectivityManager cm = getSystemService(ConnectivityManager.class); in onCreate() local
48 cm.startCaptivePortalApp(network); in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DConnectToWifiHandler.java51 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in onReceive() local
53 cm.startCaptivePortalApp(network); in onReceive()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java273 ConnectivityManager cm = in isNetworkConnected() local
275 if (cm != null) { in isNetworkConnected()
276 NetworkInfo ni = cm.getActiveNetworkInfo(); in isNetworkConnected()
/packages/apps/Contacts/src/com/android/contacts/util/
DSyncUtil.java116 ConnectivityManager cm = in isNetworkConnected() local
118 NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); in isNetworkConnected()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_matching.h180 db_Matcher_u(const db_Matcher_u& cm);
186 db_Matcher_u& operator= (const db_Matcher_u& cm);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DVpnUtils.java92 public static boolean isAlwaysOnVpnSet(ConnectivityManager cm, final int userId) { in isAlwaysOnVpnSet() argument
93 return cm.getAlwaysOnVpnPackageForUser(userId) != null; in isAlwaysOnVpnSet()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnUtils.java92 public static boolean isAlwaysOnVpnSet(ConnectivityManager cm, final int userId) { in isAlwaysOnVpnSet() argument
93 return cm.getAlwaysOnVpnPackageForUser(userId) != null; in isAlwaysOnVpnSet()
/packages/apps/Settings/src/com/android/settings/wifi/
DConfigureWifiSettings.java124 ConnectivityManager cm = (ConnectivityManager)
126 NetworkInfo info = cm.getActiveNetworkInfo();
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DHotspotConditionController.java85 ConnectivityManager cm = (ConnectivityManager) mAppContext.getSystemService( in onActionClick() local
87 cm.stopTethering(ConnectivityManager.TETHERING_WIFI); in onActionClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DHotspotConditionController.java85 ConnectivityManager cm = (ConnectivityManager) mAppContext.getSystemService( in onActionClick() local
87 cm.stopTethering(ConnectivityManager.TETHERING_WIFI); in onActionClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DConfigureWifiSettings.java124 ConnectivityManager cm = (ConnectivityManager)
126 NetworkInfo info = cm.getActiveNetworkInfo();
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java603 ConnectivityManager cm = in configureBtIface() local
605 String[] bluetoothRegexs = cm.getTetherableBluetoothRegexs(); in configureBtIface()
653 int tetherStatus = cm.tether(iface); in configureBtIface()
659 int untetherStatus = cm.untether(iface); in configureBtIface()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiNetworkDetailsFragment.java124 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in createPreferenceControllers() local
128 cm, in createPreferenceControllers()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiNetworkDetailsFragment.java126 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in createPreferenceControllers() local
130 cm, in createPreferenceControllers()

123