FragmentUtils { public static boolean isPowerSaveModeActive(@NonNull final Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { final PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); return powerManager != null && powerManager.isPowerSaveMode(); } return false; } private  FragmentUtils(); static boolean willBeCustomAnimationsPlayed(@NonNull final Context context); static boolean isPowerSaveModeActive(@NonNull final Context context); @SuppressWarnings("deprecation") static boolean areAnimationsEnabled(@NonNull final Context context); @SuppressLint("NewApi") @Nullable static Transition inflateTransition(@NonNull final Context context, @TransitionRes final int resource); @SuppressLint("NewApi") @Nullable static TransitionManager inflateTransitionManager(
			@NonNull final Context context,
			@TransitionRes final int resource,
			@NonNull final ViewGroup sceneRoot
	); @Nullable static Drawable getVectorDrawable(
			@NonNull final Resources resources,
			@DrawableRes final int resId,
			@Nullable final Resources.Theme theme
	); @SuppressWarnings({"NewApi", "deprecation"}) @Nullable static Drawable getDrawable(
			@NonNull final Resources resources,
			@DrawableRes final int resId,
			@Nullable final Resources.Theme theme
	);  }
@Test public void testIsPowerSaveModeActive() { assertThat(FragmentUtils.isPowerSaveModeActive(context), is(false)); }