Frameworks: Battery bar (1/2)

ported from Chameleon OS

Change-Id: I10731a08b0e252ccc1ad1b314d4d38c1cceb02dd
Base: Help alleviate SystemUI crashes

try and catch method toward bitmap and out of memory errors

Change-Id: Ie18faac4dce45eb2fe9ca07d628bed7cd0eafaab