OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Remove dead path code"
Jason Sams [Wed, 11 Mar 2015 20:55:07 +0000 (20:55 +0000)]
Merge "Remove dead path code"

9 years agoMerge "Fix context leak"
Marco Nelissen [Wed, 11 Mar 2015 18:10:04 +0000 (18:10 +0000)]
Merge "Fix context leak"

9 years agoRemove dead path code
Jason Sams [Wed, 11 Mar 2015 18:00:00 +0000 (11:00 -0700)]
Remove dead path code

This API was never shipped and the implementation
never finished.

Change-Id: I2491db216d6a7a8ea30628d791773f89da5fb4d2

9 years agoFix context leak
Marco Nelissen [Wed, 11 Mar 2015 16:59:49 +0000 (09:59 -0700)]
Fix context leak

Using an activity context with AudioManager could cause that context
to be held on to longer than desired, for example if the caller
acquired audio focus but never abandoned it. Fix acquire/abandon in
VideoView, and use the application context in AudioManager to mitigate
the issue for other misbehaving code.

Bug: https://code.google.com/p/android/issues/detail?id=152173
Change-Id: I0fb8390207422c784800dda25b1f2c03d4574bcd

9 years agoMerge "[ActivityManager] Fix index OOB when resetting removed task"
Craig Mautner [Wed, 11 Mar 2015 13:46:37 +0000 (13:46 +0000)]
Merge "[ActivityManager] Fix index OOB when resetting removed task"

9 years ago[ActivityManager] Fix index OOB when resetting removed task
riddle_hsu [Wed, 11 Mar 2015 09:09:50 +0000 (17:09 +0800)]
[ActivityManager] Fix index OOB when resetting removed task

Assume task T has an activity X lives in process P.
When P is died and before death recipient being called,
start activity with flag RESET_TASK_IF_NEEDED to bring the
existed task T.

Then scheduleResumeActivity IPC will fail and trigger start
a new process that removes task T.

That results resetTaskIfNeededLocked cannot find the task
when continuing the start flow.

Detail:
https://code.google.com/p/android/issues/detail?id=159558

Change-Id: Icc400c7a6c481a3f78657e9fb83cf0c3a17dde68

9 years agoam 6e116429: Merge "Generate gnu hash for arm only"
Dimitry Ivanov [Tue, 10 Mar 2015 17:14:53 +0000 (17:14 +0000)]
am 6e116429: Merge "Generate gnu hash for arm only"

* commit '6e116429a8d48f9c8298f15c332cd29146694d8b':
  Generate gnu hash for arm only

9 years agoMerge "Generate gnu hash for arm only"
Dimitry Ivanov [Tue, 10 Mar 2015 17:07:58 +0000 (17:07 +0000)]
Merge "Generate gnu hash for arm only"

9 years agoGenerate gnu hash for arm only
Goran Jakovljevic [Tue, 10 Mar 2015 16:26:01 +0000 (17:26 +0100)]
Generate gnu hash for arm only

Fixes build failure caused by:
https://android-review.googlesource.com/#/c/139670/

As previously discussed [1], MIPS does not support GNU-style ELF hashes.

[1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk

Change-Id: I8edb8a1595308db2ecd1bd6650a069b1224ae64f

9 years agoam 3d333c74: Merge "Fix typos in AudioManager javadoc"
Narayan Kamath [Tue, 10 Mar 2015 15:23:06 +0000 (15:23 +0000)]
am 3d333c74: Merge "Fix typos in AudioManager javadoc"

* commit '3d333c745f928ca1595aca111d9938fa3cf3e282':
  Fix typos in AudioManager javadoc

9 years agoam 2a88ff2f: Merge "Generate sysv hash for libjnigraphics"
Dmitriy Ivanov [Tue, 10 Mar 2015 15:12:46 +0000 (15:12 +0000)]
am 2a88ff2f: Merge "Generate sysv hash for libjnigraphics"

* commit '2a88ff2fe1849a3823962a2c239afdf6339fedc9':
  Generate sysv hash for libjnigraphics

9 years agoMerge "Fix typos in AudioManager javadoc"
Narayan Kamath [Tue, 10 Mar 2015 15:10:14 +0000 (15:10 +0000)]
Merge "Fix typos in AudioManager javadoc"

9 years agoFix typos in AudioManager javadoc
Eemi Haukkala [Fri, 6 Mar 2015 21:03:30 +0000 (23:03 +0200)]
Fix typos in AudioManager javadoc

The ACTION_HDMI_AUDIO_PLUG constant's description
had spelled "HDMI" as "HMDI" and was missing a
period. Fixes issue 93726.

Change-Id: Idfd5352dba022afcd81bc9e50864fc6e95c661db
Signed-off-by: Eemi Haukkala <eemi.haukkala@gmail.com>
9 years agoMerge "Generate sysv hash for libjnigraphics"
Dmitriy Ivanov [Tue, 10 Mar 2015 04:41:34 +0000 (04:41 +0000)]
Merge "Generate sysv hash for libjnigraphics"

9 years agoGenerate sysv hash for libjnigraphics
Dmitriy Ivanov [Tue, 10 Mar 2015 02:42:16 +0000 (19:42 -0700)]
Generate sysv hash for libjnigraphics

Bug: 19059885
Change-Id: I9b227fda6549e15a5ce50ac6b59250dff1371bb3

9 years agoam 7f383873: Merge "Frameworks/base: Pass APK debugability to installd"
Andreas Gampe [Tue, 10 Mar 2015 02:10:22 +0000 (02:10 +0000)]
am 7f383873: Merge "Frameworks/base: Pass APK debugability to installd"

* commit '7f383873566024c7121cadae3bbdd2a7c47150bc':
  Frameworks/base: Pass APK debugability to installd

9 years agoMerge "Frameworks/base: Pass APK debugability to installd"
Andreas Gampe [Mon, 9 Mar 2015 22:14:53 +0000 (22:14 +0000)]
Merge "Frameworks/base: Pass APK debugability to installd"

9 years agoam c7446790: Merge "ZygoteConnection: remove obsolete security checks."
dcashman [Mon, 9 Mar 2015 20:51:33 +0000 (20:51 +0000)]
am c7446790: Merge "ZygoteConnection: remove obsolete security checks."

* commit 'c74467902b5a9a7267b6cb8f30b364b8373eac72':
  ZygoteConnection: remove obsolete security checks.

9 years agoMerge "ZygoteConnection: remove obsolete security checks."
dcashman [Mon, 9 Mar 2015 20:46:17 +0000 (20:46 +0000)]
Merge "ZygoteConnection: remove obsolete security checks."

9 years agoZygoteConnection: remove obsolete security checks.
dcashman [Fri, 6 Mar 2015 01:17:47 +0000 (17:17 -0800)]
ZygoteConnection: remove obsolete security checks.

SELinux guarantees that only the system_server and permissive domains such as su
are allowed to connect to the zygote socket. Remove obsolete security checks
that were only applicable when other processes could connect.

Bug: 19624279
Change-Id: I1c925d7facf19b3953b5deb85d992415344c4c9f

9 years agoam 63d43949: Merge "Use the icu:: namespace for icu4c API."
Elliott Hughes [Mon, 9 Mar 2015 18:20:42 +0000 (18:20 +0000)]
am 63d43949: Merge "Use the icu:: namespace for icu4c API."

* commit '63d43949047eaed1cddf10bb4f666df6807618ce':
  Use the icu:: namespace for icu4c API.

9 years agoMerge "Use the icu:: namespace for icu4c API."
Elliott Hughes [Mon, 9 Mar 2015 18:10:23 +0000 (18:10 +0000)]
Merge "Use the icu:: namespace for icu4c API."

9 years agoam 14ccc26f: Merge "[ActivityManager] Skip receiver precisely."
Olawale Ogunwale [Mon, 9 Mar 2015 16:36:31 +0000 (16:36 +0000)]
am 14ccc26f: Merge "[ActivityManager] Skip receiver precisely."

* commit '14ccc26f1ce006963f1a0b7a917404aa6a0e9da1':
  [ActivityManager] Skip receiver precisely.

9 years agoMerge "[ActivityManager] Skip receiver precisely."
Olawale Ogunwale [Mon, 9 Mar 2015 16:30:52 +0000 (16:30 +0000)]
Merge "[ActivityManager] Skip receiver precisely."

9 years agoFrameworks/base: Pass APK debugability to installd
Andreas Gampe [Thu, 5 Mar 2015 21:11:46 +0000 (13:11 -0800)]
Frameworks/base: Pass APK debugability to installd

Change-Id: Id17ec72babe2ee88713a0d274eff86508de30666

9 years agoUse the icu:: namespace for icu4c API.
Elliott Hughes [Sat, 7 Mar 2015 19:00:50 +0000 (11:00 -0800)]
Use the icu:: namespace for icu4c API.

The icu guys recommend working this way, though it's not the default.
Internally Google makes this the default, and I've switched libcore
over.

Bug: 15350832
Change-Id: I038e12bea58dd089a46d0e681b5ab76cfc19d7b9

9 years agoam 7a4cb563: Merge "Frameworks/base: Remove unnecessary Pattern instance"
Andreas Gampe [Sat, 7 Mar 2015 17:13:16 +0000 (17:13 +0000)]
am 7a4cb563: Merge "Frameworks/base: Remove unnecessary Pattern instance"

* commit '7a4cb563a29f05658760739d3bc2e70bd6342174':
  Frameworks/base: Remove unnecessary Pattern instance

9 years agoam cdc19f3f: Merge "Frameworks/base: Remove unnecessary Pattern instance"
Andreas Gampe [Sat, 7 Mar 2015 17:13:09 +0000 (17:13 +0000)]
am cdc19f3f: Merge "Frameworks/base: Remove unnecessary Pattern instance"

* commit 'cdc19f3f8a20b975e8e70f4b4cce5ce2be811726':
  Frameworks/base: Remove unnecessary Pattern instance

9 years agoMerge "Frameworks/base: Remove unnecessary Pattern instance"
Andreas Gampe [Sat, 7 Mar 2015 01:03:13 +0000 (01:03 +0000)]
Merge "Frameworks/base: Remove unnecessary Pattern instance"

9 years agoFrameworks/base: Remove unnecessary Pattern instance
Andreas Gampe [Fri, 6 Mar 2015 23:53:06 +0000 (15:53 -0800)]
Frameworks/base: Remove unnecessary Pattern instance

Using a static Pattern in UriMatcher prevents compile-time
initialization.

It is also not efficient, as String.split has a fast path for simple
splits.

Bug: 19542228

Change-Id: Ie9e5bfe6da04c6d05ec10b1426d0cd136ef46ef2

9 years agoMerge "Frameworks/base: Remove unnecessary Pattern instance"
Andreas Gampe [Sat, 7 Mar 2015 00:18:44 +0000 (00:18 +0000)]
Merge "Frameworks/base: Remove unnecessary Pattern instance"

9 years agoFrameworks/base: Remove unnecessary Pattern instance
Andreas Gampe [Fri, 6 Mar 2015 23:29:06 +0000 (15:29 -0800)]
Frameworks/base: Remove unnecessary Pattern instance

Using a static Pattern in ActivityThread prevents compile-time
initialization of ActivityThread and GestureDetector, which depends
on the former.

It is also not efficient, as String.split has a fast path for simple
splits.

Bug: 19542228

Change-Id: I5bb843c08c81e0d259bb8afafa87a8467bb1730e

9 years agoam e59b7ce2: Merge "Add JIT system properties"
Mathieu Chartier [Fri, 6 Mar 2015 01:36:55 +0000 (01:36 +0000)]
am e59b7ce2: Merge "Add JIT system properties"

* commit 'e59b7ce2564a916240e561b36f4476f2d72a65c5':
  Add JIT system properties

9 years agoMerge "Add JIT system properties"
Mathieu Chartier [Fri, 6 Mar 2015 01:31:27 +0000 (01:31 +0000)]
Merge "Add JIT system properties"

9 years agoam 4b5af9bc: Merge "[RenderScript] Update the java API about Allocation copyTo &...
Miao Wang [Fri, 6 Mar 2015 01:10:38 +0000 (01:10 +0000)]
am 4b5af9bc: Merge "[RenderScript] Update the java API about Allocation copyTo & From FieldPacker"

* commit '4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245':
  [RenderScript] Update the java API about Allocation copyTo & From FieldPacker

9 years agoMerge "[RenderScript] Update the java API about Allocation copyTo & From FieldPacker"
Miao Wang [Fri, 6 Mar 2015 01:05:28 +0000 (01:05 +0000)]
Merge "[RenderScript] Update the java API about Allocation copyTo & From FieldPacker"

9 years agoAdd JIT system properties
Mathieu Chartier [Fri, 6 Mar 2015 01:00:41 +0000 (17:00 -0800)]
Add JIT system properties

Added the following runtime options.
"dalvik.vm.usejit" -> "-Xusejit:"
"dalvik.vm.jitcodecachesize" -> "-Xjitcodecachesize:"
"dalvik.vm.jitthreshold" -> "-Xjitthreshold:"

Bug: 17950037
Change-Id: I4996cdd1e34a1743d83c37069f545e6e09bccdb9

9 years agoam 8b86ee9f: Merge "[RenderScript] Add missing variable"
Miao Wang [Fri, 6 Mar 2015 01:02:23 +0000 (01:02 +0000)]
am 8b86ee9f: Merge "[RenderScript] Add missing variable"

* commit '8b86ee9fb5909a95a46907aede4d1b22b4ef3bba':
  [RenderScript] Add missing variable

9 years agoam 288e6f67: Merge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements during...
Miao Wang [Fri, 6 Mar 2015 01:01:58 +0000 (01:01 +0000)]
am 288e6f67: Merge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom."

* commit '288e6f67181ce74ec4b97b61def1b9510b1221d0':
  [RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom.

9 years ago[RenderScript] Update the java API about Allocation copyTo & From FieldPacker
Miao Wang [Thu, 5 Mar 2015 00:40:21 +0000 (16:40 -0800)]
[RenderScript] Update the java API about Allocation copyTo & From FieldPacker

Change-Id: I4e1b911d4cdfec8a841bc5a8bc615c64c50e8fc8

9 years agoMerge "[RenderScript] Add missing variable"
Miao Wang [Fri, 6 Mar 2015 00:34:51 +0000 (00:34 +0000)]
Merge "[RenderScript] Add missing variable"

9 years ago[RenderScript] Add missing variable
Miao Wang [Fri, 6 Mar 2015 00:27:15 +0000 (16:27 -0800)]
[RenderScript] Add missing variable

Change-Id: I148bab3a8c3fb360d345549401d0ed579a37e971

9 years agoMerge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyF...
Miao Wang [Thu, 5 Mar 2015 23:49:57 +0000 (23:49 +0000)]
Merge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom."

9 years agoresolved conflicts for merge of 701f9c2f to stage-aosp-master
Dan Albert [Thu, 5 Mar 2015 23:41:39 +0000 (15:41 -0800)]
resolved conflicts for merge of 701f9c2f to stage-aosp-master

Change-Id: I42e0411c0acef4b15137491ecaaed95d9b1cd0c1

9 years agoMerge "Stop using namespace std."
Dan Albert [Thu, 5 Mar 2015 23:31:41 +0000 (23:31 +0000)]
Merge "Stop using namespace std."

9 years agoam 63ab6eb2: Merge "Frameworks/base: Use ArraySet more explicitly"
Andreas Gampe [Thu, 5 Mar 2015 22:38:56 +0000 (22:38 +0000)]
am 63ab6eb2: Merge "Frameworks/base: Use ArraySet more explicitly"

* commit '63ab6eb220a2a75837d6e3d18d19cbd5dda175eb':
  Frameworks/base: Use ArraySet more explicitly

9 years agoMerge "Frameworks/base: Use ArraySet more explicitly"
Andreas Gampe [Thu, 5 Mar 2015 22:29:56 +0000 (22:29 +0000)]
Merge "Frameworks/base: Use ArraySet more explicitly"

9 years agoFrameworks/base: Use ArraySet more explicitly
Andreas Gampe [Thu, 5 Mar 2015 21:13:55 +0000 (13:13 -0800)]
Frameworks/base: Use ArraySet more explicitly

In KeySetManagerService, use ArraySet more explicitly. Avoid for-each
loops.

Collections API methods on ArraySet are not very efficient. Iterators
incur two object allocations: a helper and the actual iterator object.
During boot, about 4.5K such calls are made. Using the ArraySet more
explicitly like an ArrayList/array avoids the overhead.

Bug: 19617481
Change-Id: I25df334fa1d4be3210667fb1404e3c43f2585049

9 years agoam 6695b992: Merge "Frameworks/base: Add removeAll for ArraySet"
Andreas Gampe [Thu, 5 Mar 2015 17:15:58 +0000 (17:15 +0000)]
am 6695b992: Merge "Frameworks/base: Add removeAll for ArraySet"

* commit '6695b9920d15f8d9a17d6b0c66b863d1c2e38584':
  Frameworks/base: Add removeAll for ArraySet

9 years agoMerge "Frameworks/base: Add removeAll for ArraySet"
Andreas Gampe [Thu, 5 Mar 2015 17:10:30 +0000 (17:10 +0000)]
Merge "Frameworks/base: Add removeAll for ArraySet"

9 years agoam 165c2564: Merge "Manually add SignalStrength to preloaded-classes"
Brian Carlstrom [Thu, 5 Mar 2015 06:22:18 +0000 (06:22 +0000)]
am 165c2564: Merge "Manually add SignalStrength to preloaded-classes"

* commit '165c25641ccedf6447d09dfec00f485df1361c35':
  Manually add SignalStrength to preloaded-classes

9 years agoMerge "Manually add SignalStrength to preloaded-classes"
Brian Carlstrom [Thu, 5 Mar 2015 06:15:53 +0000 (06:15 +0000)]
Merge "Manually add SignalStrength to preloaded-classes"

9 years agoManually add SignalStrength to preloaded-classes
Brian Carlstrom [Thu, 5 Mar 2015 05:56:26 +0000 (21:56 -0800)]
Manually add SignalStrength to preloaded-classes

Bug: 19323020
Change-Id: I61e9d2dd5d06fe2353da17e5646f259122e5ea98

9 years agoFrameworks/base: Add removeAll for ArraySet
Andreas Gampe [Thu, 5 Mar 2015 01:14:10 +0000 (17:14 -0800)]
Frameworks/base: Add removeAll for ArraySet

Add a simple ArraySet.removeAll(ArraySet) method. This avoids two
allocations, a MapCollections helper and an Iterator object, over
the removeAll(Collection) code.

KeySetManagerService heavily calls removeAll during boot (about 9K
times in AOSP). This reduces GC stress and optimizes the removal
(about half the time the removed collection has only one element).
The removal method in KeySetManagerService is also done under a lock,
so that it gates parallelization efforts in PackageManagerService.

Bug: 19498314
Change-Id: Ib0e483adfd09831cd66ab19a820ebf6544a2b66f

9 years ago[RenderScript] AutoPadding & Unpadding for Vec3 Elements during
Miao Wang [Mon, 2 Mar 2015 23:15:15 +0000 (15:15 -0800)]
[RenderScript] AutoPadding & Unpadding for Vec3 Elements during
copyTo & copyFrom.

Change-Id: I10b6fb235717e181ebb30b92e4dbe23e6183a29c

9 years agoStop using namespace std.
Dan Albert [Wed, 4 Mar 2015 21:54:20 +0000 (13:54 -0800)]
Stop using namespace std.

The pattern of #include and using namespace std here fails to build
with GCC. At first glance it's a GCC bug rather than libc++ doing
something wrong. Regardless, it can be worked around by just
specifying std:: where appropriate.

Bug: 19606303
Change-Id: I5652682eae7ca7559cf2a9307909859013440781

9 years ago[ActivityManager] Skip receiver precisely.
riddle_hsu [Wed, 4 Mar 2015 09:27:05 +0000 (17:27 +0800)]
[ActivityManager] Skip receiver precisely.

Symptom:
Report broadcast ANR on a dead process.

Detail and sample:
http://code.google.com/p/android/issues/detail?id=158329

Root cause:
app.curReceiver can only remember the last running.
If an application is both receiving FG and BG broadcast,
only one of queue can discard, the remain one will still
count as timeout.

Solution:
Select the skip-tartget-receiver by comparing the skipping app
to the first record of mOrderedBroadcasts of each broadcast queues.

Change-Id: Ic68d56f21b417a34f2d30d64ecfbed09c5e1764d

9 years agoam 56fde9e7: Merge "SELinuxPolicyInstallReceiver: Prevent partial or mixed policy...
Nick Kralevich [Tue, 3 Mar 2015 17:02:22 +0000 (17:02 +0000)]
am 56fde9e7: Merge "SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates."

* commit '56fde9e70ef850ca7e3f076e52567f5c75b5e7da':
  SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates.

9 years agoMerge "SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates."
Nick Kralevich [Tue, 3 Mar 2015 16:55:09 +0000 (16:55 +0000)]
Merge "SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates."

9 years agoam 75666e90: Merge "Revert "Add potential future APIs for postmessage""
Selim Gurun [Tue, 3 Mar 2015 02:20:57 +0000 (02:20 +0000)]
am 75666e90: Merge "Revert "Add potential future APIs for postmessage""

* commit '75666e9054d97a9daecd5648f71414406413c6d9':
  Revert "Add potential future APIs for postmessage"

9 years agoMerge "Revert "Add potential future APIs for postmessage""
Selim Gurun [Tue, 3 Mar 2015 02:13:40 +0000 (02:13 +0000)]
Merge "Revert "Add potential future APIs for postmessage""

9 years agoRevert "Add potential future APIs for postmessage"
Selim Gurun [Tue, 3 Mar 2015 01:54:25 +0000 (01:54 +0000)]
Revert "Add potential future APIs for postmessage"

This reverts commit 37bd8907cb94be69c9bd4c308e49c38524e87269.

Change-Id: Iaa9356b95859846ce9c3209d3d1bcfc800d2ff93

9 years agoam caa8a8fb: Merge "[Renderscript] JAVA API update for Allocation.CopyTo add the...
Miao Wang [Tue, 3 Mar 2015 01:11:18 +0000 (01:11 +0000)]
am caa8a8fb: Merge "[Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom()."

* commit 'caa8a8fb9849f1d44ffab3117950ac1e7b02cd4d':
  [Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom().

9 years agoMerge "[Renderscript] JAVA API update for Allocation.CopyTo add the following functio...
Miao Wang [Tue, 3 Mar 2015 00:57:47 +0000 (00:57 +0000)]
Merge "[Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom()."

9 years agoam 514e0801: Merge "Fix crash when updating adapter offsets."
Jason Sams [Tue, 3 Mar 2015 00:03:58 +0000 (00:03 +0000)]
am 514e0801: Merge "Fix crash when updating adapter offsets."

* commit '514e0801cc95c9827d220104317e1fe45f396b94':
  Fix crash when updating adapter offsets.

9 years agoMerge "Fix crash when updating adapter offsets."
Jason Sams [Mon, 2 Mar 2015 23:57:11 +0000 (23:57 +0000)]
Merge "Fix crash when updating adapter offsets."

9 years agoam 9fc8356b: Merge "Add potential future APIs for postmessage"
Selim Gurun [Mon, 2 Mar 2015 23:07:36 +0000 (23:07 +0000)]
am 9fc8356b: Merge "Add potential future APIs for postmessage"

* commit '9fc8356baa7816a13e0c140788ccf67301cbd28d':
  Add potential future APIs for postmessage

9 years agoMerge "Add potential future APIs for postmessage"
Selim Gurun [Mon, 2 Mar 2015 23:02:11 +0000 (23:02 +0000)]
Merge "Add potential future APIs for postmessage"

9 years agoAdd potential future APIs for postmessage
Selim Gurun [Mon, 2 Mar 2015 21:59:56 +0000 (13:59 -0800)]
Add potential future APIs for postmessage

Bug: 10237116

The APIs are hidden while work is ongoing.

Change-Id: I3e2f06d6e41af276171b127f06bdd74924c2e74c

9 years agoSELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates.
Stephen Smalley [Fri, 27 Feb 2015 19:35:53 +0000 (14:35 -0500)]
SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates.

The current SELinuxPolicyInstallReceiver logic can yield a partial
or mixed (old and new) set of policy files under /data/security/current
if there is an error or a crash at certain points before completing
the installation of the update.

Rewrite the logic to avoid the possibility of such partial or mixed
policy updates by using rename on the entire directory of policy
files rather than operating on a per-file basis.  Also separate
the extraction of the policy files from the bundle into their own
temporary directory.  Make sure we delete any previous temporary directory
or backup directory before using them for this update.  Drop the
use of a symlink for /data/security/current altogether; it provides
no benefit.

Change-Id: I564af01c2c3ca1531c216013b8724c7511f32de8
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoam a891d08d: Merge "jni: Add paranoia regarding android_logger_list_read"
Mark Salyzyn [Fri, 27 Feb 2015 18:52:36 +0000 (18:52 +0000)]
am a891d08d: Merge "jni: Add paranoia regarding android_logger_list_read"

* commit 'a891d08dad829c9aacd29bd2c3b36debe3fc1cc3':
  jni: Add paranoia regarding android_logger_list_read

9 years agoMerge "jni: Add paranoia regarding android_logger_list_read"
Mark Salyzyn [Fri, 27 Feb 2015 18:46:04 +0000 (18:46 +0000)]
Merge "jni: Add paranoia regarding android_logger_list_read"

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:32:48 +0000 (00:32 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:32:29 +0000 (00:32 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:28:53 +0000 (16:28 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id83bfa16ba15aaa1f901547117c114490f4035fa
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:26:53 +0000 (16:26 -0800)]
Import translations. DO NOT MERGE

Change-Id: I030ed9725292854138dabb8c6d9b67e5a7ef0aa6
Auto-generated-cl: translation import

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:20:50 +0000 (00:20 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:20:26 +0000 (00:20 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:18:09 +0000 (16:18 -0800)]
Import translations. DO NOT MERGE

Change-Id: I12dd7931cbe95c7dfb4c9c468e19a25bcd780324
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:16:10 +0000 (16:16 -0800)]
Import translations. DO NOT MERGE

Change-Id: I69d645539c36b3915e43eaa0d7b190bc6d559840
Auto-generated-cl: translation import

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:15:41 +0000 (00:15 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:14:09 +0000 (16:14 -0800)]
Import translations. DO NOT MERGE

Change-Id: Idb623a7515bd47274efcd49cc7f9182296213202
Auto-generated-cl: translation import

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:13:07 +0000 (00:13 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:12:53 +0000 (00:12 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:12:31 +0000 (00:12 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:11:44 +0000 (00:11 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:10:51 +0000 (00:10 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
Geoff Mendal [Fri, 27 Feb 2015 00:10:10 +0000 (00:10 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:08:40 +0000 (16:08 -0800)]
Import translations. DO NOT MERGE

Change-Id: I1a8de3ff34e0661702038b8f006f920c5ca3ba27
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:04:59 +0000 (16:04 -0800)]
Import translations. DO NOT MERGE

Change-Id: I333284d756efb9b6f22577b047e95fde5a27ff71
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Feb 2015 00:02:59 +0000 (16:02 -0800)]
Import translations. DO NOT MERGE

Change-Id: I59953f8c826f975cd602346307300d124b884a1c
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 26 Feb 2015 23:59:12 +0000 (15:59 -0800)]
Import translations. DO NOT MERGE

Change-Id: I893f1ac696506a8a96a1e447b3851ed3bf51c31c
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 26 Feb 2015 23:57:08 +0000 (15:57 -0800)]
Import translations. DO NOT MERGE

Change-Id: I5fb0da094aa109b970f333aea78b0366f2f5eb2c
Auto-generated-cl: translation import

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 26 Feb 2015 23:54:57 +0000 (15:54 -0800)]
Import translations. DO NOT MERGE

Change-Id: I654168fbbcd5fe9371390f2d673561ce1e5c9c89
Auto-generated-cl: translation import

9 years agojni: Add paranoia regarding android_logger_list_read
Mark Salyzyn [Thu, 26 Feb 2015 22:43:04 +0000 (14:43 -0800)]
jni: Add paranoia regarding android_logger_list_read

Change-Id: Ic52be201ec7efaef6a385aaf8ea523554aa06f22

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 26 Feb 2015 20:53:29 +0000 (12:53 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ic79aace8bc91318a1d637c834ae3176ee221bead
Auto-generated-cl: translation import

9 years agoam 8cba382f: Merge "Bad month value in DatePicker in Calendar Mode"
Narayan Kamath [Thu, 26 Feb 2015 17:49:19 +0000 (17:49 +0000)]
am 8cba382f: Merge "Bad month value in DatePicker in Calendar Mode"

* commit '8cba382f04e4ead4a6b8c4a74216ddb383e8db91':
  Bad month value in DatePicker in Calendar Mode

9 years agoMerge "Bad month value in DatePicker in Calendar Mode"
Narayan Kamath [Thu, 26 Feb 2015 17:42:22 +0000 (17:42 +0000)]
Merge "Bad month value in DatePicker in Calendar Mode"

9 years agoBad month value in DatePicker in Calendar Mode
You Kim [Thu, 26 Feb 2015 10:06:16 +0000 (19:06 +0900)]
Bad month value in DatePicker in Calendar Mode

Calendar MONTH field is zero based. Use predefined month.

Change-Id: I957bf385dc8e877e8698dacad68808f4d9d8a6d0

9 years agoFix crash when updating adapter offsets.
Jason Sams [Thu, 26 Feb 2015 00:42:00 +0000 (16:42 -0800)]
Fix crash when updating adapter offsets.

Change-Id: I0a6923e387f9743a06cc2c4c67995a79789d4cdd