OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Make detachViewFromParent more robust" into jb-mr1-dev
Chet Haase [Fri, 31 Aug 2012 02:31:59 +0000 (19:31 -0700)]
Merge "Make detachViewFromParent more robust" into jb-mr1-dev

11 years agoMerge "Integrate new assets from UX that include layout bounds." into jb-mr1-dev
Adam Powell [Fri, 31 Aug 2012 01:25:38 +0000 (18:25 -0700)]
Merge "Integrate new assets from UX that include layout bounds." into jb-mr1-dev

11 years agoam 0e90f738: am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:16:30 +0000 (18:16 -0700)]
am 0e90f738: am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit '0e90f738aa82d9b30e6b4f43cd321e3f9cad2fc1':
  Fix code problem in writePidDns

11 years agoam f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:14:15 +0000 (18:14 -0700)]
am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit 'f5311768e3dfdc6be60288363da4f120b0c88e28':
  Fix code problem in writePidDns

11 years agoam 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:11:30 +0000 (18:11 -0700)]
am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit '0dab1a198e19c9993897b031d425a61a3bfec562':
  Fix code problem in writePidDns

11 years agoIntegrate new assets from UX that include layout bounds.
Adam Powell [Fri, 31 Aug 2012 01:06:38 +0000 (18:06 -0700)]
Integrate new assets from UX that include layout bounds.

Change-Id: I682b3f693d8eedb741ea689f56363532cde32132

11 years agoMake detachViewFromParent more robust
Chet Haase [Fri, 31 Aug 2012 00:20:08 +0000 (17:20 -0700)]
Make detachViewFromParent more robust

Calling detachViewFromParent() without calling remove or attach in the
same drawing frame could, in some situations, cause a crash in the native
DisplayList code. detach/attach are intended to be very lightweight and do
not manage the native DisplayList content the same way that add/remove do.
Nor do they cause an invalidate() or requestLayout(), which would cause the
native structures to get recreated appropriately.

This fix makes this process more robust in two ways:
- DisplayLists should not get finalized (therefore destroying their native
structures) when there are still parent DisplayLists referring to them
(each DisplayList keeps references to its child DisplayLists). This will
prevent the native crash associated with unmatched detach*() calls.
- The docs for detach/attach have been enhanced to make it easier for
developers to understand how to use these methods more correctly and
successfully.

Issue #7064818 detachViewFromParent() should be more robust

Change-Id: I53befc04d5d58c225060f397725566d470488c9b

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

11 years agoEnforce permissions for calls with specified userId
Amith Yamasani [Thu, 30 Aug 2012 01:41:53 +0000 (18:41 -0700)]
Enforce permissions for calls with specified userId

Fix a couple of places where incorrect userIds were being passed in.

Change-Id: I398c676e0488ff7e584be96e96c8b32652134238

11 years agoam 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch...
Dianne Hackborn [Thu, 30 Aug 2012 23:04:19 +0000 (16:04 -0700)]
am 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '1a907db07ea105ea65e146713f436ed072d7084b':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoam 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when startin...
Dianne Hackborn [Thu, 30 Aug 2012 23:01:59 +0000 (16:01 -0700)]
am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '862c383530d64e6c493fb519f567dd5778d9d48c':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoam 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."
Dianne Hackborn [Thu, 30 Aug 2012 22:59:40 +0000 (15:59 -0700)]
am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '4b60a8d1b8b5f8fd04df5749ce225ed57e0a1a44':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoMerge "Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set" into jb-mr1-dev
Romain Guy [Thu, 30 Aug 2012 22:26:57 +0000 (15:26 -0700)]
Merge "Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set" into jb-mr1-dev

11 years agoDon't quickReject() children if FLAG_CLIP_CHILDREN isn't set
Romain Guy [Thu, 30 Aug 2012 22:19:27 +0000 (15:19 -0700)]
Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set

External report: http://code.google.com/p/android/issues/detail?id=36788

Change-Id: Ibdaecf37ab013e30b16e9dc7a6e50156d72c3e4f

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

11 years agoMerge "Improve multi-user broadcasts." into jb-mr1-dev
Dianne Hackborn [Thu, 30 Aug 2012 21:56:11 +0000 (14:56 -0700)]
Merge "Improve multi-user broadcasts." into jb-mr1-dev

11 years agoam 30b5bea0: (-s ours) am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:55:55 +0000 (14:55 -0700)]
am 30b5bea0: (-s ours) am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev

* commit '30b5bea07b7357b5063a12e54f002adae9af2b39':
  DO NOT MERGE Remove dead code

11 years agoMerge "Fix a typo in the sample code" into jb-mr1-dev
Teng-Hui Zhu [Thu, 30 Aug 2012 21:54:23 +0000 (14:54 -0700)]
Merge "Fix a typo in the sample code" into jb-mr1-dev

11 years agoam 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:53:42 +0000 (14:53 -0700)]
am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev

* commit '6fdd49630834b1c20a781c9d29b241a68d1289ef':
  DO NOT MERGE Remove dead code

11 years agoMerge "Fixed MemoryUsage issue with reporting results." into jb-mr1-dev
Maxim Siniavine [Thu, 30 Aug 2012 21:29:15 +0000 (14:29 -0700)]
Merge "Fixed MemoryUsage issue with reporting results." into jb-mr1-dev

11 years agoMerge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:50:16 +0000 (14:50 -0700)]
Merge "DO NOT MERGE Remove dead code" into jb-dev

11 years agoFix a typo in the sample code
Teng-Hui Zhu [Thu, 30 Aug 2012 21:36:58 +0000 (14:36 -0700)]
Fix a typo in the sample code

Change-Id: I27ee1b0ef8abf5decefae1ec1706a9f142016344

11 years agoImprove multi-user broadcasts.
Dianne Hackborn [Thu, 30 Aug 2012 01:32:08 +0000 (18:32 -0700)]
Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c

11 years agoam 3dda2cff: (-s ours) am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolli...
Adam Powell [Thu, 30 Aug 2012 21:33:14 +0000 (14:33 -0700)]
am 3dda2cff: (-s ours) am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

* commit '3dda2cffafd94f7f9885efae1c9dc06bc3a625f0':
  DO NOT MERGE - Use focal point for scrolling in GestureDetector

11 years agoam 00925a3b: (-s ours) am d33b6217: DO NOT MERGE - New implementation for ScaleGestur...
Adam Powell [Thu, 30 Aug 2012 21:31:33 +0000 (14:31 -0700)]
am 00925a3b: (-s ours) am d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector

* commit '00925a3b883080fa6888ae9905394fc786465d26':
  DO NOT MERGE - New implementation for ScaleGestureDetector

11 years agoam ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector...
Adam Powell [Thu, 30 Aug 2012 21:30:49 +0000 (14:30 -0700)]
am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

* commit 'ecb388efefc427c3fa93f07fd11502564dc194a5':
  DO NOT MERGE - Use focal point for scrolling in GestureDetector

11 years agoam d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector
Adam Powell [Thu, 30 Aug 2012 21:29:02 +0000 (14:29 -0700)]
am d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector

* commit 'd33b6217fc128652a72f1626bcaa5f3b754102c6':
  DO NOT MERGE - New implementation for ScaleGestureDetector

11 years agoMerge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev
Adam Powell [Thu, 30 Aug 2012 21:28:16 +0000 (14:28 -0700)]
Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

11 years agoMerge "Turn off deadzone flash, replacing it with logcat." into jb-mr1-dev
Daniel Sandler [Thu, 30 Aug 2012 21:12:22 +0000 (14:12 -0700)]
Merge "Turn off deadzone flash, replacing it with logcat." into jb-mr1-dev

11 years agoTurn off deadzone flash, replacing it with logcat.
Daniel Sandler [Thu, 30 Aug 2012 21:10:50 +0000 (17:10 -0400)]
Turn off deadzone flash, replacing it with logcat.

Change-Id: I30db97e5c3a6ef3a06e6065ccf087a7f6d1f9286

11 years agoFixed MemoryUsage issue with reporting results.
Maxim Siniavine [Thu, 30 Aug 2012 21:05:38 +0000 (14:05 -0700)]
Fixed MemoryUsage issue with reporting results.

When the memory of the application did not stabilize within
the time limit, the test would report that using the application
name, instead of the result key. Fixed the test to always use the
result key.

Change-Id: Ie16969e831bd3d89ee0496b992568f52bf1989cb

11 years agoam 6ab3ea5f: am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:54:18 +0000 (13:54 -0700)]
am 6ab3ea5f: am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '6ab3ea5f48abfd777d5bd18d92acc3bc766f78ce':
  Watchdog: Improvement of debuggability

11 years agoam 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:52:00 +0000 (13:52 -0700)]
am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '147ef9448540adaa4312e3cbc01adfc3c7902f50':
  Watchdog: Improvement of debuggability

11 years agoam 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:49:58 +0000 (13:49 -0700)]
am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '60d1e1a09e4603e24652e930597ab204855eaa77':
  Watchdog: Improvement of debuggability

11 years agoMerge "Don't die(immediate) if from performTraversals." into jb-mr1-dev
Craig Mautner [Thu, 30 Aug 2012 20:33:19 +0000 (13:33 -0700)]
Merge "Don't die(immediate) if from performTraversals." into jb-mr1-dev

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

11 years agoDO NOT MERGE - Use focal point for scrolling in GestureDetector
Adam Powell [Wed, 29 Aug 2012 20:54:44 +0000 (13:54 -0700)]
DO NOT MERGE - Use focal point for scrolling in GestureDetector

Remove workaround for obsolete touchscreen hardware. Provide a better
focal point for scroll events.

Change-Id: I173cd6696dace379437b56597c4a6ac5c7fbf60d

11 years agoDO NOT MERGE - New implementation for ScaleGestureDetector
Adam Powell [Tue, 28 Aug 2012 00:44:59 +0000 (17:44 -0700)]
DO NOT MERGE - New implementation for ScaleGestureDetector

This solves the problems around active pointer tracking when the
caller may skip events in the MotionEvent stream and replaces the
old implementation with a much simpler algorithm.

Change-Id: I97c0bfad03a6190e403e843d382e05ff2257b66f

11 years agoMerge "AudioService: pause music when undocked" into jb-mr1-dev
Eric Laurent [Thu, 30 Aug 2012 19:40:39 +0000 (12:40 -0700)]
Merge "AudioService: pause music when undocked" into jb-mr1-dev

11 years agoMerge "Use focal point for scrolling in GestureDetector" into jb-mr1-dev
Adam Powell [Thu, 30 Aug 2012 19:22:47 +0000 (12:22 -0700)]
Merge "Use focal point for scrolling in GestureDetector" into jb-mr1-dev

11 years agoam 8f58dfa9: am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when...
John Reck [Thu, 30 Aug 2012 18:45:47 +0000 (11:45 -0700)]
am 8f58dfa9: am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit '8f58dfa975d01c5c50de513848a6aa8a4460d32c':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoam da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic...
John Reck [Thu, 30 Aug 2012 18:43:34 +0000 (11:43 -0700)]
am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit 'da5cd308028f8f6863bbe3631de91b96802695ec':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoam ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."
John Reck [Thu, 30 Aug 2012 18:41:38 +0000 (11:41 -0700)]
am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit 'ae03afda41ace0721e48ed15ce35345bfa033116':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoAudioService: pause music when undocked
Eric Laurent [Thu, 30 Aug 2012 18:30:16 +0000 (11:30 -0700)]
AudioService: pause music when undocked

Send becomming noisy event also when disconnecting a dock
(analog, digital or USB) or HDMI.

Bug 6760590.

Change-Id: I497df35a3c6817d2b300f532d4cc3f12e3ce9ace

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

11 years agoDon't die(immediate) if from performTraversals.
Craig Mautner [Thu, 30 Aug 2012 03:59:22 +0000 (20:59 -0700)]
Don't die(immediate) if from performTraversals.

The Drive application was calling PopupWindow.dismiss from within
onMeasure. This caused dispatchDetachedFromWindow to be called
from within performTraversals. Since dispatchDetachedFromWindow
destroys much of what performTraversals uses this was a disaster
waiting to happen.

This fix adds a check for seeing if die(immediate=true) is being
called from within performTraversals. If it is then die doesn't
execute doDie immediately, but instead treats it as a call to
die(immediate=false).

Fixes bug 6836841.

Change-Id: I833289e12c19fd33c17a715b2ed2adcf8388573a

11 years agoAccess to all users' external storage.
Jeff Sharkey [Tue, 28 Aug 2012 23:23:01 +0000 (16:23 -0700)]
Access to all users' external storage.

System services holding this permission have external storage bound
one level higher, giving them access to all users' files.

Bug: 7003520
Change-Id: Ib2bcb8455740c713ebd01f71c9a2b89b4e642832

11 years agoMerge "Fix keyguard layout on tablet" into jb-mr1-dev
Jim Miller [Thu, 30 Aug 2012 17:31:41 +0000 (10:31 -0700)]
Merge "Fix keyguard layout on tablet" into jb-mr1-dev

11 years agoMerge "Add getter for animateFirstView property of ViewAnimator" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 17:30:28 +0000 (10:30 -0700)]
Merge "Add getter for animateFirstView property of ViewAnimator" into jb-mr1-dev

11 years agoMerge "Shared OBB storage across users." into jb-mr1-dev
Jeff Sharkey [Thu, 30 Aug 2012 17:28:51 +0000 (10:28 -0700)]
Merge "Shared OBB storage across users." into jb-mr1-dev

11 years agoFix keyguard layout on tablet
Jim Miller [Thu, 30 Aug 2012 17:24:40 +0000 (10:24 -0700)]
Fix keyguard layout on tablet

Bug:7084961
Change-Id: I6415aa736bf9e2b71a288716e3125429be2b663c

11 years agoAdd getter for animateFirstView property of ViewAnimator
Chet Haase [Thu, 30 Aug 2012 16:51:08 +0000 (09:51 -0700)]
Add getter for animateFirstView property of ViewAnimator

Tooling for xml properties is easier/better if we can properly reflect the
xml properties at the Java language API level as well. We had setters/getters
for the other properties of ViewAnimator, but only a setter for the
animateFirstView property.

Issue #6104327 Inconsistency between XML API and Java API for widgets - ViewAnimator

Change-Id: Iede7231fa433ce14f7a8299da4cedd4720370bc8

11 years agoMerge "Avoid thrashing the glyph cache during the precache phase" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 16:29:36 +0000 (09:29 -0700)]
Merge "Avoid thrashing the glyph cache during the precache phase" into jb-mr1-dev

11 years agoAvoid thrashing the glyph cache during the precache phase
Chet Haase [Thu, 30 Aug 2012 16:06:46 +0000 (09:06 -0700)]
Avoid thrashing the glyph cache during the precache phase

It is unlikely, but possible, to draw so many glyphs in a frame
(especially of the glyphs are quite large) that the cache starts flushing
itself to fit the later glyphs in. This causes unnecessary thrashing, because
when we actually draw the frame, we will again need to flush to fit the
earlier glyphs in, and then flush again to fit the later ones in.

It is better to avoid thrashing the cache at the precache phase, and wait
until we actually draw the glyphs that do not fit to do any eviction of
the earlier glyphs.

This change simply notes when we are in the preaching phase, and avoids flushing
the cache when a glyph does not fit.

Issue #7081725 avoid thrashing cache during DisplayList recording

Change-Id: I230410ab5b478091b1032fa99dc1752acf868bbe

11 years agoMerge "Fix bug with Fbo layer clipping" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 14:22:36 +0000 (07:22 -0700)]
Merge "Fix bug with Fbo layer clipping" into jb-mr1-dev

11 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

11 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

11 years agoMerge "Locking when clearing VPN source rules." into jb-mr1-dev
Jeff Sharkey [Thu, 30 Aug 2012 05:33:45 +0000 (22:33 -0700)]
Merge "Locking when clearing VPN source rules." into jb-mr1-dev

11 years agoLocking when clearing VPN source rules.
Jeff Sharkey [Thu, 30 Aug 2012 05:27:39 +0000 (22:27 -0700)]
Locking when clearing VPN source rules.

Otherwise lockdown VPN reset is racy and can bring down system_server.

Change-Id: Ib8eecde1d0857a1669c3ca5506a46198c71b1b51

11 years agoMerge "Bind to screenshot service for current user." into jb-mr1-dev
Jeff Sharkey [Thu, 30 Aug 2012 05:29:43 +0000 (22:29 -0700)]
Merge "Bind to screenshot service for current user." into jb-mr1-dev

11 years agoMerge "Pre-multiply color components for 2-stop gradients Bug #7033344" into jb-mr1-dev
Romain Guy [Thu, 30 Aug 2012 04:56:44 +0000 (21:56 -0700)]
Merge "Pre-multiply color components for 2-stop gradients Bug #7033344" into jb-mr1-dev

11 years agoPre-multiply color components for 2-stop gradients
Romain Guy [Thu, 30 Aug 2012 04:49:00 +0000 (21:49 -0700)]
Pre-multiply color components for 2-stop gradients
Bug #7033344

Change-Id: Ia168501f1dc56ba7a1bb0c55078320432309a66a

11 years agoUse focal point for scrolling in GestureDetector
Adam Powell [Wed, 29 Aug 2012 20:54:44 +0000 (13:54 -0700)]
Use focal point for scrolling in GestureDetector

Remove workaround for obsolete touchscreen hardware. Provide a better
focal point for scroll events.

Change-Id: I879acb4cfd23bd3762d0332e4df2203d913ae869

11 years agoMerge "Expand the navbar dead zone briefly after touches elsewhere." into jb-mr1-dev
Daniel Sandler [Thu, 30 Aug 2012 03:29:28 +0000 (20:29 -0700)]
Merge "Expand the navbar dead zone briefly after touches elsewhere." into jb-mr1-dev

11 years agoMerge "Fix Camera and GoogleNow launching in keyguard" into jb-mr1-dev
Jim Miller [Thu, 30 Aug 2012 03:07:56 +0000 (20:07 -0700)]
Merge "Fix Camera and GoogleNow launching in keyguard" into jb-mr1-dev

11 years agoFix Camera and GoogleNow launching in keyguard
Jim Miller [Wed, 29 Aug 2012 22:10:34 +0000 (15:10 -0700)]
Fix Camera and GoogleNow launching in keyguard

This change allows keyguard to launch the secure camera when the device
is in a secure mode.  It also allows launching delayed actions after the
user has entered their security, such as that required for GoogleNow.

Change-Id: I54975001728ced3c339f86eafc3a38cea606082b

11 years agoMerge "Integrate overscroll into KeyguardWidgetView." into jb-mr1-dev
Adam Cohen [Thu, 30 Aug 2012 02:49:02 +0000 (19:49 -0700)]
Merge "Integrate overscroll into KeyguardWidgetView." into jb-mr1-dev

11 years agoMerge "Fix an NPE in PackageManager when getting the AppInfo for an app" into jb...
Amith Yamasani [Thu, 30 Aug 2012 01:52:14 +0000 (18:52 -0700)]
Merge "Fix an NPE in PackageManager when getting the AppInfo for an app" into jb-mr1-dev

11 years agoFix an NPE in PackageManager when getting the AppInfo for an app
Amith Yamasani [Thu, 30 Aug 2012 01:48:08 +0000 (18:48 -0700)]
Fix an NPE in PackageManager when getting the AppInfo for an app

Bug: 7072043
Change-Id: I37378b13820152434e7b3249e13c27001fe4ae5a

11 years agoIntegrate overscroll into KeyguardWidgetView.
Jim Miller [Thu, 30 Aug 2012 01:42:21 +0000 (18:42 -0700)]
Integrate overscroll into KeyguardWidgetView.

This integrates overscroll behavior into keyguard.

Change-Id: I19c0f70c85a4ebb0ddd3f433b6f88a992f40919b

11 years agoam 044a9b97: resolved conflicts for merge of b35e4d77 to jb-dev-plus-aosp
Jake Hamby [Thu, 30 Aug 2012 01:19:04 +0000 (18:19 -0700)]
am 044a9b97: resolved conflicts for merge of b35e4d77 to jb-dev-plus-aosp

* commit '044a9b97b01a934e6cd9ef2f2914d401c4fa145b':
  Fix CDMA decoding of multipart UTF-16 SMS messages.

11 years agoMerge "Start implementing concept of "running" users." into jb-mr1-dev
Dianne Hackborn [Thu, 30 Aug 2012 01:15:06 +0000 (18:15 -0700)]
Merge "Start implementing concept of "running" users." into jb-mr1-dev

11 years agoresolved conflicts for merge of b35e4d77 to jb-dev-plus-aosp
Jake Hamby [Thu, 30 Aug 2012 01:09:29 +0000 (18:09 -0700)]
resolved conflicts for merge of b35e4d77 to jb-dev-plus-aosp

Change-Id: Idec590dbd9e051a3faeded1af9eb4a78216f0496

11 years agoFix bug with Fbo layer clipping
Chet Haase [Wed, 29 Aug 2012 00:43:28 +0000 (17:43 -0700)]
Fix bug with Fbo layer clipping

Rendering views with alpha causes the creation of Fbo layers. These layers
are created at the size of the view, clipped by the current clip rect.
However, if the view lies completely outside the current clip rect, the
Fbo layer is created at the full size of the view and copied into place
outside of its container, causing artifacts like notification items showing
up outside the notification panel.

Fix is to note when the intersect() operation fails and to set an empty bounds
on the layer.

Issue #7069881 Bottom notification sometimes shows below bottom of notification panel shade

Change-Id: Ib52f7c4e503bbe9204cb808755ab269195aa94c1

11 years agoExpand the navbar dead zone briefly after touches elsewhere.
Daniel Sandler [Wed, 29 Aug 2012 19:49:53 +0000 (15:49 -0400)]
Expand the navbar dead zone briefly after touches elsewhere.

For now, each time the dead zone captures a touch, it will
flash to let you know that's what happened. We should
probably turn this off before shipping.

Note also that this currently only expands the navbar on
ACTION_DOWN elsewhere in the UI (because this is the only
time ACTION_OUTSIDE is generated); this isn't perfect and
we'll need to do some mucking about with the input system to
get information about ongoing drags or additional pointers
down, but this CL is a good start and introduces the general
mechanism for expanding and contracting the dead zone.

Change-Id: I43e63aed1e541fd07d83fde4d66bcb5be89b69d2

11 years agoMerge "UsbDebuggingManager: Fix restart when toggling USB debugging" into jb-mr1-dev
Benoit Goby [Thu, 30 Aug 2012 00:05:25 +0000 (17:05 -0700)]
Merge "UsbDebuggingManager: Fix restart when toggling USB debugging" into jb-mr1-dev

11 years agoMerge "Fix build for some javac compilers." into jb-mr1-dev
Jeff Brown [Thu, 30 Aug 2012 00:00:30 +0000 (17:00 -0700)]
Merge "Fix build for some javac compilers." into jb-mr1-dev

11 years agoFix build for some javac compilers.
Jeff Brown [Wed, 29 Aug 2012 23:57:31 +0000 (16:57 -0700)]
Fix build for some javac compilers.

It seems some compiler versions don't like trailing
commas in attribute lists.  Weird.

Change-Id: I3a05f49a2e94f63fe1662d14c1d8a7ee249d8a16

11 years agoMerge "Fix MENU key in keyguard." into jb-mr1-dev
Jim Miller [Wed, 29 Aug 2012 23:58:34 +0000 (16:58 -0700)]
Merge "Fix MENU key in keyguard." into jb-mr1-dev

11 years agoFix MENU key in keyguard.
Jim Miller [Wed, 29 Aug 2012 23:43:32 +0000 (16:43 -0700)]
Fix MENU key in keyguard.

This re-enables the MENU key in keyguard so that automation tests still work.

Change-Id: I3d2fbf9240e12dc4a243354fa09e5d639304be6e

11 years agoFix CDMA decoding of multipart UTF-16 SMS messages.
Jake Hamby [Wed, 29 Aug 2012 03:11:34 +0000 (20:11 -0700)]
Fix CDMA decoding of multipart UTF-16 SMS messages.

Recent changes to support CMAS over CDMA introduced a bug causing
an exception to be thrown when decoding multipart UTF-16 encoded
messages. This change fixes the exception by correctly subtracting
the header size from the number of bytes to decode. It also adds
more robust error handling to try to decode the maximum length
possible instead of throwing an exception if the length is still
larger than the user data length after subtracting the header.

This also fixes a bug in the encoder, which was padding the
UTF-16 user data to 16-bit alignment, which is incorrect (should
be padded to an 8-bit boundary). The code happened to work because
we always generated a UDH that was an even number of bytes
(including length) so the padding was a no-op. The decoder works
correctly.

Bug: 6939151
Change-Id: Iba9e7156bd7df94e972963959a7ce1c78464f7f5

11 years agoMerge "Turn off verbose debug message in BluetoothAdapter Change-Id: I30245ab911b5428...
Matthew Xie [Wed, 29 Aug 2012 23:30:14 +0000 (16:30 -0700)]
Merge "Turn off verbose debug message in BluetoothAdapter Change-Id: I30245ab911b5428f7af38f195b941db02d36b18f" into jb-mr1-dev

11 years agoShared OBB storage across users.
Jeff Sharkey [Mon, 27 Aug 2012 22:46:54 +0000 (15:46 -0700)]
Shared OBB storage across users.

To avoid downloading large OBB files separately for each user,
provide a shared view of /sdcard/Android/obb to all apps.  Added
upgrade step to migrate the owners existing OBB files to become
the default view.

Bug: 7008879
Change-Id: I199321552fa7d4b97d5ed7fc3b3bc41f23618601

11 years agoMerge "Fix DHCP handling at disconnect/reconnect" into jb-mr1-dev
Irfan Sheriff [Wed, 29 Aug 2012 22:55:43 +0000 (15:55 -0700)]
Merge "Fix DHCP handling at disconnect/reconnect" into jb-mr1-dev

11 years agoMerge "Use smoothstep to eliminate branches in AA shader" into jb-mr1-dev
Chris Craik [Wed, 29 Aug 2012 22:53:30 +0000 (15:53 -0700)]
Merge "Use smoothstep to eliminate branches in AA shader" into jb-mr1-dev

11 years agoMerge "Change default setting for dreams to 'when docked'" into jb-mr1-dev
John Spurlock [Wed, 29 Aug 2012 22:46:03 +0000 (15:46 -0700)]
Merge "Change default setting for dreams to 'when docked'" into jb-mr1-dev

11 years agoTurn off verbose debug message in BluetoothAdapter
Matthew Xie [Wed, 29 Aug 2012 07:12:29 +0000 (00:12 -0700)]
Turn off verbose debug message in BluetoothAdapter
Change-Id: I30245ab911b5428f7af38f195b941db02d36b18f

11 years agoMerge "Add initial multi-display support." into jb-mr1-dev
Jeff Brown [Wed, 29 Aug 2012 22:43:54 +0000 (15:43 -0700)]
Merge "Add initial multi-display support." into jb-mr1-dev

11 years agoUsbDebuggingManager: Fix restart when toggling USB debugging
Benoit Goby [Wed, 29 Aug 2012 22:23:30 +0000 (15:23 -0700)]
UsbDebuggingManager: Fix restart when toggling USB debugging

Change-Id: Iaaec9162b03c4ea77735d096eec670392c61308a

11 years agoMerge "UsbDebuggingManager: add missing break in switch" into jb-mr1-dev
Benoit Goby [Wed, 29 Aug 2012 22:42:35 +0000 (15:42 -0700)]
Merge "UsbDebuggingManager: add missing break in switch" into jb-mr1-dev

11 years agoMerge "Run with scissors." into jb-mr1-dev
Jeff Brown [Wed, 29 Aug 2012 22:41:57 +0000 (15:41 -0700)]
Merge "Run with scissors." into jb-mr1-dev

11 years agoMerge "Provide referer to browser on download request." into jb-mr1-dev
Selim Gurun [Wed, 29 Aug 2012 22:39:10 +0000 (15:39 -0700)]
Merge "Provide referer to browser on download request." into jb-mr1-dev

11 years agoFix DHCP handling at disconnect/reconnect
Irfan Sheriff [Wed, 29 Aug 2012 22:35:57 +0000 (15:35 -0700)]
Fix DHCP handling at disconnect/reconnect

Wifi can have a quick disconnection followed by a reconnection. We used to
create a new DHCP state machine thread for every new connection and
never really waited until it quit after disconnect. This may have lead to
situations where repeated disconnect/reconnects resulted in multiple dhcp
start calls.

We now keep the statemachine after a disconnect and only shut it at supplicant
stop.

Bug: 6417686
Change-Id: Icf66efdc654be886e3eb46c81f09f8cce536f2f6

11 years agoAdd initial multi-display support.
Jeff Brown [Tue, 28 Aug 2012 10:27:37 +0000 (03:27 -0700)]
Add initial multi-display support.

Split the DisplayManager into two parts.  One part is bound
to a Context and takes care of Display compatibility and
caching Display objects on behalf of the Context.  The other
part is global and takes care of communicating with the
DisplayManagerService, handling callbacks, and caching
DisplayInfo objects on behalf of the process.

Implemented support for enumerating Displays and getting
callbacks when displays are added, removed or changed.

Elaborated the roles of DisplayManagerService, DisplayAdapter,
and DisplayDevice.  We now support having multiple display
adapters registered, each of which can register multiple display
devices and configure them dynamically.

Added an OverlayDisplayAdapter which is used to simulate
secondary displays by means of overlay windows.  Different
configurations of overlays can be selected using a new
setting in the Developer Settings panel.  The overlays can
be repositioned and resized by the user for convenience.

At the moment, all displays are mirrors of display 0 and
no display transformations are applied.  This will be improved
in future patches.

Refactored the way that the window manager creates its threads.
The OverlayDisplayAdapter needs to be able to use hardware
acceleration so it must share the same UI thread as the Keyguard
and window manager policy.  We now handle this explicitly as
part of starting up the system server.  This puts us in a
better position to consider how we might want to share (or not
share) Loopers among components.

Overlay displays are disabled when in safe mode or in only-core
mode to reduce the number of dependencies started in these modes.

Change-Id: Ic2a661d5448dde01b095ab150697cb6791d69bb5

11 years agoMerge "Don't overwrite accessibility delegates in AbsListView items." into jb-mr1-dev
Svetoslav Ganov [Wed, 29 Aug 2012 21:21:18 +0000 (14:21 -0700)]
Merge "Don't overwrite accessibility delegates in AbsListView items." into jb-mr1-dev

11 years agoChange default setting for dreams to 'when docked'
John Spurlock [Wed, 29 Aug 2012 21:14:49 +0000 (17:14 -0400)]
Change default setting for dreams to 'when docked'

Bug:7078718
Change-Id: I4ec74cc9562ab728d6f86938758ede74c241c63b

11 years agoMerge "Enable new keyguard" into jb-mr1-dev
Jim Miller [Wed, 29 Aug 2012 20:57:13 +0000 (13:57 -0700)]
Merge "Enable new keyguard" into jb-mr1-dev

11 years agoUsbDebuggingManager: add missing break in switch
Benoit Goby [Wed, 29 Aug 2012 20:49:07 +0000 (13:49 -0700)]
UsbDebuggingManager: add missing break in switch

Bug: 7079044
Change-Id: Icf4090e79af47db7d068981537c97f2028d8e405

11 years agoEnable new keyguard
Jim Miller [Wed, 29 Aug 2012 20:48:34 +0000 (13:48 -0700)]
Enable new keyguard

Change-Id: I52af2d4f9083120616f012138a60b557a0eb70cf

11 years agoam 4a4edbbf: am 7fecf5f4: Merge "Make addAddress locale safe"
Jean-Baptiste Queru [Wed, 29 Aug 2012 20:03:41 +0000 (13:03 -0700)]
am 4a4edbbf: am 7fecf5f4: Merge "Make addAddress locale safe"

* commit '4a4edbbfce2e1a8b34b5b9ff2793eace303dae5a':
  Make addAddress locale safe