Fix can't change airplane mode from GlobalActions.

A PhoneStateListener is registered in the constructor of
GlobalActions which, on rare occasions, leads to a callback being
received immediately. In these cases because mHasTelephony has not
been initialized, airplane mode is not refreshed in the callback
which disables the option to set airplane mode from GlobalActions.

To fix this issue mHasTelephony has to be set before registering
the listener.

Change-Id: If117a879d3244414b369a1711bf46526b7a5ae24
Avoid SystemUI crash due to NPE

BaseStatusBar.createNotificationViews() returns null
when it reports handleNotificationError(), leading to
a forced crash of the misbehaving app. However, it
should not add a null object of Notification.Entry
since it will also crash SystemUI (crashing at compare).

Change-Id: I86678c8024e931420b0fbab1f36b330e7e75d581
Use package usage information to decide what dex files to optimize in PackageManagerService

Change-Id: Iac137311e2e9d5139b5aa8651c6f3d296802612a
Add BackgroundDexOptService

Change-Id: I0439a04f693ba92df906cbda34f8e53b32f63329
Merge "Fix can't change airplane mode from GlobalActions."
Merge "Use package usage information to decide what dex files to optimize in PackageManagerService"
Merge "Add BackgroundDexOptService"
Remove unused LOCAL_LDLIBS.

Change-Id: I01346e76f4ac6402af0ef33e3b2eef4a69e704a2
Merge "Remove unused LOCAL_LDLIBS."
Merge "Avoid SystemUI crash due to NPE"
Correct stride for drawing to cached glyph bitmap

fixes the glyph cachebuffer index to account for pixelbuffer
format size.

issue: in launcher home screen create icon group and rename the
group to some text string with emo-icons (smilies). without this
change the drop shadows for emo-icons will look bad.

Change-Id: I525a9219d35f4541363fd64e7fc5fd1053269725
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
If PackageUsage information is missing, treat as first boot and compile everything

Bug: 14663243
Change-Id: I0ae33882044211f777590f482e17e87596be4463
Merge "If PackageUsage information is missing, treat as first boot and compile everything"
Merge "Correct stride for drawing to cached glyph bitmap"