This document presents a framework to estimate power consumption in smartphones by mapping a functional modeling approach (hierarchical generic finite state machine or HGFSM) to an analytical modeling approach (hierarchical performance model or HPM). The HGFSM models the states a task may be in, such as initial, processing, and completed/failed. It is converted to a Markovian model and decomposed into sub-states if possible. HPM is then applied to each state to derive equations for average power consumption using measurements from lower levels. The framework was tested on a smartphone to estimate power and locate bottlenecks.