Revert "Remove opaque check in GLRenderer when preparing dirty region."

This reverts commit 414ef6c5f8ce228997831aa38bfcf42f29dd9b3e.
Revert "frameworks/base: Fix to avoid crash when the tab is not set from app"

This reverts commit be98415723c0a2fd27d826ac91271ebfc6c16013.
Revert "activity manager tweak-a-roonie"

This reverts commit 9de0a756c077ad18b5cfc1623fffbf3a807e2a47.
Revert "ActivityManager: memoize for performance"

This reverts commit 412f0bfe74c953b647500c8bcb9159c52bca4aca.
SystemUI: Add missing recycle calls (fix lint warning)

Change-Id: Ic3462ceb8d85e4ec2aee833d4327c4b81f5eac5a
Fix to NullPointerException when activity is relaunched

When ChooseTypeAndAccountActivity is relaunched and resumed
by ActivityManager a call is made to onActivityResult without
first triggering onResume. This leads to mAccounts object
still being null.

Fixed by properly setting mAccounts object if it is null prior
to use after function onCreate has been called.

Change-Id: Ife7e1e052c473970d923fa43ee6189eb62a1113b
Fix for NullPointerException in HTML5VideoViewProxy

There is a missing null check of mHTML5VideoView.

Change-Id: Ic49ad02703717c3b76da4371e80abfdebff90873