OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Make SurfaceView layers captured by screenshotApplications()"
Craig Mautner [Thu, 21 Nov 2013 16:45:28 +0000 (16:45 +0000)]
Merge "Make SurfaceView layers captured by screenshotApplications()"

10 years agoMake SurfaceView layers captured by screenshotApplications()
Sangkyu Lee [Thu, 21 Nov 2013 06:20:33 +0000 (15:20 +0900)]
Make SurfaceView layers captured by screenshotApplications()

Since SurfaceView layers are located below application layers,
SurfaceView is not captured by screenshotApplications()
when the application is running in fullscreen.

Moreover, ws.isFullscreen(dw, dh) returns mostly true
on the devices which do not use the navigation bar.

Change-Id: Ia1036c79054950384a97504714929fd85c8147de
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
10 years agoMerge "Use index in SparseArray access properly"
Dianne Hackborn [Fri, 15 Nov 2013 00:33:20 +0000 (00:33 +0000)]
Merge "Use index in SparseArray access properly"

10 years agoMerge "Fix for the invalid Global Proxy Setting"
Robert Greenwalt [Thu, 14 Nov 2013 00:23:04 +0000 (00:23 +0000)]
Merge "Fix for the invalid Global Proxy Setting"

10 years agoMerge "Fix a JNI local reference leak in JNIMediaPlayerListener::notify."
Elliott Hughes [Wed, 13 Nov 2013 23:18:00 +0000 (23:18 +0000)]
Merge "Fix a JNI local reference leak in JNIMediaPlayerListener::notify."

10 years agoFix a JNI local reference leak in JNIMediaPlayerListener::notify.
Elliott Hughes [Wed, 13 Nov 2013 23:10:40 +0000 (15:10 -0800)]
Fix a JNI local reference leak in JNIMediaPlayerListener::notify.

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

10 years agoMerge "Fix NPE in ConnectivityService"
Robert Greenwalt [Wed, 13 Nov 2013 18:22:26 +0000 (18:22 +0000)]
Merge "Fix NPE in ConnectivityService"

10 years agoFix NPE in ConnectivityService
Ken Mixter [Fri, 8 Nov 2013 06:08:24 +0000 (22:08 -0800)]
Fix NPE in ConnectivityService

Could occur when requestRouteToHostAddress is called on a network
with no associated tracker.  Code later in the method handles
this case gracefully but code introduced in JB throws an exception.

Change-Id: I6c8a0e313ecbcca120aeb5dd0802a72114749aa1

10 years agoUse index in SparseArray access properly
Igor Chernyshev [Wed, 13 Nov 2013 02:56:21 +0000 (18:56 -0800)]
Use index in SparseArray access properly

The original code was calling get() rather than valueAt(),
treating index as if it was a key.

Change-Id: I52539dfcb49b3d2ee3cb027d38c50b46f73b5ee7
Signed-off-by: Igor Chernyshev <igorc@google.com>
10 years agoFix for the invalid Global Proxy Setting
Raj Mamadgi [Mon, 11 Nov 2013 21:52:58 +0000 (13:52 -0800)]
Fix for the invalid Global Proxy Setting

b/11598568

Adding validation for Global Proxy setting before it is
being set.

Proxy is validated at the boot time also to make sure
the value set is valid.

Change-Id: Ib93d24a80af1a329694f07c47bd81dfcc1e1b874
Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
10 years agoMerge "Fix libinput to build with uapi headers."
Elliott Hughes [Tue, 12 Nov 2013 22:38:50 +0000 (22:38 +0000)]
Merge "Fix libinput to build with uapi headers."

10 years agoFix libinput to build with uapi headers.
Elliott Hughes [Tue, 12 Nov 2013 21:16:37 +0000 (13:16 -0800)]
Fix libinput to build with uapi headers.

Bug: 11559337
Change-Id: I00ca91162de7cd42e03df23bbe4208e169b2ebfe

10 years agoMerge "Remove incorrect (and unused) capget code."
Elliott Hughes [Fri, 8 Nov 2013 07:01:43 +0000 (07:01 +0000)]
Merge "Remove incorrect (and unused) capget code."

10 years agoRemove incorrect (and unused) capget code.
Elliott Hughes [Fri, 8 Nov 2013 01:21:03 +0000 (17:21 -0800)]
Remove incorrect (and unused) capget code.

Note that if you revert this change, the code it removes is incorrect,
and doesn't handle the top 32 bits of capabilities, one of which we're
already using: CAP_BLOCK_SUSPEND.

Bug: 11508244
Change-Id: Ice1f51334bce4941c6d24d6016450a2ebcf92886

10 years agoMerge "Update the layer's alpha value upon composition of the layer"
Chris Craik [Wed, 6 Nov 2013 01:05:54 +0000 (01:05 +0000)]
Merge "Update the layer's alpha value upon composition of the layer"

10 years agoUpdate the layer's alpha value upon composition of the layer
Digish Pandya [Mon, 4 Nov 2013 01:00:25 +0000 (06:30 +0530)]
Update the layer's alpha value upon composition of the layer

Fixes: This patch makes sure that the layer's alpha value is
up-to-date and does not reflect the previous view's alpha value.
it fixes the square block on marquee fading edge when text view
is applied transparency.

Change-Id: I110649db72a75fecc02ba56c201a05773f80328c

10 years agoMerge "Treat UnsatisfiedLinkError as non-fatal"
Brian Carlstrom [Mon, 4 Nov 2013 18:06:36 +0000 (18:06 +0000)]
Merge "Treat UnsatisfiedLinkError as non-fatal"

10 years agoTreat UnsatisfiedLinkError as non-fatal
Brian Carlstrom [Mon, 4 Nov 2013 06:47:11 +0000 (22:47 -0800)]
Treat UnsatisfiedLinkError as non-fatal

Bug: 11466297

(cherry picked from commit e92f19e58caa05f5f4086d12a6396116ce6182aa)

Change-Id: I449474078b9f465f1da26a27bf96f9c35d2bb2fc

10 years agoMerge "Remove parentheses around return statement"
Christopher Tate [Wed, 30 Oct 2013 19:19:29 +0000 (19:19 +0000)]
Merge "Remove parentheses around return statement"

10 years agoRemove parentheses around return statement
Taeho Kim [Wed, 30 Oct 2013 11:13:59 +0000 (20:13 +0900)]
Remove parentheses around return statement

Removed parentheses around return statement in drag-n-drop sample,
which is not part of the Android style.

Change-Id: I09701829b277f2aa84b1fff1c7a8ea8241bdc578
Signed-off-by: Taeho Kim <jyte82@gmail.com>
10 years agoMerge "Always initialize local boolean variables when possible"
Elliott Hughes [Tue, 29 Oct 2013 23:58:29 +0000 (23:58 +0000)]
Merge "Always initialize local boolean variables when possible"

10 years agoAlways initialize local boolean variables when possible
Michael Wright [Tue, 29 Oct 2013 20:24:41 +0000 (13:24 -0700)]
Always initialize local boolean variables when possible

It's currently possible to reference deviceModeChanged in InputReader
while it's in an unknown state. Change the style of initialization
here and a few other places to better prevent this type of error.

(cherry-pick of f583d0dcc6e5c1968c472c844f6c8fbbe036ad78.)

Bug: 11433748
Change-Id: Ic450ca4afe50987b022db9d20bb1cb18ccf060cc

10 years agoMerge "Fixed Drag-and-Drop sample code"
Christopher Tate [Tue, 29 Oct 2013 22:02:06 +0000 (22:02 +0000)]
Merge "Fixed Drag-and-Drop sample code"

10 years agoMerge "Memory leak in IInputMethodSessionWrapper executeMessage"
Jeff Brown [Tue, 29 Oct 2013 21:01:13 +0000 (21:01 +0000)]
Merge "Memory leak in IInputMethodSessionWrapper executeMessage"

10 years agoMerge "handle negative temperature"
Jeff Brown [Tue, 29 Oct 2013 20:59:37 +0000 (20:59 +0000)]
Merge "handle negative temperature"

10 years agoMerge "Fix a variety of small publicly-reported bugs."
Elliott Hughes [Tue, 29 Oct 2013 20:30:27 +0000 (20:30 +0000)]
Merge "Fix a variety of small publicly-reported bugs."

10 years agoFix a variety of small publicly-reported bugs.
Elliott Hughes [Tue, 29 Oct 2013 20:12:55 +0000 (13:12 -0700)]
Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a

10 years agoMerge "Fix SSLCertificateSocketFactory.getDefaultCipherSuites."
Alex Klyubin [Tue, 29 Oct 2013 15:47:33 +0000 (15:47 +0000)]
Merge "Fix SSLCertificateSocketFactory.getDefaultCipherSuites."

10 years agoFixed Drag-and-Drop sample code
Taeho Kim [Thu, 17 Oct 2013 01:43:06 +0000 (10:43 +0900)]
Fixed Drag-and-Drop sample code

Fixed some erros in 'Responding to drag events' sample code on
http://developer.android.com/guide/topics/ui/drag-drop.html

Changed View.OnDragEventListener to View.OnDragListener,
deleted brace start('{') after DragEvent.ACTION_DRAG_ENTERED which
does not have matching ends, and removed 'break' on each case in
swich statement which causes 'Unreachable code' error.
Added return statement at the 'default' case, so that onDrag() method
can return value in all case.

Change-Id: I7d2335f5c405626e3f0cff275b52818762c84634
Signed-off-by: Taeho Kim <jyte82@gmail.com>
10 years agoFix SSLCertificateSocketFactory.getDefaultCipherSuites.
Alex Klyubin [Mon, 28 Oct 2013 23:16:38 +0000 (16:16 -0700)]
Fix SSLCertificateSocketFactory.getDefaultCipherSuites.

The method was returning all supported cipher suites instead of the
default ones only. The default list of cipher suites actually used by
sockets created by this factory is not affected by this issue.

Change-Id: I2e4d7c6547fcb29ff7a0943bc8791706cc8d22bc

10 years agoMerge "Removed duplicate items on table of contents"
Kenny Root [Mon, 21 Oct 2013 17:27:33 +0000 (17:27 +0000)]
Merge "Removed duplicate items on table of contents"

10 years agoMerge "Fix typo for radio technology"
Wink Saville [Mon, 21 Oct 2013 15:58:33 +0000 (15:58 +0000)]
Merge "Fix typo for radio technology"

10 years agoFix typo for radio technology
Sungmin Choi [Sun, 20 Oct 2013 00:26:11 +0000 (17:26 -0700)]
Fix typo for radio technology

Change-Id: I792517f4c3aa568b014d6c2bc0023ce5255f8abb

10 years agoMerge "Fix whitespace issues after casts."
Elliott Hughes [Fri, 18 Oct 2013 18:05:26 +0000 (18:05 +0000)]
Merge "Fix whitespace issues after casts."

10 years agoFix whitespace issues after casts.
Mathieu Chartier [Fri, 18 Oct 2013 18:04:11 +0000 (11:04 -0700)]
Fix whitespace issues after casts.

Change-Id: Ief3e50fbedd193e22509aac783f16ba1288908de

10 years agoMerge "Remove dependency on jniGetNonMovableArrayElements."
Elliott Hughes [Fri, 18 Oct 2013 18:01:12 +0000 (18:01 +0000)]
Merge "Remove dependency on jniGetNonMovableArrayElements."

10 years agoRemove dependency on jniGetNonMovableArrayElements.
Mathieu Chartier [Fri, 18 Oct 2013 01:16:42 +0000 (18:16 -0700)]
Remove dependency on jniGetNonMovableArrayElements.

jniGetNonMovableArrayElements is not safe and is going to be deleted.

Change-Id: I6daae1e4ac9e01ca593cda522fdbeb774eef1eff
(cherry picked from commit 75a5038849cecf38aba72721272ff07cca09501f)

10 years agoRemoved duplicate items on table of contents
Taeho Kim [Thu, 17 Oct 2013 02:10:19 +0000 (11:10 +0900)]
Removed duplicate items on table of contents

Removed duplicate, broken item in 'in this document' on Performance Tips (http://developer.android.com/traning/articles/perf-tips.html)

Change-Id: I499d9bb314fa471e6d2c0590f59c2f71077c00b8
Signed-off-by: Taeho Kim <jyte82@gmail.com>
10 years agoMerge "Remove direct reference to X509CertImpl"
Kenny Root [Mon, 14 Oct 2013 20:59:46 +0000 (20:59 +0000)]
Merge "Remove direct reference to X509CertImpl"

10 years agoRemove direct reference to X509CertImpl
Kenny Root [Mon, 14 Oct 2013 18:17:25 +0000 (11:17 -0700)]
Remove direct reference to X509CertImpl

This should use the system default X.509 certificate provider.

Change-Id: Ibdfd800a9d10f9dc566a360401efe7c3dc6cef5d

10 years agoMerge "core: fix arithmetic on a pointer to void"
Nick Kralevich [Mon, 14 Oct 2013 20:11:05 +0000 (20:11 +0000)]
Merge "core: fix arithmetic on a pointer to void"

10 years agocore: fix arithmetic on a pointer to void
synergydev [Mon, 14 Oct 2013 19:20:16 +0000 (12:20 -0700)]
core: fix arithmetic on a pointer to void

Use char* instead of void* for this
pointer arithmetic. Fixes the following:

error: arithmetic on a pointer to void
buf = buf + offset;
      ~~~ ^

Change-Id: I6cfc92c9240fda66a52e780cda7820fdba76914a

10 years agoMerge "Fix App Ops permission mapping structure."
Nick Kralevich [Tue, 8 Oct 2013 21:25:23 +0000 (21:25 +0000)]
Merge "Fix App Ops permission mapping structure."

10 years agoFix App Ops permission mapping structure.
Robert Craig [Mon, 7 Oct 2013 16:32:02 +0000 (12:32 -0400)]
Fix App Ops permission mapping structure.

The entry to map the post notification op
to a permission is at the wrong offset
within the sOpPerms array. This patch
fixes the issue.

Change-Id: Ia241d274e484b6a24edbfb17b87bb887b61f1ee1
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
10 years agoMerge "Make EntropyMixer mix in output of Hardware RNG into Linux RNG."
Alex Klyubin [Thu, 3 Oct 2013 22:12:36 +0000 (22:12 +0000)]
Merge "Make EntropyMixer mix in output of Hardware RNG into Linux RNG."

10 years agoMake EntropyMixer mix in output of Hardware RNG into Linux RNG.
Alex Klyubin [Thu, 3 Oct 2013 20:23:13 +0000 (13:23 -0700)]
Make EntropyMixer mix in output of Hardware RNG into Linux RNG.

On devices with Hardware RNG (HW RNG), this makes EntropyMixer
periodically (every three hours) read 512 bytes from HW RNG and mix
them into the Linux RNG.

This is done without increasing Linux RNG's entropy estimates to
avoid having to trust the quality of the HW RNG. This approach cannot
reduce the quality of the Linux RNG output, but may increase it.

Change-Id: Ifde851004301ffd41b2189151a64a0c5989c630f

10 years agoMerge "Reduce EntropyMixer seed size from 4096 to 512 bytes."
Alex Klyubin [Thu, 3 Oct 2013 21:34:23 +0000 (21:34 +0000)]
Merge "Reduce EntropyMixer seed size from 4096 to 512 bytes."

10 years agoReduce EntropyMixer seed size from 4096 to 512 bytes.
Alex Klyubin [Thu, 3 Oct 2013 20:56:09 +0000 (13:56 -0700)]
Reduce EntropyMixer seed size from 4096 to 512 bytes.

The suggested seed size from Linux drivers/char/random.c is 512 bytes
rather than the 4096 bytes currently used.

Change-Id: I3dd55105f0a95ce9cda34b4cf08987b8a28c4ac9

10 years agoMerge "more locale-appropriate screenshot share text"
Elliott Hughes [Tue, 1 Oct 2013 21:30:25 +0000 (21:30 +0000)]
Merge "more locale-appropriate screenshot share text"

10 years agomore locale-appropriate screenshot share text
Victoria Lease [Mon, 30 Sep 2013 22:33:43 +0000 (15:33 -0700)]
more locale-appropriate screenshot share text

The SimpleDateFormat version of this produces very poor results in
locales other than en_US. Trusting DateFormat to do its thing
produces more consistently-pleasing results across all locales.

(cherry-pick of e45e1f2efe69ba931efa88c6e33879fbc8d8c4c1.)

Change-Id: I7f1714446bb50285d851e8e313e7f32a0a822bf2

10 years agoMerge "Added missing permission declaration on <service> tag of AccessibilityService...
Elliott Hughes [Tue, 1 Oct 2013 17:49:16 +0000 (17:49 +0000)]
Merge "Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)"

10 years agoMerge "Fragement, or Fragment: that is the question"
Romain Guy [Mon, 30 Sep 2013 22:48:44 +0000 (22:48 +0000)]
Merge "Fragement, or Fragment: that is the question"

10 years agoFragement, or Fragment: that is the question
Cyril Mottier [Mon, 30 Sep 2013 20:42:26 +0000 (22:42 +0200)]
Fragement, or Fragment: that is the question

Change-Id: Iac3a14b9d2d7b4bd1e452db987b3c5c95dbefd3b

10 years agoAdded missing permission declaration on <service> tag of AccessibilityService guide...
Taeho Kim [Sun, 29 Sep 2013 18:39:30 +0000 (03:39 +0900)]
Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)

With code snippet on current docs, the accessibility service does not show up on the Settings > Accessibility > Services list, with API level 17 or higher. In order to declare service correctly, user have to declare "permission" property with value of "android.permission.BIND_ACCESSIBILITY_SERVICE".

Change-Id: I70c8f98d4ff6fd2286bf5866098b22443afb6cd9

10 years agoMerge "Regenerate all the OpenGL stubs."
Elliott Hughes [Fri, 27 Sep 2013 22:33:25 +0000 (22:33 +0000)]
Merge "Regenerate all the OpenGL stubs."

10 years agoMerge "Fix SELinux.java doc errors"
Nick Kralevich [Fri, 27 Sep 2013 16:32:56 +0000 (16:32 +0000)]
Merge "Fix SELinux.java doc errors"

10 years agoMerge "Replace SEAndroid with SELinux."
Dianne Hackborn [Wed, 25 Sep 2013 18:39:57 +0000 (18:39 +0000)]
Merge "Replace SEAndroid with SELinux."

10 years agoMerge "Remove dead code."
Elliott Hughes [Wed, 25 Sep 2013 00:47:54 +0000 (00:47 +0000)]
Merge "Remove dead code."

10 years agoRemove dead code.
Elliott Hughes [Wed, 25 Sep 2013 00:22:11 +0000 (17:22 -0700)]
Remove dead code.

This hasn't been used since at least 2011, and we're no longer
shipping the data supporting it either.

Change-Id: Ibe42057650b49794c65d6f0d54ed7a492f3b594b

10 years agoRegenerate all the OpenGL stubs.
Elliott Hughes [Wed, 25 Sep 2013 00:15:41 +0000 (17:15 -0700)]
Regenerate all the OpenGL stubs.

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

10 years agoMerge "Proper security labeling of multi-user data directories."
Nick Kralevich [Fri, 20 Sep 2013 19:35:16 +0000 (19:35 +0000)]
Merge "Proper security labeling of multi-user data directories."

10 years agoMerge "revert ADDR_COMPAT_LAYOUT workaround."
Nick Kralevich [Wed, 18 Sep 2013 21:46:13 +0000 (21:46 +0000)]
Merge "revert ADDR_COMPAT_LAYOUT workaround."

10 years agorevert ADDR_COMPAT_LAYOUT workaround.
Nick Kralevich [Wed, 18 Sep 2013 21:29:46 +0000 (14:29 -0700)]
revert ADDR_COMPAT_LAYOUT workaround.

Stop working around bad applications by setting ADDR_COMPAT_LAYOUT.
ADDR_COMPAT_LAYOUT is undesirable because it reduces the amount of
address space available to an application.

The Android emulator, in both 4.3 and 4.4, does not set
ADDR_COMPAT_LAYOUT. Anyone needing to test their application on a
version of Android without ADDR_COMPAT_LAYOUT can use the emulator
and reproduce the failures.

Change-Id: I8f753acc205798bd7f031026c7ece12d26de562c

10 years agoProper security labeling of multi-user data directories.
Robert Craig [Mon, 29 Jul 2013 13:06:51 +0000 (09:06 -0400)]
Proper security labeling of multi-user data directories.

This patch covers 2 cases. When an app is installed
and the resulting data directory is created for all
existing users. And when a new user is created and
all existing app data directories are created for
the new user.

Change-Id: Iaba7c40645bc7b6cc823d613da0c3782acf6ddd5
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
10 years agoMerge "Fix formatting in clearApplicationUserData exception message."
Christopher Tate [Fri, 13 Sep 2013 21:58:45 +0000 (21:58 +0000)]
Merge "Fix formatting in clearApplicationUserData exception message."

10 years agoFix formatting in clearApplicationUserData exception message.
Alex Klyubin [Fri, 13 Sep 2013 16:51:42 +0000 (09:51 -0700)]
Fix formatting in clearApplicationUserData exception message.

Before:
  4539 does not have permission:android.permission.CLEAR_APP_USER_DATA to clear datafor process:com.android.chrome
After:
  PID 4539 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.android.chrome

Change-Id: Ic466decb050e4fa7f3fee4098c4f2abdc6cedf5c

10 years agoMerge "Move helper function to webkit"
Kenny Root [Fri, 13 Sep 2013 06:30:53 +0000 (06:30 +0000)]
Merge "Move helper function to webkit"

10 years agoMove helper function to webkit
Kenny Root [Fri, 13 Sep 2013 06:00:26 +0000 (23:00 -0700)]
Move helper function to webkit

This particular helper function is being removed from NativeCrypto, so
move it here as it's the last user of it.

Change-Id: Iea13ba499487d838068d6156d4d1e6861d05eb36

10 years agoMerge "GlobalAction dialog ref not set to null"
Amith Yamasani [Thu, 12 Sep 2013 16:24:19 +0000 (16:24 +0000)]
Merge "GlobalAction dialog ref not set to null"

10 years agoMerge "Remove ArpPeer; dead code from Google TV."
Elliott Hughes [Wed, 11 Sep 2013 23:48:34 +0000 (23:48 +0000)]
Merge "Remove ArpPeer; dead code from Google TV."

10 years agoRemove ArpPeer; dead code from Google TV.
Elliott Hughes [Wed, 11 Sep 2013 23:21:16 +0000 (16:21 -0700)]
Remove ArpPeer; dead code from Google TV.

Change-Id: I595a6b6f52ab513a008e0fd861e98bc4488a1999

10 years agoMerge changes I5d2be3c5,I9017256b
Kenny Root [Tue, 10 Sep 2013 18:50:02 +0000 (18:50 +0000)]
Merge changes I5d2be3c5,I9017256b

* changes:
  Add argument to binder call to check key types
  Use hostname verifier directly instead of instance

10 years agoAdd argument to binder call to check key types
Kenny Root [Thu, 5 Sep 2013 20:03:16 +0000 (13:03 -0700)]
Add argument to binder call to check key types

Before there was only one key type supported, so we didn't need to query
a key type. Now there is DSA, EC, and RSA, so there needs to be another
argument.

(cherry picked from commit b91773bce1126d28a93f73fbef18f3a79245f24e)

Bug: 10600582
Change-Id: I5d2be3c514ff7404a90df76dc263484c5f226e6f

10 years agoUse hostname verifier directly instead of instance
Kenny Root [Wed, 24 Jul 2013 03:36:03 +0000 (20:36 -0700)]
Use hostname verifier directly instead of instance

Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I9017256b3b5d137aeb5a6f455868af7bdfec7885

10 years agoMerge "Add support for DSA and ECDSA key types"
Kenny Root [Tue, 3 Sep 2013 07:11:36 +0000 (07:11 +0000)]
Merge "Add support for DSA and ECDSA key types"

11 years agoAdd support for DSA and ECDSA key types
Kenny Root [Fri, 16 Aug 2013 21:03:29 +0000 (14:03 -0700)]
Add support for DSA and ECDSA key types

Change-Id: Ic6f029d66210052ce2f75d46102a100ac7db2b49

11 years agoMerge "Change IsMethodTracingActive to GetMethodTracingMode for frameworks."
Jeff Hao [Fri, 30 Aug 2013 22:17:12 +0000 (22:17 +0000)]
Merge "Change IsMethodTracingActive to GetMethodTracingMode for frameworks."

11 years agoChange IsMethodTracingActive to GetMethodTracingMode for frameworks.
Jeff Hao [Thu, 29 Aug 2013 18:19:39 +0000 (11:19 -0700)]
Change IsMethodTracingActive to GetMethodTracingMode for frameworks.

(cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004)

Change-Id: Ic87a254171fca7dfdf02c8643cd367055c8889cd

11 years agoMerge "Make MeasuredText.sCached field final"
Brian Carlstrom [Fri, 30 Aug 2013 05:01:55 +0000 (05:01 +0000)]
Merge "Make MeasuredText.sCached field final"

11 years agoMerge "Use core-tests-support instead of core-tests"
Kenny Root [Thu, 29 Aug 2013 21:49:32 +0000 (21:49 +0000)]
Merge "Use core-tests-support instead of core-tests"

11 years agoUse core-tests-support instead of core-tests
Kenny Root [Thu, 29 Aug 2013 21:27:20 +0000 (14:27 -0700)]
Use core-tests-support instead of core-tests

The core-tests-support library is newly created. It doesn't have any
tests itself but some support for tests that need to use mocked classes
for testing. In this case, some tests are using TestKeyStore for SSL
testing in frameworks tests.

Change-Id: I70dc31c9fcddf256b515e2c16f581648bc8cf880

11 years agoMake MeasuredText.sCached field final
Brian Carlstrom [Wed, 28 Aug 2013 18:01:57 +0000 (11:01 -0700)]
Make MeasuredText.sCached field final

Change-Id: Id3be64c48be1bcf55ac1a4b00b76a40861bf2f61

11 years agoMerge "Merge MPSE and SPSE Chunk handlers for ddms."
Jeff Hao [Wed, 28 Aug 2013 01:14:26 +0000 (01:14 +0000)]
Merge "Merge MPSE and SPSE Chunk handlers for ddms."

11 years agoMerge "Add frameworks support for sample profiling from traceview gui."
Jeff Hao [Wed, 28 Aug 2013 01:14:20 +0000 (01:14 +0000)]
Merge "Add frameworks support for sample profiling from traceview gui."

11 years agoMerge MPSE and SPSE Chunk handlers for ddms.
Jeff Hao [Tue, 27 Aug 2013 01:47:18 +0000 (18:47 -0700)]
Merge MPSE and SPSE Chunk handlers for ddms.

(cherry picked from commit fd224b97797dfb7e3ee1e2f56c3109d1594cf040)

Change-Id: I1dab7801d47f092259916c4aea19b20d17951c2f

11 years agoAdd frameworks support for sample profiling from traceview gui.
Jeff Hao [Thu, 22 Aug 2013 22:53:12 +0000 (15:53 -0700)]
Add frameworks support for sample profiling from traceview gui.

(cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9)

Change-Id: Ic193ddadf01c42905fc7c35a1a8bf89fba4556e9

11 years agoMerge "Forward compatibility fix"
Chris Craik [Tue, 27 Aug 2013 18:07:49 +0000 (18:07 +0000)]
Merge "Forward compatibility fix"

11 years agoForward compatibility fix
Chris Craik [Tue, 27 Aug 2013 17:55:12 +0000 (10:55 -0700)]
Forward compatibility fix

Change-Id: Ib031372d43881a9bb7af1e51fb2c7cf55e03a326

11 years agoMerge "Forward compatibility fixes"
Victoria Lease [Tue, 27 Aug 2013 16:52:33 +0000 (16:52 +0000)]
Merge "Forward compatibility fixes"

11 years agoForward compatibility fixes
John Reck [Mon, 26 Aug 2013 23:53:40 +0000 (16:53 -0700)]
Forward compatibility fixes

Change-Id: Iaf387a10c387e5e157bb16d120a1e033b3d1a6e8

11 years agoMerge "The VM handles blocking SIGPIPE."
Elliott Hughes [Wed, 21 Aug 2013 22:35:28 +0000 (22:35 +0000)]
Merge "The VM handles blocking SIGPIPE."

11 years agoThe VM handles blocking SIGPIPE.
Elliott Hughes [Wed, 21 Aug 2013 20:56:15 +0000 (13:56 -0700)]
The VM handles blocking SIGPIPE.

We don't need this any more.

Bug: 10211309
Change-Id: I8be0071d50296974e3861f8af9d2bae4f5678d5a

11 years agoMerge "Fix NPE in DateFormat.is24HourFormat."
Elliott Hughes [Fri, 16 Aug 2013 21:14:19 +0000 (21:14 +0000)]
Merge "Fix NPE in DateFormat.is24HourFormat."

11 years agoFix NPE in DateFormat.is24HourFormat.
Elliott Hughes [Fri, 16 Aug 2013 18:56:35 +0000 (11:56 -0700)]
Fix NPE in DateFormat.is24HourFormat.

In some cases, we end up being called by code that doesn't have a valid
Context. It got away with this historically because it wasn't formatting
times (just dates), so it never went down a path that tried to query the
user's 12/24-hour preference. This patch just ensures that we don't try
to get the preference unless we actually need it.

Bug: 10339015
Change-Id: I2df466d85cdeba14dbf882498808cbad9bbb57f4

11 years agoMerge "DateUtils should use the user's 12/24-hour preference, not the locale's."
Elliott Hughes [Wed, 14 Aug 2013 22:26:12 +0000 (22:26 +0000)]
Merge "DateUtils should use the user's 12/24-hour preference, not the locale's."

11 years agoDateUtils should use the user's 12/24-hour preference, not the locale's.
Elliott Hughes [Wed, 14 Aug 2013 22:12:43 +0000 (15:12 -0700)]
DateUtils should use the user's 12/24-hour preference, not the locale's.

Bug: 10312832
Change-Id: If23c124cf8442988de5feccb6f2c40b808a2eb89

11 years agoMemory leak in IInputMethodSessionWrapper executeMessage
Henrik Baard [Tue, 20 Jul 2010 09:42:19 +0000 (11:42 +0200)]
Memory leak in IInputMethodSessionWrapper executeMessage

In some cases the executeMessage is called with
mInputMethodSession == null. For the messages

DO_UPDATE_SELECTION, DO_APP_PRIVATE_COMMAND

memory is leaked. This commit recycles the args freeing
the allocated memory.

11 years agoMerge "Remove possible leak when exception occurred."
Elliott Hughes [Fri, 9 Aug 2013 21:58:37 +0000 (21:58 +0000)]
Merge "Remove possible leak when exception occurred."

11 years agoMerge "When deleting a db file, Context.deleteDatabase() has to be called instead...
Marco Nelissen [Wed, 7 Aug 2013 15:39:39 +0000 (15:39 +0000)]
Merge "When deleting a db file, Context.deleteDatabase() has to be called instead of File.delete() to guarantee all db related files like journal, wal, shm, etc are deleted together."

11 years agoMerge "Guarantee that all db related files are deleted together."
Marco Nelissen [Wed, 7 Aug 2013 15:30:51 +0000 (15:30 +0000)]
Merge "Guarantee that all db related files are deleted together."