OSDN Git Service

android-x86/frameworks-base.git
9 years agoRemove activity and window stacks when last task is removed.
Wale Ogunwale [Fri, 20 Feb 2015 00:19:15 +0000 (16:19 -0800)]
Remove activity and window stacks when last task is removed.

Also,
* Only restore recent task to a full screen stack instead of any
  randomly sized stack.
* Fixed issue where we were restore task from recents for some
  operations when we didn't need to.
* Null out TaskRecord.stack when the task is removed from the
  stack.

Bug: 19083170
Change-Id: I4e006f101f9d0f2aebde130ad77afc4d258c6612

9 years agoMerge "Apply stack dim layer to entire screen for system windows."
Wale Ogunwale [Tue, 17 Feb 2015 16:45:38 +0000 (16:45 +0000)]
Merge "Apply stack dim layer to entire screen for system windows."

9 years agoMerge "Don't move multi-window stacks on orientation change."
Wale Ogunwale [Tue, 17 Feb 2015 16:45:13 +0000 (16:45 +0000)]
Merge "Don't move multi-window stacks on orientation change."

9 years agoMerge "Volume: Allow dialog to query "muteable" streams."
John Spurlock [Tue, 17 Feb 2015 16:36:41 +0000 (16:36 +0000)]
Merge "Volume: Allow dialog to query "muteable" streams."

9 years agoVolume: Allow dialog to query "muteable" streams.
John Spurlock [Tue, 17 Feb 2015 16:01:51 +0000 (11:01 -0500)]
Volume: Allow dialog to query "muteable" streams.

Similar to the existing ability to query streams affected
by ringer mode.

Bug:19260237
Change-Id: I76eb5ab6b7c7e3a4d73ac1909289c560194d4fe8

9 years agoMerge "Disable color view animations when stable insets change"
Adrian Roos [Tue, 17 Feb 2015 15:50:07 +0000 (15:50 +0000)]
Merge "Disable color view animations when stable insets change"

9 years agoDisable color view animations when stable insets change
Adrian Roos [Tue, 17 Feb 2015 15:37:53 +0000 (16:37 +0100)]
Disable color view animations when stable insets change

Prevents color view from showing up on phones when
the orientation changes to landscape. Previously, the
animation was only prevented when the stable inset of a
bar became nonzero; now we disable animations whenever
the nonzeroness changes.

Bug: 19353466

Change-Id: Ibcf15ee4e0c9fba429745dde1b808ee41c7473cf

9 years agoMerge "Up the history on SignalControllers"
Jason Monk [Tue, 17 Feb 2015 15:25:34 +0000 (15:25 +0000)]
Merge "Up the history on SignalControllers"

9 years agoMerge "DevicePolicy: Make uid parameter an int"
Robin Lee [Tue, 17 Feb 2015 14:44:33 +0000 (14:44 +0000)]
Merge "DevicePolicy: Make uid parameter an int"

9 years agoDevicePolicy: Make uid parameter an int
Robin Lee [Tue, 17 Feb 2015 14:12:48 +0000 (14:12 +0000)]
DevicePolicy: Make uid parameter an int

This should not have been a long to begin with.

Change-Id: Icbf6e2e97cb6301b968b3eb8b3f9a46331f7983e

9 years agoam b1ea8a53: am 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> include for...
Elliott Hughes [Tue, 17 Feb 2015 02:09:42 +0000 (02:09 +0000)]
am b1ea8a53: am 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> include for flock."

* commit 'b1ea8a5316f9e439fd7608e1152c45aaf8f098ff':
  Add missing <sys/file.h> include for flock.

9 years agoApply stack dim layer to entire screen for system windows.
Wale Ogunwale [Fri, 13 Feb 2015 17:42:46 +0000 (09:42 -0800)]
Apply stack dim layer to entire screen for system windows.

System windows like alert dialogs are attached to the currently
focused stack even when the stack isn't full screen. This causes
the dim not to apply to other visible stacks when a system
window is up. Change applies the dim to the entire screen for
system windows since they extend outside a resized stack.

Bug: 19332229
Change-Id: I94affa6a652326bf2cf14b1b8bf54862c111c540

9 years agoam 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> include for flock."
Elliott Hughes [Tue, 17 Feb 2015 01:34:35 +0000 (01:34 +0000)]
am 2aa2672d: am 627396ac: Merge "Add missing <sys/file.h> include for flock."

* commit '2aa2672dd8168ac2bbd9d01c31ff14fea226b089':
  Add missing <sys/file.h> include for flock.

9 years agoam 627396ac: Merge "Add missing <sys/file.h> include for flock."
Elliott Hughes [Tue, 17 Feb 2015 01:28:34 +0000 (01:28 +0000)]
am 627396ac: Merge "Add missing <sys/file.h> include for flock."

* commit '627396ac90dd4f8510e931bffb6705f41878c87a':
  Add missing <sys/file.h> include for flock.

9 years agoDon't move multi-window stacks on orientation change.
Wale Ogunwale [Fri, 13 Feb 2015 07:01:38 +0000 (23:01 -0800)]
Don't move multi-window stacks on orientation change.

Change allows resized stacks to remain in the same location
while their content change orientation.

Bug: 19358195
Change-Id: I5a9898c1cf85cb5c4c2eab0f4969b339defb199a

9 years agoMerge "Add missing <sys/file.h> include for flock."
Elliott Hughes [Tue, 17 Feb 2015 01:22:19 +0000 (01:22 +0000)]
Merge "Add missing <sys/file.h> include for flock."

9 years agoam c8036cdc: am 5d8f2491: am 2a005f6f: Merge "Prevent leaking surfaces from exiting...
Craig Mautner [Mon, 16 Feb 2015 23:15:56 +0000 (23:15 +0000)]
am c8036cdc: am 5d8f2491: am 2a005f6f: Merge "Prevent leaking surfaces from exiting windows"

* commit 'c8036cdc602a35a415fd66370c7621bb957f657e':
  Prevent leaking surfaces from exiting windows

9 years agoam 5d8f2491: am 2a005f6f: Merge "Prevent leaking surfaces from exiting windows"
Craig Mautner [Mon, 16 Feb 2015 23:09:22 +0000 (23:09 +0000)]
am 5d8f2491: am 2a005f6f: Merge "Prevent leaking surfaces from exiting windows"

* commit '5d8f249104a1798b6c55ae1de4e5ea36a4babd53':
  Prevent leaking surfaces from exiting windows

9 years agoam 2a005f6f: Merge "Prevent leaking surfaces from exiting windows"
Craig Mautner [Mon, 16 Feb 2015 23:04:08 +0000 (23:04 +0000)]
am 2a005f6f: Merge "Prevent leaking surfaces from exiting windows"

* commit '2a005f6fe91eac2ac2646be17815756637ed610f':
  Prevent leaking surfaces from exiting windows

9 years agoMerge "Prevent leaking surfaces from exiting windows"
Craig Mautner [Mon, 16 Feb 2015 22:59:20 +0000 (22:59 +0000)]
Merge "Prevent leaking surfaces from exiting windows"

9 years agoAdd missing <sys/file.h> include for flock.
Elliott Hughes [Mon, 16 Feb 2015 18:43:19 +0000 (10:43 -0800)]
Add missing <sys/file.h> include for flock.

Change-Id: I0c66c03aeb4df614f7880a830b95c40f43f804db

9 years agoam 0bbacbdd: (-s ours) am 0a786f5f: (-s ours) am f27b9850: (-s ours) Import translati...
Geoff Mendal [Mon, 16 Feb 2015 17:16:52 +0000 (17:16 +0000)]
am 0bbacbdd: (-s ours) am 0a786f5f: (-s ours) am f27b9850: (-s ours) Import translations. DO NOT MERGE

* commit '0bbacbdd2f3d7711fb9bbcb2852ff62fd497d731':

9 years agoam 9bf1c310: (-s ours) Import translations. DO NOT MERGE automerge: f27b985 -s ours
Geoff Mendal [Mon, 16 Feb 2015 17:16:47 +0000 (17:16 +0000)]
am 9bf1c310: (-s ours) Import translations. DO NOT MERGE automerge: f27b985  -s ours

* commit '9bf1c310132b914dcd7bb760ac68a0833374e6cb':
  Import translations. DO NOT MERGE

9 years agoam 0a786f5f: (-s ours) am f27b9850: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 17:12:23 +0000 (17:12 +0000)]
am 0a786f5f: (-s ours) am f27b9850: (-s ours) Import translations. DO NOT MERGE

* commit '0a786f5f227683f2d54145117b746629ddd2c32b':

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 17:09:22 +0000 (17:09 +0000)]
Import translations. DO NOT MERGE
automerge: f27b985  -s ours

* commit 'f27b98508492ebad1e183cb052df0327d47693b4':
  Import translations. DO NOT MERGE

9 years agoam f27b9850: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 17:07:07 +0000 (17:07 +0000)]
am f27b9850: (-s ours) Import translations. DO NOT MERGE

* commit 'f27b98508492ebad1e183cb052df0327d47693b4':
  Import translations. DO NOT MERGE

9 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 16 Feb 2015 16:56:21 +0000 (16:56 +0000)]
Merge "Import translations. DO NOT MERGE"

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

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

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

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

9 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 16 Feb 2015 15:08:01 +0000 (15:08 +0000)]
Merge "Import translations. DO NOT MERGE"

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 14:57:31 +0000 (06:57 -0800)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 16 Feb 2015 14:45:46 +0000 (14:45 +0000)]
Merge "Import translations. DO NOT MERGE"

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 14:43:49 +0000 (06:43 -0800)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Feb 2015 14:40:33 +0000 (06:40 -0800)]
Import translations. DO NOT MERGE

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

9 years agoam 07aaff33: am 58524b2a: am e7e92381: Merge "Register DDM handlers at the beginning...
Piotr Jastrzebski [Mon, 16 Feb 2015 13:06:08 +0000 (13:06 +0000)]
am 07aaff33: am 58524b2a: am e7e92381: Merge "Register DDM handlers at the beginning of main method."

* commit '07aaff33ef0e61dfbb15188c5aae0624dc9524a9':
  Register DDM handlers at the beginning of main method.

9 years agoam 58524b2a: am e7e92381: Merge "Register DDM handlers at the beginning of main method."
Piotr Jastrzebski [Mon, 16 Feb 2015 12:59:37 +0000 (12:59 +0000)]
am 58524b2a: am e7e92381: Merge "Register DDM handlers at the beginning of main method."

* commit '58524b2aa620ae1ea709ae48b8b8598548cc7202':
  Register DDM handlers at the beginning of main method.

9 years agoam e7e92381: Merge "Register DDM handlers at the beginning of main method."
Piotr Jastrzebski [Mon, 16 Feb 2015 12:52:59 +0000 (12:52 +0000)]
am e7e92381: Merge "Register DDM handlers at the beginning of main method."

* commit 'e7e923818096a8a046ad183e932454428218c867':
  Register DDM handlers at the beginning of main method.

9 years agoMerge "Register DDM handlers at the beginning of main method."
Piotr Jastrzebski [Mon, 16 Feb 2015 12:47:07 +0000 (12:47 +0000)]
Merge "Register DDM handlers at the beginning of main method."

9 years agoMerge "Device Policy API to choose a private key silently"
Robin Lee [Mon, 16 Feb 2015 10:47:49 +0000 (10:47 +0000)]
Merge "Device Policy API to choose a private key silently"

9 years agoPrevent leaking surfaces from exiting windows
tiger_huang [Mon, 16 Feb 2015 08:14:47 +0000 (16:14 +0800)]
Prevent leaking surfaces from exiting windows

AM would set the exiting app to be invisible twice by calling
setAppVisibility(). If the screen is turned off during these calls,
the window surfaces of this exiting app won't be destroyed.

The flow:
 1. Screen is on
 2. App A is finished
 3. AM calls setAppVisibility() token=App A, visible=false
 4. WM sets a dummy animation to App A
 5. WM marks App A's wtoken.inPendingTransaction=true
 6. Screen is turned off
 7. AM calls setAppVisibility() token=App A, visible=false
 8. WM calls setTokenVisibilityLocked() directly (screen is off)
 9. WM sends app visibility to App A's client (ViewRootImpl)
10. WM clears the dummy animation from App A
11. App A's client calls WMS.relayoutWindow() to be not visible
12. WM sets App A's window mExiting=true but not destroy its surface
13. App A's window surface leaks...

Note:
a. The call in 3. is from ActivityStack.finishActivityLocked
b. The call in 7. is from ActivityStack.resumeTopActivityInnerLocked
c. In 10., App A won't get the real animation while screen is off
d. In 12., App A's inPendingTransaction=true; WM takes it's animating
e. mExiting won't be cleared because App A has no animation to
   trigger WindowStateAnimator.finishExit()

After applying this patch, WM would destroy the surface in 12. of the
above flow.

Change-Id: I18b79ba96695ec80d57a85dc15cf92a9e7d3a6ef

9 years agoMerge "Adjust activity display metrics based on stack configuration."
Wale Ogunwale [Sun, 15 Feb 2015 20:20:06 +0000 (20:20 +0000)]
Merge "Adjust activity display metrics based on stack configuration."

9 years agoReference lint rule numbers, more rules.
Jeff Sharkey [Sun, 15 Feb 2015 01:03:47 +0000 (17:03 -0800)]
Reference lint rule numbers, more rules.

When reporting lint errors/warnings, reference the relevant
underlying rule.  Also adds a few more lint rules, and removes a few
aggressive checks.

Change-Id: I1bdadf5fd4df9cd28bb7dfe1c7bb1f9055398315

9 years agoam 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListene...
Yohei Yukawa [Sat, 14 Feb 2015 15:21:50 +0000 (15:21 +0000)]
am 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListener" automerge: efd9abb
automerge: 32acf75

* commit '32acf753e8989766f67fd5300d3eb467f707cc79':
  Prevent duplicated registration of OnComputeInternalInsetsListener

9 years agoam 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListene...
Yohei Yukawa [Sat, 14 Feb 2015 15:17:17 +0000 (15:17 +0000)]
am 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListener" automerge: efd9abb

* commit '83c804be9c1f33ff4bafbfd60218751a00c7d2b9':
  Prevent duplicated registration of OnComputeInternalInsetsListener

9 years agoMerge "Prevent duplicated registration of OnComputeInternalInsetsListener"
Yohei Yukawa [Sat, 14 Feb 2015 15:11:37 +0000 (15:11 +0000)]
Merge "Prevent duplicated registration of OnComputeInternalInsetsListener"
automerge: efd9abb

* commit 'efd9abb7dfd8d5015e73ab52b4f9b7854df4b02c':
  Prevent duplicated registration of OnComputeInternalInsetsListener

9 years agoMerge "Prevent duplicated registration of OnComputeInternalInsetsListener"
Yohei Yukawa [Sat, 14 Feb 2015 15:08:04 +0000 (15:08 +0000)]
Merge "Prevent duplicated registration of OnComputeInternalInsetsListener"

9 years agoAdjust activity display metrics based on stack configuration.
Wale Ogunwale [Sat, 7 Feb 2015 01:34:28 +0000 (17:34 -0800)]
Adjust activity display metrics based on stack configuration.

Apps normally use context.getResources().getDisplayMetrics()
or getWindowManager().getDefaultDisplay() to get information
about the screen dimensions. Not all the screen space is available
for apps in a multi-window environment, so we limit the dimensions
of the display object exposed to the app to that of the containing
stack.

Bug: 19225079
Bug: 19354838
Change-Id: I8dc3a6c9b99ecedcca28fc4ddaba9f31feb4f871

9 years agoam f1df1970: am 88a9a2a4: Merge "Support for faster brightness response to light...
Filip Gruszczynski [Sat, 14 Feb 2015 02:36:05 +0000 (02:36 +0000)]
am f1df1970: am 88a9a2a4: Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev

* commit 'f1df1970db523f60d6ac7850fba93ae98a46163b':
  Support for faster brightness response to light changes.

9 years agoam 88a9a2a4: Merge "Support for faster brightness response to light changes." into...
Filip Gruszczynski [Sat, 14 Feb 2015 02:27:19 +0000 (02:27 +0000)]
am 88a9a2a4: Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev

* commit '88a9a2a46eb77ea340175f5d272433f4de1b6f93':
  Support for faster brightness response to light changes.

9 years agoMerge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev
Filip Gruszczynski [Sat, 14 Feb 2015 02:21:40 +0000 (02:21 +0000)]
Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev

9 years agoClear focus from previously focused view in EBT helper
Alan Viverette [Sat, 14 Feb 2015 01:23:05 +0000 (17:23 -0800)]
Clear focus from previously focused view in EBT helper

Change-Id: I1bd70e345fb7e8a2a1a621c20912b8325a3cd142

9 years agoRemove tab dividers
Alan Viverette [Fri, 13 Feb 2015 23:18:24 +0000 (15:18 -0800)]
Remove tab dividers

Bug: 19370157
Change-Id: Id8b5c461dd9e9cfbe6feca33d5bcd2184c5e51ba

9 years agoMerge "Implement latest Material focus states spec"
Alan Viverette [Fri, 13 Feb 2015 23:07:28 +0000 (23:07 +0000)]
Merge "Implement latest Material focus states spec"

9 years agoImplement latest Material focus states spec
Alan Viverette [Fri, 13 Feb 2015 23:01:19 +0000 (15:01 -0800)]
Implement latest Material focus states spec

- Remove some dependencies on legacy styles
- Add resources for highlight alphas
- Update tab indicator text and background
- Update list selector and activated background
- Update text highlight color to use themed CSL

Bug: 19370157
Change-Id: I873cb4c509ceeb1e8d48d8af30030c3842f6034a

9 years agoMerge "AudioService: persist volume of ring stream when ringer mode changed"
Eric Laurent [Fri, 13 Feb 2015 22:38:20 +0000 (22:38 +0000)]
Merge "AudioService: persist volume of ring stream when ringer mode changed"

9 years agoMerge "Add attribute for controlling ripple radius"
Alan Viverette [Fri, 13 Feb 2015 20:53:12 +0000 (20:53 +0000)]
Merge "Add attribute for controlling ripple radius"

9 years agoMerge "Update voice interaction layer for new UI design."
Dianne Hackborn [Fri, 13 Feb 2015 20:15:58 +0000 (20:15 +0000)]
Merge "Update voice interaction layer for new UI design."

9 years agoUpdate voice interaction layer for new UI design.
Dianne Hackborn [Thu, 12 Feb 2015 01:02:41 +0000 (17:02 -0800)]
Update voice interaction layer for new UI design.

Can switch from a pure overlay at the top of the screen,
to interactive mode with the voice UI drawing at the bottom
and pushing its target activity up like an IME.

Add mechanism to get assist data to the voice interaction UI.

Add some basic visualization of the assist data, outlining
where on the screen we have text.

Add a test ACTION_ASSIST handler, which can propagate the
assist data it gets to the voice interaction session so
you can see what kind of data we are getting from different
apps.

Change-Id: I18312fe1601d7926d1fb96a817638d60f6263771

9 years agoAdd attribute for controlling ripple radius
Alan Viverette [Fri, 13 Feb 2015 19:11:12 +0000 (11:11 -0800)]
Add attribute for controlling ripple radius

Sets up the action bar item and control styles to use a 20dp radius
ripple to match latest Material spec.

Bug: 19370157
Change-Id: I87cba01076ee83937a6bfd36fc7dc188e1eb4672

9 years agoMerge "Add ClipReveal window transition for application launch"
Chet Haase [Fri, 13 Feb 2015 19:02:14 +0000 (19:02 +0000)]
Merge "Add ClipReveal window transition for application launch"

9 years agoAdd ClipReveal window transition for application launch
Chet Haase [Wed, 11 Feb 2015 23:08:38 +0000 (15:08 -0800)]
Add ClipReveal window transition for application launch

Issue #19362772 Better material launch animations

Change-Id: Ic94fde910b6b5554ee954dfbbf374949f9eb189d

9 years agoMerge "Add missing accessor to CompoundDrawable, clean up javadoc"
Alan Viverette [Fri, 13 Feb 2015 18:51:43 +0000 (18:51 +0000)]
Merge "Add missing accessor to CompoundDrawable, clean up javadoc"

9 years agoMerge "NLS: Add a public signal value for an undefined filter value."
John Spurlock [Fri, 13 Feb 2015 18:35:49 +0000 (18:35 +0000)]
Merge "NLS: Add a public signal value for an undefined filter value."

9 years agoMerge "Fix EditText RenderNode invalidation bugs"
Raph Levien [Fri, 13 Feb 2015 18:06:12 +0000 (18:06 +0000)]
Merge "Fix EditText RenderNode invalidation bugs"

9 years agoSupport for faster brightness response to light changes.
Filip Gruszczynski [Fri, 6 Feb 2015 20:38:47 +0000 (12:38 -0800)]
Support for faster brightness response to light changes.

Bug: 18572096

Change-Id: Ic9448db672b036779d16883f3476249cea45d97a

9 years agoMerge "RegisteredServicesCache now saves files to a user-specific dir"
Fyodor Kupolov [Fri, 13 Feb 2015 17:05:10 +0000 (17:05 +0000)]
Merge "RegisteredServicesCache now saves files to a user-specific dir"

9 years agoMerge "Allow sysui-managed remote volume controllers."
John Spurlock [Fri, 13 Feb 2015 14:50:49 +0000 (14:50 +0000)]
Merge "Allow sysui-managed remote volume controllers."

9 years agoNLS: Add a public signal value for an undefined filter value.
John Spurlock [Fri, 13 Feb 2015 04:25:12 +0000 (23:25 -0500)]
NLS: Add a public signal value for an undefined filter value.

We have three possible defined values for getInterruptionFilter().
i.e. All/Priority/None.

However, this value is only returned to listeners once connected,
otherwise we return 0, an undefined value.

This change gives a name to this undefined value to make it clear
that callers should not infer any meaning from it.

INTERRUPTION_FILTER_UNKNOWN = 0;

Bug: 19288429
Change-Id: I8ae94d1723289ca5714800906f9bf4e7e8111813

9 years agoRegister DDM handlers at the beginning of main method.
Piotr Jastrzebski [Thu, 12 Feb 2015 13:55:23 +0000 (13:55 +0000)]
Register DDM handlers at the beginning of main method.

Compiler initializes RuntimeInit during compilation and stores an
initialized version of the class in oat file. Same thing happens to
DdmServer which handles DDM packets in JDWP thread started during JVM
creation. This means that after the creation of JVM all
DDM packets are handled by DdmServer.dispatch and since it's already
initialized during compilation it has all framework related handlers
already registered. If a packet arrives before AndroidRuntime.startReg
is called then framework native methods are not yet registered and the
processing of the packet fails with UnsatisfiedLinkError.

To fix this problem the registration of framework related DDM handlers
is moved to the beginning of ZygoteInit.main and RuntimeInit.main. This
means that the handlers won't be registered until main method is called
and that's guaranteed to be after AndroidRuntime.startReg is called. It
also guarantees that DDM packets will be properly handled as soon as
Java code is executed.

Bug: 18081539.
Change-Id: I9c674f53f3f62d58c46886e0b60698182e08f0c3

9 years agoMerge "Remove code that sets user.* system properties."
Narayan Kamath [Fri, 13 Feb 2015 12:33:51 +0000 (12:33 +0000)]
Merge "Remove code that sets user.* system properties."

9 years agoam a511eea8: (-s ours) am aee7f64c: am b4a5c04c: Merge "Remove code that sets user...
Narayan Kamath [Fri, 13 Feb 2015 12:19:13 +0000 (12:19 +0000)]
am a511eea8: (-s ours) am aee7f64c: am b4a5c04c: Merge "Remove code that sets user.* system properties."

* commit 'a511eea83b0209729e4b42e219f233f818a6d9e7':
  Remove code that sets user.* system properties.

9 years agoam aee7f64c: am b4a5c04c: Merge "Remove code that sets user.* system properties."
Narayan Kamath [Fri, 13 Feb 2015 12:09:31 +0000 (12:09 +0000)]
am aee7f64c: am b4a5c04c: Merge "Remove code that sets user.* system properties."

* commit 'aee7f64c10ffd2135dc98f7a540836ad7a32438b':
  Remove code that sets user.* system properties.

9 years agoam b4a5c04c: Merge "Remove code that sets user.* system properties."
Narayan Kamath [Fri, 13 Feb 2015 12:04:36 +0000 (12:04 +0000)]
am b4a5c04c: Merge "Remove code that sets user.* system properties."

* commit 'b4a5c04c305a04a876728397dec7cc809e26b823':
  Remove code that sets user.* system properties.

9 years agoRemove code that sets user.* system properties.
Narayan Kamath [Thu, 12 Feb 2015 17:50:24 +0000 (17:50 +0000)]
Remove code that sets user.* system properties.

This has been disallowed by the SELinux for several years now,
so can safely be removed. Given that saveLocaleLocked is
simplified quite a bit, we can now inline into its only caller.

bug: 18910417

(cherry picked from commit 70e8f6600de8a2b9cbb17cd919b14a4609fc68bd)

Change-Id: Ib2888ea22ffca6f4b402efd5780f89c924cd1570

9 years agoMerge "Remove code that sets user.* system properties."
Narayan Kamath [Fri, 13 Feb 2015 11:57:38 +0000 (11:57 +0000)]
Merge "Remove code that sets user.* system properties."

9 years agoRemove code that sets user.* system properties.
Narayan Kamath [Thu, 12 Feb 2015 17:50:24 +0000 (17:50 +0000)]
Remove code that sets user.* system properties.

This has been disallowed by the SELinux for several years now,
so can safely be removed. Given that saveLocaleLocked is
simplified quite a bit, we can now inline into its only caller.

bug: 18910417

Change-Id: I18251f77e4a25a0e7ecda8e85a9b3fcdc2dc7b05

9 years agoMerge "Move apache specific portions of android.net.http to external/apache-http."
Narayan Kamath [Fri, 13 Feb 2015 09:51:41 +0000 (09:51 +0000)]
Merge "Move apache specific portions of android.net.http to external/apache-http."

9 years agoam 04057e5d: am 5136791b: am 599c1042: Accessibility: Ensure fresh accessilbity focus...
Svetoslav [Fri, 13 Feb 2015 03:57:05 +0000 (03:57 +0000)]
am 04057e5d: am 5136791b: am 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes. automerge: 27ad2e9

* commit '04057e5d14030ef54c522b2372019cf2858083e9':
  Accessibility: Ensure fresh accessilbity focused and input focused nodes.

9 years agoam 5136791b: am 599c1042: Accessibility: Ensure fresh accessilbity focused and input...
Svetoslav [Fri, 13 Feb 2015 03:49:40 +0000 (03:49 +0000)]
am 5136791b: am 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes. automerge: 27ad2e9

* commit '5136791b3429d1964b9202fb7caad52719408a61':
  Accessibility: Ensure fresh accessilbity focused and input focused nodes.

9 years agoAllow sysui-managed remote volume controllers.
John Spurlock [Thu, 12 Feb 2015 00:04:11 +0000 (19:04 -0500)]
Allow sysui-managed remote volume controllers.

- Relax restriction on audio service calls that assume the volume
  ui is systemui, allow calls from a blessed component app.
- Blessed component app service saved in secure settings.
- SystemUI mediates requests to replace the volume dialog, prompts
  the user on activation.
- Show a low pri ongoing notification when the volume dialog is
  being replaced, to allow user restoration at any time.
- Replace the controller management code in VolumeUI to use a
  ServiceMonitor, backed by the new blessed app component setting.
- Add proper zen-related noman client wrappers, make avail to the
  registered volume controller.
- Everything is still @hidden, no api impact.

Bug: 19260237
Change-Id: Ie1383f57659090318a7eda737fdad5b8f88737d4

9 years agoam 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes...
Svetoslav [Fri, 13 Feb 2015 03:43:29 +0000 (03:43 +0000)]
am 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes. automerge: 27ad2e9

* commit '599c1042896564906935bc688bbb85515a6dfa45':
  Accessibility: Ensure fresh accessilbity focused and input focused nodes.

9 years agoAccessibility: Ensure fresh accessilbity focused and input focused nodes.
Svetoslav [Fri, 13 Feb 2015 03:37:00 +0000 (03:37 +0000)]
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
automerge: 27ad2e9

* commit '27ad2e95b40fd0ca76de384695498ea114d627ca':
  Accessibility: Ensure fresh accessilbity focused and input focused nodes.

9 years agoam f80fa0b5: am 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep...
Jeff Brown [Fri, 13 Feb 2015 02:17:56 +0000 (02:17 +0000)]
am f80fa0b5: am 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep mode"

* commit 'f80fa0b5d9b5567731dc19b4b5fc73816c131910':
  Call startInput on return from sleep mode

9 years agoam 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep mode"
Jeff Brown [Fri, 13 Feb 2015 02:11:43 +0000 (02:11 +0000)]
am 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep mode"

* commit '6c477a29bfc604f6dbf90e0d4ac5c99bc0ed2ff7':
  Call startInput on return from sleep mode

9 years agoam ec403e8f: Merge "Call startInput on return from sleep mode"
Jeff Brown [Fri, 13 Feb 2015 02:06:01 +0000 (02:06 +0000)]
am ec403e8f: Merge "Call startInput on return from sleep mode"

* commit 'ec403e8f476c817b87c0ef9297fdb548e8b1e4e4':
  Call startInput on return from sleep mode

9 years agoMerge "Call startInput on return from sleep mode"
Jeff Brown [Fri, 13 Feb 2015 02:00:00 +0000 (02:00 +0000)]
Merge "Call startInput on return from sleep mode"

9 years agoAccessibility: Ensure fresh accessilbity focused and input focused nodes.
Svetoslav [Fri, 13 Feb 2015 01:54:15 +0000 (17:54 -0800)]
Accessibility: Ensure fresh accessilbity focused and input focused nodes.

Change-Id: Ia3c84284843a415cdbbc2b6a9b06d9ddffbe0e04

9 years agoam 5cef9f8f: am fb7c14c5: am 41af9d59: Merge "camera2: Fix legacy scaling factor...
Ruben Brunk [Fri, 13 Feb 2015 01:45:49 +0000 (01:45 +0000)]
am 5cef9f8f: am fb7c14c5: am 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4

* commit '5cef9f8f3ff26dc91f31ce1c3c1543df64ea1eba':

9 years agoam ff475c0e: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1...
Ruben Brunk [Fri, 13 Feb 2015 01:45:27 +0000 (01:45 +0000)]
am ff475c0e: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4 automerge: 41af9d5

* commit 'ff475c0ea71ffd5f015cce1462daf373129ca896':
  camera2: Fix legacy scaling factor application.

9 years agoam fb7c14c5: am 41af9d59: Merge "camera2: Fix legacy scaling factor application....
Ruben Brunk [Fri, 13 Feb 2015 01:39:42 +0000 (01:39 +0000)]
am fb7c14c5: am 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4

* commit 'fb7c14c5f974cad8b74e51cc8fab86c276626780':

9 years agoMerge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge...
Ruben Brunk [Fri, 13 Feb 2015 01:36:13 +0000 (01:36 +0000)]
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4
automerge: 41af9d5

* commit '41af9d592efbae88ed95ab77a856dd4e8fbab998':
  camera2: Fix legacy scaling factor application.

9 years agoRegisteredServicesCache now saves files to a user-specific dir
Fyodor Kupolov [Wed, 11 Feb 2015 22:13:34 +0000 (14:13 -0800)]
RegisteredServicesCache now saves files to a user-specific dir

Previously, its state was saved in a single xml file inside
/data/system/registered_services.

Services are now stored in separate files stored in a user-specific dir. A
one-off migration step was added, which runs, when the system discovers a
file in the old format.

Bug:19321135
Change-Id: Ie92be01047f4855d01352b6a304820b37344ae2c

9 years agoam 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1...
Ruben Brunk [Fri, 13 Feb 2015 01:33:42 +0000 (01:33 +0000)]
am 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4

* commit '41af9d592efbae88ed95ab77a856dd4e8fbab998':
  camera2: Fix legacy scaling factor application.

9 years agoAudioService: persist volume of ring stream when ringer mode changed
Eric Laurent [Fri, 13 Feb 2015 01:28:53 +0000 (17:28 -0800)]
AudioService: persist volume of ring stream when ringer mode changed

-Originally, when ringer mode changed from vibrate to normal by
 adjusting volume from 0 to 1 , volume index will not be persisted.
 After device rebooted, volume of ring stream will be restored to 0
-Persist volume index when ringer mode changed

Bug: 18762217

Change-Id: I75fbeaab01d80b8bcee623795f59a9e9f16b9634

9 years agoMerge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev
Ruben Brunk [Fri, 13 Feb 2015 01:28:23 +0000 (01:28 +0000)]
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev
automerge: d2ccbd4

* commit 'd2ccbd43d24a79122e404206c528995600a6507d':
  camera2: Fix legacy scaling factor application.

9 years agoMerge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev
Ruben Brunk [Fri, 13 Feb 2015 01:22:24 +0000 (01:22 +0000)]
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev

9 years agoMerge "Track line numbers in lint script."
Jeff Sharkey [Fri, 13 Feb 2015 01:07:16 +0000 (01:07 +0000)]
Merge "Track line numbers in lint script."

9 years agoam 15ebb4da: am 96a99bc3: am b9f9408c: am 474746c7: am 2ea209ab: am 8d0df9b8: Merge...
Luan Nguyen [Fri, 13 Feb 2015 00:40:58 +0000 (00:40 +0000)]
am 15ebb4da: am 96a99bc3: am b9f9408c: am 474746c7: am 2ea209ab: am 8d0df9b8: Merge "docs: Update device art generator to include Wear generic devices." into lmp-docs automerge: fe2c687

* commit '15ebb4daab95c5ae85ebe5070099d2ab3be83676':
  docs: Update device art generator to include Wear generic devices.

9 years agoam 4317ab13: am 86391a2f: am b967f720: am 71cf2b6d: am e726495a: am fe5e7e92: Merge...
Luan Nguyen [Fri, 13 Feb 2015 00:40:54 +0000 (00:40 +0000)]
am 4317ab13: am 86391a2f: am b967f720: am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration in file backup section" into lmp-docs automerge: e0306bb

* commit '4317ab134b1c46d23429f3a92c4ecd5a4d385b8e':
  docs: Fix issue with onCreate() method declaration in file backup section

9 years agoam 968db361: am b8f9e048: am e88f3522: am b14aec1b: am b6de0316: am e1f90b4e: Merge...
Luan Nguyen [Fri, 13 Feb 2015 00:40:48 +0000 (00:40 +0000)]
am 968db361: am b8f9e048: am e88f3522: am b14aec1b: am b6de0316: am e1f90b4e: Merge "docs: Fix notification api guide issues (746115412765600)" into lmp-docs automerge: 946bf2d

* commit '968db3619a0abc26d486544e17acd168941312c8':
  docs: Fix notification api guide issues (746115412765600)