Framework: QuickRecord Tile (2/3)

PS2: Stop FC on Auto-Stop Recording
PS3: Allow Playing of File If not recorded
        in this SystemUI Lifetime && fix FC on
        file not existing
PS4: Refresh Playing/Recording On Demand && Cause Layout Issues
      -Layout isn't utilizing tile info & is thus lower rather than centered
        Layout Should Be Fixable...this method might be temporary.
        Too tired to think.
PS5: Urgh Rebase
PS6: Fix Layout issues from PS4
PS7: Resize xhdpi images to 64x64
PS8: Add File Check && User Instruction String
        Change Default String & Add "Recording Captured"
        String & Icon on a two second timer.
PS9: Don't allow playing of file if it doesn't exist.
PS10: Images!!!!
PS11: Remove "WIP" from title.
PS12: Revert audiosource.default back to .mic
        (Higher Quality)
PS13: PS12 somehow managed to corrupt some MDPI images.
PS14: Change Timer to PostDelayed
        (Assuming this is better.  Hopefully some input?)
PS15: Operation makeJonStanfordHappy
        (Operation makeMikeHappy might end in lulWut)
PS16: Operation makeMikeHappy part1
        (Mike mentioned the idea of a switch rather
         than booleans, which I like...upcoming.)
PS17: Operation makeMikeHappy part2
        (Switch Statement)
PS18: Operation flipMikesSwitches
        (LULIDK)

To-Do:  Wait for Roman...and...that's it?
           (Jerk<3)

HUGE thanks to Dustinb17 https://twitter.com/dustinb17 for the icons!
Huge thanks to Shane New for making him do it =]

Change-Id: I4ae639b9684861cc7831c465530ae87634773c0d

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java

Conflicts:

yup
QuietHours Toggle (1/2)

Icon Credits: Oliver Geith

Signed-off-by: Bajee11 <bajee11@gmail.com>
Change-Id: I0fa349969115e420140f24d10302a2cdb0c91c83

Conflicts:
	packages/SystemUI/res/values/strings_toggles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/ToggleManager.java

Conflicts:

	packages/SystemUI/res/values/strings_toggles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/ToggleManager.java
NFC toggle fix

Remove logs

Change-Id: I94b9f058c6a2004fbebcec4d864abc6627a26eb7
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
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>
Recents set nicer intent flags for rambar click action

Change-Id: Iaca1492f47667b7d260f8fd962a5fb99a6c8701f
Oh Google... this is AOSP

Change-Id: I7d25fbef9dcbb892b6840af1538a6395857f9d28
Disable usage of WAL in DatabaseHelper

According to SQLite documentation, WAL can not be used when database
partition is not accessible for writing (even when the client just
performs read operation).
However, such situation may happen when the partition is full.
As SettingsProvider should always be able to read a value of ANDROID_ID
from corresponding database, this commit disables usage of WAL.
Without this we risk ending up in a situation where /data is full
and the phone is unable to boot properly.

Change-Id: I1f79bbcd8d0f64bf35dc9d7b846bcfb2664d2eac
Potential NPE in SQLiteConnection

Change-Id: I4d768bda5ea2fccb4a7c6ce7a5f074bf41563eac
Signed-off-by: Sylvain Becuwe <sylvain.becuwe@gmail.com>
Fix bugs regarding IllegalStateException during moving position in cursorwindow.

"startPos + addedRows < requiredPos" could miss a row in boundary position.
Because of the fluctuating row size, "startPos + addedRows < requiredPos" expression could miss a row in boundary position.
For example, simply speaking,
if window capacity = 120 and requiredPos = 120,
"fillWindow" needs to be newly called and "starPos" is 80 for the window.
Unfortunately 120th row is bigger than the rest size of the window,
the row for requiredPos is not in the window.
Then, startPos has to be newly set and the 120th row has to be included in the window.
But by the expression above "startPos + addedRows < requiredPos",
the row for requiredPos is regarded as included in the window.
In that case, by "mCurrentRowID = Long.valueOf(getLong(mRowIdColumnIndex));" statment in AbstractCursor,
IllegalStateException is thrown.

This patch contains modification of the expression as "startPos + addedRows <= requiredPos".

Change-Id: Iaee75241e495949b0a624b836843da18d0bcb98d
fix hover events consume issue

View#onHoverEvent() would always consume hover events over the view
if an application window has the clickable view/widget on it.
That's happened even if accessibility/talkback is disabled.
So those events will not dispatch to activity#onGenericMotionEvent().

The onHoverEvent method should return a real consumed state.

Change-Id: I9cac13b82866e5cdda0b03befb0de752a0a2e741
Fix PointerCoords Parcel incorrectly storing values as Int32

PointerCoords stores its values as float and its Parcel should
do the same. Wrong behaviour may be noticed when MotionEvent is
injected using Instrumentation method sendPointerSync. All its
PointerCoords values(size, orientation, pressure, etc) will be
casted to integer omitting their decimal part. This fix addresses
this issue.

Change-Id: Ifa3dfce4d5c2e6c060852f4208cb5684e827c7e6
Signed-off-by: Ilya Polenov <daioptych@gmail.com>
Navring: Fix landscape for phones and 4+ targets

Change-Id: Id8004342007d298f1cb1815ab073ea6129782ad4
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>

Conflicts:
	packages/SystemUI/res/values-land/dimens.xml

Conflicts:

	packages/SystemUI/res/values-land/dimens.xml
Allow all widgets to be added to lockscreen.

Instead of this halfhearted approach, it should
be an option through ROMControl.

Make option for rc.
White Space

Change-Id: I75ee3ba85e0263f1e8f090beccaab2dbe2bbb7a4

Conflicts:
	core/java/android/provider/Settings.java
Navring: fix NPE if app uninstalled and in Navring

remove generic exception not needed.

Change-Id: Iec7f79f9d7c236d2afe3788dc35f890b2e3c4f84
input: fix recents opening when waking the device with the home button without lockscreen

Port from ics
http://review.cyanogenmod.com/#/c/18584/

Change-Id: I354ace2a3b37bd336d2806b941f779538bc96c74
Improve AOSP Download/Upload animation

This increases the number of png required for a full download/upload animation cycle.
These new png makes the animations much smoother.
Fixed the problem ime invisible status despite being the icon that appears in the statusbar.

[Reproduce the Path]
Precondition : Set "Auto-rotate screen" option to ENABLE

Calendar App lunch -> Rotate device to "Landscape" -> Touch "+" button(Add new Schedule)
-> Check the ime icons of the Status bar

Ime invisible status despite being the icon that appears in the statusbar.
Displays an icon in the status bar when the ime was actually visible state is modified to check.

Change-Id: If103ab909c5bfa6391eb51a696fb8b8f0b18808c
Use getRelativeDayString in getRelativeTimeSpanString.

The bug we're fixing here is that languages that don't
distinguish the "one" case grammatically (such as Japanese)
would say the equivalent of "In 1 day" rather than "Tomorrow"
because of the misuse of getQuantityString.

This has the side-effect of switching us over to the CLDR
strings for relative day names, which have consistent capitalization;
the Android donottranslate-cldr.xml strings varied even within
a language, so although this is a change, it seems like a step
in the right direction.

In a future change, we should actually push all relative
day formatting down into icu4c.

Bug: 7098707
Change-Id: Ia2f9af3d18c441d6093dd5da7956a3d0130e5b06
update preloaded-classes

Remove some preloaded-classes and fix typo for deleting log messages
as the followings during booting.

W/Zygote  (  163): Class not found for preloading: android.bluetooth.
BluetoothAudioGateway
W/Zygote  (  163): Class not found for preloading: android.bluetooth.
HeadsetBase
W/Zygote  (  163): Class not found for preloading: undroid.content.Ab
stractThreadedSyncAdapter$SyncThread

Change-Id: Id02e0cccaeb150f48e12d67b2d691df828842e4c
Option to set notification icon opacity 1/2

Change-Id: If2f251b2187524b153a695977f3ee9ce5bf487db

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java