code: public int getComponentEnabledSettingFlags(ComponentName componentName) {
      ComponentState state = componentList.get(componentName);
      return state != null ? state.flags : 0;
    }
docs: Return the flags set in call to {@link
  android.app.ApplicationPackageManager#setComponentEnabledSetting(ComponentName, int, int)}.
  
  @param componentName The component name.
  @return The flags.