OSDN Git Service

android-x86/frameworks-base.git
11 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

11 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"

11 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"

11 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."

11 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."

11 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"

11 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"

11 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"

11 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>
11 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

11 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>
11 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"

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

11 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

11 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"

11 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"

11 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"

11 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

11 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

11 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>
11 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"

11 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"

11 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"

11 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."

11 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

11 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"

11 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()"

11 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"

11 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"

11 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"

11 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

11 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."

11 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"

11 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>
11 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

11 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

11 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

11 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

11 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"

11 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"

11 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

11 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"

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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"

11 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."

11 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"

11 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

11 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"

11 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

11 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 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

12 years agoChange StringTokenizer to TextUtils.StringSplitter
Ali Utku Selen [Wed, 9 Feb 2011 13:11:22 +0000 (14:11 +0100)]
Change StringTokenizer to TextUtils.StringSplitter

Replacing StringTokenizer to TextUtils.StringSplitter,
since TextUtils.StringSplitter is more suitable for basic splitting tasks.
Also increased initial values for HashMap and StringBuilders to avoid
unnecessary buffer enlargement operations. This improves the performance
of these operations.

Change-Id: If9a5b68e6596ba9a6d29597876b6164ef34b57ac

12 years agoMerge "StorageManager: fix issue that GREF has increased to 2011 in system server...
Jean-Baptiste Queru [Fri, 10 Aug 2012 16:04:05 +0000 (09:04 -0700)]
Merge "StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test."

12 years agoMerge "MtpStorage: correct the size of reserve space for MTP"
Jean-Baptiste Queru [Fri, 10 Aug 2012 16:03:41 +0000 (09:03 -0700)]
Merge "MtpStorage: correct the size of reserve space for MTP"

12 years agoMerge "Telephony: Dynamically instantiate IccCard"
Wink Saville [Wed, 8 Aug 2012 23:36:34 +0000 (16:36 -0700)]
Merge "Telephony: Dynamically instantiate IccCard"

12 years agoWifiWatchdog: handle exception from ArpPeer
Andrii Beregovenko [Wed, 8 Aug 2012 15:23:55 +0000 (18:23 +0300)]
WifiWatchdog: handle exception from ArpPeer

Sometimes IllegalArgumantException can happen in constructor of ArpPeer
class when IPv6 address is provided. This causes crash of systemserver.

Fixing it by adding appropriate exception handler

Change-Id: I4bb7bbca790745a1bf56ece96dd91b84b1f70cad
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
12 years agoMerge "Return early when checking divider before child zero."
Jean-Baptiste Queru [Wed, 8 Aug 2012 20:20:07 +0000 (13:20 -0700)]
Merge "Return early when checking divider before child zero."

12 years agoMerge "Fix SurfaceView notifies on invalid surfaces."
Jean-Baptiste Queru [Wed, 8 Aug 2012 20:19:59 +0000 (13:19 -0700)]
Merge "Fix SurfaceView notifies on invalid surfaces."

12 years agoMerge "Add shortcut to avoid potential divide by zero in some case"
Jean-Baptiste Queru [Wed, 8 Aug 2012 20:17:25 +0000 (13:17 -0700)]
Merge "Add shortcut to avoid potential divide by zero in some case"

12 years agoMerge "Fix wrong count return for getPhoneSignalStrengthCount"
Jean-Baptiste Queru [Wed, 8 Aug 2012 19:59:05 +0000 (12:59 -0700)]
Merge "Fix wrong count return for getPhoneSignalStrengthCount"

12 years agoMerge "StrictMode.permitCustomSlowCalls() should call disable(DETECT_CUSTOM)"
Jean-Baptiste Queru [Wed, 8 Aug 2012 19:06:26 +0000 (12:06 -0700)]
Merge "StrictMode.permitCustomSlowCalls() should call disable(DETECT_CUSTOM)"

12 years agoMerge "mediacodec: Don't suggest calling getOutputFormat() immediately"
Jean-Baptiste Queru [Wed, 8 Aug 2012 19:06:02 +0000 (12:06 -0700)]
Merge "mediacodec: Don't suggest calling getOutputFormat() immediately"

12 years agoMerge "Normalize output from aapt d xmltree"
Jean-Baptiste Queru [Wed, 8 Aug 2012 18:21:28 +0000 (11:21 -0700)]
Merge "Normalize output from aapt d xmltree"

12 years agoMerge "Fix cursor memory leak"
Jean-Baptiste Queru [Wed, 8 Aug 2012 17:44:50 +0000 (10:44 -0700)]
Merge "Fix cursor memory leak"

12 years agoMerge "Adds missing Bluetooth as network type."
Jean-Baptiste Queru [Wed, 8 Aug 2012 17:43:20 +0000 (10:43 -0700)]
Merge "Adds missing Bluetooth as network type."

12 years agoTelephony: Dynamically instantiate IccCard
Alex Yakavenka [Wed, 8 Aug 2012 17:30:11 +0000 (10:30 -0700)]
Telephony: Dynamically instantiate IccCard

Add required constant for Dct

Change-Id: I61cafee25cb40fe7de606a78566f93dfee523c73

12 years agoMerge "Fewer warnings in aidl generated code."
Elliott Hughes [Tue, 7 Aug 2012 19:19:22 +0000 (12:19 -0700)]
Merge "Fewer warnings in aidl generated code."

12 years agoFewer warnings in aidl generated code.
Elliott Hughes [Tue, 7 Aug 2012 17:34:02 +0000 (10:34 -0700)]
Fewer warnings in aidl generated code.

Bug: http://code.google.com/p/android/issues/detail?id=19196
Change-Id: If054e60c19dc73fe32f55d0fa1054309565a6de6

12 years agoMtpStorage: correct the size of reserve space for MTP
bo huang [Mon, 6 Aug 2012 05:16:57 +0000 (13:16 +0800)]
MtpStorage: correct the size of reserve space for MTP

According to description in frameworks/base/core/res/res/xml/storage_list.xml,
"mtpReserve: (integer) number of megabytes of storage MTP should reserve for free storage".
Mtpstorage class use it directly and doesn't change it to correct size in megabyes.
Mtp initor can not get correct storage information from android.

Change-Id: Icf59eb1eb478e67ea5990be96a9decb41aa55504
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
Signed-off-by: Jack Ren<jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoStorageManager: fix issue that GREF has increased to 2011 in system server with intel...
Chuanxia Dong [Tue, 29 May 2012 04:28:24 +0000 (12:28 +0800)]
StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test.

Issue description:
When run ICS stress test, always meet GREF issue. one of contributor is MountService$MountServiceBinderListener.
log info
19:21:11.609   222 24316 W dalvikvm:        24 of com.android.server.am.ActivityManagerService$AppDeathRecipient (24 unique instances)
19:21:11.609   222 24316 W dalvikvm:       479 of com.android.server.MountService$MountServiceBinderListener (479 unique instances)
19:21:11.619   222 24316 W dalvikvm:         7 of com.android.server.accessibility.AccessibilityManagerService$6 (7 unique instances)
Note: PID 222 is system server.

Issue alaysis:
Everyone can call getSystemService(Context.STORAGE_SERVICE) to get service.
When other service get StorageManager, StorageManager will new MountServiceBinderLister and
register a listener in MountService, which won't be unregistered. It's easy to generate a lot of
instance of unused MountService$MountServiceBinderListener in system server.

Issue fix:
So change the policy to be:
1. Doesn't new MountServiceBinderLister in construction.
2. when other service needs to register listener in StorageManager,
StorageManager will register listener with MountService.
3. When other service needs to unregister listener in StorageManager,
if there is no more other listeners in StorageManager, StorageManager
will unregister listener in MountService.

Change-Id: Iaaf889f44a1a5f62b9f65b3ab1b486c9b7dcaf7f
Author: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoMerge "Telephony: Move AdnRecord.aidl into opt/telephony"
Wink Saville [Sat, 4 Aug 2012 14:54:35 +0000 (07:54 -0700)]
Merge "Telephony: Move AdnRecord.aidl into opt/telephony"

12 years agoMerge "show 3G icon for CDMA/1xRTT"
Wink Saville [Sat, 4 Aug 2012 14:51:26 +0000 (07:51 -0700)]
Merge "show 3G icon for CDMA/1xRTT"

12 years agoTelephony: Move AdnRecord.aidl into opt/telephony
Alex Yakavenka [Fri, 3 Aug 2012 17:42:41 +0000 (10:42 -0700)]
Telephony: Move AdnRecord.aidl into opt/telephony

Change-Id: Ib22f3e777f1cd39fb6da5b907bcec57c2c66ce3a

12 years agoshow 3G icon for CDMA/1xRTT
Madan Ankapura [Fri, 3 Aug 2012 02:10:22 +0000 (19:10 -0700)]
show 3G icon for CDMA/1xRTT

when config_showMin3G is enabled to true in a CDMA device

Change-Id: I79a4fa200dc406fc7f9f4527165046541961ef69
Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
12 years agoSystemUI: Fix data activity overlay not being removed when data is disabled
Pawit Pornkitprasan [Tue, 3 Apr 2012 03:43:54 +0000 (10:43 +0700)]
SystemUI: Fix data activity overlay not being removed when data is disabled

If mobile data connection is disabled while there is active data
activity, the data activity overlay will not be removed and will
be stuck there. This patch fixes that.

Change-Id: I4cc1a14bb2e2d85687752657608e5989adfe9af1

12 years agoMerge "Change KeyStore to use Modified UTF-8 to match NativeCrypto"
Brian Carlstrom [Wed, 1 Aug 2012 23:30:53 +0000 (16:30 -0700)]
Merge "Change KeyStore to use Modified UTF-8 to match NativeCrypto"

12 years agoChange KeyStore to use Modified UTF-8 to match NativeCrypto
Brian Carlstrom [Tue, 31 Jul 2012 01:44:29 +0000 (18:44 -0700)]
Change KeyStore to use Modified UTF-8 to match NativeCrypto

Bug: http://code.google.com/p/android/issues/detail?id=35141
Bug: 6869713

Change-Id: I61cb309786960072148ef97ea5afedb33dc45f4e

12 years agoMerge "Improve test key names to reproduce public issue"
Brian Carlstrom [Wed, 1 Aug 2012 22:06:35 +0000 (15:06 -0700)]
Merge "Improve test key names to reproduce public issue"

12 years agoMerge "Telephony: Add HSPAP to getTcpBufferSizesPropName"
Robert Greenwalt [Wed, 1 Aug 2012 18:01:21 +0000 (11:01 -0700)]
Merge "Telephony: Add HSPAP to getTcpBufferSizesPropName"

12 years agoMerge " Fix preload classname for phone policy."
Adam Powell [Mon, 30 Jul 2012 17:46:11 +0000 (10:46 -0700)]
Merge " Fix preload classname for phone policy."