OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Fix incorrect VPN time" into klp-dev
Vinit Deshapnde [Wed, 2 Oct 2013 19:23:22 +0000 (19:23 +0000)]
Merge "Fix incorrect VPN time" into klp-dev

10 years agoMerge "Sometimes printer selection from all printers activity does not work." into...
Svetoslav [Wed, 2 Oct 2013 19:15:10 +0000 (19:15 +0000)]
Merge "Sometimes printer selection from all printers activity does not work." into klp-dev

10 years agoFix incorrect VPN time
Vinit Deshapnde [Wed, 2 Oct 2013 18:50:39 +0000 (11:50 -0700)]
Fix incorrect VPN time

First, startTime's default value is -1 and not 0, so use it to test
if the startTime is set. Also, startTime isn't being set when connecting
legacy VPN; this change fixes that too.

Bug: 10985174
Change-Id: Ibf52b8f489b18c96efba501b76aa73e9a9e0e3e8

10 years agoMerge "Create new window-side task on demand." into klp-dev
Craig Mautner [Wed, 2 Oct 2013 17:45:46 +0000 (17:45 +0000)]
Merge "Create new window-side task on demand." into klp-dev

10 years agoMerge "Docs change: annotate media intent actions." into klp-dev
Jeff Sharkey [Wed, 2 Oct 2013 17:39:18 +0000 (17:39 +0000)]
Merge "Docs change: annotate media intent actions." into klp-dev

10 years agoCreate new window-side task on demand.
Craig Mautner [Wed, 2 Oct 2013 17:04:13 +0000 (10:04 -0700)]
Create new window-side task on demand.

The activity manager can create a new task under certain
circumstances in resetTargetTaskIfNeededLocked(). In that case the
window manager was not told to create a new task. This fix creates the
task in window manager when it recognizes that there is a new task
required.

Fixes bug 10412588.

Change-Id: Ife9ecfeb7f53f9df5950322c9359c836adc258a2

10 years agoMerge "New, less blue overscroll assets with tuned constants in EdgeEffect class...
Mindy DelliCarpini [Wed, 2 Oct 2013 17:26:47 +0000 (17:26 +0000)]
Merge "New, less blue overscroll assets with tuned constants in EdgeEffect class." into klp-dev

10 years agoDocs change: annotate media intent actions.
Jeff Sharkey [Wed, 2 Oct 2013 17:11:22 +0000 (10:11 -0700)]
Docs change: annotate media intent actions.

Bug: 11043141
Change-Id: I66777c5ce25014d8e64da5b4ce3f70334befb0b7

10 years agoMerge "Isolate calls to each remote DocumentsProvider." into klp-dev
Jeff Sharkey [Wed, 2 Oct 2013 16:42:50 +0000 (16:42 +0000)]
Merge "Isolate calls to each remote DocumentsProvider." into klp-dev

10 years agoIsolate calls to each remote DocumentsProvider.
Jeff Sharkey [Wed, 2 Oct 2013 00:57:41 +0000 (17:57 -0700)]
Isolate calls to each remote DocumentsProvider.

All background work is going through AsyncTasks, which uses a shared
thread pool.  Even with the new ContentProviderClient logic to detect
ANRs, the UI can still appear to be unresponsive for 20 seconds, even
if the user attempted to switch to a different backend.  In the worst
case, a backlog of thumbnail requests would end up wedging Loaders
for a long time, since they all share the same THREAD_POOL_EXECUTOR.

This change isolates calls to each provider onto their own thread,
which they're free to wedge and recover from over time.

It also means we no longer need a dedicated thread pool for recents
loading, and can use a simpler Semaphore instead.

Disables thumbnails in recents on svelte devices.

Bug: 1099330111014856
Change-Id: I7f8a5bbb5f64437e006cb2c48b7e854136d5c38c

10 years agoRevert "Allow L2CAP sockets"
Mike Lockwood [Wed, 2 Oct 2013 14:56:46 +0000 (07:56 -0700)]
Revert "Allow L2CAP sockets"

This reverts commit 34b0f926135b4697f091b3b39bfca8c70512af6c.

10 years agoMerge "Add debuggging for 10858941." into klp-dev
Craig Mautner [Wed, 2 Oct 2013 05:04:07 +0000 (05:04 +0000)]
Merge "Add debuggging for 10858941." into klp-dev

10 years agoAdd debuggging for 10858941.
Craig Mautner [Wed, 2 Oct 2013 04:16:22 +0000 (21:16 -0700)]
Add debuggging for 10858941.

Change-Id: I0517ccd9a83ef19a9002d61dbebf36d0120e1f63

10 years agoFix issue #11005453: [SUW] G+ profile creation for new user broken
Dianne Hackborn [Wed, 2 Oct 2013 02:10:13 +0000 (19:10 -0700)]
Fix issue #11005453: [SUW] G+ profile creation for new user broken

The main problem here was a mistake when turning a single process
structure to a multi-package-process structure with a common
process.  When we cloned the original process state, if there were
any services already created for the process for that package, they
would be left with their process pointer still referencing the
original now common process instead of the package-specific process,
allowing the active counts to get bad.  Now we switch any of those
processes over to the new package-specific process.

There was also another smaller issue with how ServiceRecord is
associated with a ServiceState -- we could be waiting for an
old ServiceRecord to be destroyed while at the same time creating
a new ServiceRecord for that same service class.  These would share
the same ServiceState, so when the old record finally finished
destroying itself it would trample over whatever the new service
is doing.

This is fixed by changing the model to instead of using an "active"
reference count, we have an object identifying the current owner
of the ServiceState.  Then when the old ServiceRecord is cleaning
up, we know if it is still the owner at that point.

Also some other small things along the way -- new Log.wtfStack()
method that is convenient, new suite of Slog.wtf methods, fixed
some services to use Slog.wtf when catching exceptions being
returned to the caller so that we actually know about them.

Change-Id: I75674ce38050b6423fd3c6f43d1be172b470741f

10 years agoMerge "Adding an empty state UI for the printer search activity in the spooler."...
Svetoslav [Wed, 2 Oct 2013 02:21:29 +0000 (02:21 +0000)]
Merge "Adding an empty state UI for the printer search activity in the spooler." into klp-dev

10 years agoSometimes printer selection from all printers activity does not work.
Svetoslav [Wed, 2 Oct 2013 00:53:17 +0000 (17:53 -0700)]
Sometimes printer selection from all printers activity does not work.

1. Sometimes selecting a printer from the full printer list does not
   work if the selected printer was not in the initial drop down list
   of the print dialog.

   The reason was that there is a race. We use loaders in the print
   dialog activity and the all printers one. When these loaders are
   stopped we stop printer discovery since we do not want to keep this
   potentially expensive process on going if the activity is paused
   because say the user decide to press home and start playing his
   favorite game while the printers dialog is up. As a result the
   loader does not get printer updates until it is started.

   The loader of the print dialog activity is stopped while the user is
   selecting a printer from the all printers activity whose loader is
   getting discovered recent printers. Now when the user selects a printer
   the loader of the print dialog activity is started but may not get
   the latest printers by the time onActivityResult is called with the
   selected printer. Now we cache the selected printer id and if the
   loader reports it we select that printer.

2. In the print dialog we show only a few of the discovered printers.
   If the user selects a printer from the all printers activity that
   is not in the initial list we shuffle the adapter data to make sure
   the selected printer is in the shown subset. Now if the printers
   change, i.e. the printers loader reports new result we were not
   respecting the reshuffling made before so the short list of
   printers changes yet again.

bug:11034216

Change-Id: I54fe3619e3328b65839d9f4b02309699eae7f8eb

10 years agoMerge "Make room for new public flags" into klp-dev
Adam Lesinski [Wed, 2 Oct 2013 01:55:09 +0000 (01:55 +0000)]
Merge "Make room for new public flags" into klp-dev

10 years agoMake room for new public flags
Adam Lesinski [Wed, 2 Oct 2013 01:11:17 +0000 (18:11 -0700)]
Make room for new public flags

Moved two hidden flags to private

bug:11033280
Change-Id: Icca867b073aff643eefdaf84df68de86bb6b05ac

10 years agoMerge "Track wireless charger detector timeout explicitly." into klp-dev
Jeff Brown [Wed, 2 Oct 2013 01:47:55 +0000 (01:47 +0000)]
Merge "Track wireless charger detector timeout explicitly." into klp-dev

10 years agoMerge "Fix animations, padding in RTL mode." into klp-dev
Jeff Sharkey [Wed, 2 Oct 2013 01:43:12 +0000 (01:43 +0000)]
Merge "Fix animations, padding in RTL mode." into klp-dev

10 years agoMerge "Make onClickHandler in KeyguardHostView a weak reference" into klp-dev
Chet Haase [Tue, 1 Oct 2013 23:44:35 +0000 (23:44 +0000)]
Merge "Make onClickHandler in KeyguardHostView a weak reference" into klp-dev

10 years agoTrack wireless charger detector timeout explicitly.
Jeff Brown [Tue, 1 Oct 2013 23:16:44 +0000 (16:16 -0700)]
Track wireless charger detector timeout explicitly.

Previously we relied on having a continue stream of sensor
events from which to detect whether the device is moving or
at rest.  However, if the sensor HAL is broken in some way
then we might not receive enough sensor events to actually
finish the detection process.  When this happens, we'll
just sit there holding a wakelock indefinitely.

Instead of relying on the sensor event stream, post a delayed
message to explicitly finish detection.

Bug: 10769163
Change-Id: Ia2ed66fe5e7c41a8832df76da9104c13554e1398

10 years agoMake onClickHandler in KeyguardHostView a weak reference
Chet Haase [Tue, 1 Oct 2013 22:34:22 +0000 (15:34 -0700)]
Make onClickHandler in KeyguardHostView a weak reference

The strong reference OnClickHandler caused bitmaps in keyguard to be
referenced when keyguard was not visible. This change makes the click
handler a static class with a weak reference to the hostView instance,
allowing those bitmaps to get collected and shaving ~845k off of the
heap size when the keyguard isn't showing.

Issue #10918599 SystemUI should have a round of Svelting

Change-Id: I69de8659ac14c1a4723d082dd3cd394d8b6097f1

10 years agoMerge "Use correct method for sparsearray lookup" into klp-dev
Amith Yamasani [Tue, 1 Oct 2013 23:35:21 +0000 (23:35 +0000)]
Merge "Use correct method for sparsearray lookup" into klp-dev

10 years agoFix animations, padding in RTL mode.
Jeff Sharkey [Tue, 1 Oct 2013 22:32:13 +0000 (15:32 -0700)]
Fix animations, padding in RTL mode.

Show directory animations coming in from left-side when in RTL
language.  Also fix NinePatchDrawable to correctly mirror its padding
when auto-mirrored, and fix InsetDrawable to propagate the layout
direction to the wrapped Drawable.

Bug: 1098719011030793
Change-Id: I1213802a07d0c4ced93438df1e6ddf5aed3df677

10 years agoMerge "Camera2: return device list with the only supported device" into klp-dev
Zhijun He [Tue, 1 Oct 2013 22:40:11 +0000 (22:40 +0000)]
Merge "Camera2: return device list with the only supported device" into klp-dev

10 years agoAdding an empty state UI for the printer search activity in the spooler.
Svetoslav [Tue, 1 Oct 2013 00:44:27 +0000 (17:44 -0700)]
Adding an empty state UI for the printer search activity in the spooler.

The user can select all printers from the print dropdown to get to
a search for printers activity where one can filter out the list
of a available printers. We did not have an empty state UI for the
case when the query yields no printers.

bug:11009053

Change-Id: I6b45517b8a7b319992019a1bf65858319a19a0de

10 years agoMerge "Remove old animation" into klp-dev
John Reck [Tue, 1 Oct 2013 22:29:08 +0000 (22:29 +0000)]
Merge "Remove old animation" into klp-dev

10 years agoRemove old animation
John Reck [Tue, 1 Oct 2013 21:45:01 +0000 (14:45 -0700)]
Remove old animation

 Bug: 10918599
 Shaves ~1.5MB off of Keyguard creation from usage of an
 old-style Alpha animator that would create a draw cache
 The animation is unseen due to screen timings, so simply remove it
 Also adds a bit of de-jank to the non-svelte case by avoiding
 a potential GC_FOR_ALLOC

Change-Id: Id49742d95988f670a44305e4033e7a850d20e675

10 years agoMerge "Update checkbox assets" into klp-dev
Mindy Pereira [Tue, 1 Oct 2013 21:48:23 +0000 (21:48 +0000)]
Merge "Update checkbox assets" into klp-dev

10 years agoMerge "Fixes to handleAppDiedLocked." into klp-dev
Craig Mautner [Tue, 1 Oct 2013 21:44:13 +0000 (21:44 +0000)]
Merge "Fixes to handleAppDiedLocked." into klp-dev

10 years agoMerge "Fail print jobs targeted to unavailable services." into klp-dev
Svetoslav Ganov [Tue, 1 Oct 2013 21:30:53 +0000 (21:30 +0000)]
Merge "Fail print jobs targeted to unavailable services." into klp-dev

10 years agoFixes to handleAppDiedLocked.
Craig Mautner [Tue, 1 Oct 2013 21:28:23 +0000 (14:28 -0700)]
Fixes to handleAppDiedLocked.

- Call in all circumstances but only set launchHomeTaskNext for
  focused stack. Previous version didn't call handleAppDiedLocked for
  non-focused stack.

- Rearrange logic to run down the top task and make sure that all
  remaining activities belong to the dying app. Previous version just
  looked at the top non-finishing activity and based its behavior on
  that.

Fixes bug 11029560.

Change-Id: Ic3a7c873c4c975577d6b390a8955ff41729bdfde

10 years agoCamera2: return device list with the only supported device
Zhijun He [Tue, 1 Oct 2013 18:09:28 +0000 (11:09 -0700)]
Camera2: return device list with the only supported device

Bug: 10360518
Change-Id: I823f0b6965728ddefc9b70f3df0f50259919cce5

10 years agoMerge "audioservice: always acquire wake lock as AudioService" into klp-dev
Eric Laurent [Tue, 1 Oct 2013 21:00:08 +0000 (21:00 +0000)]
Merge "audioservice: always acquire wake lock as AudioService" into klp-dev

10 years agoUse correct method for sparsearray lookup
Amith Yamasani [Tue, 1 Oct 2013 20:02:52 +0000 (13:02 -0700)]
Use correct method for sparsearray lookup

Should fix the array index out of bounds. valueAt() is when we have the
index, not the key.

Bug: 11014210
Change-Id: Icb53fe763782befbd5de1b3df6630b87cda72e84

10 years agoMerge "Specialized prompting when 'home' has become ambiguous" into klp-dev
Christopher Tate [Tue, 1 Oct 2013 20:39:04 +0000 (20:39 +0000)]
Merge "Specialized prompting when 'home' has become ambiguous" into klp-dev

10 years agoMerge "Add a timeout for removing starting windows." into klp-dev
Craig Mautner [Tue, 1 Oct 2013 20:35:01 +0000 (20:35 +0000)]
Merge "Add a timeout for removing starting windows." into klp-dev

10 years agoSpecialized prompting when 'home' has become ambiguous
Christopher Tate [Tue, 1 Oct 2013 00:50:32 +0000 (17:50 -0700)]
Specialized prompting when 'home' has become ambiguous

Bug 9958444

Change-Id: I050ae425e570cfc8ffd473587fb2a6127c36eeec

10 years agoNew, less blue overscroll assets with tuned constants in EdgeEffect class.
Christian Robertson [Sat, 28 Sep 2013 01:54:28 +0000 (18:54 -0700)]
New, less blue overscroll assets with tuned constants in EdgeEffect class.

Glow absorb animation was very slow with high velocity flings. Clamped the velocity
and adjusted constants for start values and duration of absorb animation.

Change-Id: Id2a87814498e05f5f8ceb942dd1d765874461beb

10 years agoaudioservice: always acquire wake lock as AudioService
Eric Laurent [Tue, 1 Oct 2013 18:53:51 +0000 (11:53 -0700)]
audioservice: always acquire wake lock as AudioService

When a wake lock is aquired while executing a binder call and released
in the message handler, AppOps complains about the uid mismatch.

Clear the binder identity before acquiring the wake lock.

Bug: 10627124.
Change-Id: Ibd5babc1ae699bffde1a659562089eb091879106

10 years agoMerge "Set live region property on AccessibilityNodeInfo" into klp-dev
Alan Viverette [Tue, 1 Oct 2013 18:33:12 +0000 (18:33 +0000)]
Merge "Set live region property on AccessibilityNodeInfo" into klp-dev

10 years agoMerge "Add findFocus API for AccessibilityNodeProvider" into klp-dev
Alan Viverette [Tue, 1 Oct 2013 18:32:47 +0000 (18:32 +0000)]
Merge "Add findFocus API for AccessibilityNodeProvider" into klp-dev

10 years agoAdd a timeout for removing starting windows.
Craig Mautner [Tue, 1 Oct 2013 17:39:43 +0000 (10:39 -0700)]
Add a timeout for removing starting windows.

If two activities are started at the same time the first activity can
add a starting window but never start. In that case there is no event
that will clear the starting window. This change adds a 10 second
timeout for the starting window to be cleared after which it will
clear the starting window automatically.

Fixes bug 10797865.

Change-Id: I1d59c3058c63367ff688d426474e8a6f006b2e0d

10 years agoMerge "Detect wedged ContentProviders, treat as ANR." into klp-dev
Jeff Sharkey [Tue, 1 Oct 2013 17:29:15 +0000 (17:29 +0000)]
Merge "Detect wedged ContentProviders, treat as ANR." into klp-dev

10 years agoDetect wedged ContentProviders, treat as ANR.
Jeff Sharkey [Mon, 30 Sep 2013 21:26:27 +0000 (14:26 -0700)]
Detect wedged ContentProviders, treat as ANR.

All ContentProvider calls are currently blocking, making it hard for
an app to recover when a remote provider is wedged.  This change adds
hidden support to ContentProviderClient to timeout remote calls,
treating them as ANRs.  This behavior is disabled by default.

Update DocumentsUI to use a 20 second timeout whenever interacting
with a storage provider.

Bug: 109933011081946110852518
Change-Id: I10fa3c425c6a7225fff9cb7a0a07659028230cd3

10 years agoMerge "Fix MediaTimeProvider seek & time drift recovery issue" into klp-dev
Lajos Molnar [Tue, 1 Oct 2013 16:37:06 +0000 (16:37 +0000)]
Merge "Fix MediaTimeProvider seek & time drift recovery issue" into klp-dev

10 years agoFail print jobs targeted to unavailable services.
Svetoslav Ganov [Tue, 1 Oct 2013 07:27:21 +0000 (00:27 -0700)]
Fail print jobs targeted to unavailable services.

It is possible that a print job is scheduled for handling, i.e. it is
queued, after the target print service is uninstalled or disabled.
In case like this we fail the print job with an appropriate error
message. Now the user can cancel the job when he/she sees the notification
or the status in the print settings. Trying to restart such a job will
end up failing it again with the same error message. So the user will
just have to canel the print job.

This apporach quarantees that the user is informed for the failure and
also is much simpler than trying to update the UI when print job's
target serivce is uninstalled. For example, the settings UI has to
be updated as well as the notifications. Also due to the async nature
of the system this we cannot completely avoid having a restart option
for a print job whose target service is gone. This scenario is very
unlikely but still we have to handle it.

bug:11012251

Change-Id: Id8c8c3cff75e0b6325552676b130ff1406edc069

10 years agoMerge "Update date format in panel on locale change." into klp-dev
Daniel Sandler [Tue, 1 Oct 2013 02:57:45 +0000 (02:57 +0000)]
Merge "Update date format in panel on locale change." into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 1 Oct 2013 02:44:01 +0000 (02:44 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 1 Oct 2013 02:43:38 +0000 (02:43 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 1 Oct 2013 02:42:38 +0000 (02:42 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 1 Oct 2013 02:40:41 +0000 (02:40 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 1 Oct 2013 02:40:00 +0000 (02:40 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "camera2: Fix CameraMetadata#getKeys" into klp-dev
Igor Murashkin [Tue, 1 Oct 2013 02:10:17 +0000 (02:10 +0000)]
Merge "camera2: Fix CameraMetadata#getKeys" into klp-dev

10 years agoMerge "Move slide to unlock circle up" into klp-dev
Michael Wright [Tue, 1 Oct 2013 01:46:53 +0000 (01:46 +0000)]
Merge "Move slide to unlock circle up" into klp-dev

10 years agoMove slide to unlock circle up
Michael Wright [Tue, 1 Oct 2013 01:38:36 +0000 (18:38 -0700)]
Move slide to unlock circle up

Because HH is such a tall device, we need to move the circle up in
order to put it in the correct physical location.

Bug: 10900855
Change-Id: Idf90839e19f89784a96d110dd897bdacb58cb616

10 years agocamera2: Fix CameraMetadata#getKeys
Igor Murashkin [Mon, 30 Sep 2013 19:14:58 +0000 (12:14 -0700)]
camera2: Fix CameraMetadata#getKeys

Bug: 11007040
Change-Id: I08755bf45ae60ff00736af3672a9f6091f460496

10 years agoMerge "Fix the build" into klp-dev
Svetoslav [Tue, 1 Oct 2013 00:36:56 +0000 (00:36 +0000)]
Merge "Fix the build" into klp-dev

10 years agoFix the build
Svetoslav [Tue, 1 Oct 2013 00:33:05 +0000 (17:33 -0700)]
Fix the build

Change-Id: I2d701199808b1a0d482b9593c8b0730a408c3e8e

10 years agoMerge "Reset insets when inset computer is removed." into klp-dev
Jeff Brown [Tue, 1 Oct 2013 00:15:25 +0000 (00:15 +0000)]
Merge "Reset insets when inset computer is removed." into klp-dev

10 years agoSet live region property on AccessibilityNodeInfo
Alan Viverette [Tue, 1 Oct 2013 00:11:46 +0000 (17:11 -0700)]
Set live region property on AccessibilityNodeInfo

BUG: 11012854
Change-Id: I2c88468be597eb3694fe3d0eb2f2d86981ea9829

10 years agoMerge "Fix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature...
Dianne Hackborn [Mon, 30 Sep 2013 23:38:19 +0000 (23:38 +0000)]
Merge "Fix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature." into klp-dev

10 years agoMerge "Cache RemoteController artwork bitmap size, use it in registration" into klp-dev
Jean-Michel Trivi [Mon, 30 Sep 2013 23:24:01 +0000 (23:24 +0000)]
Merge "Cache RemoteController artwork bitmap size, use it in registration" into klp-dev

10 years agoMerge "Improve RemoteControlDisplay registration" into klp-dev
Jean-Michel Trivi [Mon, 30 Sep 2013 23:22:58 +0000 (23:22 +0000)]
Merge "Improve RemoteControlDisplay registration" into klp-dev

10 years agoMerge "Avoid accidentally using software layers" into klp-dev
John Reck [Mon, 30 Sep 2013 23:10:49 +0000 (23:10 +0000)]
Merge "Avoid accidentally using software layers" into klp-dev

10 years agoReset insets when inset computer is removed.
Jeff Brown [Mon, 30 Sep 2013 22:57:43 +0000 (15:57 -0700)]
Reset insets when inset computer is removed.

When an inset computer is registered with the view tree observer,
we report content insets to the window manager.  When an inset computer
is subsequently unregistered, we must take care to clear these insets.

This patch remembers whether the previously computed insets were
non-empty so that it can force insets to be reset when needed.

Bug: 10840662
Change-Id: I4cce5ba64cc5234b98363b025ac4bb42e64349f1

10 years agoFix MediaTimeProvider seek & time drift recovery issue
Lajos Molnar [Wed, 25 Sep 2013 01:04:23 +0000 (18:04 -0700)]
Fix MediaTimeProvider seek & time drift recovery issue

Handle MEDIA_SKIPPED event

Prevent notifyTimedEvent events (REFRESH_AND_/NOTIFY_TIME)
to eclipse NOTIFY_SEEK events.

Add automatic seek when time drifts too much.  This should
not happen under normal circumstances, but is there to recover
from any unannounced media time discontinuity.

Change-Id: I8d7fdac2b0b6a9e62d2860461e6a25788e77fef8
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10954008

10 years agoAvoid accidentally using software layers
John Reck [Mon, 30 Sep 2013 22:31:31 +0000 (15:31 -0700)]
Avoid accidentally using software layers

 Bug: 10918599
 Shaves ~1-2MB of transient memory usage from setting a hardware layer
 on a view that's not hardware accelerated, resulting in it falling
 back to a software layer which allocates a bitmap
 Also a bit of dejanking as a result of not hitting GC_FOR_ALLOC

Change-Id: Iff00d383fca710147a48f31c7eee2b728b8412dc

10 years agoMerge "Remove blocking from SM before boot completed." into klp-dev
Matthew Williams [Mon, 30 Sep 2013 21:46:58 +0000 (21:46 +0000)]
Merge "Remove blocking from SM before boot completed." into klp-dev

10 years agoMerge "Rebind transient state views when available" into klp-dev
Alan Viverette [Mon, 30 Sep 2013 21:33:22 +0000 (21:33 +0000)]
Merge "Rebind transient state views when available" into klp-dev

10 years agoMerge "Adjust padding for keyguard pin entry keys" into klp-dev
Amith Yamasani [Mon, 30 Sep 2013 21:31:53 +0000 (21:31 +0000)]
Merge "Adjust padding for keyguard pin entry keys" into klp-dev

10 years agoMerge "Use a build-specific wifi country code" into klp-dev
Robert Greenwalt [Mon, 30 Sep 2013 21:13:23 +0000 (21:13 +0000)]
Merge "Use a build-specific wifi country code" into klp-dev

10 years agoAdd findFocus API for AccessibilityNodeProvider
Alan Viverette [Mon, 30 Sep 2013 20:45:55 +0000 (13:45 -0700)]
Add findFocus API for AccessibilityNodeProvider

BUG: 9372171
Change-Id: Iea46ce5a4bf25baaabe5c07cd7d0c58bb31f23d9

10 years agoMerge "Disable keyguard widgets on low memory devices" into klp-dev
Jim Miller [Mon, 30 Sep 2013 20:38:20 +0000 (20:38 +0000)]
Merge "Disable keyguard widgets on low memory devices" into klp-dev

10 years agoAdjust padding for keyguard pin entry keys
Amith Yamasani [Mon, 30 Sep 2013 20:38:14 +0000 (13:38 -0700)]
Adjust padding for keyguard pin entry keys

Increase padding on the left to more visually center the text within the touch target

Bug: 10074982
Change-Id: I2c622b0edd427a4b15f2f3b25a0a124853ed2367

10 years agoMerge "Make toast frames a little more opaque" into klp-dev
Adam Powell [Mon, 30 Sep 2013 20:24:17 +0000 (20:24 +0000)]
Merge "Make toast frames a little more opaque" into klp-dev

10 years agoRebind transient state views when available
Alan Viverette [Mon, 30 Sep 2013 19:44:54 +0000 (12:44 -0700)]
Rebind transient state views when available

If a view is obtained, it is guaranteed to represent the same data.

BUG: 10901462
Change-Id: Ice2b3508ae8cf444f006c084e6b7a3e79373723b

10 years agoUpdate date format in panel on locale change.
Daniel Sandler [Mon, 30 Sep 2013 03:25:50 +0000 (23:25 -0400)]
Update date format in panel on locale change.

The logic that updated the locale was only running at times
the DateView should have been updating its display, namely,
when the view was visible on-screen.

The new version trades a small amount of efficiency (the
broadcast receiver is now active at all times, and the date
is re-formatted each TIME_TICK) in exchange for simplicity
and correctness.

Bug: 10725912
Change-Id: I2f0988ed478374ed0eb0c76c3d8caed6c86eb8df

10 years agoMerge "Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields...
Matthew Xie [Mon, 30 Sep 2013 18:56:39 +0000 (18:56 +0000)]
Merge "Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields" into klp-dev

10 years agoMake toast frames a little more opaque
Adam Powell [Mon, 30 Sep 2013 18:23:46 +0000 (11:23 -0700)]
Make toast frames a little more opaque

Bug 10994053

Change-Id: I719c8e4a44621b8c838b0897e6c486884e735357

10 years agoRemove blocking from SM before boot completed.
Matthew Williams [Fri, 27 Sep 2013 18:32:35 +0000 (11:32 -0700)]
Remove blocking from SM before boot completed.

Bug: 10916655
Add a stash where the SyncHandler can copy and place
msgs rather than run them. After boot is complete
we iterate through the stash in order and send the
messages off.

Change-Id: I9c175ee79fe60952346003a29225b8687979b44e

10 years agoMerge "Don't display hidden activities over home screen." into klp-dev
Craig Mautner [Mon, 30 Sep 2013 18:20:48 +0000 (18:20 +0000)]
Merge "Don't display hidden activities over home screen." into klp-dev

10 years agoMerge "Prevent authenticators from using Settings to launch arbitrary activities...
Carlos Valdivia [Mon, 30 Sep 2013 17:35:45 +0000 (17:35 +0000)]
Merge "Prevent authenticators from using Settings to  launch arbitrary activities." into klp-dev

10 years agoDon't display hidden activities over home screen.
Craig Mautner [Mon, 30 Sep 2013 17:34:55 +0000 (10:34 -0700)]
Don't display hidden activities over home screen.

Fixes jank exposed in 10881705. Specifically background activity
animating up along with translucent activity. Repro steps on manta:

1. From home start Settings.
2. Press home.
3. From home start Downloads (translucent activity that takes 85% of
screen).
4. Observe that as Downloads zooms up the 15% boundary that should be
dimly transparent are showing Settings.

The cause was that there is a finishing activity in the Downloads task
that was used to launch the DownloadsActivity. The existence of that
activity kept the logic from recognizing that the home activity was
behind the DownloadsActivity, not the Settings activity.

This fix descends through all of the activities in a task sitting on
home and makes sure that they only keep home from showing if such
activities are not finishing and visible.

Change-Id: I607afce6b0000b4db634f2ce40a6c37fcee369d7

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 30 Sep 2013 17:29:59 +0000 (10:29 -0700)]
Import translations. DO NOT MERGE

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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 30 Sep 2013 17:20:46 +0000 (10:20 -0700)]
Import translations. DO NOT MERGE

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

10 years agoMerge "Add android.provider.Telephony to public API." into klp-dev
Jake Hamby [Mon, 30 Sep 2013 17:18:51 +0000 (17:18 +0000)]
Merge "Add android.provider.Telephony to public API." into klp-dev

10 years agoFix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature.
Dianne Hackborn [Mon, 30 Sep 2013 17:16:10 +0000 (10:16 -0700)]
Fix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature.

Change-Id: I432a2ddbd2fe1d095bb3895c5c122acf465d0c9b

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 30 Sep 2013 16:45:00 +0000 (09:45 -0700)]
Import translations. DO NOT MERGE

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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 30 Sep 2013 16:32:47 +0000 (09:32 -0700)]
Import translations. DO NOT MERGE

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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 30 Sep 2013 16:28:55 +0000 (09:28 -0700)]
Import translations. DO NOT MERGE

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

10 years agoMerge "Fix configuration changes in status bars." into klp-dev
Daniel Sandler [Mon, 30 Sep 2013 15:02:43 +0000 (15:02 +0000)]
Merge "Fix configuration changes in status bars." into klp-dev

10 years agoFix configuration changes in status bars.
Daniel Sandler [Mon, 30 Sep 2013 14:21:45 +0000 (10:21 -0400)]
Fix configuration changes in status bars.

- Make sure SystemBars calls onConfigurationChanged on the
  status bar
- Remove redundant ACTION_CONFIGURATION_CHANGED receiver in
  BaseStatusBar & move this code into onConfigurationChanged
- Force locale refresh even if a configuration change
  touches only the layout direction

Bug: 10113357
Change-Id: I92902d25cbae77f2558cfb85482484b11dc7294e

10 years agoMerge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev
Dianne Hackborn [Mon, 30 Sep 2013 00:21:48 +0000 (00:21 +0000)]
Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev

10 years agoFix issue #10948509: Crash in procstats when there is no data
Dianne Hackborn [Thu, 26 Sep 2013 18:07:17 +0000 (11:07 -0700)]
Fix issue #10948509: Crash in procstats when there is no data

Not dealing with the case where there is a null list.

Also fixed some bugs I found while looking at this:

- When resetting the stats, we would use a newly computed time stamp
  for the total durations rather than the one we used to reset the
  proc/service entries.  This would result in them being able to be
  slightly > 100%.
- There was a bug in how we split a single process state into its
  per-package representation, where we would but the cloned process
  state into the new package's entry (instead of properly for its
  own package entry), to be immediately overwritten by the new
  process state we make for that package.  This could result in
  bad data for processes that have multiple packages.
- There was a bug in resetting service stats, where we wouldn't
  update the overall run timestamp, allowing that time to sometimes
  be > 100%.
- There was a bug in computing pss data for processes with multiple
  packages, where the pss data was not distributed across all of the
  activity per-package process states.
- There was a bug in computing the zram information that would cause
  it to compute the wrong value, and then never be displayed.

Finally a little code refactoring so that ProcessState and ServiceState
can now share a common implementation for the table of duration values.

Change-Id: I5e0f4e9107829b81f395dad9419c33257b4f8902

10 years agoImprove RemoteControlDisplay registration
Jean-Michel Trivi [Sun, 29 Sep 2013 20:03:58 +0000 (13:03 -0700)]
Improve RemoteControlDisplay registration

When a new RemoteControlDisplay gets registered, don't cause all
  existing RemoteControlDisplays to re-receive RemoteControl
  information they already have.

Bug 8417073

Change-Id: Icc8e7104d6870f748fddd702692789dbaef948ac

10 years agoUpdate checkbox assets
Mindy Pereira [Sun, 29 Sep 2013 23:51:56 +0000 (16:51 -0700)]
Update checkbox assets

Fixes b/10894001 Pressed checkbox asset slightly offset from normal version

Change-Id: I73c1b58675405adf3550b7d498cf6535e4b1cee0

10 years agoUse a build-specific wifi country code
Robert Greenwalt [Fri, 27 Sep 2013 21:58:43 +0000 (14:58 -0700)]
Use a build-specific wifi country code

This ignores any previous setting and instead uses
a value set at build time.  This does not preclude
us from using some other signal to determine country
for wifi channel limits.

bug:10513734
Change-Id: Ib82c07285af70fbd82eb0466b7391979ebc8be10

10 years agoDisable keyguard widgets on low memory devices
Jim Miller [Sun, 29 Sep 2013 21:00:01 +0000 (14:00 -0700)]
Disable keyguard widgets on low memory devices

Fixes bug 10784493

Change-Id: I6271ea94f6832bb061ba9f64efea460d28ee5695