ActionBar: Compute required items prior to optional items

When computing if a item should be shown in the action bar, required items need to be compute prior
to optional ones. Otherwise, in some cases (when the optional menu goes to the left of required
items then the algorithm could determine that optional has space to be shown and force the show of
required items, causing the required items to not be shown).
A concrete case is in the Email app. In the message_view_fragment_option.xml are defined 5 menus,
that when are all shown (xe: in Exchange mailbox account type) the bar is complete filled. But if
the overflow button is forced to be shown (the device has no permanent menu key) the overflow button
overlaps the older button, because space of 'ifRoom' items are wrong computed.

Change-Id: I6fc8e3e202d76f9704d7ec2383c7ee6f7b05ba76
Fixed aapt warnings

Change-Id: I35389697266b3ec59a38b4142a8983d0a8cc31ac
PT-BR: Added missing translations

Change-Id: I0616fbbd61742553bd03c1d64a2c792ad55fb2e9
Japanese: update translation.

  - Add missing translation entries.

Change-Id: I076e396c065b642d9bf342452eacea4588a5525f
framework: Update German quick settings translation

Patch Set 1:	* add some strings
		* rename some strings

Change-Id: I082ae344fd92b680b275a01c518ced681f06b77c
Update korean translation

Change-Id: Ic6c85c8253d81079316e38a58e7e852e44be5a73
Merge "framework: Update German quick settings translation" into cm-10.1
Disable touch while using the stylus (Galaxy Note)

Android 4.0 cannot form multitouch events from multiple input
devices. So it is not possible to report one touchpoint from the
stylus position and, at the same time, another touchpoint from a
finger touch. Instead, when a new input device starts up the currently
active input is cancelled. This is highly undesirable while writing
with the pen.

The easiest solution is to ignore non-stylus touch events while the
stylus is within range (hovering) of the touchscreen. For example,
N-trig digitizers implement this in hardware. But wacom digitizers do
report pen data simultaneously with touch data. This patch disables
(non-stylus) touch input within 50ms of stylus data. On my Galaxy
Note this is necessary to make stylus input usable.

Change-Id: I9f458d85d8bf83d6cf03b467d46ce066fd55b7e0

Conflicts:
	services/input/InputReader.cpp
	services/input/InputReader.h
Increase lock screen widget limit from 5 to 9

Agreement seems to have landed on 9 as a sane value for the lock screen widgets
limit, and since there is no drawback for those with fewer, configuration is
unneeded.

Change-Id: I432c90113e31d953b2450770bfceb5f6e2e0e173
Use standard formula for calculating hwrotation

Change-Id: I12efbce4a8107a1058921e5ec4cb4b6e0ef072ab
Merge "Increase lock screen widget limit from 5 to 9" into cm-10.1
frameworks/base: Dutch translations

Change-Id: I7adf723e44389fa05a1920d785cc6434c3473336
QuickSettingsController.java: remove unneeded casts

mContainerView is final and always an instance of QuickSettingsContainerView,
as provided to the constructor. There is no need to hold a reference to a
super-class of it.

Change-Id: Iddca83bf9d251553d4ae9c2d2c54446336f16f6f
Quick Settings: Actually update resources, when asked

Failure to do so causes the quick settings tiles not to be updated to
reflect system locale changes. The tiles remains at the previous locale.

Patch set 2: Remove unnecessary casts.

Patch set 3: Remove one last cast, only possible now that
             http://review.cyanogenmod.org/29350 has been merged.

Change-Id: I42bf8208a2f82dd0f2441685df6a7af2a81b611b
Framwork: Add support for variable size pattern lockscreen (Part 1/2)

Part 2: http://review.cyanogenmod.org/#/c/28534/2

Forward port of: http://review.cyanogenmod.org/#/c/20613/

The default size has been replaced with a constant PATTERN_SIZE_DEFAULT=3
It now parses the longInt as a byte, no longer requiring a get/set Int function.
Negative numbers and sizes over 127 do not make sense, so a byte works well.
In addition the logging has been removed.

Patch Set 1-2: Initial port

Patch Set 3-5: New implementation using seperate file for non standard sizes

Patch Set 6: Use AOSP code style

Patch Set 7-9: Remove static code

Patch Set 10: Correct a comment

Change-Id: Ia06fc5a7dc2819f78843fddcf1470d85ebe2ad13
Merge "Framwork: Add support for variable size pattern lockscreen (Part 1/2)" into cm-10.1
Merge "Quick Settings: Actually update resources, when asked" into cm-10.1
Merge "frameworks/base: Dutch translations" into cm-10.1
Screenshot : Pass current user

Needed to complete the snapshot procedure

Change-Id: I40f63e261e213136cd739c06da6f005173427ae0
Merge "PT-BR: Added missing translations" into cm-10.1