Use scaled font size for no recent apps text

Change-Id: Ib200928db09bcdd6661de5e450e2fc9c1b5566cf
PackageManager: allow build-time disabling of components

Allow components to be specified as disabled at build time
(applied on boot).

This allows stock OTA components to be marked as disabled in
CM builds.

Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f

Conflicts:

	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
PreferenceFragment : Set title if specified

Set the title of the preference activity if specified by the
preference screen.

Example of where it is broken :

Settings -> Accessibility
Title says "Accessibility", but preferencescreen's android:title attribute
specified "Accessibility settings"

Change-Id: Icc89cf6bc37e3f6fc98c6bc05a0ef47185daa52c
Clarify the documentation of SparseArray.indexOfValue.

Bug: https://code.google.com/p/android/issues/detail?id=53297
Change-Id: I28725a2d03d4c11948bfe4fb90d730c86bf41481
Set foreground priority for shutdown receivers.

The broadcast of ACTION_SHUTDOWN has a timeout of 10 seconds. To
reduce the risk of hitting the timeout and speeding up the
shutdown sequence in ShutdownThread we set the priority of the
BroadcastReceivers to FLAG_RECEIVER_FOREGROUND.

We have seen that this change reduces the shutdown time when
the system is under heavy load.

Change-Id: I22cbf6af8cf6fc4bdefaa1c3da8a7eed7e7b7674
Fix typo in AlertController.java

If whichButtons is BIT_BUTTON_NEGATIVE, the negative button should be centered.

Change-Id: Ia34daf8c80704204a4f1cf71c642114005559d5d
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
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
Add method to PowerManager that allows querying the lowest possible
brightness.

Used by the auto-brightness adjustment to adjust the sliders.

Change-Id: Idb58fd86dee1a053fe858291be6c9b3169ac4247
Audio: Fix abnormal keytone playback during silent mode changing

Change-Id: I603dbf70615b25dfad846235b97be5eb2731617e
Origin-Change-Id: I29e8673bb8305d96d5adc0a7e82b9bb9bcb3e7de
Orig-Change-Id: I5240aa118d3eeb7c630b2e03abe5536c26e6a405
Signed-off-by: ezhao3X <ertaox.zhao@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 19084
fix some CTS problems

Some CTS test cases which are to test a long-click availability on a
view fail if "long_press_timeout" would be changed. For instance, if
we would change "Touch & hold delay" setting to "medium" or "long",
the following test cases fail.
  - GestureDetectorTest#testOnTouchEvent
  - View_UsingViewsTest#testSetupListeners
  - AbsListViewTest#testGetContextMenuInfo
These test cases call TouchUtils.longClickView(). ThelongClickView()
uses ViewConfiguration.getLongPressTimeout() to get
"long_press_timeout". However the method will always return a
default value '500' if it would be called from non-main thread.
CTS test case runs on non-main thread. So longClickView() should
read the value from SettingProvider.

Change-Id: I19465678a1f6a10b93262263975d612b386856f9
Do not set the content description on the icon tab when not necessary

It is not necessary to set the content description of a tab's icon
when the icon is not actually visible. Based on the implementation,
the tab's icon is only visible when not null and its visibility is
set to true.

Change-Id: I4430dfc7d1faa0ae00fdc789745e7cae7b453a89
Video can not continue to play after wake up.

Save the time to make the player continue.
While playing, lock-screen will make the play paused, the time is not saved,
so it will play from beginning after unlock screen.

Change-Id: I54d2e40521c5351a563a269ade087bae203f8098
Author: Bin Xu <binx.xu@intel.com>
Signed-off-by: Bin Xu <binx.xu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 26444
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