add empty stub for build compatibility

Add an empty stub for CopyJavaInputStream for build-time compatibility.

Change-Id: Ib1d32c6bedcbeeb192a31c9145824312a5bd724f
Add system partition check for vpn dialogs

The VPN permission check required internal knowledge that
other checks in the system would ensure that
package "com.android.vpndialogs" was genuine. In the
off chance those other checks change, or someone is
able to spoof the package name, this will at least
check to see that the app is on the system image; one
more hurdle to jump.

Signed-off-by: William Roberts <wroberts@tresys.com>

Change-Id: I4875a4a30bea8975943c889d3b1ebefc84c07ee9
NPE in SearchManager.triggerSearch

mAssociatedPackage field is never initialized and cause NPE.

Change-Id: Ibf0d44b2170b7cbfe4a883008254a086e03579c5
Consider LayoutDirection when adding horizontalSpacing

Fixes an issue where LayoutDirection wasn't considered when moving the
nextLeft postion.

Change-Id: I0bb08623cc4d3e4091567f5d8f25995651222b51
if the source is hls or rtsp,do not skip prepare when enter the full screen mode

Now, HLS and rtsp use nuplayer to play.Since nuplayer has not such function like reset display during playing,
when enter the full screen mode from inline mode in HTML5, the preparation should not be skipped.
If a new display needs to be setted, the old player must be resetted
Signed-off-by: ywan171 <yi.a.wang@intel.com>

Change-Id: I23de1cec9bff7d5f93839ccb118cc4d6477f02fe
Author: Yi Wang <yi.a.wang@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: 52762
Return value of substring ignored in removeTrailingPeriod.

Change-Id: I7f7347db862995bef675c84ca652e54db96941e4
Fix appwidgets not updating

Previously there was a bug where if an appwidget's update caused a
TransactionTooLargeException then the AppWidgetServiceImpl.Host's
callbacks were completely disabled, for all widgets.

The fix still allows a DeadObjectException or other RemoteException
to disable the host callbacks, as that would be caused by a bad host.

Fixes issue 28216 on the public tracker
https://code.google.com/p/android/issues/detail?id=28216

Change-Id: I5c5d5939d7211ed23cca69e6674de730b51b0f3e
Signed-off-by: Kevin Barry <kevin@teslacoilsw.com>
SystemUI: Add missing recycle calls
aidl: factor out Java output

Change-Id: Id206eeaf733ddfdc2bd4e52241f3bbf896715e73
ProviderMap: Remove external process reference of ContentProviderRecord

ContentProviderRecords is removed from provider map by activity manager service
when the process hosting the content providers terminates and this causes GC
to free the content provider records but the reference to external process
using the content provider isn't cleared. Fix is for ProviderMap to clear the
reference and unlink for death notification.

Change-Id: I67fd10cee57b02257792d0c9b4569fe11dea7648
Fixed the position of tooltip toast for action menu items

When bidirectional languages are set as a display language,
tooltip toast that appears by long tap of action menu items
is shown at unexpected position.
This patch fixes the miscalcution of toast position.

Change-Id: I5f3ecf454d463101a9484ef6a423866c859c42d1
Deduplicate notification methods

Added two (@hide) methods:

    public void notifyAsUser(String tag, int id, Notification notification, int userId)
    public void cancelAsUser(String tag, int id, int userId)

used in:

    public void notify(String tag, int id, Notification notification)
    public void notifyAsUser(String tag, int id, Notification notification, UserHandle user)

and (respectively):

    public void cancel(String tag, int id)
    public void cancelAsUser(String tag, int id, UserHandle user)

in order to remove duplicated code.

Change-Id: I682633b30616289b8972017de36ea4a64213d357
Marquee text RTL improvements

Changed marquee text to scroll according to
the reading direction. Arabic text will
show the right edge and scroll towards
the left edge and vice versa for Latin.

Corrected marquee flicker when scroll animation
finished. The ghost scroll's x position was cast
to int and it made the text flicker when
marquee stops.

Ghost part didn't display for RTL languages.
Added multiplication with
getParagraphDirection to negate the ghost
offset.

Change-Id: I689039118df01a62f73ef0079c857fea1bfcc5a0
Telephony: Add functionality to handle ICC IO error

At present in Android all ICC Card states other than
ICC PRESENT are treated as ICC ABSENT.Adding functionality
to handle ICC IO error card state.

Change-Id: I229bd80cb5e487f4345bef9fb7fee60850f085d9
Bug: 10643652