I found out there is no simple way to do it. So I use bit of reflection and its working fine.
Object service = getSystemService("statusbar");
Class<?> statusbarManager = Class.forName("android.app.StatusBarManager");
Method collapse = statusbarManager.getMethod("collapsePanels");
collapse .setAccessible(true);
collapse .invoke(service);
Don't forget to add this in manifest.
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />