/** * Determine whether <em>you</em> have been granted a particular permission. * * @param permission The name of the permission being checked. * @return {@link android.content.pm.PackageManager#PERMISSION_GRANTED} if you have the * permission, or {@link android.content.pm.PackageManager#PERMISSION_DENIED} if not. * @see android.content.pm.PackageManager#checkPermission(String, String) */ public static int checkSelfPermission(Context context, String permission) { if (permission == null) { throw new IllegalArgumentException("permission is null"); } return IMPL.checkSelfPermission(context, permission); }
/** * Determine whether <em>you</em> have been granted a particular permission. * * @param permission The name of the permission being checked. * @return {@link android.content.pm.PackageManager#PERMISSION_GRANTED} if you have the * permission, or {@link android.content.pm.PackageManager#PERMISSION_DENIED} if not. * @see android.content.pm.PackageManager#checkPermission(String, String) */ public static int checkSelfPermission(Context context, String permission) { if (permission == null) { throw new IllegalArgumentException("permission is null"); } return IMPL.checkSelfPermission(context, permission); }
/** * Specifies the hotspot's location within the drawable. * * @param drawable The Drawable against which to invoke the method. * @param x The X coordinate of the center of the hotspot * @param y The Y coordinate of the center of the hotspot */ public static void setHotspot(Drawable drawable, float x, float y) { IMPL.setHotspot(drawable, x, y); } }
/** * Specifies the hotspot's location within the drawable. * * @param drawable The Drawable against which to invoke the method. * @param x The X coordinate of the center of the hotspot * @param y The Y coordinate of the center of the hotspot */ public static void setHotspot(Drawable drawable, float x, float y) { IMPL.setHotspot(drawable, x, y); }