cloned from android/platform_frameworks_av