OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Doing provisioning check for wifi tethering from SystemUI" into lmp-mr1-dev
Sanket Padawe [Fri, 5 Dec 2014 20:55:51 +0000 (20:55 +0000)]
Merge "Doing provisioning check for wifi tethering from SystemUI" into lmp-mr1-dev

9 years agoMerge "Camera2: Add HDR scene mode for backwards compatibility." into lmp-mr1-dev
Eino-Ville Talvala [Fri, 5 Dec 2014 20:54:06 +0000 (20:54 +0000)]
Merge "Camera2: Add HDR scene mode for backwards compatibility." into lmp-mr1-dev

9 years agoMerge "Fix docs build" into lmp-mr1-dev
Eino-Ville Talvala [Fri, 5 Dec 2014 20:53:44 +0000 (20:53 +0000)]
Merge "Fix docs build" into lmp-mr1-dev

9 years agoMerge "Add mapping between RAT and Network Mode" into lmp-mr1-dev
Stuart Scott [Fri, 5 Dec 2014 20:44:24 +0000 (20:44 +0000)]
Merge "Add mapping between RAT and Network Mode" into lmp-mr1-dev

9 years agoAdd checking to find AppDirectedSmsProxy for App Directed SMS feature
Jing Zhao [Fri, 5 Dec 2014 01:17:33 +0000 (19:17 -0600)]
Add checking to find AppDirectedSmsProxy for App Directed SMS feature

Adding new system permission android.permission.CARRIER_FILTER_SMS

Bug: 18609762
Change-Id: I80a133653101cd4ec1793e726faf3601e2970224

9 years agoAdd mapping between RAT and Network Mode
Stuart Scott [Thu, 4 Dec 2014 23:01:31 +0000 (15:01 -0800)]
Add mapping between RAT and Network Mode

bug:18416275
bug:18415493

Change-Id: I0b29ec953ec9eb29248a22d582013127ee0fea41

9 years agoMerge "Avoid race condition in heads up snooze code path." into lmp-mr1-dev
Chris Wren [Fri, 5 Dec 2014 20:22:09 +0000 (20:22 +0000)]
Merge "Avoid race condition in heads up snooze code path." into lmp-mr1-dev

9 years agoMerge "Correctly parse previous PMBA state during backup" into lmp-mr1-dev
Christopher Tate [Fri, 5 Dec 2014 20:05:09 +0000 (20:05 +0000)]
Merge "Correctly parse previous PMBA state during backup" into lmp-mr1-dev

9 years agoMerge "Tune delivery and batching of alarms" into lmp-mr1-dev
Christopher Tate [Fri, 5 Dec 2014 20:04:24 +0000 (20:04 +0000)]
Merge "Tune delivery and batching of alarms" into lmp-mr1-dev

9 years agoMerge "Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1...
Pavel Zhamaitsiak [Fri, 5 Dec 2014 19:42:10 +0000 (19:42 +0000)]
Merge "Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"" into lmp-mr1-dev

9 years agoMerge "Add UUID for Pbap client" into lmp-mr1-dev
Justin Harrison [Fri, 5 Dec 2014 19:41:52 +0000 (19:41 +0000)]
Merge "Add UUID for Pbap client" into lmp-mr1-dev

9 years agoMerge "Relax access on deprecated fields for compatibility." into lmp-mr1-dev
Ihab Awad [Fri, 5 Dec 2014 19:39:18 +0000 (19:39 +0000)]
Merge "Relax access on deprecated fields for compatibility." into lmp-mr1-dev

9 years agoMerge "RTL support for Lollipop Land." into lmp-mr1-dev
Dan Sandler [Fri, 5 Dec 2014 19:36:37 +0000 (19:36 +0000)]
Merge "RTL support for Lollipop Land." into lmp-mr1-dev

9 years agoCamera2: Add HDR scene mode for backwards compatibility.
Eino-Ville Talvala [Fri, 5 Dec 2014 19:10:15 +0000 (11:10 -0800)]
Camera2: Add HDR scene mode for backwards compatibility.

To maximize backwards compatibility, support the HDR scene mode fully,
as it was supported on Camera HAL1 / Camera API1.

Bug: 18639933
Change-Id: I35c164563379f7f820b42c674bd91f706061170c

9 years agoMerge "Added isRemovingAdmin method" into lmp-mr1-dev
Fyodor Kupolov [Fri, 5 Dec 2014 19:28:11 +0000 (19:28 +0000)]
Merge "Added isRemovingAdmin method" into lmp-mr1-dev

9 years agoFix docs build
Eino-Ville Talvala [Fri, 5 Dec 2014 19:11:45 +0000 (11:11 -0800)]
Fix docs build

Change-Id: I9947d53aeb155d98f5194c9789f19aba1f01e4be

9 years agoMerge "Correct check of is user running" into lmp-mr1-dev
Amith Yamasani [Fri, 5 Dec 2014 19:11:15 +0000 (19:11 +0000)]
Merge "Correct check of is user running" into lmp-mr1-dev

9 years agoMerge "add system|signature protection to android.permission.BIND_CARRIER_MESSAGING_S...
Cheuksan Wang [Fri, 5 Dec 2014 19:07:09 +0000 (19:07 +0000)]
Merge "add system|signature protection to android.permission.BIND_CARRIER_MESSAGING_SERVICE" into lmp-mr1-dev

9 years agoadd system|signature protection to
Cheuksan Wang [Fri, 5 Dec 2014 18:44:43 +0000 (10:44 -0800)]
add system|signature protection to
android.permission.BIND_CARRIER_MESSAGING_SERVICE

Bug: 18005911
Change-Id: Iacb16a20c5cef4a55be0187af0a47e0cb82b409b

9 years agoCorrect check of is user running
Sergii Skorokhodov [Tue, 11 Nov 2014 07:22:18 +0000 (08:22 +0100)]
Correct check of is user running

Before the ActivityManagerService sends an intent or
starts an activity it checks if target user is in
mStartedUsers array.

When removing a non-owner user process the
UserStartedState instance will still be in mStartedUsers
array with mState STOPPING or SHUTDOWN.

This should be checked before sending an intent or start
an activity.

isUserRunningLocked(...) will interpret mState STOPPING
and SHUTDOWN as a non running user.

Bug: 7462778
Change-Id: I1b51bcdb62bdd0f6dbe05dab4d529d4ad40d0d44

9 years agoMerge "Potential fix for accidental deactivation of profile owner" into lmp-mr1-dev
Amith Yamasani [Fri, 5 Dec 2014 18:56:52 +0000 (18:56 +0000)]
Merge "Potential fix for accidental deactivation of profile owner" into lmp-mr1-dev

9 years agoAvoid race condition in heads up snooze code path.
Chris Wren [Fri, 5 Dec 2014 18:53:23 +0000 (13:53 -0500)]
Avoid race condition in heads up snooze code path.

The user can still snooze the heads up as its in the process of timing
out.  In this case, mHeadsUp is already null.  We save the package
name so that we can still snooze the package.

Bug: 18639224
Change-Id: I9bcce99a5c912e70a6856b277b61adab9cdcbc33

9 years agoMerge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev
ztenghui [Fri, 5 Dec 2014 18:28:28 +0000 (18:28 +0000)]
Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev

9 years agoRevert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"
Erik Kline [Fri, 5 Dec 2014 11:13:08 +0000 (20:13 +0900)]
Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"

This is the revert of ag/572619.

This reverts commit 9261d9d64548f0221de50eb99f3675488a4176a4, reversing
changes made to 32b61ab28f54e5b00f472b2166f9b1100375e4ff.

Bug: 18609055
Bug: 17769720
Change-Id: I122eba200f2071d4e5777ec34c1d04fb567345a8

9 years agoam 89d30bbc: am 9c40e80a: am c85fa8f1: Merge "Updating screenshots to LMP release...
Clare Bayley [Fri, 5 Dec 2014 18:00:43 +0000 (18:00 +0000)]
am 89d30bbc: am 9c40e80a: am c85fa8f1: Merge "Updating screenshots to LMP release and N6" into lmp-docs

* commit '89d30bbc110f1b511ae6e619ac02a067261ebd4d':
  Updating screenshots to LMP release and N6

9 years agoMerge "Make setting the session token in MediaBrowserService synchronous" into lmp...
RoboErik [Fri, 5 Dec 2014 17:57:14 +0000 (17:57 +0000)]
Merge "Make setting the session token in MediaBrowserService synchronous" into lmp-mr1-dev

9 years agoam 9c40e80a: am c85fa8f1: Merge "Updating screenshots to LMP release and N6" into...
Clare Bayley [Fri, 5 Dec 2014 17:51:05 +0000 (17:51 +0000)]
am 9c40e80a: am c85fa8f1: Merge "Updating screenshots to LMP release and N6" into lmp-docs

* commit '9c40e80a5edbf2962d9a1d98152b4085e306b501':
  Updating screenshots to LMP release and N6

9 years agoam c85fa8f1: Merge "Updating screenshots to LMP release and N6" into lmp-docs
Clare Bayley [Fri, 5 Dec 2014 17:38:28 +0000 (17:38 +0000)]
am c85fa8f1: Merge "Updating screenshots to LMP release and N6" into lmp-docs

* commit 'c85fa8f1e291e4e0727d4e71536940fdc0896c29':
  Updating screenshots to LMP release and N6

9 years agoMerge "Updating screenshots to LMP release and N6" into lmp-docs
Clare Bayley [Fri, 5 Dec 2014 17:29:33 +0000 (17:29 +0000)]
Merge "Updating screenshots to LMP release and N6" into lmp-docs

9 years agoMerge "Don't forget to listen for USER_ALL broadcasts." into lmp-mr1-dev
Dan Sandler [Fri, 5 Dec 2014 14:27:24 +0000 (14:27 +0000)]
Merge "Don't forget to listen for USER_ALL broadcasts." into lmp-mr1-dev

9 years agoMerge "Change the routing path of bluetooth headset connections." into lmp-mr1-dev
Benjamin Franz [Fri, 5 Dec 2014 12:04:00 +0000 (12:04 +0000)]
Merge "Change the routing path of bluetooth headset connections." into lmp-mr1-dev

9 years agoMerge "Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current...
Justin Harrison [Fri, 5 Dec 2014 07:42:57 +0000 (07:42 +0000)]
Merge "Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user." into lmp-mr1-dev

9 years agoMerge "Add 8 more scripts to the font fallback chain." into lmp-mr1-dev
Raph Levien [Fri, 5 Dec 2014 07:27:31 +0000 (07:27 +0000)]
Merge "Add 8 more scripts to the font fallback chain." into lmp-mr1-dev

9 years agoDon't forget to listen for USER_ALL broadcasts.
Dan Sandler [Fri, 5 Dec 2014 05:26:24 +0000 (00:26 -0500)]
Don't forget to listen for USER_ALL broadcasts.

The ActivityManager.closeSystemDialogs() call (used by,
among other things, the home button) broadcasts
ACTION_CLOSE_SYSTEM_DIALOGS for UserHandle.USER_ALL, rather
than any one user.

Bug: 18629414
Change-Id: I89bfa3f556866e1b27987be2753ce83fd0313998

9 years agoMerge "TIF: handle a race condition when a session is crashed" into lmp-mr1-dev
Dongwon Kang [Fri, 5 Dec 2014 04:08:21 +0000 (04:08 +0000)]
Merge "TIF: handle a race condition when a session is crashed" into lmp-mr1-dev

9 years agoMerge "TIF: increase the time threshold for tune operation which was too harsh" into...
Dongwon Kang [Fri, 5 Dec 2014 04:08:03 +0000 (04:08 +0000)]
Merge "TIF: increase the time threshold for tune operation which was too harsh" into lmp-mr1-dev

9 years agoCorrectly parse previous PMBA state during backup
Christopher Tate [Fri, 5 Dec 2014 01:20:28 +0000 (17:20 -0800)]
Correctly parse previous PMBA state during backup

Bug 18628030

Change-Id: Iefa23de50dd9e1b27cfa5d887f117876d57e4083

9 years agoTune delivery and batching of alarms
Christopher Tate [Fri, 5 Dec 2014 02:27:16 +0000 (18:27 -0800)]
Tune delivery and batching of alarms

* Inexact alarms no longer coalesce with exact alarms.  The motivation here
is that exact alarms are far more likely to be wall-clock aligned, and in
general pulling all alarms toward wall-clock alignment is a bad idea.

* Wakeup times are now fuzzed within the target batch's allowed window
rather than being hard pinned at the start of the window.

Bug 18631821

Change-Id: Iefaf34eee3f2a6546abefc27e177ee2fdcff935f

9 years agoam 26b18771: Merge "Private Window flag to disable touch events in WallpaperService...
Filip Gruszczynski [Fri, 5 Dec 2014 02:34:26 +0000 (02:34 +0000)]
am 26b18771: Merge "Private Window flag to disable touch events in WallpaperService." into lmp-sprout-dev

* commit '26b187711fdf6224e14df465a58f30f510011b49':
  Private Window flag to disable touch events in WallpaperService.

9 years agoam 8242ae16: am dddc2981: am 1782e526: Merge "Revert "docs: Long press to dismiss...
Ricardo Cervera-Navarro [Fri, 5 Dec 2014 02:34:02 +0000 (02:34 +0000)]
am 8242ae16: am dddc2981: am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs

* commit '8242ae16b6f0f293ececb75228fb1364061171d0':
  Revert "docs: Long press to dismiss fix by Wayne"

9 years agoMerge "Change Linkify leniency to VALID" into lmp-mr1-dev
Raph Levien [Fri, 5 Dec 2014 02:14:51 +0000 (02:14 +0000)]
Merge "Change Linkify leniency to VALID" into lmp-mr1-dev

9 years agoAdded isRemovingAdmin method
Fyodor Kupolov [Mon, 1 Dec 2014 23:08:09 +0000 (15:08 -0800)]
Added isRemovingAdmin method

Added isRemovingAdmin method, so that clients can query if device
admin is currently being removed.

Bug: 17609838
Change-Id: I82547a9eeb228fcf8ac2a6e639ca1a75fa41d161

9 years agoMerge "Use TelecomManager to call TelephonyManager#getVoicemailNumber (1/2)" into...
Nancy Chen [Fri, 5 Dec 2014 01:53:21 +0000 (01:53 +0000)]
Merge "Use TelecomManager to call TelephonyManager#getVoicemailNumber (1/2)" into lmp-mr1-dev

9 years agoMerge "Private Window flag to disable touch events in WallpaperService." into lmp...
Filip Gruszczynski [Fri, 5 Dec 2014 01:42:01 +0000 (01:42 +0000)]
Merge "Private Window flag to disable touch events in WallpaperService." into lmp-sprout-dev

9 years agoTIF: handle a race condition when a session is crashed
Dongwon Kang [Thu, 4 Dec 2014 09:08:00 +0000 (18:08 +0900)]
TIF: handle a race condition when a session is crashed

Currently, TIMS has a logic for handling session crash (binderDied).
However, this can be racy if the client calls an operation right before it gets
ITvInputClient.onSessionReleased() callback. This change handles those request
gracefully without causing a crash in the client side.

Bug: 18612616
Change-Id: I37241e05d53f3cca693e0239fc9ad5dce02fc925

9 years agoMerge "Fix issue #18593636: Turn on "kill important processes that..." into lmp-mr1-dev
Dianne Hackborn [Fri, 5 Dec 2014 01:35:19 +0000 (01:35 +0000)]
Merge "Fix issue #18593636: Turn on "kill important processes that..." into lmp-mr1-dev

9 years agoAVD: Deep copy the animator target setup when mutate.
ztenghui [Fri, 5 Dec 2014 00:41:01 +0000 (16:41 -0800)]
AVD: Deep copy the animator target setup when mutate.

Only calling VectorDrawable's mutate here will miss all the animator setup,
when the VectorDrawable has a new state.
So we just deep copy everything and setup the animators again.

b/18521582

Change-Id: Id164312750bb548f9c2d21cc0b5806cd2bafcf0d

9 years agoRelax access on deprecated fields for compatibility.
Ihab Awad [Fri, 5 Dec 2014 00:54:07 +0000 (16:54 -0800)]
Relax access on deprecated fields for compatibility.

Bug: 18610816
Change-Id: If2398069ecd1c5fa1e49af50527bf817b29fde96

9 years agoAvoid extra saveLayer calls in RippleDrawable, fix docs
Alan Viverette [Thu, 4 Dec 2014 22:10:16 +0000 (14:10 -0800)]
Avoid extra saveLayer calls in RippleDrawable, fix docs

Also fixes opacity returned from InsetDrawable to accurately reflect
the transparent inset area and updates button to correctly use tint.

BUG: 18226391
Change-Id: Ia9a88d9d663990a6829d2f251c7f59ea2a79d816

9 years agoam dddc2981: am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne...
Ricardo Cervera-Navarro [Fri, 5 Dec 2014 00:42:03 +0000 (00:42 +0000)]
am dddc2981: am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs

* commit 'dddc29815375022e52c2945e8cab40f61f56483c':
  Revert "docs: Long press to dismiss fix by Wayne"

9 years agoEnsure all events from a showing window are dispatched.
Svetoslav [Thu, 4 Dec 2014 20:50:11 +0000 (12:50 -0800)]
Ensure all events from a showing window are dispatched.

Accessibility services may opt-in to introspect the interactive
windows on the screen. If window introspection is enabled there
is a case where some events from a showing window are received
before the updated window state from the window manager. Now the
window manager sends over the windows before notifying the app
for the focus change.

bug:18625996

Change-Id: Ic481e01efbe12dc92f090f799feeb236672fc7b3

9 years agoam 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs
Ricardo Cervera-Navarro [Fri, 5 Dec 2014 00:33:35 +0000 (00:33 +0000)]
am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs

* commit '1782e526c73bfd2f4eb24b024a5019b66dbdaade':
  Revert "docs: Long press to dismiss fix by Wayne"

9 years agoMerge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs
Ricardo Cervera-Navarro [Fri, 5 Dec 2014 00:27:59 +0000 (00:27 +0000)]
Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs

9 years agoRevert "docs: Long press to dismiss fix by Wayne"
Ricardo Cervera-Navarro [Fri, 5 Dec 2014 00:27:09 +0000 (00:27 +0000)]
Revert "docs: Long press to dismiss fix by Wayne"

This reverts commit 6ee2ca2f1e24d27c7a1e2430ad0272ef9f921a4a.

Change-Id: I07a196ca1e5ae827a77c9a17ddc90d8e14129f67

9 years agoMerge "media: allow full range of Vorbis sampling rates" into lmp-mr1-dev
Lajos Molnar [Fri, 5 Dec 2014 00:21:01 +0000 (00:21 +0000)]
Merge "media: allow full range of Vorbis sampling rates" into lmp-mr1-dev

9 years agoMerge "CEC: Introduce the retry for commands on the new device discovery." into lmp...
Jinsuk Kim [Fri, 5 Dec 2014 00:05:08 +0000 (00:05 +0000)]
Merge "CEC: Introduce the retry for commands on the new device discovery." into lmp-mr1-dev

9 years agoMerge "Add test for isolated services." into lmp-mr1-dev
Dianne Hackborn [Fri, 5 Dec 2014 00:01:56 +0000 (00:01 +0000)]
Merge "Add test for isolated services." into lmp-mr1-dev

9 years agoMerge "docs: Fix typo, use --> user" into lmp-mr1-dev
Nick Chalko [Fri, 5 Dec 2014 00:00:21 +0000 (00:00 +0000)]
Merge "docs: Fix typo, use --> user" into lmp-mr1-dev

9 years agoTIF: increase the time threshold for tune operation which was too harsh
Dongwon Kang [Thu, 4 Dec 2014 23:57:48 +0000 (08:57 +0900)]
TIF: increase the time threshold for tune operation which was too harsh

Bug: 18612616
Change-Id: I62ddde2f9796f3b1dd8240f5c88fbff234b3618b

9 years agoMerge "Fix seeking behavior" into lmp-mr1-dev
Chet Haase [Thu, 4 Dec 2014 23:26:58 +0000 (23:26 +0000)]
Merge "Fix seeking behavior" into lmp-mr1-dev

9 years agoFix seeking behavior
Chet Haase [Wed, 3 Dec 2014 01:51:34 +0000 (17:51 -0800)]
Fix seeking behavior

A recent fix to seeking behavior injected a couple of issues that need
to be addressed:
- the start time should be updated when seeking so that future calculations
that depend on it (such as the next animation frame) will use the updated
start time based on this seek request. This allows, for example, seeking
into a running animator so that that animator will update its current fraction
to the new seeked value.
- calling reverse() on an unstarted animation would incorrectly set the initial
frame of the animation to the end value for one frame before the reverse animation
actually began.

Issue #18567716 No icons in folders in battery saving mode
Issue #18511989 Search bar flashes when icon is picked up and dropped

Change-Id: Ie30b7e797468c6ccb3d17d4fb3aba6b9849436b0

9 years agoam ae80fd42: am f5aa6752: am 709df4fa: Merge "docs: Fixes for App Indexing training...
Joe Fernandez [Thu, 4 Dec 2014 23:07:04 +0000 (23:07 +0000)]
am ae80fd42: am f5aa6752: am 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs

* commit 'ae80fd42a4371e28f6d89dc0f480f35da9dc57ce':
  docs: Fixes for App Indexing training class

9 years agoam 0e597e92: am 9b5de582: am daab7426: Merge "docs: Update MessageAPI notes to mentio...
Luan Nguyen [Thu, 4 Dec 2014 23:06:53 +0000 (23:06 +0000)]
am 0e597e92: am 9b5de582: am daab7426: Merge "docs: Update MessageAPI notes to mention the unreliable transmission nature." into lmp-docs

* commit '0e597e922464545e6257027f71b575bd73adf4f4':
  docs: Update MessageAPI notes to mention the unreliable transmission nature.

9 years agoam cc10c02b: am 6c59abc9: am 9db37264: Merge "update L Preview message and disallow...
smain@google.com [Thu, 4 Dec 2014 23:05:47 +0000 (23:05 +0000)]
am cc10c02b: am 6c59abc9: am 9db37264: Merge "update L Preview message and disallow crawling /preview" into lmp-docs

* commit 'cc10c02b10ce6d0be223c4409cb6aab98c5b8858':
  update L Preview message and disallow crawling /preview

9 years agoPrivate Window flag to disable touch events in WallpaperService.
Filip Gruszczynski [Thu, 4 Dec 2014 23:02:18 +0000 (15:02 -0800)]
Private Window flag to disable touch events in WallpaperService.

Change-Id: I18b46340f89cbea0b6daeb1efe9c31656f4e1a5d

9 years agoMerge "Fixed a leak in GeofenceHardwareImpl.java." into lmp-mr1-dev
Zhentao Sun [Thu, 4 Dec 2014 22:52:49 +0000 (22:52 +0000)]
Merge "Fixed a leak in GeofenceHardwareImpl.java." into lmp-mr1-dev

9 years agoPotential fix for accidental deactivation of profile owner
Amith Yamasani [Thu, 4 Dec 2014 22:49:24 +0000 (14:49 -0800)]
Potential fix for accidental deactivation of profile owner

This is a safeguard to only check for changing packages when
re-validating active admins.
1. If package is being removed, only check if it's not being
   replaced.
2. If package is changing, only check the changing package that
   matches one of the active admins.
3. If package is being added and is a replacement (update), then
   check if it affects any matching active admins and verify the
   validity of the receivers.

If by any chance some package broadcast was occuring at a time when
an admin was being updated, or the package removed broadcast was
coming in much before the update was registered with package manager
then this will help in avoiding accidental deactivation.

Bug: 18590558
Change-Id: I7f4897e8836f81aa037b8be87d399942ce78b1a2

9 years agoMake setting the session token in MediaBrowserService synchronous
RoboErik [Thu, 4 Dec 2014 17:41:25 +0000 (09:41 -0800)]
Make setting the session token in MediaBrowserService synchronous

The MusicDemo was depending on the fact that setting the session token
is done synchronously and that getSessionToken can be called immediately
after. This makes setting the token synchronous again but leaves the
post to update any MediaBrowsers that are waiting on a connection.

This does introduce a small race condition if an app tries to set it
twice from different threads, but this is a very unlikely situation
and MediaBrowserService is not guaranteed to be thread safe.

bug:18603085
Change-Id: Id934c9f3b6520225cd92d1d8a6e2b3d606b8c6c8

9 years agoUpdating screenshots to LMP release and N6
Clare Bayley [Thu, 4 Dec 2014 22:48:18 +0000 (14:48 -0800)]
Updating screenshots to LMP release and N6

Change-Id: I49f267b9e38553285a04604e53b5317dccd9de07

9 years agoChange Linkify leniency to VALID
Raph Levien [Thu, 4 Dec 2014 22:42:38 +0000 (14:42 -0800)]
Change Linkify leniency to VALID

The linkify logic used POSSIBLE as its leniency setting, which resulted
in false positives such as 4-digit years being interpreted as phone
numbers. Changing to VALID as per recommendation of libphonenumber
people, which fixes this problem.

Bug: 18489494
Change-Id: I77d330285de46de2fdda22daed41392106ec6ddd

9 years agoMerge "Fix off-by-one error in computeEllipsis" into lmp-mr1-dev
Raph Levien [Thu, 4 Dec 2014 22:33:07 +0000 (22:33 +0000)]
Merge "Fix off-by-one error in computeEllipsis" into lmp-mr1-dev

9 years agoFix off-by-one error in computeEllipsis
Raph Levien [Thu, 4 Dec 2014 21:26:07 +0000 (13:26 -0800)]
Fix off-by-one error in computeEllipsis

In the Truncate.MIDDLE case, when the line is less than half the layout
width, the computeEllipsis logic could go past the left edge of the
string. This patch fixes the off-by-one and avoids the resulting index
out of bounds crash, and also changes the behavior so that when
ellipsizing at the middle, the string to the end of the paragraph is
taken into account.

Bug: 18508627
Change-Id: I24be09c23a5aa158791a9717419307613b8a22e8

9 years agoMerge "Make CarrierText handle multi-sim" into lmp-mr1-dev
Jason Monk [Thu, 4 Dec 2014 22:31:56 +0000 (22:31 +0000)]
Merge "Make CarrierText handle multi-sim" into lmp-mr1-dev

9 years agoMake CarrierText handle multi-sim
Jason Monk [Tue, 2 Dec 2014 21:43:17 +0000 (16:43 -0500)]
Make CarrierText handle multi-sim

To do this need to handle the subscription id that comes with all
spn broadcasts and concatenate properly as needed.

Bug: 18223317
Change-Id: I2a1cde0a4bf2f50082288cc5cdeb968fa9aa7dd0

9 years agoUse TelecomManager to call TelephonyManager#getVoicemailNumber (1/2)
Nancy Chen [Wed, 3 Dec 2014 23:18:08 +0000 (15:18 -0800)]
Use TelecomManager to call TelephonyManager#getVoicemailNumber (1/2)

Since we don't want the phone app to call TelephonyManager methods
directly, create a method in TelecomManager to mimic the behavior. The
reason we don't return the voicemail number directly is because once
TelecomManager becomes public, we don't want any old app to be able to
get the SIM's voicemail number.

Bug: 18233678

Change-Id: I620af409788aea7b58169b72a563baeed8115080

9 years agodocs: Fix typo, use --> user
Nick Chalko [Thu, 4 Dec 2014 22:05:30 +0000 (14:05 -0800)]
docs: Fix typo, use --> user

Change-Id: Idfadf09b6c1711f6294e155176a2a713f8a8f616

9 years agoMerge "Update locally cached drawables when constant state changes" into lmp-mr1-dev
Alan Viverette [Thu, 4 Dec 2014 21:59:40 +0000 (21:59 +0000)]
Merge "Update locally cached drawables when constant state changes" into lmp-mr1-dev

9 years agoMerge "Add support from restoring recent's backup." into lmp-mr1-dev
Wale Ogunwale [Thu, 4 Dec 2014 21:58:49 +0000 (21:58 +0000)]
Merge "Add support from restoring recent's backup." into lmp-mr1-dev

9 years agoFix issue #18593636: Turn on "kill important processes that...
Dianne Hackborn [Thu, 4 Dec 2014 21:58:46 +0000 (13:58 -0800)]
Fix issue #18593636: Turn on "kill important processes that...

...have ballooned" for all devices

Actually, this was supposed to be on for all devices, but it was no
longer being run due to changes in the idle maintenance code in L.
So now we run it again.  And moved the idle maintenance window to 3am.

Change-Id: I8e90723e1431b82896d261cf90f8bf84f43b0bf2

9 years agoMerge "bug fix possible NPE while startProcessLocked()" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:54:52 +0000 (21:54 +0000)]
Merge "bug fix possible NPE while startProcessLocked()" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Invalidate last screenshot when activity relaunched" into...
Craig Mautner [Thu, 4 Dec 2014 21:53:38 +0000 (21:53 +0000)]
Merge "[ActivityManager] Invalidate last screenshot when activity relaunched" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:51:55 +0000 (21:51 +0000)]
Merge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev

9 years agoMerge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:50:45 +0000 (21:50 +0000)]
Merge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev

9 years agoMerge "Avoid system server crash due to package removed" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:50:14 +0000 (21:50 +0000)]
Merge "Avoid system server crash due to package removed" into lmp-mr1-dev

9 years agoMerge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:45:19 +0000 (21:45 +0000)]
Merge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:44:33 +0000 (21:44 +0000)]
Merge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev

9 years agoDoing provisioning check for wifi tethering from SystemUI
Sanket Padawe [Thu, 4 Dec 2014 21:41:17 +0000 (13:41 -0800)]
Doing provisioning check for wifi tethering from SystemUI

+ Calling activity which calls provisioning app only if provisioning
is needed.
+ Hiding Hotspot tile from quick settings when screen is locked.

Bug: 18368949
Change-Id: I5b92a7f2d46c8b5d9b323d6a5d49315694c599f7

9 years ago[ActivityManager] Invalidate last screenshot when activity relaunched
louis_chang [Tue, 2 Dec 2014 04:38:05 +0000 (12:38 +0800)]
[ActivityManager] Invalidate last screenshot when activity relaunched

Symptom:
The task thumbnail is not updated when activity relaunched.

Reproduce Steps:
1. Put device in portrait
2. Launch Calculator
3. Launch Recent App (the Calculator's screenshot is correct)
4. Rotate device to landscape
5. Click Calculator in Recent App to return to Calculator (Calculator has relaunched to landsacpe ui)
6. Launch Recent App again (the Calculator's screenshot is not updated)

Change-Id: I92e951ea2ee215c52ca6e50cf6f9e02deb787bce

9 years agobug fix possible NPE while startProcessLocked()
younghwan1.kim [Tue, 2 Dec 2014 04:04:40 +0000 (13:04 +0900)]
bug fix possible NPE while startProcessLocked()

In case, process doesn't create well while startingProcessLocked().
There is possibility to make NPE.
Setting app's crash handler needs to be assigned after null check routine.

Change-Id: I67fb6427f72d93f79fed36eb44c47d37eafdac31

9 years ago[ActivityManager] Fix race condition in pss collection
louis_chang [Tue, 2 Dec 2014 04:57:39 +0000 (12:57 +0800)]
[ActivityManager] Fix race condition in pss collection

Symptom:
There has a race condition that two threads are accessing
the mPendingPssProcesses simultaneously. One of the thread
is collecting the process pss by looping the mPendingPssProcesses.
The other thread is requesting to collect pss of all processes,
which clears mPendingPssProcesses and adding processes back.

Solution:
Avoid race condition by adding synchornized protection.

Change-Id: Ifb090eda9c4a1b8e3fd980fe0171e9dd77773b46

9 years agoReset killedByAm flag at attachApplicationLocked
Kazuki Nakayama [Thu, 29 May 2014 07:05:34 +0000 (16:05 +0900)]
Reset killedByAm flag at attachApplicationLocked

Cherry picked from aosp.

Fixes bug 18593309.

ActivityManager reuses a process record object that killed
by him under some situation. That reused process record inherits
a killedByAm flag unexpectedly.
The killedByAm flag must be reset otherwise ActivityManager can't
judge the process can be killed or not.

Change-Id: If95137d91939cc44882ad2813131bcde0edd0c1b

9 years agoRTL support for Lollipop Land.
Dan Sandler [Thu, 4 Dec 2014 21:07:30 +0000 (16:07 -0500)]
RTL support for Lollipop Land.

Since the game randomly flips horizontally anyway, forcing
the game view to LTR fixes the coordinate math without
affecting gameplay. (The score view did need to move to
start instead of left, however.)

Bug: 18628150
Change-Id: I7cf8bd1e2b9a2316d30e17a9251173598c687c2b

9 years agoam f5aa6752: am 709df4fa: Merge "docs: Fixes for App Indexing training class" into...
Joe Fernandez [Thu, 4 Dec 2014 21:06:21 +0000 (21:06 +0000)]
am f5aa6752: am 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs

* commit 'f5aa675294ef1c622ec369450e2b0bbaa839db6d':
  docs: Fixes for App Indexing training class

9 years ago[ActivityManager] Fix NPE when start activity
louis_chang [Fri, 1 Aug 2014 02:09:08 +0000 (10:09 +0800)]
[ActivityManager] Fix NPE when start activity

Cherry picked from aosp.

Fixes bug 18593457.

Symptom:
NPE occurs in line 1184 (resultStack.sendActivityResultLocked)
because resultStack is null.

Root cause:
When starting activity with FLAG_ACTIVITY_FORWARD_RESULT flag,
the resultRecord could be updated, but the resultStack is not
updated as well. In that case, the resultStack is still be
null. The exception will occurs if the activity is not
granted to launch due to permission denied.

Solution:
Update resultStack when resultRecord updates.

Change-Id: I91634e4f713c2e8dbd1a71f358a8fd9beed83ec7

9 years agoam 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs
Joe Fernandez [Thu, 4 Dec 2014 21:00:30 +0000 (21:00 +0000)]
am 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs

* commit '709df4fa2600d1d2ee2f686097e1c92b52b58d19':
  docs: Fixes for App Indexing training class

9 years agoUpdate locally cached drawables when constant state changes
Alan Viverette [Thu, 4 Dec 2014 20:54:46 +0000 (12:54 -0800)]
Update locally cached drawables when constant state changes

Previously we were failing to update references to drawables that had
been pulled from constant state, so we were drawing the wrong ones.

Also fixes button Z translation on press, which was WAY too high.

BUG: 18542282
Change-Id: Ifde7d64e31d31737854cfcbe75777e5b07a06e3a

9 years agoMerge "docs: Fixes for App Indexing training class" into lmp-docs
Joe Fernandez [Thu, 4 Dec 2014 20:50:47 +0000 (20:50 +0000)]
Merge "docs: Fixes for App Indexing training class" into lmp-docs

9 years agodocs: Fixes for App Indexing training class
Joe Fernandez [Tue, 2 Dec 2014 05:22:53 +0000 (21:22 -0800)]
docs: Fixes for App Indexing training class

b/18244320
b/17982146

Change-Id: Ic095c3c73d09fa2d7f3c08fa47763fa8589683af

9 years agoAdd support from restoring recent's backup.
Wale Ogunwale [Wed, 3 Dec 2014 19:38:33 +0000 (11:38 -0800)]
Add support from restoring recent's backup.

Bug: 15986349
Change-Id: I899f81d317fcd5277a75db7ba50ecca14112df26

9 years agoam 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish...
David Friedman [Thu, 4 Dec 2014 20:31:32 +0000 (20:31 +0000)]
am 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs

* commit '47eddc7cc98cb99b5820c07109337a1f5ea48c77':
  Change notes for NDK r10d, to publish to DAC