Fix NavBar & SystemBar sizing issues

PhoneWindowManager makes some decisions regarding
portrait & landscape based on screen sizes.  Since we poke
this routine everytime we change something on the NavBar, this
can result in PWN changing the orientation of the device.  This
was causing strange behavior in resizing of the NavBar & SystemBar.
It might also have been causing other strange orientation issues.

PS2:  Attempts to decode the actual device type based on the screen
   dimensions and the rotation at time of setInitialDisplaySize.
   This is needed because large tablets (that default to a landscape
   orientation, need to have the dimensions swapped)

PS3: Whitespace

ps 4: Restore the stock calculations for orientation, but restrict
    them to running only one time (at initial boot).  This will allow
    the normal detection routines to set up the proper rotation variables,
    but will not reset (and change them incorrectly) everytime we poke
   setInitialDisplaySize.

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: Iaec0e8ba623f10bd0d4118b4d5a99a42ab0564f6
FW: Navring ShouldUnlock method

Don't unlock for the ring options, and power

Change-Id: I7fa5bdfcc3c099477f87cd3cdd82a28e57a094a2
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
Update Japanese translation

Change-Id: I4fecbc7b3c883fb80cef13850f10080462be426c
Signed-off-by: rdgate <rdgate@gmail.com>
Updated simplified Chinese translations

Change-Id: I60b948c5144c2069e687c2d453a237daff7bad47
Merge "FW: Navring ShouldUnlock method" into jb-mr1
Merge "Fix NavBar & SystemBar sizing issues" into jb-mr1
Merge "Update Japanese translation" into jb-mr1
Merge "Updated simplified Chinese translations" into jb-mr1
camera: Add support for sending raw commands

 * Certain camera drivers need magic commands to select special modes
   such as ZSL or HDR. Add support for sending raw commands from
   applications.

Change-Id: I512a765c7a67ffd2877e465cf6493ffc2b3b54ac
power: Add panel auto-brightness configuration

 * Some panel hardware requires that we twiddle some knobs in sysfs to
   enable proper display calibration (gamma, etc) when auto-brightness
   is enabled. Add a configuration value to handle this.

Change-Id: I3c793c3520fc6f9a18d5a3abf1fe0df803c5e580
FW: Updated czech translation

Change-Id: I41afb45416b5844431b9ab2bdb7939485ec6613c
Signed-off-by: kecinzer <kecinzer@gmail.com>
FW: Ribbons - Long swipe App window.

Window similar to recents with all the users apps.
Options to control app color, background color, and
background opacity.

On touch listeners for targets and close button
Make dividers colorize with text.

Fixed animations make columns spacing work automagiclly

Change-Id: I6147dee1e97436f252a7dae349d1eff1d6e5dbf9
Merge "FW: Updated czech translation" into jb-mr1
FW: include newest sounds first

Older ones are overriding new ones!

Change-Id: Ie900f66503076b89503a770cde674254dd163d3e
Signed-off-by: Roman Birg <romanbirg@gmail.com>
FW: Updated czech translation

Change-Id: I24b9b84a98b0f2f6db3ac20f4b58a67af6531491
Signed-off-by: kecinzer <kecinzer@gmail.com>
Merge "FW: include newest sounds first" into jb-mr1
FIX Null Pointer Exception on dialog cancel

Null Pointer Exception occurs because mWebViewCore instance
is made to null while calling destroyJava(). When
1.webview hosting activity goest to background, without calling webview onPause().
2. If app is launched again (having launchmode:singletask ) and another activity (not  webview hosting) comes on top top.
3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null.
Null pointer exception is raised.

Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3
Signed-off-by: Amit Kumar <amitkecian@gmail.com>
Merge "FW: Updated czech translation" into jb-mr1
FW: Ribbon - Toggles

Fix for some toggles not getting set properly
fix user toggle fc
fix some toggles hieght being HUGE

respect users click vib setting.

respect ribbon padding

sync custom toggle if in multiple places

fix theme issues.

Fixed Icon from Nitroz

Change-Id: Ia225e822485b715e6daddeb7b62e232e72db5e36
Merge "FIX Null Pointer Exception on dialog cancel" into jb-mr1