OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "DO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA." into mnc...
Tyler Gunn [Fri, 16 Oct 2015 17:36:40 +0000 (17:36 +0000)]
Merge "DO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA." into mnc-dr-dev

8 years agoDO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA.
Roshan Pius [Fri, 14 Aug 2015 19:58:08 +0000 (12:58 -0700)]
DO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA.

Adding a new carrier config key to specify the gap between the DTMF
tones sent out to the network. Setting it to 100ms by default.
This is based on a similar set of changes for IMS calls: ag/747865.

BUG: 19118840
Change-Id: Ifb64fe406509fe7c401ad1c4b4e906d6643e327b

8 years agoMerge "DO NOT MERGE: Reduce delay of floating toolbar appearance." into mnc-dr-dev
Abodunrinwa Toki [Fri, 16 Oct 2015 16:36:28 +0000 (16:36 +0000)]
Merge "DO NOT MERGE: Reduce delay of floating toolbar appearance." into mnc-dr-dev

8 years agoMerge "Update docs to reflect adoptable behavior." into mnc-dr-dev
Jeff Sharkey [Fri, 16 Oct 2015 16:18:38 +0000 (16:18 +0000)]
Merge "Update docs to reflect adoptable behavior." into mnc-dr-dev

8 years agoMerge "Disassociate system windows from apps" into mnc-dr-dev
Wale Ogunwale [Fri, 16 Oct 2015 16:14:45 +0000 (16:14 +0000)]
Merge "Disassociate system windows from apps" into mnc-dr-dev

8 years agoDisassociate system windows from apps
tiger_huang [Tue, 13 Oct 2015 13:38:19 +0000 (21:38 +0800)]
Disassociate system windows from apps

With the original logic, if an app creates a system window, when the
user goes to home screen, the system window will be still there and
become unable to receive input events, because the system window will
be also changed to the stopped state with the app window, and the
current logic of ViewRootImpl forbid a stopped window receiving input
events.

This change prevents assigning the token of the app window to system
windows created by the app, so that when the app goes to the stopped
state, its system windows won't be affected (can still receive input
events).

This change is related to the following changes:
https://android.googlesource.com/platform/frameworks/base/+/a5d29971f8f4d463348e9de0f7af7e2e92a377a0
https://android.googlesource.com/platform/frameworks/base/+/15ed2754a308546a54ab1061b4e365d6fe9b898d
https://android.googlesource.com/platform/frameworks/base/+/c3672cd3f7e2bd87d6de9dada499de82b62fae84
https://android.googlesource.com/platform/frameworks/base/+/41725dedc33906aaafee36b2d6523596e2a8a52e

Bug: 24967303
Bug: https://code.google.com/p/android/issues/detail?id=189710

Change-Id: I515e47bafcf39a2b1bdf92f11f623bef8fb6263c

8 years agoDO NOT MERGE: Reduce delay of floating toolbar appearance.
Abodunrinwa Toki [Fri, 16 Oct 2015 14:54:53 +0000 (15:54 +0100)]
DO NOT MERGE: Reduce delay of floating toolbar appearance.

Bug: 21956394
Change-Id: I3db39e84afd3474b5bb53522c5a4c738ec1511bf

8 years agoMerge "Mask IccId which gets printed in bug reports & radio logs." into mnc-dr-dev
Sanket Padawe [Fri, 16 Oct 2015 00:38:55 +0000 (00:38 +0000)]
Merge "Mask IccId which gets printed in bug reports & radio logs." into mnc-dr-dev

8 years agoMerge "Fix issue #24571425: Device does not come out of idle mode for maintenance...
Dianne Hackborn [Thu, 15 Oct 2015 23:11:12 +0000 (23:11 +0000)]
Merge "Fix issue #24571425: Device does not come out of idle mode for maintenance" into mnc-dr-dev

8 years agoDon't project ripple for adequately tall spinners
Alan Viverette [Thu, 15 Oct 2015 22:50:21 +0000 (15:50 -0700)]
Don't project ripple for adequately tall spinners

Bug: 24674907
Change-Id: I1674c14f321600a40ca20adab1d40459963d2d1b

8 years agoMask IccId which gets printed in bug reports & radio logs.
Sanket Padawe [Thu, 15 Oct 2015 22:46:39 +0000 (15:46 -0700)]
Mask IccId which gets printed in bug reports & radio logs.

Bug: 24941148
Change-Id: Ibe397f5d9b0da245e3e64f626937db4792c7f3c2

8 years agoFix issue #24571425: Device does not come out of idle mode for maintenance
Dianne Hackborn [Thu, 15 Oct 2015 21:51:06 +0000 (14:51 -0700)]
Fix issue #24571425: Device does not come out of idle mode for maintenance

Don't allow alarms to push the idle maintenance alarm later
than it was set for.

Change-Id: I947718ffc9d2b984a793d7e4f2d027d8ddeee41b

8 years agoMerge "WindowStateAnimation: Clear transformation clip rect." into mnc-dr-dev
Rob Carr [Thu, 15 Oct 2015 18:38:28 +0000 (18:38 +0000)]
Merge "WindowStateAnimation: Clear transformation clip rect." into mnc-dr-dev

8 years agoMerge "Update volume slider on device changed." into mnc-dr-dev
Julia Reynolds [Thu, 15 Oct 2015 13:44:04 +0000 (13:44 +0000)]
Merge "Update volume slider on device changed." into mnc-dr-dev

8 years agoMerge "Selectively show zen footer." into mnc-dr-dev
Julia Reynolds [Thu, 15 Oct 2015 13:29:51 +0000 (13:29 +0000)]
Merge "Selectively show zen footer." into mnc-dr-dev

8 years agoMerge "Don't call StopRecognition when recognition was aborted." into mnc-dr-dev
Chris Thornton [Thu, 15 Oct 2015 01:24:45 +0000 (01:24 +0000)]
Merge "Don't call StopRecognition when recognition was aborted." into mnc-dr-dev

8 years agoam e34445f1: Merge "Docs only change: update build version docs." into mnc-dev
Dianne Hackborn [Thu, 15 Oct 2015 01:01:12 +0000 (01:01 +0000)]
am e34445f1: Merge "Docs only change: update build version docs." into mnc-dev

* commit 'e34445f11a6a14dd30ba0e018b82e852ef82ecbc':
  Docs only change: update build version docs.

8 years agoMerge "Docs only change: update build version docs." into mnc-dev
Dianne Hackborn [Thu, 15 Oct 2015 00:56:05 +0000 (00:56 +0000)]
Merge "Docs only change: update build version docs." into mnc-dev

8 years agoWindowStateAnimation: Clear transformation clip rect.
Robert Carr [Fri, 25 Sep 2015 21:56:38 +0000 (14:56 -0700)]
WindowStateAnimation: Clear transformation clip rect.

Ensure the clip rect taken from transformations is cleared
when there is no transformation. Normally the failure to
clear the clip would not cause a problem, as the final clip
would be equal to the window size. However, in the event that
the window scale goes on to change (WindowState::m(H/V)Scale that is)
the clip will now be specified at the inappropriate scale (notice the
way the clip must be divided by H/VScale as SurfaceFlinger will apply
the surface transform to the clip).

Bug:24298694
Change-Id: I4548e8ecea8d66d4942e99823653a7b05f87cea0
(cherry picked from commit 2f0fe62c5426533ccdf9ec7ef28027c367286979)

8 years agoam 31f19c44: Merge "Send next alarm\'s show intent via PendingIntent" into mnc-dev
Adrian Roos [Thu, 15 Oct 2015 00:35:33 +0000 (00:35 +0000)]
am 31f19c44: Merge "Send next alarm\'s show intent via PendingIntent" into mnc-dev

* commit '31f19c444f5f9d22c81fcb339e51bee465ba10f9':
  Send next alarm's show intent via PendingIntent

8 years agoMerge "Send next alarm's show intent via PendingIntent" into mnc-dev
Adrian Roos [Thu, 15 Oct 2015 00:29:56 +0000 (00:29 +0000)]
Merge "Send next alarm's show intent via PendingIntent" into mnc-dev

8 years agoMerge "Load binary hyphen data files" into mnc-dr-dev
Roozbeh Pournader [Thu, 15 Oct 2015 00:18:36 +0000 (00:18 +0000)]
Merge "Load binary hyphen data files" into mnc-dr-dev

8 years agoMerge "Fix bugs introduced in ChooserActivity" into mnc-dr-dev
Adam Powell [Wed, 14 Oct 2015 23:46:32 +0000 (23:46 +0000)]
Merge "Fix bugs introduced in ChooserActivity" into mnc-dr-dev

8 years agoMerge "Adding config to allow/disallow user to add APNs." into mnc-dr-dev
Amit Mahajan [Wed, 14 Oct 2015 23:33:02 +0000 (23:33 +0000)]
Merge "Adding config to allow/disallow user to add APNs." into mnc-dr-dev

8 years agoUpdate docs to reflect adoptable behavior.
Jeff Sharkey [Wed, 14 Oct 2015 20:56:23 +0000 (13:56 -0700)]
Update docs to reflect adoptable behavior.

Update storage related docs on Context to be consistent, and to call
out relevant Environment methods.  Start calling it "shared" storage,
and only mention external for historical reasons.  Mention that there
isn't much benefit to using emulated storage over private data
directories to help guide developers to safer locations.

Point out which paths can change over time, so developers know to
only persist relative paths.

Update Environment docs to reflect how they behave for the new
class of adopted storage devices.

Bug: 24251945
Change-Id: Ie5ab337649b4740dfd7594997bbb19c4969cfd2f

8 years agoMerge "TDSCDMA: RSSI bar moves 1 bar into no signal without going through 0 bar"...
Vineeta Srivastava [Wed, 14 Oct 2015 21:39:08 +0000 (21:39 +0000)]
Merge "TDSCDMA: RSSI bar moves 1 bar into no signal without going through 0 bar" into mnc-dr-dev

8 years agoMerge "Make Hyphenator#get() return an object." into mnc-dr-dev
Roozbeh Pournader [Wed, 14 Oct 2015 21:07:13 +0000 (21:07 +0000)]
Merge "Make Hyphenator#get() return an object." into mnc-dr-dev

8 years agoMerge "Ensure we update the active pointer id on pointer up/down." into mnc-dr-dev
Winson Chung [Wed, 14 Oct 2015 20:42:21 +0000 (20:42 +0000)]
Merge "Ensure we update the active pointer id on pointer up/down." into mnc-dr-dev

8 years agoSelectively show zen footer.
Julia Reynolds [Tue, 8 Sep 2015 17:41:45 +0000 (13:41 -0400)]
Selectively show zen footer.

Only show zen footer if the active stream is affected by the current
zen mode.

Bug: 23844466
Change-Id: I08770882f12f11c3458e1e48a287139480ae7aa3
(cherry picked from commit 6aa83b4ca0859c3f59413ef092f8d843f8646f0e)

8 years agoUpdate volume slider on device changed.
Julia Reynolds [Wed, 14 Oct 2015 20:13:28 +0000 (16:13 -0400)]
Update volume slider on device changed.

Bug: 24501085
Change-Id: I5bd0ac014eb291cafcf918e8a73a30e95245d533

8 years agoFix bugs introduced in ChooserActivity
Adam Powell [Wed, 14 Oct 2015 20:10:18 +0000 (13:10 -0700)]
Fix bugs introduced in ChooserActivity

* Wait to start animations until all state has been initialized, as
  the process of starting an Animator will set initial values,
  triggering other events relying on the configured state.

* Correctly track underlying item indexes for columns.

* Do not over-extend the ResolverDrawerLayout when multiple rows
  animate in.

Bug 24926885
Bug 24928706

Change-Id: I4772e1a0ba79b17b5dc19c778f3ef0cb5200c533

8 years agoLoad binary hyphen data files
Raph Levien [Mon, 31 Aug 2015 23:21:20 +0000 (16:21 -0700)]
Load binary hyphen data files

Support for loading the pre-compiled binary format for hyphenation
patterns.

Bug: 21562869
Bug: 21826930
Bug: 24570591
Change-Id: Iaeaa9c9ac9dac236af6b0d7894c2e2396bc8447d
(cherry picked from commit 091dba2de1e5fa7d4db9f8ccbf1f86e5825d0f52)

8 years agoMake Hyphenator#get() return an object.
Roozbeh Pournader [Fri, 7 Aug 2015 22:13:30 +0000 (15:13 -0700)]
Make Hyphenator#get() return an object.

Previously, a native pointer was returned. After this change, callers
should call getNativePtr() if they want to get the native pointer instead.

Bug: 21492297
Bug: 24570591
Change-Id: I745bd88e6e8c86078fffb07f90f8d8f24215410c
(cherry picked from commit e7eac6f540b09892172edd5b584605ea90f5a1ba)

8 years agoTDSCDMA: RSSI bar moves 1 bar into no signal without going through 0 bar
Sungmin Choi [Tue, 13 Oct 2015 00:58:39 +0000 (17:58 -0700)]
TDSCDMA: RSSI bar moves 1 bar into no signal without going through 0 bar

Bug: 24850563
Change-Id: I36e54e9bde9610f908b1092e11c476dcae76526d
Signed-off-by: haesun.kim <haesun.kim@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
8 years agoMerge "Don't crash if an invalid always-on VPN profile is configured." into mnc-dr-dev
Erik Kline [Wed, 14 Oct 2015 17:37:57 +0000 (17:37 +0000)]
Merge "Don't crash if an invalid always-on VPN profile is configured." into mnc-dr-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 14 Oct 2015 13:59:48 +0000 (06:59 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Correctly reschedule failed periodic" into mnc-dr-dev
Matthew Williams [Wed, 14 Oct 2015 03:00:16 +0000 (03:00 +0000)]
Merge "Correctly reschedule failed periodic" into mnc-dr-dev

8 years agoNotificationPlayer supports MediaPlayer errors
Jean-Michel Trivi [Fri, 21 Aug 2015 00:37:50 +0000 (17:37 -0700)]
NotificationPlayer supports MediaPlayer errors

If an error is reported while trying to play a notification,
 behave as if the playback had completed.

Bug 21093153

Change-Id: Iedc7691d0b8f4d68ad75cb04292a5d7d9350552f
(cherry picked from commit a25f6fcfed280136a16ce5800fcaabae17291dd7)

8 years agoMerge "Show charging speed in all locales" into mnc-dr-dev
Adrian Roos [Tue, 13 Oct 2015 22:55:11 +0000 (22:55 +0000)]
Merge "Show charging speed in all locales" into mnc-dr-dev

8 years agoMerge "Remove ColorFade resouces when screen off." into mnc-dr-dev
Michael Lentine [Tue, 13 Oct 2015 22:51:12 +0000 (22:51 +0000)]
Merge "Remove ColorFade resouces when screen off." into mnc-dr-dev

8 years agoShow charging speed in all locales
Adrian Roos [Fri, 25 Sep 2015 22:15:17 +0000 (15:15 -0700)]
Show charging speed in all locales

Bug: 24167496
Change-Id: I3e883eeca002e86d4df30c2b238e18bd63bbddea

8 years agoRemove ColorFade resouces when screen off.
Michael Lentine [Fri, 25 Sep 2015 17:55:26 +0000 (10:55 -0700)]
Remove ColorFade resouces when screen off.

This will not destroy the surface but will free up everything else used by
ColorFade when the screen is turned off. When it is turned on the surface is
dismissed.

Bug: 24371570

Change-Id: Iba455cdf225a68b320896f8b35d1e873e694b1e3

8 years agoMediaPlayer: remove obsolete function setPlaybackRate from comments.
Wei Jia [Wed, 7 Oct 2015 22:38:12 +0000 (15:38 -0700)]
MediaPlayer: remove obsolete function setPlaybackRate from comments.

Bug: 24260668
Change-Id: I20733e52dbd2dab5eb10b4607a1c1aadb93a1332
(cherry picked from commit cd860ac06ca7a46e9638dd741ba731f066705eb5)

8 years agoMerge "Shorten first boot time by filtering dexopted apps by LRU." into mnc-dr-dev
Jeff Hao [Tue, 13 Oct 2015 19:54:00 +0000 (19:54 +0000)]
Merge "Shorten first boot time by filtering dexopted apps by LRU." into mnc-dr-dev

8 years agoMerge "BluetoothMidiDevice: change write type to support JamStik" into mnc-dr-dev
Phil Burk [Tue, 13 Oct 2015 18:36:13 +0000 (18:36 +0000)]
Merge "BluetoothMidiDevice: change write type to support JamStik" into mnc-dr-dev

8 years agoShorten first boot time by filtering dexopted apps by LRU.
Jeff Hao [Tue, 13 Oct 2015 17:00:10 +0000 (10:00 -0700)]
Shorten first boot time by filtering dexopted apps by LRU.

No longer dexopt all system apps and boot listener user apps.

Bug: 23628238
Bug: https://code.google.com/p/android/issues/detail?id=186589

(cherry-picked from commit b84cb9e9719855d56ea74c2eb7afc49034c0e66f)

Change-Id: Id1a1ca9f46777f9e62df3d4f25e98a2837fabf37

8 years agoBLE-MIDI: change binding for BluetoothMidiService
Phil Burk [Thu, 3 Sep 2015 21:37:03 +0000 (14:37 -0700)]
BLE-MIDI: change binding for BluetoothMidiService

Add a remote call addBluetoothDevice() using AIDL.
This was needed because onBind() is only called once.

Bug: 23219556
Bug: 23760886
Change-Id: Id7554ca55d596352d11dbd6ae3e403138a29c864
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 7cd06c0b9e087a555d2c5dd4cab5b7eac8497526)

8 years agomedia: ignore null InputStream
Ronghua Wu [Tue, 11 Aug 2015 20:33:49 +0000 (13:33 -0700)]
media: ignore null InputStream

Bug: 22854896
Change-Id: I20b9e28bbba6dec73538ee6937d337c2e2b971f4

8 years agoDon't crash if an invalid always-on VPN profile is configured.
Lorenzo Colitti [Tue, 13 Oct 2015 06:21:21 +0000 (15:21 +0900)]
Don't crash if an invalid always-on VPN profile is configured.

This is currently being hit because Settings does not clear the
always-on VPN configuration when the corresponding VPN profile is
deleted. This will be fixed in Settings, but there's no harm in
being robust to invalid configurations here.

Bug: 23625458
Change-Id: Id185a54d5892339197cd40026df5174debd957cf

8 years agoMerge "MidiBluetoothService: add new device to HashMap" into mnc-dr-dev
Eric Laurent [Tue, 13 Oct 2015 01:09:32 +0000 (01:09 +0000)]
Merge "MidiBluetoothService: add new device to HashMap" into mnc-dr-dev

8 years agoMerge "Unbind IME client when unsetting the current IME." into mnc-dr-dev
Yohei Yukawa [Tue, 13 Oct 2015 01:00:30 +0000 (01:00 +0000)]
Merge "Unbind IME client when unsetting the current IME." into mnc-dr-dev

8 years agoUnbind IME client when unsetting the current IME.
Yohei Yukawa [Tue, 13 Oct 2015 00:08:59 +0000 (17:08 -0700)]
Unbind IME client when unsetting the current IME.

This follows up Ia70b870723acf647e0c27f24aff91b40d6f85543.

In certain scenarios, only IMMS#mCurMethodId is cleared with null
while IMMS#mCurClient is still pointing to the last application.
This is problematic when IMMS#mCurClient matches
SystemConfig#getFixedImeApps(), because it means that the current
IME is to be fixed to null.

With this CL, IMMS#unbindCurrentClientLocked() is always called
every time when IMMS#mCurMethodId is cleared to null.  Note that
clearing IMMS#mCurMethodId to null is a kind of hard-reset, where
unbinding IME client should make much sense in terms of robust
and predictable state management.

Bug: 18056075
Change-Id: I6c3186050592526fc95c5b27f18e2155acff5ebc
(cherry picked from commit e13a20faccf6f33aa43c9c1fa4c4ec2a79b86cfb)

8 years agoEnsure we update the active pointer id on pointer up/down.
Winson [Mon, 12 Oct 2015 23:18:36 +0000 (16:18 -0700)]
Ensure we update the active pointer id on pointer up/down.

Bug: 24841350
Change-Id: Id5d91ee8adbb638caf66976d701cfbc0befaca04

8 years agoMerge "Shared user retains permissions no longer used by any app on an app update...
Svetoslav Ganov [Mon, 12 Oct 2015 23:39:14 +0000 (23:39 +0000)]
Merge "Shared user retains permissions no longer used by any app on an app update" into mnc-dr-dev

8 years agoBluetoothMidiDevice: change write type to support JamStik
Phil Burk [Tue, 22 Sep 2015 19:07:31 +0000 (12:07 -0700)]
BluetoothMidiDevice: change write type to support JamStik

Temporarily use a Request instead of a Command so that the JamStik
will be properly enabled.

Bug: 24207964
Change-Id: I3d11732958c46e6039405b5969d5af0db8032fb9
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 95129f50c68c734c5ebdf32ff6b8b9c63cc1ada7)

8 years agoMerge "Add animation and positional stability to intent chooser UI" into mnc-dr-dev
Adam Powell [Mon, 12 Oct 2015 23:28:36 +0000 (23:28 +0000)]
Merge "Add animation and positional stability to intent chooser UI" into mnc-dr-dev

8 years agoShared user retains permissions no longer used by any app on an app update
Svetoslav [Mon, 12 Oct 2015 22:58:06 +0000 (15:58 -0700)]
Shared user retains permissions no longer used by any app on an app update

If an app in a shared user uses permission A and B and these are granted
to the shared user and now an app update is installed that only uses A,
the shared user still ratains the B grant. A shared user should have only
permissions declared as used by its currenlty installed apps.

bug:24736912

Change-Id: Idea6c06bdc236fd481a860cddb379e6ce660ee87

8 years agoMerge ""Fix" issue #24357296: Debug.getMemoryInfo doesn't include EGL mtrack..."...
Dianne Hackborn [Mon, 12 Oct 2015 22:55:10 +0000 (22:55 +0000)]
Merge ""Fix" issue #24357296: Debug.getMemoryInfo doesn't include EGL mtrack..." into mnc-dr-dev

8 years ago"Fix" issue #24357296: Debug.getMemoryInfo doesn't include EGL mtrack...
Dianne Hackborn [Mon, 12 Oct 2015 22:14:16 +0000 (15:14 -0700)]
"Fix" issue #24357296: Debug.getMemoryInfo doesn't include EGL mtrack...

...due to lack of permissions

Still doesn't, but an alternative is now offered.

Change-Id: I7b9da709c96ed7790c70d686c30c7855f3979778

8 years agoMerge "Add additional density enums to android:screenDensity attribute" into mnc...
Adam Lesinski [Mon, 12 Oct 2015 22:11:51 +0000 (22:11 +0000)]
Merge "Add additional density enums to android:screenDensity attribute" into mnc-dr-dev

8 years agoMerge "MidiManager: fix double BTLE callback" into mnc-dr-dev
Phil Burk [Mon, 12 Oct 2015 22:01:03 +0000 (22:01 +0000)]
Merge "MidiManager: fix double BTLE callback" into mnc-dr-dev

8 years agoMidiBluetoothService: add new device to HashMap
Phil Burk [Fri, 21 Aug 2015 22:39:10 +0000 (15:39 -0700)]
MidiBluetoothService: add new device to HashMap

The HashMap is being used but devices never added to the map.

Bug: 23429459
Change-Id: I1da5305a56f5bd48e1c5d9345e721ea8dd2eed4e
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit e5f722e55c5708c2b48b8c9688c135e451225032)

8 years agoMidiManager: fix double BTLE callback
Phil Burk [Fri, 21 Aug 2015 22:22:35 +0000 (15:22 -0700)]
MidiManager: fix double BTLE callback

Stop openBluetoothDevice() from calling its callback twice.

Bug: 23218338
Change-Id: I2e738b22a124c0336c46bef05680a82ee1f59e79
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 0ca998d79fe95ded26ec4ff0a1e0a8dc4802684b)

8 years agoMidiService: update listener with current status when registered
Phil Burk [Thu, 6 Aug 2015 06:32:54 +0000 (23:32 -0700)]
MidiService: update listener with current status when registered

This will give an app an opportunity to learn whether an input port is busy
before the user tries to connect and then fails.

Bug: 22825043
Change-Id: Ifede60f166dfe66ea15453044fce06f4a8452b18
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit b2355940e3e697deeecd1b6511cd5094f9dc553a)

8 years agoMerge "Move ASSIST_BLOCKED flag to avoid collision with SCROLL_INDICATOR" into mnc...
Alan Viverette [Mon, 12 Oct 2015 19:41:10 +0000 (19:41 +0000)]
Merge "Move ASSIST_BLOCKED flag to avoid collision with SCROLL_INDICATOR" into mnc-dr-dev

8 years agoAdding config to allow/disallow user to add APNs.
Amit Mahajan [Mon, 5 Oct 2015 18:05:02 +0000 (11:05 -0700)]
Adding config to allow/disallow user to add APNs.

Bug: 24519879
Bug: 24681288
Change-Id: I7f9b54e56a5e7f20b156609c560480440241ede8

8 years agoMerge "Fix issue #23581553: Ignore Battery Optimization not work for re-install app...
Dianne Hackborn [Mon, 12 Oct 2015 19:11:46 +0000 (19:11 +0000)]
Merge "Fix issue #23581553: Ignore Battery Optimization not work for re-install app" into mnc-dr-dev

8 years agoAdd additional density enums to android:screenDensity attribute
Adam Lesinski [Fri, 9 Oct 2015 20:14:07 +0000 (13:14 -0700)]
Add additional density enums to android:screenDensity attribute

Bug:24804021
Change-Id: I70c34da9ca5d186aa1ffaacf7f15180d4c4b81e1

8 years agoFix issue #23581553: Ignore Battery Optimization not work for re-install app
Dianne Hackborn [Mon, 12 Oct 2015 17:59:47 +0000 (10:59 -0700)]
Fix issue #23581553: Ignore Battery Optimization not work for re-install app

Remove from whitelist as appropriate.  Also be sure we can find whitelisted
apps even if they are not installed in the primary user.

Change-Id: I3ed13dca99b3ba177af8f7bd26a75258df9b6949

8 years agoUse effectiveUid instead of callingUid to set lockTaskMode
Wale Ogunwale [Mon, 12 Oct 2015 17:34:14 +0000 (10:34 -0700)]
Use effectiveUid instead of callingUid to set lockTaskMode

The callingUid can be different from that of the app been locked
(e.g. was launched from launcher) there by leading to the app crashing
when it tries to exit lockTaskMode.

Bug: 24146132
Change-Id: I03346fabd1d7e61b29178220c72f747a0600f5ec

8 years agoMerge "[RenderScript] pass correct length of ains to BLAS functions" into mnc-dr-dev
Miao Wang [Mon, 12 Oct 2015 16:46:55 +0000 (16:46 +0000)]
Merge "[RenderScript] pass correct length of ains to BLAS functions" into mnc-dr-dev

8 years agoMerge "Fix parole scheduling bugs." into mnc-dr-dev
Jeff Sharkey [Mon, 12 Oct 2015 16:34:37 +0000 (16:34 +0000)]
Merge "Fix parole scheduling bugs." into mnc-dr-dev

8 years agoMerge "Push firewall rules up to ConnectivityService." into mnc-dr-dev
Jeff Sharkey [Mon, 12 Oct 2015 16:34:19 +0000 (16:34 +0000)]
Merge "Push firewall rules up to ConnectivityService." into mnc-dr-dev

8 years agoMerge "Default location is "internalOnly" when undefined." into mnc-dr-dev
Jeff Sharkey [Mon, 12 Oct 2015 16:34:03 +0000 (16:34 +0000)]
Merge "Default location is "internalOnly" when undefined." into mnc-dr-dev

8 years agowm: call displayReady for all built in displays when system is ready.
Vinu Deokaran [Tue, 16 Dec 2014 15:52:52 +0000 (10:52 -0500)]
wm: call displayReady for all built in displays when system is ready.

When system has more than one built in display, displayReady needs
to be called for all built in displays when window manager is ready.
Otherwise, some system services, such as presentation, mediarouter,
etc, won't work on these displays.

Bug: 24103683
Change-Id: Ibf08074eff555c14a318236bd06e7b4855503140

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 12 Oct 2015 14:03:29 +0000 (07:03 -0700)]
Import translations. DO NOT MERGE

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

8 years agoConnect the DHCP UDP socket to the server.
Lorenzo Colitti [Thu, 10 Sep 2015 09:12:18 +0000 (18:12 +0900)]
Connect the DHCP UDP socket to the server.

This makes it so that the socket cannot receive datagrams from
anybody except the DHCP server. This does not improve security,
because we never read from the UDP socket anyway, but it does
make ListeningPortsTest pass.

Bug: 23906864
Bug: 23933386
Change-Id: Ib090273a417f7eb2ac1ee3309260249b72fb8345

8 years agoMerge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
Lorenzo Colitti [Sun, 11 Oct 2015 06:48:33 +0000 (06:48 +0000)]
Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev

* changes:
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.

8 years agoMerge "Fix issue #24743380: VoiceInteractionManagerService doesn't use current.....
Dianne Hackborn [Sat, 10 Oct 2015 00:42:02 +0000 (00:42 +0000)]
Merge "Fix issue #24743380: VoiceInteractionManagerService doesn't use current..." into mnc-dr-dev

8 years agoFix issue #24743380: VoiceInteractionManagerService doesn't use current...
Dianne Hackborn [Fri, 9 Oct 2015 23:09:25 +0000 (16:09 -0700)]
Fix issue #24743380: VoiceInteractionManagerService doesn't use current...

...user for service info

Now it does.

The actual change is basically one line, passing in the current user
when building the service info.  The rest is more debugging output to
be able to see what is going on.

Change-Id: I451884e0780aac6ee92fd2cd520071894afdf586

8 years ago[RenderScript] pass correct length of ains to BLAS functions
Miao Wang [Wed, 30 Sep 2015 22:38:07 +0000 (15:38 -0700)]
[RenderScript] pass correct length of ains to BLAS functions

bug: 24540091
Change-Id: Ia541bcbee07125c4caf3e0f4863702a3c0b929d5
(cherry picked from commit 0b34f2a3c545cb112a23072c92214e359a8df8c6)

8 years agoDefault location is "internalOnly" when undefined.
Jeff Sharkey [Fri, 9 Oct 2015 20:22:09 +0000 (13:22 -0700)]
Default location is "internalOnly" when undefined.

When an app doesn't define installLocation, the default behavior
should be to treat it as internal only.  This matches all the
published developer documentation.

Without this, apps could be unwittingly be moved to adopted storage
devices.

Bug: 24771264
Change-Id: Iaf38ab45329aad6cb5d6deac81fb1781f680189b

8 years agoSafely handle interrupts during Thread.join()
Pirama Arumuga Nainar [Fri, 2 Oct 2015 23:38:08 +0000 (16:38 -0700)]
Safely handle interrupts during Thread.join()

Bug: 24342101

Interrupt current thread if InterruptedException is received during
Thread.join().  Also, log the interruption.

Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
(cherry picked from commit 83461d73bc50d41f631e1db5c195d12b4eb9e6cf)

8 years agoRetry if interrupted before mMessageThread has joined
Pirama Arumuga Nainar [Fri, 2 Oct 2015 19:06:10 +0000 (12:06 -0700)]
Retry if interrupted before mMessageThread has joined

Bug: 24342101

If interrupted during mMessageThread.join(), retry the join instead of
assuming the thread has joined and continuing.  Continuing to destroy
the context will cause a segfault when the message thread attempts to
use the destroyed context.

Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
(cherry picked from commit 2f25ce7753f7f1f6a0cc549a0df0082286bd5f85)

8 years agoMerge "Actually apply after no sims change." into mnc-dr-dev
Jason Monk [Thu, 8 Oct 2015 20:21:00 +0000 (20:21 +0000)]
Merge "Actually apply after no sims change." into mnc-dr-dev

8 years agoMerge "Hold wake-lock during copy operations." into mnc-dr-dev
Jeff Sharkey [Thu, 8 Oct 2015 16:58:54 +0000 (16:58 +0000)]
Merge "Hold wake-lock during copy operations." into mnc-dr-dev

8 years agoActually apply after no sims change.
Jason Monk [Thu, 8 Oct 2015 14:09:21 +0000 (10:09 -0400)]
Actually apply after no sims change.

Bug: 24244260
Change-Id: I922d45e6dcc4eb85fc7d93824e7d01645a90266e

8 years agoMerge "Add ESC mapping for Pixel C keyboard" into mnc-dr-dev
Puneet Kumar [Thu, 8 Oct 2015 08:17:38 +0000 (08:17 +0000)]
Merge "Add ESC mapping for Pixel C keyboard" into mnc-dr-dev

8 years agoMerge "Add layout and keymap for Pixel C Bluetooth keyboard" into mnc-dr-dev
Puneet Kumar [Thu, 8 Oct 2015 08:17:23 +0000 (08:17 +0000)]
Merge "Add layout and keymap for Pixel C Bluetooth keyboard" into mnc-dr-dev

8 years agoSupport DHCP replies with multiple default gateways.
Lorenzo Colitti [Wed, 16 Sep 2015 22:55:29 +0000 (07:55 +0900)]
Support DHCP replies with multiple default gateways.

Just use the first one for compatibility with the legacy client.

Bug: 23975855
Change-Id: Id6a0b0de32e8947c12c02eb9a3be417e2f82c99a

8 years agoAccept DHCP responses from non-67 server source ports
Erik Kline [Tue, 6 Oct 2015 09:43:17 +0000 (18:43 +0900)]
Accept DHCP responses from non-67 server source ports

Bug: 24687559
Change-Id: I5f03b8b2780c558281d8a50d0893fd64f2812add

8 years agoImprove logging of DHCP parse errors using exceptions.
Erik Kline [Wed, 16 Sep 2015 06:44:54 +0000 (15:44 +0900)]
Improve logging of DHCP parse errors using exceptions.

Bug: 23975855
Change-Id: I62464b92f0bb568e57bf5e1a63bc75f22c75aac1

8 years agoMerge "Ensure SurfaceView requests WM relayout when size changes." into mnc-dr-dev
Tim Murray [Wed, 7 Oct 2015 23:21:14 +0000 (23:21 +0000)]
Merge "Ensure SurfaceView requests WM relayout when size changes." into mnc-dr-dev

8 years agoMerge "MediaActionSound: Fix video stop sound" into mnc-dr-dev
Chien-Yu Chen [Wed, 7 Oct 2015 23:03:52 +0000 (23:03 +0000)]
Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev

8 years agoCorrectly reschedule failed periodic
Matthew Williams [Wed, 7 Oct 2015 21:29:30 +0000 (14:29 -0700)]
Correctly reschedule failed periodic

BUG: 24341715
Failed jobs are rescheduled with no override deadline to avoid
running a failed job with unsatisfied constraints.
A periodic job always has an override deadline and the periodic
rescheduling code assumes this.
Hence a periodic that failed until eventual success would be
rescheduled in a bad state.

Change-Id: Id110b3522df2003506a9efdde4e719e1b9932106
(cherry picked from commit 1bde39ad1424008917e1191565f81e0b4617f2fa)

8 years agoMediaActionSound: Fix video stop sound
Chien-Yu Chen [Wed, 7 Oct 2015 22:17:19 +0000 (15:17 -0700)]
MediaActionSound: Fix video stop sound

Bug: 24745252
Change-Id: I803679d52750e09c7fc7b881523becf9259b558b

8 years agoam a636be6c: Camera: fix wrong FULL feature string
Yin-Chia Yeh [Wed, 7 Oct 2015 21:36:35 +0000 (21:36 +0000)]
am a636be6c: Camera: fix wrong FULL feature string

* commit 'a636be6c9a8a9192f72a111c2b3084a226d37b7e':
  Camera: fix wrong FULL feature string

8 years agoEnsure SurfaceView requests WM relayout when size changes.
Robert Carr [Wed, 7 Oct 2015 18:24:31 +0000 (11:24 -0700)]
Ensure SurfaceView requests WM relayout when size changes.

In the case of scaled SurfaceViews with a fixed size.
It is possible for the surface layout size to change
without a change to the surface size or position. In this
case we need to inform the window manager so it can update
frames and scaling. This has presented in Camera and required
workarounds such as changing the fixed surface size to trigger
an update (leading to visual artifacts).

Bug:23974105
Change-Id: I195aa0832907c32874b294101b56e198e853dce5
(cherry picked from commit a8fe43f09c0ed2119e55139a482f7f12fbe7d725)

8 years agoDon't call StopRecognition when recognition was aborted.
Chris Thornton [Tue, 6 Oct 2015 23:48:12 +0000 (16:48 -0700)]
Don't call StopRecognition when recognition was aborted.

If recognition has been aborted, then the call to the sound trigger
device stop recognition has already occurred. The sound trigger helper
would then try to stop it again, which generates an error code for a
stop without a corresponding start event.

BUG=24677430

Change-Id: Ibf5d1da1a8eb06b677e428f047905d15fd5cf21f

8 years agoMerge "ZenModeHelper: fix cross deadlock with AudioService" into mnc-dr-dev
Eric Laurent [Wed, 7 Oct 2015 13:39:51 +0000 (13:39 +0000)]
Merge "ZenModeHelper: fix cross deadlock with AudioService" into mnc-dr-dev