OSDN Git Service

android-x86/frameworks-base.git
9 years agoFix overflow in NinePatchImpl.
Leon Scroggins III [Thu, 21 May 2015 13:48:15 +0000 (09:48 -0400)]
Fix overflow in NinePatchImpl.

Cast numXDivs to a size_t before adding 1, so that if numXDivs is 255
it does not overflow. Move the calculation outside of alloca().

BUG:20727488
Change-Id: I2ecc9d650338acba7316554cb72195e02816b1f8

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Thu, 21 May 2015 13:28:23 +0000 (13:28 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Thu, 21 May 2015 13:22:40 +0000 (13:22 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Baligh Uddin [Thu, 21 May 2015 13:20:17 +0000 (13:20 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Baligh Uddin [Thu, 21 May 2015 13:20:20 +0000 (13:20 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Baligh Uddin [Thu, 21 May 2015 13:20:14 +0000 (13:20 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Baligh Uddin [Thu, 21 May 2015 13:20:11 +0000 (13:20 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 21 May 2015 13:17:30 +0000 (06:17 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Thu, 21 May 2015 13:16:22 +0000 (13:16 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 21 May 2015 13:13:24 +0000 (06:13 -0700)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 21 May 2015 13:10:03 +0000 (06:10 -0700)]
Import translations. DO NOT MERGE

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

9 years agoLinkProperties function to compare provisioning and remove DNS servers
Erik Kline [Thu, 21 May 2015 07:15:02 +0000 (16:15 +0900)]
LinkProperties function to compare provisioning and remove DNS servers

Adds:
    - enum ProvisioningChange
    - LinkProperties#compareProvisioning()
          return a ProvisioningChange value describing the delta in
          provisioning between two LinkProperties objects
    - LinkProperties#removeDnsServer()
    - make "@hide public" isIPv4Provisioned() and isIPv6Provisioned()

Bug: 18581716
Change-Id: I3df90b2b89617f693346f2dbe72e77c88ce91ffd

9 years agoMerge "TIF: Build the list of available TV inputs as the current user" into mnc-dev
Jae Seo [Thu, 21 May 2015 05:27:06 +0000 (05:27 +0000)]
Merge "TIF: Build the list of available TV inputs as the current user" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 21 May 2015 04:59:08 +0000 (21:59 -0700)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 21 May 2015 04:54:23 +0000 (21:54 -0700)]
Import translations. DO NOT MERGE

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

9 years agoTIF: Build the list of available TV inputs as the current user
Jae Seo [Thu, 21 May 2015 04:51:16 +0000 (21:51 -0700)]
TIF: Build the list of available TV inputs as the current user

Bug: 21313985
Change-Id: I8aa881570915d14d63e4ac0b8034044f8736443b

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 21 May 2015 04:51:28 +0000 (21:51 -0700)]
Import translations. DO NOT MERGE

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

9 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 21 May 2015 04:49:20 +0000 (21:49 -0700)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Fix docs to not refer to non-public classes." into mnc-dev
Chet Haase [Thu, 21 May 2015 04:47:40 +0000 (04:47 +0000)]
Merge "Fix docs to not refer to non-public classes." into mnc-dev

9 years agoMerge "Fix: Crash when modifying text while using drag accelerator." into mnc-dev
Keisuke Kuroyanagi [Thu, 21 May 2015 04:07:55 +0000 (04:07 +0000)]
Merge "Fix: Crash when modifying text while using drag accelerator." into mnc-dev

9 years agoMerge "Volume: Include a11y bit in dialog dump." into mnc-dev
John Spurlock [Thu, 21 May 2015 03:35:11 +0000 (03:35 +0000)]
Merge "Volume: Include a11y bit in dialog dump." into mnc-dev

9 years agoVolume: Include a11y bit in dialog dump.
John Spurlock [Thu, 21 May 2015 03:33:43 +0000 (23:33 -0400)]
Volume: Include a11y bit in dialog dump.

Bug: 21340132
Change-Id: Ie9a347e7e0f08c7019b4a483a3a87a8cba6f37da

9 years agoMerge "Fix overrides for BridgeResources." into mnc-dev
Deepanshu Gupta [Thu, 21 May 2015 01:50:22 +0000 (01:50 +0000)]
Merge "Fix overrides for BridgeResources." into mnc-dev

9 years agoFix overrides for BridgeResources.
Deepanshu Gupta [Thu, 21 May 2015 01:25:58 +0000 (18:25 -0700)]
Fix overrides for BridgeResources.

New method overloads have been introduces in android.content.Resources.
Change BridgeResources to overrides the appropriate ones. Also, fix the
implementation to the new behaviour.

Change-Id: I7b83b329f04286512f223c0fafc3f989f1b9a244

9 years agoMerge "Make DatePicker rendering not fail." into mnc-dev
Deepanshu Gupta [Thu, 21 May 2015 01:47:13 +0000 (01:47 +0000)]
Merge "Make DatePicker rendering not fail." into mnc-dev

9 years agoScan at boot time to detect newly-present full backup candidates
Christopher Tate [Wed, 20 May 2015 21:49:38 +0000 (14:49 -0700)]
Scan at boot time to detect newly-present full backup candidates

OTA or similar might have caused an app to appear without the usual
notifications being sent.  Make sure we pick up those apps as
appropriate for full-data backup.

Bug 19462310

Change-Id: Ic17bc72b14cc7599ae8ea540548fda932606b8f2

9 years agoFix docs to not refer to non-public classes.
Chet Haase [Thu, 21 May 2015 00:42:27 +0000 (17:42 -0700)]
Fix docs to not refer to non-public classes.

Issue #21328285 public Midi docs refer to internal utility class

Change-Id: Idddd5c98a78159190c6c34b17350f4630c33d6d5

9 years agoMerge "Fix ObservableScrollView's cancel dispatch" into mnc-dev
Adrian Roos [Thu, 21 May 2015 01:12:58 +0000 (01:12 +0000)]
Merge "Fix ObservableScrollView's cancel dispatch" into mnc-dev

9 years agoFix ObservableScrollView's cancel dispatch
Adrian Roos [Thu, 21 May 2015 01:08:58 +0000 (18:08 -0700)]
Fix ObservableScrollView's cancel dispatch

Bug: 21239185
Change-Id: I8005556a2a6fcd8981e615a6f5537a1d7e9ce6a7

9 years agoMake DatePicker rendering not fail.
Deepanshu Gupta [Thu, 21 May 2015 01:01:48 +0000 (18:01 -0700)]
Make DatePicker rendering not fail.

Ensures that having a DatePicker in the layout doesn't crash the
complete rendering. The rendering is still not perfect, but at least it
works.

- Return a non-null window token so that ViewPager thinks that it's
  attached to a window and doesn't skip populating the views.
- Fix a style not found issue.

Change-Id: Ied2b71de5b32bcb640bf4ec445e8a39509f800e9

9 years agoMerge "Move from native FingerprintService implementation to fingerprintd" into mnc-dev
Jim Miller [Thu, 21 May 2015 00:57:26 +0000 (00:57 +0000)]
Merge "Move from native FingerprintService implementation to fingerprintd" into mnc-dev

9 years agoMerge "Do not call out of the settings provider with a lock held" into mnc-dev
Svetoslav [Thu, 21 May 2015 00:35:12 +0000 (00:35 +0000)]
Merge "Do not call out of the settings provider with a lock held" into mnc-dev

9 years agoDo not call out of the settings provider with a lock held
Svetoslav [Thu, 21 May 2015 00:01:10 +0000 (17:01 -0700)]
Do not call out of the settings provider with a lock held

bug:20443441

Change-Id: I704520b75f5deaeeb1b4098cda0783c667e8cdd1

9 years agoMerge "Use screen-on time and wallclock time for idleness calc" into mnc-dev
Amith Yamasani [Thu, 21 May 2015 00:10:12 +0000 (00:10 +0000)]
Merge "Use screen-on time and wallclock time for idleness calc" into mnc-dev

9 years agoMerge "Use non deprecated method for creating ColorStateList" into mnc-dev
Deepanshu Gupta [Thu, 21 May 2015 00:03:05 +0000 (00:03 +0000)]
Merge "Use non deprecated method for creating ColorStateList" into mnc-dev

9 years agoMerge "Avoid resuming activity before launch." into mnc-dev
Craig Mautner [Thu, 21 May 2015 00:01:58 +0000 (00:01 +0000)]
Merge "Avoid resuming activity before launch." into mnc-dev

9 years agoUse non deprecated method for creating ColorStateList
Deepanshu Gupta [Wed, 20 May 2015 23:49:42 +0000 (16:49 -0700)]
Use non deprecated method for creating ColorStateList

Change-Id: I9fce928276c8a2af55eb0615a4895abb6a973be5

9 years agoFix line breaking.
Deepanshu Gupta [Wed, 20 May 2015 23:47:06 +0000 (16:47 -0700)]
Fix line breaking.

Essentially moves line breaking measurement later in the process when
character widths have already been computed.

Change-Id: I17c5bc10d373d8906c5caf86604ce8504650cd7f

9 years agoMerge "Inject anonymous inner classes of injected classes" into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 23:32:03 +0000 (23:32 +0000)]
Merge "Inject anonymous inner classes of injected classes" into mnc-dev

9 years agoInject anonymous inner classes of injected classes
Deepanshu Gupta [Wed, 20 May 2015 21:51:37 +0000 (14:51 -0700)]
Inject anonymous inner classes of injected classes

When injecting classes in LayoutLib (eg. CreateInfo), so that LayoutLib
can refer back to the changes, also inject the anonymous inner classes.
Without this, the injected classes are not loadable. Although, LayoutLib
itself doesn't load these classes, but some tests do.

Change-Id: Ib5f6b779ef4d79dec8d614d3dbb26eeac88a1064

9 years agoMerge "Update platformDir search in tests." into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 23:30:10 +0000 (23:30 +0000)]
Merge "Update platformDir search in tests." into mnc-dev

9 years agoMerge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev
Andy Hung [Wed, 20 May 2015 23:01:37 +0000 (23:01 +0000)]
Merge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev

9 years agoFix AudioTrack, AudioRecord, AudioFormat API
Andy Hung [Tue, 19 May 2015 22:44:31 +0000 (15:44 -0700)]
Fix AudioTrack, AudioRecord, AudioFormat API

Rename getNativeFrameCount to getBufferSizeInFrames
Remove throw declaration on IllegalArgumentException and
IllegalStateException

Bug: 20887665
Bug: 21304902
Change-Id: Ia85d8010be46524b9a8b93105b16b7b9480f6bd9

9 years agoUse screen-on time and wallclock time for idleness calc
Amith Yamasani [Tue, 19 May 2015 23:51:30 +0000 (16:51 -0700)]
Use screen-on time and wallclock time for idleness calc

12 hours of screen-on time and 2 days of wallclock time
must elapse before considering an app idle.

Bug: 20066058
Change-Id: Ie7b584b40e644d868aa2708876723c3391fd432e

9 years agoAvoid resuming activity before launch.
Craig Mautner [Wed, 20 May 2015 21:59:57 +0000 (14:59 -0700)]
Avoid resuming activity before launch.

The locktask logic would always bring a locked task to the front and
then resume it when locking. When a task is to be locked at launch that
would cause it to resume immediately before onLaunch was called. Which
would cause havoc because the token was not yet in
ActivityThread.mActivities. This lead to premature finish() calls and
looping restarts.

This change causes the resume to only be called when an app calls
startLockTask. Otherwise the resume call is skipped.

Plus additional locktask debug logging.

Fixes bug 21031298.

Change-Id: I756b0d607827d0ec7a123377db04d9377c41776d

9 years agoam 782def77: am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow...
Cedric Ho [Wed, 20 May 2015 22:22:23 +0000 (22:22 +0000)]
am 782def77: am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

* commit '782def772adacaf029d7d9850605923066665424':
  Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

9 years agoMerge "Fixed that touches where incorrectly consumed when fullscreen" into mnc-dev
Selim Cinek [Wed, 20 May 2015 22:21:37 +0000 (22:21 +0000)]
Merge "Fixed that touches where incorrectly consumed when fullscreen" into mnc-dev

9 years agoFixed that touches where incorrectly consumed when fullscreen
Selim Cinek [Wed, 20 May 2015 01:08:14 +0000 (18:08 -0700)]
Fixed that touches where incorrectly consumed when fullscreen

The fake window that was added when View.SYSTEM_UI_FULL_SCREEN was
set consumed all touches, even those going to the SystemUI and not
just those of windows below. The input consumer is now correctly
positioned in the window order to only capture the right touches.
Clicks to the volume panel and the heads up now correctly go to the
right place instead of just unhiding the SystemUI bars.

Bug: 21089476
Change-Id: Ib53dfc0b33b70084ca607d0f044db30b6e6c91d6

9 years agoMerge "Clean RenderScript warnings" into mnc-dev
Jean-Luc Brouillet [Wed, 20 May 2015 22:17:11 +0000 (22:17 +0000)]
Merge "Clean RenderScript warnings" into mnc-dev

9 years agoam 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to...
Cedric Ho [Wed, 20 May 2015 21:56:27 +0000 (21:56 +0000)]
am 80cf2210: Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

* commit '80cf2210226bc652181abafe606b69ebce63af78':
  Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

9 years agoMove from native FingerprintService implementation to fingerprintd
Jim Miller [Tue, 12 May 2015 03:45:25 +0000 (20:45 -0700)]
Move from native FingerprintService implementation to fingerprintd

This adds a new service, fingerprintd, that manages fingerprint
hardware from a separate process.  It provides a binder interface that
FingerprintManager uses to talk to the fingerprint HAL.

Change-Id: I84d8e407c1f1a7d1a396e246c382459ad38810ae

9 years agoMerge "Eliminate requireGlContext" into mnc-dev
John Reck [Wed, 20 May 2015 21:38:56 +0000 (21:38 +0000)]
Merge "Eliminate requireGlContext" into mnc-dev

9 years agoMerge "Add Carrier Presence to CP2: Phone" into mnc-dev
Etan Cohen [Wed, 20 May 2015 21:37:37 +0000 (21:37 +0000)]
Merge "Add Carrier Presence to CP2: Phone" into mnc-dev

9 years agoAdjust clock size to spec
Jorim Jaggi [Wed, 20 May 2015 21:30:47 +0000 (14:30 -0700)]
Adjust clock size to spec

Bug: 21111048
Change-Id: I73c6e57421dec4d929e5f87d812b5c2c495d250d

9 years agoMerge "Update the Statement Service. DO NOT MERGE" into mnc-dev
Joseph Wen [Wed, 20 May 2015 21:19:17 +0000 (21:19 +0000)]
Merge "Update the Statement Service. DO NOT MERGE" into mnc-dev

9 years agoMerge "LCE feature enhancement" into mnc-dev
fenglu [Wed, 20 May 2015 21:09:07 +0000 (21:09 +0000)]
Merge "LCE feature enhancement" into mnc-dev

9 years agoAdd config_forceVoiceInteractionServicePackage to allow a device to config its VoiceI...
Cedric Ho [Tue, 19 May 2015 22:44:31 +0000 (15:44 -0700)]
Add config_forceVoiceInteractionServicePackage to allow a device to config its VoiceInteractionService package and ignore the regular setting.

Change-Id: Ic40d90f1a7a9942f5e82080668552239bbed9b03

9 years agoMerge "camera: Add AIDL interface for CameraServiceProxy." into mnc-dev
Ruben Brunk [Wed, 20 May 2015 20:44:26 +0000 (20:44 +0000)]
Merge "camera: Add AIDL interface for CameraServiceProxy." into mnc-dev

9 years agoClean RenderScript warnings
Jean-Luc Brouillet [Tue, 19 May 2015 21:59:42 +0000 (14:59 -0700)]
Clean RenderScript warnings

Change-Id: Ia7a98c1c977c839c74ae8081e70b5deb4b60c25d

9 years agoUpdate the Statement Service. DO NOT MERGE
Joseph Wen [Thu, 23 Apr 2015 19:45:07 +0000 (15:45 -0400)]
Update the Statement Service. DO NOT MERGE

For security reason, disallow HTTP include files if the source asset is
a HTTPS site or an Android app.
Change the include statement field name from "delegate" to "include".

Bug: 20323096
Change-Id: Ifc12b61657c9c89a670b9d7c3220853321c15dea

9 years agoMerge "Allow DO/PO to go back to normal permission state." into mnc-dev
Svet Ganov [Wed, 20 May 2015 20:09:36 +0000 (20:09 +0000)]
Merge "Allow DO/PO to go back to normal permission state." into mnc-dev

9 years agoAllow DO/PO to go back to normal permission state.
Svet Ganov [Wed, 20 May 2015 17:45:43 +0000 (10:45 -0700)]
Allow DO/PO to go back to normal permission state.

We have APIs for a DO/PO to fix a permission in a granted or
denied state in which the user cannot manage this permission
through the UI. However, there is no way to go back to the
default state in which the user gets to choose the permission
grant state.

Change-Id: I2562a1d8b1385cd740b44812844ef14c895c2902

9 years agoLower fingerprint permission protection level
Jorim Jaggi [Wed, 20 May 2015 19:04:41 +0000 (12:04 -0700)]
Lower fingerprint permission protection level

Bug: 21307136
Change-Id: Iafdb42c6a82b27a5297ad14ffaa289b14fffad23

9 years agoMerge "Write packages.list when adding/removing users." into mnc-dev
Jeff Sharkey [Wed, 20 May 2015 19:09:46 +0000 (19:09 +0000)]
Merge "Write packages.list when adding/removing users." into mnc-dev

9 years agoWrite packages.list when adding/removing users.
Jeff Sharkey [Wed, 20 May 2015 19:04:42 +0000 (12:04 -0700)]
Write packages.list when adding/removing users.

FUSE daemons now rely on getting per-user GID information when
packages.list is written.  Normal secondary user adding/removing
usually has enough PackageManager traffic to trigger a side-effect
rewrite, but this change writes explicitly to handle guest users.

Also obtain the user list once, and exclude dying users.  During
user creation we manually splice in the user ID that we're bringing
online.

Bug: 19924661
Change-Id: Icc5b1b169300c9dc12099be12651acbf89d6bea9

9 years agoMerge "Follow up for I8050df3177b6d540829c3f0989a4e4b1381c87ec (1/2)" into mnc-dev
Jorim Jaggi [Wed, 20 May 2015 19:01:49 +0000 (19:01 +0000)]
Merge "Follow up for I8050df3177b6d540829c3f0989a4e4b1381c87ec (1/2)" into mnc-dev

9 years agoMerge "Don't exceed max. allowed recent document tasks for an app." into mnc-dev
Stefan Kuhne [Wed, 20 May 2015 18:38:28 +0000 (18:38 +0000)]
Merge "Don't exceed max. allowed recent document tasks for an app." into mnc-dev

9 years agoUpdate platformDir search in tests.
Deepanshu Gupta [Wed, 20 May 2015 18:28:50 +0000 (11:28 -0700)]
Update platformDir search in tests.

When trying to find the SDK Platform Dir for LayoutLib tests, also
test if the dir from which the tests are run is module dir.

Change-Id: Id5c6038d07ebbb122e38f907ad488ed1f2bcde32

9 years agoEliminate requireGlContext
John Reck [Wed, 20 May 2015 14:18:55 +0000 (07:18 -0700)]
Eliminate requireGlContext

Bug: 20297820

Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097

9 years agoMerge "Text selection: fix some issues with drag accelerator" into mnc-dev
Mady Mellor [Wed, 20 May 2015 18:05:29 +0000 (18:05 +0000)]
Merge "Text selection: fix some issues with drag accelerator" into mnc-dev

9 years agoDon't exceed max. allowed recent document tasks for an app.
Stefan Kuhne [Tue, 19 May 2015 23:00:12 +0000 (16:00 -0700)]
Don't exceed max. allowed recent document tasks for an app.

We were exceeding the maximum allowed recents document tasks entry
for an application package because the full Intent object was been
compared for equality which will be different for each task. Now
we are only comparing that the task components match which is
sufficient to determining that the task belongs to the same
application package.

Bug: 18642190
Change-Id: I831b0fcffb876d51e9439e7a7a4c75bb0881db7c

9 years agoHide ProviderStatus and Authentication APIs
Brian Attwell [Thu, 14 May 2015 22:25:01 +0000 (15:25 -0700)]
Hide ProviderStatus and Authentication APIs

Bug: 21090207
Change-Id: I27b604b9c849e1aad8289c517f5e50c5d0faae0f

9 years agoMerge "Fix selection handles on older API versions" into mnc-dev
Mady Mellor [Wed, 20 May 2015 17:09:11 +0000 (17:09 +0000)]
Merge "Fix selection handles on older API versions" into mnc-dev

9 years agoText selection: fix some issues with drag accelerator
Mady Mellor [Wed, 20 May 2015 17:05:52 +0000 (10:05 -0700)]
Text selection: fix some issues with drag accelerator

Couple of overlapping issues that this CL fixes. The major change is to
offset the selection vertically this is similar to how the handles work
already (i.e. touch target is below what's being selected), and still
allows the user to see the selection start / end without covering it with
their finger.

This change fixes multiple issues:
1) Previously to ensure the finger wasn't covering the selection a
   preceding or following offset was taken, this made it difficult to
   select certain words and it made text on the edge of the screen hard
   to select (b/21098345 and b/19965619)
2) The use of preceding and following on the word iterator was not correct
   allowing grapheme clusters to be split, now the offset is calculated
   with getWordStart/End which respect grapheme clusters (b/21045116)

Bug: 21098345
Bug: 21045116
Bug: 19965619
Change-Id: Id8392426cce20ad0ff47a4279c92f6ed1b0ad30e

9 years agoMerge "AudioFormat: more compressed formats" into mnc-dev
Eric Laurent [Wed, 20 May 2015 16:22:00 +0000 (16:22 +0000)]
Merge "AudioFormat: more compressed formats" into mnc-dev

9 years agoMerge "Updating (and completing) documentation post API-council changes." into mnc-dev
Paul McLean [Wed, 20 May 2015 15:56:06 +0000 (15:56 +0000)]
Merge "Updating (and completing) documentation post API-council changes." into mnc-dev

9 years agoMerge "Throw a checked exception on inconsistent installs." into mnc-dev
Narayan Kamath [Wed, 20 May 2015 15:54:47 +0000 (15:54 +0000)]
Merge "Throw a checked exception on inconsistent installs." into mnc-dev

9 years agoUpdating (and completing) documentation post API-council changes.
Paul McLean [Tue, 19 May 2015 18:13:41 +0000 (11:13 -0700)]
Updating (and completing) documentation post API-council changes.

1. Enum/Select/Notify API
2. (re)routing API

bug: 21151568
Change-Id: Idce969c8b8955022b7810cf5dddb800e6aa01000

9 years agoMerge "Reduce wasted buffer allocations" into mnc-dev
John Reck [Wed, 20 May 2015 14:23:05 +0000 (14:23 +0000)]
Merge "Reduce wasted buffer allocations" into mnc-dev

9 years agoMerge "Fix whitespace in TextureView" into mnc-dev
John Reck [Wed, 20 May 2015 14:22:56 +0000 (14:22 +0000)]
Merge "Fix whitespace in TextureView" into mnc-dev

9 years agoMerge "Fix NPE in setSurfaceTexure" into mnc-dev
John Reck [Wed, 20 May 2015 14:22:40 +0000 (14:22 +0000)]
Merge "Fix NPE in setSurfaceTexure" into mnc-dev

9 years agoFix whitespace in TextureView
John Reck [Mon, 18 May 2015 22:13:30 +0000 (15:13 -0700)]
Fix whitespace in TextureView

Change-Id: I22396b7205dc2b9cf0eda5bd8aa951cad8d8bd87

9 years agoFix NPE in setSurfaceTexure
John Reck [Mon, 18 May 2015 22:11:52 +0000 (15:11 -0700)]
Fix NPE in setSurfaceTexure

Bug: 20088412
Change-Id: I9b78636a7d89438c8924bb1bf2adba00e74366eb

9 years agoMerge "Fix Bitmap#sameAs NPE" into mnc-dev
John Reck [Wed, 20 May 2015 14:18:32 +0000 (14:18 +0000)]
Merge "Fix Bitmap#sameAs NPE" into mnc-dev

9 years agoMerge "Deal more gracefully with null smallIcons." into mnc-dev
Dan Sandler [Wed, 20 May 2015 14:04:35 +0000 (14:04 +0000)]
Merge "Deal more gracefully with null smallIcons." into mnc-dev

9 years agoDeal more gracefully with null smallIcons.
Dan Sandler [Wed, 20 May 2015 00:59:12 +0000 (20:59 -0400)]
Deal more gracefully with null smallIcons.

First, when parceling a notification with no small icon:
Well, you shouldn't attempt to do this anyway, since NoMan
will reject a notification without a valid smallIcon.  But
setServiceForeground parcels up the Notification on its own
before handing it off to NoMan, so it will crash on an
invalid small icon. (In general, parceling code should never
ever crash, even if the object is in an undesirable state.)

And when build()ing a notification: Same thing---don't build
a notification with no icon; you're going to have a bad
time. But maybe you're going to fix it before you hand it
off to NoMan. Or maybe it's just one page of a wearable
notification, so it doesn't really need its own icon. Either
way, Notification shouldn't crash.

Bug: 21286186
Bug: 21298403
Change-Id: Ie482cde0a3afe3aaabf07be0536551b8e4bceba0

9 years agoMerge "Don't crash in bugreport on devices without BT" into mnc-dev
Jason Monk [Wed, 20 May 2015 13:16:01 +0000 (13:16 +0000)]
Merge "Don't crash in bugreport on devices without BT" into mnc-dev

9 years agoMerge "Report invalid network after one failed attempt." into mnc-dev
Paul Jensen [Wed, 20 May 2015 12:56:22 +0000 (12:56 +0000)]
Merge "Report invalid network after one failed attempt." into mnc-dev

9 years agoMerge "Undeprecate android.net.ProxyInfo as it's still used." into mnc-dev
Paul Jensen [Wed, 20 May 2015 10:49:02 +0000 (10:49 +0000)]
Merge "Undeprecate android.net.ProxyInfo as it's still used." into mnc-dev

9 years agoThrow a checked exception on inconsistent installs.
Narayan Kamath [Wed, 20 May 2015 10:11:55 +0000 (11:11 +0100)]
Throw a checked exception on inconsistent installs.

Allows us to proceed without crashing the system process. Also,
complete an incomplete error message. Follow up comments from
change b904863476991d8540d37d5.

bug: 21144503

Change-Id: Idb6a33f93b70b4e5e2bca95d2d3af0e2adaeedf3

9 years agoMerge "Landscape extracted mode - floating toolbar interference" into mnc-dev
Andrei Stingaceanu [Wed, 20 May 2015 09:32:49 +0000 (09:32 +0000)]
Merge "Landscape extracted mode - floating toolbar interference" into mnc-dev

9 years agoLandscape extracted mode - floating toolbar interference
Andrei Stingaceanu [Tue, 19 May 2015 16:29:16 +0000 (17:29 +0100)]
Landscape extracted mode - floating toolbar interference

In landscape do not allow starting selection modes if the
extracted mode has not yet started. Also remove the single
tap selection delayed runnable.

This allows for a smooth transition (as in no floating
toolbar artifacts) into extracted mode. Also fixes
(more as in hides) the double selections.

Bug: 20930071
Change-Id: Idb9c375dc25777761b11ca17ccfd9f5eedc642b4

9 years agoMerge "Set NLM_F_ACK in our RTM_NEWNEIGH requests" into mnc-dev
Erik Kline [Wed, 20 May 2015 08:05:21 +0000 (08:05 +0000)]
Merge "Set NLM_F_ACK in our RTM_NEWNEIGH requests" into mnc-dev

9 years agoSet NLM_F_ACK in our RTM_NEWNEIGH requests
Erik Kline [Tue, 19 May 2015 05:17:11 +0000 (14:17 +0900)]
Set NLM_F_ACK in our RTM_NEWNEIGH requests

With NLM_F_ACK set in RTM_NEWNEIGH requests we get some response from
the kernel, whether there was an error or not.

Additionally:

    [1] add IpReachabilityMonitor#probeNeighbor() as a public
        static method, since it actually depends very little on the
        class internals and might be of larger use.

    [2] add a unittest for parsing NetlinkErrorMessages.

Bug: 18581716
Change-Id: I5d62e7a9972c7440f0483c38c77677436d3a1a25

9 years agoMerge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev
Lorenzo Colitti [Wed, 20 May 2015 05:49:02 +0000 (05:49 +0000)]
Merge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev

9 years agoBluetooth: Clear BLE always ON apps at Airplane mode
Nitin Arora [Fri, 8 May 2015 01:45:44 +0000 (18:45 -0700)]
Bluetooth: Clear BLE always ON apps at Airplane mode

This patch clears the container managing the Ble Always On
apps while switching on, the airplane mode. The airplane mode
will completely turn Off the Bleutooth Adapter from any state
it is in.

Change-Id: Ib28d39d85efe3aac37e3a53a4fb892099568c702

9 years agoTIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()
Dongwon Kang [Wed, 20 May 2015 04:57:34 +0000 (13:57 +0900)]
TIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()

Bug: 21313401
Change-Id: I73e55c454cf0e2cd90d922acf5c6efe727f59204

9 years agoMerge "Close netlink socket when shutting down IpReachabilityMonitor" into mnc-dev
Erik Kline [Wed, 20 May 2015 03:26:12 +0000 (03:26 +0000)]
Merge "Close netlink socket when shutting down IpReachabilityMonitor" into mnc-dev

9 years agoClose netlink socket when shutting down IpReachabilityMonitor
Erik Kline [Fri, 15 May 2015 09:49:17 +0000 (18:49 +0900)]
Close netlink socket when shutting down IpReachabilityMonitor

This forces the NetlinkSocketObserver thread to exit quickly, rather
than lingering until the next random netlink neighbor multicast message
arrives.

Additionally, add a small unittest to verify that multiple calls to
NetlinkSocket#close() are safe.

Change-Id: I101730fad7eee72f9c6e8a7e7bd10c634f2ceab4

9 years agoMerge "Make Context.getClassLoader() work." into mnc-dev
Deepanshu Gupta [Wed, 20 May 2015 03:05:51 +0000 (03:05 +0000)]
Merge "Make Context.getClassLoader() work." into mnc-dev