code: @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
      public static boolean hasWifiDirectFeature(Context context) {
          return hasWifiDirectFeature(context.getPackageManager());
      }
docs: Checks if the device has a WIFI Direct.
  @param context the context.
  @return {@code true} if the device has a WIFI Direct.