Method and apparatus for user-activity-based dynamic power management and policy creation for mobile platforms