Mining energy-greedy API usage patterns in android apps: An empirical study