Try Like this,
Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
int ratio = ((int) display.getWidth() /100) * value ;
((ProgressBar) view).setProgress(ratio);
// float ratioDp = convertPixelsToDp(ratio);
// ((ProgressBar) view).setProgress(ratioDp);
Still not fill with device with convert the px value to dp using this function, and use the commented lines
public static float convertPixelsToDp(int px){
Resources resources = context.getResources();
DisplayMetrics metrics = resources.getDisplayMetrics();
float dp = px / (metrics.densityDpi / 160f);
return dp;
}