OSDN Git Service

android-x86/frameworks-base.git
11 years agoSensors could be disabled by any application
Magnus Hallqvist [Tue, 11 Sep 2012 10:46:15 +0000 (12:46 +0200)]
Sensors could be disabled by any application

In the SensorManager API unregisterListener any application could
unregister any sensor. This lets any application disable a sensor
which another application is using.
This fix restricts the applications to only be able to unregister
a sensor it has previously registered to.

Change-Id: Ief926dd29f480dd97626160810dff87a8d3ac8dc

11 years agoMerge "Fix aapt to get expat header files from the approved location."
Elliott Hughes [Sun, 9 Sep 2012 22:16:45 +0000 (15:16 -0700)]
Merge "Fix aapt to get expat header files from the approved location."

11 years agoFix aapt to get expat header files from the approved location.
Elliott Hughes [Sun, 9 Sep 2012 21:45:32 +0000 (14:45 -0700)]
Fix aapt to get expat header files from the approved location.

Change-Id: Ic7c796e048cfe98ee355c18b3708fee5ea716e2e

11 years agoMerge "Make SimpleSessionDescription locale safe"
Jean-Baptiste Queru [Thu, 6 Sep 2012 18:22:29 +0000 (11:22 -0700)]
Merge "Make SimpleSessionDescription locale safe"

11 years agoMerge "Musicplayer application can not display DRM files of internal storage."
Jean-Baptiste Queru [Thu, 6 Sep 2012 14:20:59 +0000 (07:20 -0700)]
Merge "Musicplayer application can not display DRM files of internal storage."

11 years agoMerge "Am: Clean mLaunchingProviders of all providers started by the client"
Jean-Baptiste Queru [Wed, 5 Sep 2012 18:40:29 +0000 (11:40 -0700)]
Merge "Am: Clean mLaunchingProviders of all providers started by the client"

11 years agoMerge "Make default value of auto-sync in SyncStorageEngine configurable"
Jean-Baptiste Queru [Wed, 5 Sep 2012 18:03:12 +0000 (11:03 -0700)]
Merge "Make default value of auto-sync in SyncStorageEngine configurable"

11 years agoMerge "Revert "Watchdog: Improvement of debuggability""
Jean-Baptiste Queru [Wed, 5 Sep 2012 17:55:43 +0000 (10:55 -0700)]
Merge "Revert "Watchdog: Improvement of debuggability""

11 years agoRevert "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Tue, 4 Sep 2012 20:35:12 +0000 (13:35 -0700)]
Revert "Watchdog: Improvement of debuggability"

This reverts commit 9211b13c3268035b0da0c51ed2d6d5a578d45ff3.

11 years agoMerge "SearchWidget: passing APP_DATA to voice intent"
Jean-Baptiste Queru [Tue, 4 Sep 2012 17:49:48 +0000 (10:49 -0700)]
Merge "SearchWidget: passing APP_DATA to voice intent"

11 years agoAm: Clean mLaunchingProviders of all providers started by the client
Vairavan Srinivasan [Tue, 4 Sep 2012 00:09:58 +0000 (17:09 -0700)]
Am: Clean mLaunchingProviders of all providers started by the client

Launching providers is removed from mLaunchingProviders when the client
process dies and works as long as the client process had requested just
one provider and not otherwise. Fix is to make sure mLaunchingProviders
is updated to remove all providers launched by the client process.

Change-Id: Ib4b8b44b6a102762a6558f65fb2e6dbf11d725ea

11 years agoMake default value of auto-sync in SyncStorageEngine configurable
Yameng Huang [Tue, 11 Jan 2011 06:00:19 +0000 (14:00 +0800)]
Make default value of auto-sync in SyncStorageEngine configurable

This will make the default value of the automatic synchronization
in the SyncStorageEngine configurable with overlays for use by
vendors who want or have legal requirements to have the synchronization
off by default.

Change-Id: Iabdb355c4a1169fe8e254e91c43e162c5913d5e0

11 years agoSearchWidget: passing APP_DATA to voice intent
Jorge Ruesga [Sun, 2 Sep 2012 23:26:59 +0000 (01:26 +0200)]
SearchWidget: passing APP_DATA to voice intent

SearchView uses SearchManager.APP_DATA to pass data between the origin activity
and the search activity. This works for text searches (keyboard), but it's not
implemented by voice recognition searches. The method createVoiceAppSearchIntent
initializes a empty bundle that is filled with the QUERY parameter.
This patch adds the SearchManager.APP_DATA parameter if is present, let the
search activity access to the data passed by the origin activity

Patch 2: Fix code style

Change-Id: I52dce34e1efd07a30ad74d52bfc60fbae1c4310b

12 years agoMusicplayer application can not display DRM files of internal storage.
Jan Bjernler [Fri, 18 May 2012 08:01:18 +0000 (10:01 +0200)]
Musicplayer application can not display DRM files of internal storage.

Make DRM-protected files transferred over MTP be detected.
Previously it was inserted into the database as MEDIA_TYPE_NONE,
the result of this was that the file was not detected properly.
With this fix the file is scanned from the beginning.

Change-Id: Idf17d39e3d529394cd4a03d71fb250e69b395533

12 years agoMerge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 00:36:05 +0000 (17:36 -0700)]
Merge "Fix code problem in writePidDns"

12 years agoMerge "Added check of ActivityInfo launch mode when starting activity."
Dianne Hackborn [Thu, 30 Aug 2012 22:19:03 +0000 (15:19 -0700)]
Merge "Added check of ActivityInfo launch mode when starting activity."

12 years agoMerge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:32:09 +0000 (13:32 -0700)]
Merge "Watchdog: Improvement of debuggability"

12 years agoMerge "onSavePassword dialog can leak when WebViewClassic is destroyed."
John Reck [Thu, 30 Aug 2012 18:00:21 +0000 (11:00 -0700)]
Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

12 years agoWatchdog: Improvement of debuggability
rikard dahlman [Tue, 28 Aug 2012 14:12:38 +0000 (16:12 +0200)]
Watchdog: Improvement of debuggability

If the watchdog detects a problem the system server process
is killed, that is followed by a crash. Because the crash is
done after the system server process is killed, the crash
don't contain info about the system server.
This improvement will make sure that the system is crashed
before the system server process is killed.
Behavior is only changed for eng and userdebug builds.

Change-Id: I9f1c8fd8b03d0114032ed44fb582705ad0b49733

12 years agoonSavePassword dialog can leak when WebViewClassic is destroyed.
Johan Redestig [Thu, 30 Aug 2012 08:13:41 +0000 (10:13 +0200)]
onSavePassword dialog can leak when WebViewClassic is destroyed.

The AlertDialog creates in onSavePassword method leaks if
WebViewClassic is destroyed when the dialog is shown.

Change-Id: I81f20e1dd138467a6413766c0a081b389b334ae0

12 years agoMerge "Make addAddress locale safe"
Jean-Baptiste Queru [Wed, 29 Aug 2012 19:19:03 +0000 (12:19 -0700)]
Merge "Make addAddress locale safe"

12 years agoMerge "Fix SkBitmap::fPixels not being locked correctly"
Jean-Baptiste Queru [Wed, 29 Aug 2012 18:27:31 +0000 (11:27 -0700)]
Merge "Fix SkBitmap::fPixels not being locked correctly"

12 years agoMerge "Default WiFi sleep policy setting"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:50:45 +0000 (09:50 -0700)]
Merge "Default WiFi sleep policy setting"

12 years agoMerge "Fix join scenario with provision discovery"
Irfan Sheriff [Wed, 29 Aug 2012 16:47:27 +0000 (09:47 -0700)]
Merge "Fix join scenario with provision discovery"

12 years agoFix join scenario with provision discovery
Irfan Sheriff [Tue, 28 Aug 2012 23:05:43 +0000 (16:05 -0700)]
Fix join scenario with provision discovery

Bug: 7072467
Change-Id: I8aafd5cee1055463aeda26ad313071cfe4e335c6

12 years agoFix SkBitmap::fPixels not being locked correctly
Michal Stawinski [Sun, 8 Jul 2012 10:25:45 +0000 (12:25 +0200)]
Fix SkBitmap::fPixels not being locked correctly

In some cases bitmap's pixels where freed during encoding, which
caused a null pointer dereference.
This fix makes sure that underlaying buffer is locked for the whole
process of compression.

Change-Id: I0ac56821f5d333072271dc2670fa30f1562adfa3

12 years agoDefault WiFi sleep policy setting
Erik Ljungberg [Mon, 23 Aug 2010 13:13:46 +0000 (15:13 +0200)]
Default WiFi sleep policy setting

Creates a defult.xml setting for WiFi sleep policy.

It is now possible, through device overlays, to change
the default sleep policy to e.g. never in order to improve
user experience of WiFi.

Change-Id: Ie459b8e70fdbc7c605452fe0692d7bc26460e939

12 years agoMake SimpleSessionDescription locale safe
Johan Redestig [Wed, 29 Aug 2012 06:19:32 +0000 (08:19 +0200)]
Make SimpleSessionDescription locale safe

Explicitly use Locale.US in SimpleSessionDescription to avoid
unexpected results in some locales.

Change-Id: Idb4a36a9e332d302e1b9b940355917c0f738e076

12 years agoMake addAddress locale safe
Johan Redestig [Tue, 28 Aug 2012 07:28:50 +0000 (09:28 +0200)]
Make addAddress locale safe

Using regular string concatenation to avoid unexpected
results in some locales.

Change-Id: I47dd5e174c4a2e88dc18e014002820cdbf63fcad

12 years agoMerge "SystemUI: Fix data activity overlay not being removed when data is disabled"
Daniel Sandler [Tue, 28 Aug 2012 19:52:48 +0000 (12:52 -0700)]
Merge "SystemUI: Fix data activity overlay not being removed when data is disabled"

12 years agoMerge "Change StringTokenizer to TextUtils.StringSplitter"
Jean-Baptiste Queru [Tue, 28 Aug 2012 19:22:39 +0000 (12:22 -0700)]
Merge "Change StringTokenizer to TextUtils.StringSplitter"

12 years agoMerge "[Audio]Press camera button during Http live Audio playing, then return Browser...
Jean-Baptiste Queru [Tue, 28 Aug 2012 17:43:10 +0000 (10:43 -0700)]
Merge "[Audio]Press camera button during Http live Audio playing, then return Browser, DUT display abnormal."

12 years agoMerge "Added a persistent feature in WiFi Direct."
Irfan Sheriff [Tue, 28 Aug 2012 00:54:07 +0000 (17:54 -0700)]
Merge "Added a persistent feature in WiFi Direct."

12 years agoMerge "Fixes relative time formatting issue for dates in future"
Dianne Hackborn [Mon, 27 Aug 2012 18:39:10 +0000 (11:39 -0700)]
Merge "Fixes relative time formatting issue for dates in future"

12 years agoMerge "Make setCaptureRate locale safe"
Jean-Baptiste Queru [Mon, 27 Aug 2012 17:22:29 +0000 (10:22 -0700)]
Merge "Make setCaptureRate locale safe"

12 years agoMerge "VibratorService: Fix to ensure actual delay in a vibrate pattern"
Jean-Baptiste Queru [Mon, 27 Aug 2012 14:55:41 +0000 (07:55 -0700)]
Merge "VibratorService: Fix to ensure actual delay in a vibrate pattern"

12 years agoAdded a persistent feature in WiFi Direct.
Yoshihiko Ikenaga [Thu, 16 Aug 2012 14:37:36 +0000 (23:37 +0900)]
Added a persistent feature in WiFi Direct.

Provide a new feature to use persistent group at default.
In the normal connect sequence, if the persistent profile has been
stored, try to use it. Otherwise, a new persistent group is created.
If the persistent profiles are stored over 32, an old profile is
deleted automatically.

Change-Id: Iccb9fa044f1907f0818cd259275e1675f4c3e222
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
12 years agoMake setCaptureRate locale safe
Johan Redestig [Mon, 27 Aug 2012 08:31:25 +0000 (10:31 +0200)]
Make setCaptureRate locale safe

Dont use the default String.format in setCaptureRate as it is both
locale unsafe and less efficient than regular string concatenation
in this case.

Change-Id: I29418ec0352ef8c79967592b6eb8ff66cc9c99f0

12 years agoFixes relative time formatting issue for dates in future
Steve Pomeroy [Mon, 27 Aug 2012 06:20:13 +0000 (02:20 -0400)]
Fixes relative time formatting issue for dates in future

All variations of getRelativeTimeSpanString() now properly handle dates
that are in the future. Prior, the version used by
getRelativeDateTimeString() would occasionally show the time instead of
a date when the future date was the same weekday as the current weekday.
This resulted in the time output being duplicated, eg.: "11:23, 11:23"

Change-Id: If20972a6942cce792fa233437f94dedfb71379f3
Signed-off-by: Steve Pomeroy <steve@staticfree.info>
12 years agoMerge "Telephony: Add ICC_UNKNOWN intent"
Wink Saville [Thu, 23 Aug 2012 21:25:23 +0000 (14:25 -0700)]
Merge "Telephony: Add ICC_UNKNOWN intent"

12 years agoMerge "fix wrong substring"
Dianne Hackborn [Thu, 23 Aug 2012 21:10:30 +0000 (14:10 -0700)]
Merge "fix wrong substring"

12 years agoTelephony: Add ICC_UNKNOWN intent
Alex Yakavenka [Thu, 23 Aug 2012 17:15:22 +0000 (10:15 -0700)]
Telephony: Add ICC_UNKNOWN intent

Change-Id: I1a666973dd23f510a0cce60ef7db462728717fc0

12 years agoMerge "Protecting more views from (bad) MotionEvents"
Jean-Baptiste Queru [Thu, 23 Aug 2012 21:08:40 +0000 (14:08 -0700)]
Merge "Protecting more views from (bad) MotionEvents"

12 years agoMerge "WifiStateMachine: ignore auth-fail event during WPS connection"
Jean-Baptiste Queru [Thu, 23 Aug 2012 16:31:02 +0000 (09:31 -0700)]
Merge "WifiStateMachine: ignore auth-fail event during WPS connection"

12 years agoMerge "Properly handle quick switch between Home button and Gallery app"
Jean-Baptiste Queru [Thu, 23 Aug 2012 15:04:45 +0000 (08:04 -0700)]
Merge "Properly handle quick switch between Home button and Gallery app"

12 years agoProtecting more views from (bad) MotionEvents
Johan Rosengren [Mon, 21 Feb 2011 08:49:45 +0000 (09:49 +0100)]
Protecting more views from (bad) MotionEvents

When handling MotionEvents, the method findPointerIndex can return -1
if the current pointer id can't be translated to a pointer index.
Some views are not handling this, which will lead to an out-of-
index crash. In 2585e9b there were checks added, this change adds
some more.

Change-Id: I93ce2420afd83a06b689a1ed35ead7d170cd68f1

12 years agofix wrong substring
Masanori Ogino [Thu, 23 Aug 2012 05:06:45 +0000 (14:06 +0900)]
fix wrong substring

The tokenOffsets is the offset from trimed contentLine.
But it is used in substring as the offset from un-trimed contentLine.

How to reproduce bug (ICS and before):
1. Add a contact record with name and a phone number (ex. 090-1111-2222)
2. Search by "0" in Contacts app
3. Contacts shows a wrong number something like "0900111102222"

Change-Id: I1e1cb2f3bd135d98e1573a50aa6ddc021af35b9f

12 years agoWifiStateMachine: ignore auth-fail event during WPS connection
Arik Nemtsov [Wed, 22 Aug 2012 21:27:15 +0000 (16:27 -0500)]
WifiStateMachine: ignore auth-fail event during WPS connection

Disregard auth failure events during WPS connection. The EAP sequence is
retried several times, and there might be failures (especially for wps pin).
We will get a WPS_XXX event at the end of the sequence anyway.

Without this change, the SupplicantStateTracker class will disable
the WPS network we are connecting to after 2 failed authentication events.
Then, even if WPS succeeds, we will never connect to the selected network.

Change-Id: I57c8e508bfd738405b7f2c2c2325df7838e1b4af
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
12 years agoMerge "DO NOT MERGE - Fix readback lengths"
Stephen Hines [Wed, 22 Aug 2012 21:06:37 +0000 (14:06 -0700)]
Merge "DO NOT MERGE - Fix readback lengths"

12 years agoMerge "WifiWatchdog: handle exception from ArpPeer"
Irfan Sheriff [Wed, 22 Aug 2012 17:57:49 +0000 (10:57 -0700)]
Merge "WifiWatchdog: handle exception from ArpPeer"

12 years agoMerge "Avoid system_server crashing due to mac address is null"
Irfan Sheriff [Wed, 22 Aug 2012 17:48:23 +0000 (10:48 -0700)]
Merge "Avoid system_server crashing due to mac address is null"

12 years agoMerge "restorecon /data/anr directory."
Jean-Baptiste Queru [Wed, 22 Aug 2012 14:18:39 +0000 (07:18 -0700)]
Merge "restorecon /data/anr directory."

12 years agoAvoid system_server crashing due to mac address is null
Chih-Wei Huang [Wed, 22 Aug 2012 03:26:51 +0000 (11:26 +0800)]
Avoid system_server crashing due to mac address is null

It's possible that the mac address is null (getMacAddress() of WifiNative.java).
In this case system_server will crash like:

E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiWatchdogStateMachine
E AndroidRuntime: java.lang.NullPointerException
E AndroidRuntime:        at android.net.arp.ArpPeer.<init>(ArpPeer.java:57)
E AndroidRuntime:        at android.net.wifi.WifiWatchdogStateMachine.doArpTest(WifiWatchdogStateMachine.java:866)

Check the mac address before parsing to avoid crashing.

Change-Id: I5d4205c04d479a3a2837172c6382816ea4bf74d6

12 years agoMerge "ActivityThread: Avoid creating duplicate handlers and reuse mH"
Dianne Hackborn [Tue, 21 Aug 2012 22:12:45 +0000 (15:12 -0700)]
Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"

12 years agoMerge "Tests/RS: Add RS context check for RsBalls setAccel()"
Jean-Baptiste Queru [Tue, 21 Aug 2012 20:09:18 +0000 (13:09 -0700)]
Merge "Tests/RS: Add RS context check for RsBalls setAccel()"

12 years agoMerge "To avoid the JNI memory leaks in video editor codes"
Jean-Baptiste Queru [Mon, 20 Aug 2012 21:29:51 +0000 (14:29 -0700)]
Merge "To avoid the JNI memory leaks in video editor codes"

12 years agoMerge "Switch widget: Fix ON/OFF option update error"
Jean-Baptiste Queru [Mon, 20 Aug 2012 21:28:32 +0000 (14:28 -0700)]
Merge "Switch widget: Fix ON/OFF option update error"

12 years agoMerge "Use Libcore.os.umask for setting umask"
Kenny Root [Mon, 20 Aug 2012 19:32:14 +0000 (12:32 -0700)]
Merge "Use Libcore.os.umask for setting umask"

12 years agoUse Libcore.os.umask for setting umask
Kenny Root [Fri, 17 Aug 2012 15:45:55 +0000 (08:45 -0700)]
Use Libcore.os.umask for setting umask

Libcore.os now provides a umask method call, so just use that since it's
available.

Change-Id: I8826fa40bcab3d61a424ff98a8050d3e44f7ec34

12 years agoMerge "Release JNI local references as soon as possible."
Jean-Baptiste Queru [Mon, 20 Aug 2012 17:17:44 +0000 (10:17 -0700)]
Merge "Release JNI local references as soon as possible."

12 years agoMerge "ProviderMap: remove hashmap when entire user specific entries are removed"
Amith Yamasani [Mon, 20 Aug 2012 17:16:36 +0000 (10:16 -0700)]
Merge "ProviderMap: remove hashmap when entire user specific entries are removed"

12 years agorestorecon /data/anr directory.
rpcraig [Wed, 25 Jul 2012 17:10:37 +0000 (13:10 -0400)]
restorecon /data/anr directory.

Restore the security contexts of anr directory
when initially created.

Change-Id: Ia731414ccbcdc7369d24be6db0003c53abcf6ef4
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
12 years agoVibratorService: Fix to ensure actual delay in a vibrate pattern
Vairavan Srinivasan [Thu, 31 Mar 2011 20:32:54 +0000 (13:32 -0700)]
VibratorService: Fix to ensure actual delay in a vibrate pattern

delay might timeout early as value of duration isn't updated
correctly in the loop, should the wait be interrupted, to reflect
the elapsed time. Fix is to update duration in the loop.

Change-Id: I525b0e97799b288f46ae3a056cff7dcc69701bb0

12 years agoActivityThread: Avoid creating duplicate handlers and reuse mH
Vairavan Srinivasan [Sun, 19 Aug 2012 01:36:03 +0000 (18:36 -0700)]
ActivityThread: Avoid creating duplicate handlers and reuse mH

sMainThreadHandler is used for notification of changes in
SharedPreferences and refers to a new instance of Handler instead
of the existing instance, mH, of the ActivityThread. Fix to reuse
existing handlers associated with main looper.

Change-Id: I794a5802a9eacdb188bd0619db5e70e3ae89a07d

12 years agoDO NOT MERGE - Fix readback lengths
Jason Sams [Thu, 26 Jul 2012 23:56:01 +0000 (16:56 -0700)]
DO NOT MERGE - Fix readback lengths

Change-Id: I4c5f29af03ed3babceef741aa3a982244cfc65d1

12 years agoRelease JNI local references as soon as possible.
Henrik B Andersson [Fri, 10 Feb 2012 12:17:40 +0000 (13:17 +0100)]
Release JNI local references as soon as possible.

The JNI layer has a fix amount (512) of jni references.
They should be released as soon as possible. In for
and while loops they can quickly reach the limit.

Change-Id: Id984345e1cc4f7aa6eb31a263b796c3da9edf773

12 years agoMerge "Fix for updating TCP buffer size when switching network type"
Robert Greenwalt [Fri, 17 Aug 2012 20:01:49 +0000 (13:01 -0700)]
Merge "Fix for updating TCP buffer size when switching network type"

12 years agoMerge "TabHost key handling corrected"
Jean-Baptiste Queru [Fri, 17 Aug 2012 17:02:49 +0000 (10:02 -0700)]
Merge "TabHost key handling corrected"

12 years agoFix for updating TCP buffer size when switching network type
Magnus Strandberg [Fri, 17 Aug 2012 09:36:55 +0000 (11:36 +0200)]
Fix for updating TCP buffer size when switching network type

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Iaa527c84f56cae108f4c7276bbed10552faaff6c

12 years agoMerge "Get rid of LOCAL_MODULE_TAGS := user"
Joe Onorato [Fri, 17 Aug 2012 07:40:49 +0000 (00:40 -0700)]
Merge "Get rid of LOCAL_MODULE_TAGS := user"

12 years agoGet rid of LOCAL_MODULE_TAGS := user
Joe Onorato [Tue, 22 May 2012 21:16:41 +0000 (14:16 -0700)]
Get rid of LOCAL_MODULE_TAGS := user

Change-Id: I1c4e67f935a7c511cda9980f4475dfd0272617a5

12 years ago[Audio]Press camera button during Http live Audio playing, then return Browser, DUT...
bxu10X [Tue, 10 Apr 2012 08:52:36 +0000 (16:52 +0800)]
[Audio]Press camera button during Http live Audio playing, then return Browser, DUT display abnormal.

When long press camera key, dispatchKeyEvent function will add control surface after the control view hide,
actually, we needn't show control view after we press camera key.

Change-Id: I45175c4eb97b3f13469cd9d8bacb295c9c5803dd
Author: Bin Xu <bxu10X@intel.com>
Signed-off-by: Bin Xu <bxu10X@intel.com>
Singed-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: 28344

12 years agoTo avoid the JNI memory leaks in video editor codes
wfeng6 [Mon, 25 Jun 2012 10:48:49 +0000 (18:48 +0800)]
To avoid the JNI memory leaks in video editor codes

There is a protential memory leak in video editor JNI codes.
When importing so many video clips, the number of local reference
will exceed 512, which will cause the Dalvik virtual machine
crash. The patch will free each local reference when it's no
longer used to avoid memory leaks.

Change-Id: Iecd986c83f05a1103641746d6d43eef0a9c5ee40
Author: Wei Feng <wei.feng@intel.com>
Signed-off-by: Wei Feng <wei.feng@intel.com>
Singed-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: 40786

12 years agoTests/RS: Add RS context check for RsBalls setAccel()
Yong Chen [Fri, 20 Jul 2012 02:35:36 +0000 (10:35 +0800)]
Tests/RS: Add RS context check for RsBalls setAccel()

mRS could be null when lock and unlock screen by pressing power key
several times, it causes RsBalls crash. Add null pointer check to fix.

Change-Id: If37dee8609420daaff17772d5194cad5531f98e6
Author: Yong Chen <yong.a.chen@intel.com>
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
Singed-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: 31271

12 years agoMerge changes Ieb566a2a,I953057cd
Kenny Root [Thu, 16 Aug 2012 23:06:29 +0000 (16:06 -0700)]
Merge changes Ieb566a2a,I953057cd

* changes:
  Use Libcore's stat instead of FileUtils#getFileStatus
  Use Libcore.os.stat instead of FileUtils

12 years agoUse Libcore's stat instead of FileUtils#getFileStatus
Kenny Root [Thu, 16 Aug 2012 18:38:04 +0000 (11:38 -0700)]
Use Libcore's stat instead of FileUtils#getFileStatus

Remove the last user of FileUtils#getFileStatus and move it to
Libcore.os.stat instead. Then we can remove the JNI code that does the
equivalent of a stat.

Change-Id: Ieb566a2a8a17c2dd0150724b4eb3ac1cc41c823d

12 years agoUse Libcore.os.stat instead of FileUtils
Kenny Root [Thu, 16 Aug 2012 18:10:58 +0000 (11:10 -0700)]
Use Libcore.os.stat instead of FileUtils

PackageManagerService just needed to know the owner for this file, so
just use stat instead so we can remove the old JNI code.

This is the last user of FileUtils#getPermissions so just remove the
FileUtils method as well.

Change-Id: I953057cd6b9de4410f33b6f22e4bddff02fe2988

12 years agoMerge "Fix Issue #35489: drm content corruption on GB"
Jean-Baptiste Queru [Thu, 16 Aug 2012 21:45:12 +0000 (14:45 -0700)]
Merge "Fix Issue #35489: drm content corruption on GB"

12 years agoMerge "Introduce a restorecon JNI binding."
Kenny Root [Thu, 16 Aug 2012 21:38:30 +0000 (14:38 -0700)]
Merge "Introduce a restorecon JNI binding."

12 years agoMerge "Remove StatFs from AndroidRuntime JNI"
Kenny Root [Thu, 16 Aug 2012 21:37:30 +0000 (14:37 -0700)]
Merge "Remove StatFs from AndroidRuntime JNI"

12 years agoRemove StatFs from AndroidRuntime JNI
Kenny Root [Thu, 16 Aug 2012 21:31:31 +0000 (14:31 -0700)]
Remove StatFs from AndroidRuntime JNI

Change-Id: I88039794cf3e4a959b37c29c67f16f2dc0751a5c

12 years agoMerge "Use libcore Posix class for StatFs implementation"
Kenny Root [Thu, 16 Aug 2012 20:37:25 +0000 (13:37 -0700)]
Merge "Use libcore Posix class for StatFs implementation"

12 years agoUse libcore Posix class for StatFs implementation
Kenny Root [Thu, 16 Aug 2012 17:43:47 +0000 (10:43 -0700)]
Use libcore Posix class for StatFs implementation

Remove some JNI and duplicated functionality and use libcore's Posix
class for the statfs function instead.

Change-Id: Ic1e161dc10c18c2c6ee81d895a0efd8910086dbf

12 years agoProviderMap: remove hashmap when entire user specific entries are removed
Vairavan Srinivasan [Thu, 16 Aug 2012 06:37:45 +0000 (23:37 -0700)]
ProviderMap: remove hashmap when entire user specific entries are removed

User specific entries in  mProvidersByNamePerUser and mProvidersByClassPerUser
isn't cleared when entire user specific providers are removed. Fix is to remove
the user specific hashmap in such cases.

Change-Id: I6edf211ced873e59f3b89ffceb9eceec13ea8f3f

12 years agoAdded check of ActivityInfo launch mode when starting activity.
Johan Viktorsson [Thu, 16 Feb 2012 16:05:16 +0000 (17:05 +0100)]
Added check of ActivityInfo launch mode when starting activity.

When starting a singleTop activity from a singleInstance activity,
the onNewIntent() callback was not called when expected. The
reason for this was that only the launchMode specified on the
intent was checked and not the launchMode specified in the manifest.

Fixes issue 17137.

Change-Id: I1a9bc1007d6f5145bf93a6161534732bf5214b7a

12 years agoMerge "Keep keyguard from starting after finished call when screen is on"
Dianne Hackborn [Wed, 15 Aug 2012 01:50:59 +0000 (18:50 -0700)]
Merge "Keep keyguard from starting after finished call when screen is on"

12 years agoKeep keyguard from starting after finished call when screen is on
Daniel Hansson [Thu, 29 Mar 2012 09:02:05 +0000 (11:02 +0200)]
Keep keyguard from starting after finished call when screen is on

Previously keyguard would start after a call ended, even though
the screen was on, if the screen had not been turned off since
phone startup.

Change-Id: I03c18a0bb2a58760614645871f4703afb9a0677d

12 years agoMerge "Added missing USB_DEVICE_ATTACHED broadcast to running Activity"
Mike Lockwood [Tue, 14 Aug 2012 02:59:38 +0000 (19:59 -0700)]
Merge "Added missing USB_DEVICE_ATTACHED broadcast to running Activity"

12 years agoMerge "Fix interface name for tethering"
Wink Saville [Mon, 13 Aug 2012 22:37:08 +0000 (15:37 -0700)]
Merge "Fix interface name for tethering"

12 years agoFix interface name for tethering
Vishal Mahaveer [Tue, 27 Mar 2012 18:06:50 +0000 (13:06 -0500)]
Fix interface name for tethering

Fix the interface name used in stopTethering

Change-Id: I3a8fb80c3c6cd382e7641d1735bff85d8a938ee9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
12 years agoFix Issue #35489: drm content corruption on GB
git-you.kim72.gmail.com [Mon, 30 Jul 2012 08:06:41 +0000 (17:06 +0900)]
Fix Issue #35489: drm content corruption on GB

If rawContent is copied into mediaBuf, readBuf is copied to wrong address.
mediaBuf should be forwarded by readBytes.

Change-Id: I4fc9c1f7f4e3d5dfe3c7e5cd92261608f6b3e248
Signed-off-by: git-you.kim72.gmail.com <you.kim72@gmail.com>
12 years agoMerge "Update preloaded-classes for JB"
Kenny Root [Mon, 13 Aug 2012 18:42:06 +0000 (11:42 -0700)]
Merge "Update preloaded-classes for JB"

12 years agoMerge "Telephony: Signal Strength cleanup & LTE support"
Wink Saville [Mon, 13 Aug 2012 18:25:49 +0000 (11:25 -0700)]
Merge "Telephony: Signal Strength cleanup & LTE support"

12 years agoMerge "Added missing viewport meta tag to html resources"
Jean-Baptiste Queru [Mon, 13 Aug 2012 17:38:23 +0000 (10:38 -0700)]
Merge "Added missing viewport meta tag to html resources"

12 years agoMerge "mediacodec: Don't crash if trying to open a codec that does not exist"
Jean-Baptiste Queru [Mon, 13 Aug 2012 16:30:11 +0000 (09:30 -0700)]
Merge "mediacodec: Don't crash if trying to open a codec that does not exist"

12 years agoMerge "Remove useless TestRunner"
Kenny Root [Mon, 13 Aug 2012 16:01:35 +0000 (09:01 -0700)]
Merge "Remove useless TestRunner"

12 years agomediacodec: Don't crash if trying to open a codec that does not exist
Martin Storsjo [Fri, 13 Jul 2012 10:01:06 +0000 (13:01 +0300)]
mediacodec: Don't crash if trying to open a codec that does not exist

Change-Id: If75e3156517993629f50622a84a9ac573fced815

12 years agoUpdate preloaded-classes for JB
SangWook Han [Sun, 12 Aug 2012 10:46:51 +0000 (19:46 +0900)]
Update preloaded-classes for JB

Change-Id: Id127308529d581c94bd2e911b637931156ce82c1

12 years agoTelephony: Signal Strength cleanup & LTE support
Uma Maheswari Ramalingam [Tue, 10 Jul 2012 20:54:10 +0000 (13:54 -0700)]
Telephony: Signal Strength cleanup & LTE support

Make signal strength parsing common for all modes

Add Support to calculate LTE
level for UI signal bar display

Update the lowest of Evdo/ CDMA dbm value
in phone status instead of using only CDMA dbm

Change-Id: I41bce658c536dc30558224c8ca76d6d70afb78ee

12 years agoRemove useless TestRunner
Kenny Root [Fri, 10 Aug 2012 19:39:15 +0000 (12:39 -0700)]
Remove useless TestRunner

InstrumentationTestRunner can enumerate the test cases to run without a
special TestRunner.

Change-Id: I5a49413440ef191f28a21034a318d9a9e3f8174b