Code example for DrmManagerClient

0
        return mDrmManagerClient.checkRightsStatus(path, action);
    } 
 
    public static DrmManagerClient getDrmManagerClient(Context context) {
        if (null == mDrmManagerClient) {
            mDrmManagerClient = new DrmManagerClient(context);
        } 
        return mDrmManagerClient;
    } 
 
    private static Bitmap createBitmap(int width, int height, Bitmap.Config config,
                                       int bgColor) {
        if (width <= 0 || height <= 0 || null == config) {
            Log.e(TAG,"createBitmap:invalid Bitmap argumentation");
            return null; 
        } 
 
        //create Bitmap to hold thumbnail 
        Bitmap canvasBitmap = Bitmap.createBitmap(width, height, config);
        Canvas canvas = new Canvas(canvasBitmap);
        //draw Background color to avoid merging in to black background