@Test public void getDeviceId_deviceNotPhone() { mShadowTelephonyManager.setPhoneType(TelephonyManager.PHONE_TYPE_NONE); Settings.Secure.putString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID, ANDROID_ID); assertEquals(ANDROID_ID, DeviceUtils.getDeviceID()); }
public static String getDeviceID() { Context context = Appaloosa.getApplicationContext(); if(deviceHasPhoneCapabilities(context)) { return getImei(); } else { return getAndroidId(context); } }
DeviceUtils { public static String getDeviceID() { Context context = Appaloosa.getApplicationContext(); if(deviceHasPhoneCapabilities(context)) { return getImei(); } else { return getAndroidId(context); } } }
DeviceUtils { public static String getDeviceID() { Context context = Appaloosa.getApplicationContext(); if(deviceHasPhoneCapabilities(context)) { return getImei(); } else { return getAndroidId(context); } }  }
DeviceUtils { public static String getDeviceID() { Context context = Appaloosa.getApplicationContext(); if(deviceHasPhoneCapabilities(context)) { return getImei(); } else { return getAndroidId(context); } }  static String getDeviceID(); static String getActiveNetwork(); static String getIPAddress(); static String getMobileNetworkType(); @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) static Pair<Integer, Integer> getScreenHeightAndWidth(); static int getScreenDpi(); static String getOSVersion(); static String getDeviceModel(); }
DeviceUtils { public static String getDeviceID() { Context context = Appaloosa.getApplicationContext(); if(deviceHasPhoneCapabilities(context)) { return getImei(); } else { return getAndroidId(context); } }  static String getDeviceID(); static String getActiveNetwork(); static String getIPAddress(); static String getMobileNetworkType(); @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) static Pair<Integer, Integer> getScreenHeightAndWidth(); static int getScreenDpi(); static String getOSVersion(); static String getDeviceModel(); static final String NO_ACTIVE_NETWORK; }