Fix CTS issues.

1. Using software color convertion to avoid system crash.
2. Fix:
android.media.cts.MediaRecorderTest -- testSetMaxFileSize
android.media.cts.MediaRandomTest -- testRecorderRandomAction
3. Known issues: Need testing.