test_class.declarator: mContext
test_class.modifier: private
test_class.original_string: private Context mContext;
test_class.type: Context
test_class.var_name: mContext
test_class.declarator: mConnectivityManager
test_class.modifier: private
test_class.original_string: private ConnectivityManager mConnectivityManager;
test_class.type: ConnectivityManager
test_class.var_name: mConnectivityManager
test_class.declarator: mCallbackFlag
test_class.modifier: private
test_class.original_string: private CallbackFlag mCallbackFlag;
test_class.type: CallbackFlag
test_class.var_name: mCallbackFlag
test_class.file: sdk/halo-framework/src/test/java/com/mobgen/halo/android/framework/common/utils/HaloUtilsTest.java
test_class.identifier: HaloUtilsTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatConnectionCheckNoPermission() {
          when(mContext.checkCallingOrSelfPermission(android.Manifest.permission.ACCESS_NETWORK_STATE)).thenReturn(PackageManager.PERMISSION_DENIED);
          Assert.assertFalse(HaloUtils.isNetworkConnected(mContext));
      }
test_case.class_method_signature: HaloUtilsTest.thatConnectionCheckNoPermission()
test_case.full_signature: @Test public void thatConnectionCheckNoPermission()
test_case.identifier: thatConnectionCheckNoPermission
test_case.invocations: thenReturn when checkCallingOrSelfPermission assertFalse isNetworkConnected
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatConnectionCheckNoPermission()
focal_class.declarator: HEX_ARRAY = "0123456789ABCDEF".toCharArray()
focal_class.modifier: private static final
focal_class.original_string: private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();
focal_class.type: char[]
focal_class.var_name: HEX_ARRAY
focal_class.file: sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/common/utils/HaloUtils.java
focal_class.identifier: HaloUtils
focal_class.class_method_signature: HaloUtils.HaloUtils()
focal_class.full_signature: private  HaloUtils()
focal_class.identifier: HaloUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  HaloUtils()
focal_class.class_method_signature: HaloUtils.isNetworkConnected(Context context)
focal_class.full_signature: @Api(1.0) public static boolean isNetworkConnected(Context context)
focal_class.identifier: isNetworkConnected
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (Context context)
focal_class.return: boolean
focal_class.signature: boolean isNetworkConnected(Context context)
focal_class.class_method_signature: HaloUtils.isCharging(@NonNull Context context, @Nullable Intent intent)
focal_class.full_signature: @Api(2.0) public static boolean isCharging(@NonNull Context context, @Nullable Intent intent)
focal_class.identifier: isCharging
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (@NonNull Context context, @Nullable Intent intent)
focal_class.return: boolean
focal_class.signature: boolean isCharging(@NonNull Context context, @Nullable Intent intent)
focal_class.class_method_signature: HaloUtils.hideKeyboard(@Nullable View focusView)
focal_class.full_signature: @Api(1.0) public static void hideKeyboard(@Nullable View focusView)
focal_class.identifier: hideKeyboard
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (@Nullable View focusView)
focal_class.return: void
focal_class.signature: void hideKeyboard(@Nullable View focusView)
focal_class.class_method_signature: HaloUtils.postUI(Runnable runnable)
focal_class.full_signature: @Api(1.0) public static void postUI(Runnable runnable)
focal_class.identifier: postUI
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (Runnable runnable)
focal_class.return: void
focal_class.signature: void postUI(Runnable runnable)
focal_class.class_method_signature: HaloUtils.isAvailableForVersion(int sdkVersion)
focal_class.full_signature: @Api(1.0) public static boolean isAvailableForVersion(int sdkVersion)
focal_class.identifier: isAvailableForVersion
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (int sdkVersion)
focal_class.return: boolean
focal_class.signature: boolean isAvailableForVersion(int sdkVersion)
focal_class.class_method_signature: HaloUtils.getDrawable(Context context, @DrawableRes int resource)
focal_class.full_signature: @Api(1.0) @SuppressWarnings("deprecation") public static Drawable getDrawable(Context context, @DrawableRes int resource)
focal_class.identifier: getDrawable
focal_class.modifiers: @Api(1.0) @SuppressWarnings("deprecation") public static
focal_class.parameters: (Context context, @DrawableRes int resource)
focal_class.return: Drawable
focal_class.signature: Drawable getDrawable(Context context, @DrawableRes int resource)
focal_class.class_method_signature: HaloUtils.getUriFromResource(Context context, int resourceId)
focal_class.full_signature: @Api(1.0) public static Uri getUriFromResource(Context context, int resourceId)
focal_class.identifier: getUriFromResource
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (Context context, int resourceId)
focal_class.return: Uri
focal_class.signature: Uri getUriFromResource(Context context, int resourceId)
focal_class.class_method_signature: HaloUtils.hasFlag(int flags, int optionFlag)
focal_class.full_signature: @Api(1.0) public static boolean hasFlag(int flags, int optionFlag)
focal_class.identifier: hasFlag
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (int flags, int optionFlag)
focal_class.return: boolean
focal_class.signature: boolean hasFlag(int flags, int optionFlag)
focal_class.class_method_signature: HaloUtils.getArgb(String hexadecimal)
focal_class.full_signature: @Api(1.0) public static int getArgb(String hexadecimal)
focal_class.identifier: getArgb
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (String hexadecimal)
focal_class.return: int
focal_class.signature: int getArgb(String hexadecimal)
focal_class.class_method_signature: HaloUtils.isColor(String color)
focal_class.full_signature: @Api(1.0) public static boolean isColor(String color)
focal_class.identifier: isColor
focal_class.modifiers: @Api(1.0) public static
focal_class.parameters: (String color)
focal_class.return: boolean
focal_class.signature: boolean isColor(String color)
focal_class.class_method_signature: HaloUtils.sha1(@NonNull String origin)
focal_class.full_signature: @Api(2.0) public static String sha1(@NonNull String origin)
focal_class.identifier: sha1
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (@NonNull String origin)
focal_class.return: String
focal_class.signature: String sha1(@NonNull String origin)
focal_class.class_method_signature: HaloUtils.convertToHex(byte[] data)
focal_class.full_signature: @Api(2.0) public static String convertToHex(byte[] data)
focal_class.identifier: convertToHex
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (byte[] data)
focal_class.return: String
focal_class.signature: String convertToHex(byte[] data)
focal_class.class_method_signature: HaloUtils.getEventName(@NonNull Context context, @NonNull String eventName)
focal_class.full_signature: @NonNull @Api(1.3) public static String getEventName(@NonNull Context context, @NonNull String eventName)
focal_class.identifier: getEventName
focal_class.modifiers: @NonNull @Api(1.3) public static
focal_class.parameters: (@NonNull Context context, @NonNull String eventName)
focal_class.return: String
focal_class.signature: String getEventName(@NonNull Context context, @NonNull String eventName)
focal_class.class_method_signature: HaloUtils.bytesToHex(@NonNull byte[] bytes)
focal_class.full_signature: @Api(2.0) public static String bytesToHex(@NonNull byte[] bytes)
focal_class.identifier: bytesToHex
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (@NonNull byte[] bytes)
focal_class.return: String
focal_class.signature: String bytesToHex(@NonNull byte[] bytes)
focal_class.class_method_signature: HaloUtils.hexToBytes(@NonNull String data)
focal_class.full_signature: @Api(2.0) public static byte[] hexToBytes(@NonNull String data)
focal_class.identifier: hexToBytes
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (@NonNull String data)
focal_class.return: byte[]
focal_class.signature: byte[] hexToBytes(@NonNull String data)
focal_class.class_method_signature: HaloUtils.isServiceRunning(Context context, Class<?> serviceClass)
focal_class.full_signature: @Api(2.5) public static boolean isServiceRunning(Context context, Class<?> serviceClass)
focal_class.identifier: isServiceRunning
focal_class.modifiers: @Api(2.5) public static
focal_class.parameters: (Context context, Class<?> serviceClass)
focal_class.return: boolean
focal_class.signature: boolean isServiceRunning(Context context, Class<?> serviceClass)
focal_method.body: @Api(1.0)
      public static boolean isNetworkConnected(Context context) {
          boolean networkConnected = false;
          if (context.checkCallingOrSelfPermission(Manifest.permission.ACCESS_NETWORK_STATE) == PackageManager.PERMISSION_GRANTED) {
              ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
              NetworkInfo info = manager.getActiveNetworkInfo();
              networkConnected = info != null && info.isAvailable() && info.isConnected();
          }
          return networkConnected;
      }
focal_method.class_method_signature: HaloUtils.isNetworkConnected(Context context)
focal_method.full_signature: @Api(1.0) public static boolean isNetworkConnected(Context context)
focal_method.identifier: isNetworkConnected
focal_method.invocations: checkCallingOrSelfPermission getSystemService getActiveNetworkInfo isAvailable isConnected
focal_method.modifiers: @Api(1.0) public static
focal_method.parameters: (Context context)
focal_method.return: boolean
focal_method.signature: boolean isNetworkConnected(Context context)