Lines Matching refs:ConnectivityManager
35 import android.net.ConnectivityManager;
129 ConnectivityManager cm =
130 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
215 if (action.equals(ConnectivityManager.ACTION_TETHER_STATE_CHANGED)) {
218 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
220 ConnectivityManager.EXTRA_ACTIVE_TETHER);
222 ConnectivityManager.EXTRA_ERRORED_TETHER);
269 IntentFilter filter = new IntentFilter(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
307 ConnectivityManager cm =
308 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
325 ConnectivityManager cm =
326 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
328 int usbError = ConnectivityManager.TETHER_ERROR_NO_ERROR;
332 if (usbError == ConnectivityManager.TETHER_ERROR_NO_ERROR) {
356 if (usbError == ConnectivityManager.TETHER_ERROR_NO_ERROR) {
502 ConnectivityManager cm =
503 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
505 if (cm.setUsbTethering(enabled) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
514 ConnectivityManager cm =
515 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
536 cm.untether(bluetoothIface) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {