SystemUI: Set Status bar opaque during drawer pulldown on tablets only

The status bar only needs to be set as opaque when the notification
drawer is pulled down on 600dp and 720dp devices. On phones, this
is unnecessary as the top header of the drawer covers the status
bar on the phone UI. This change makes a huge difference in
reponsiveness on devices that run the phone UI as there is no
longer a delay before the drawer appears when interacting with it
on an activity with transclucent window decor.

Patch Set 3: Fix formatting, adjust comment
Patch Set 5: Delete file derp

Change-Id: I932bb92a5245f0323d3317776efbdc9151db449d
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Service: Keep services needing restart.

Services needing restart after crash include:
1) service with 'persistent == true'
2) service explicitly reuqired restart by returning START_STICKY
   or START_REDELIVER_INTENT from onStartCommand

Change-Id: Idc490a1ceb1e151a3eb7f34b7b4cf8058a06f34a
Signed-off-by: Liangcai Li <liangcail@nvidia.com>

Conflicts:
	services/java/com/android/server/am/ActiveServices.java
PhoneStatusBar: Use an inline observer instead of a class for battery style.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Guidelines cleanup for some immersive stuffs.

PS2: Also fix a logic derp when calculating display size.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Iec47fcd47b0ae93e404ff146c9cdbcfd8cbd0007
PackageManager: Fix reconnection logic in Installer.

Change-Id: Id4b352647ed51aaf64bb85dff9030a25e295758f
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
Give public access to immersive mode static vars

They are needed by recents

Change-Id: I641f0d9cf5d7263a1433147b8f57ec5fa8286396
Tethering: fix NPE when retrieving active interfaces

When in airplane mode getActiveNetworkInfo() may return null.

Change-Id: Icba37abb51b9378c8af73d9f6587e04c588dd85e
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Android Framework Base: DE translation

PS1: translate into German
PS2: fix w -> wischen
PS3: fix Smartphone -> Telefon (like in AOSP)

Change-Id: I102c378c68a9ec06813adac7fc16e4f12b9a52e4
Signed-off-by: Matthias Freund <matthias88freund@gmail.com>
czech translation
Catalan translation correction

The word "despleguàs" does not exist in Catalan.

Change-Id: Ic789662d63a3c5c59e519b5c6711d4381d94ddc2
Catalan translations

Change-Id: I16dfd68ba2b2e1f7c42668199a6150e5a0a8f617
Fix indirect misuse of $(my-dir).

Change-Id: I20a98a8e1378da3a53e6a6d599c8fc0100f7f87a
Signed-off-by: houst0nn <houstonn@gmail.com>
Immersive: Fix black bar in some games

Some games (FIFA14, Virtual Tennis, Rebuild etc.) show a black bar where the navigation bar used to be even in full immersive mode.
This fixes that.

Change-Id: Id7f8959da0496d95beaa21a567ef0f756b00a82d