OSDN Git Service

android-x86/frameworks-base.git
8 years agoLoad Home directory by default.
Steve McKay [Wed, 9 Dec 2015 01:02:03 +0000 (17:02 -0800)]
Load Home directory by default.

Don't update toolbar before first root load.
This was causing Recents > Home flicker due
to Recents being the default root returned from getCurrentRoot.
Revert change causing regression in selection highlight.

Bug: 26093756
Change-Id: I2c555aa38d68e9bf7962b1407f9fc75c800216a6

8 years agoMerge "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."
Ronghua Wu [Fri, 11 Dec 2015 17:47:43 +0000 (17:47 +0000)]
Merge "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."

8 years agoMerge "Move tasks to fullscreen stack when dismissing docked stack."
Filip Gruszczynski [Fri, 11 Dec 2015 16:05:04 +0000 (16:05 +0000)]
Merge "Move tasks to fullscreen stack when dismissing docked stack."

8 years agoMove tasks to fullscreen stack when dismissing docked stack.
Filip Gruszczynski [Fri, 11 Dec 2015 00:40:01 +0000 (16:40 -0800)]
Move tasks to fullscreen stack when dismissing docked stack.

When we dismissing a docked stack we don't want to get rid of it,
but instead make it available in the full screen stack. We need to
make sure that it goes into the bottom of the stack and prevent it
from taking focus or running any animation, so the operation is
invisible to the user.

Bug: 25840497
Bug: 25823213
Change-Id: Ibd08d7b723a2847d98c435f79541d5eb43587064

8 years agoFixing stack scroll when dismissing tasks.
Winson [Sat, 5 Dec 2015 00:31:37 +0000 (16:31 -0800)]
Fixing stack scroll when dismissing tasks.

- Should be adjusting the offset when pulling forward, not the whole
  stack scroll.  This caused a visual regression where the whole stack
  shifted when you dismiss the non-first task.

Change-Id: I93158287a168f407a0a024e0be24f264dd0c2b6e

8 years agoRemoving old focus animation on the header bar.
Winson [Fri, 4 Dec 2015 23:48:04 +0000 (15:48 -0800)]
Removing old focus animation on the header bar.

Change-Id: I892fda95ec5e74ee779283a5873210f301fbe778

8 years agoMerge "Updating the header bar item visibility with the task view frame."
Winson Chung [Fri, 11 Dec 2015 15:55:31 +0000 (15:55 +0000)]
Merge "Updating the header bar item visibility with the task view frame."

8 years agoUse RenderDrawable to render mipmaps am: 4b0fe7f14b
Jerome Gaillard [Fri, 11 Dec 2015 15:52:27 +0000 (07:52 -0800)]
Use RenderDrawable to render mipmaps am: 4b0fe7f14b
am: e298bcf755

* commit 'e298bcf7552d95475ab3ca9195e12bc14768fdb5':
  Use RenderDrawable to render mipmaps

8 years agoUpdating the header bar item visibility with the task view frame.
Winson [Sat, 5 Dec 2015 01:24:35 +0000 (17:24 -0800)]
Updating the header bar item visibility with the task view frame.

- In freeform mode, we hide the buttons depending on the available width
  of the task view
- Also fixes the rounded corners on the task views as the frame changes
- Tweaking the freeform workspace background

Change-Id: Iec9352acb5cb3ce95c09ff6d1026a9900717d3e6

8 years agoMerge "Updating layouts to use frame vs translation and clipping."
Winson Chung [Fri, 11 Dec 2015 15:49:38 +0000 (15:49 +0000)]
Merge "Updating layouts to use frame vs translation and clipping."

8 years agoUse RenderDrawable to render mipmaps
Jerome Gaillard [Fri, 11 Dec 2015 15:46:06 +0000 (07:46 -0800)]
Use RenderDrawable to render mipmaps
am: 4b0fe7f14b

* commit '4b0fe7f14bb36769ef30c59c407bd6ed5b3d5cf7':
  Use RenderDrawable to render mipmaps

8 years agoUpdating layouts to use frame vs translation and clipping.
Winson [Fri, 4 Dec 2015 22:34:11 +0000 (14:34 -0800)]
Updating layouts to use frame vs translation and clipping.

- This greatly simplifies the freeform layout as well, since we don’t
  need to scale and clip the views to match the freeform task bounds.
- Also fixing the animation from the back of the stack

Change-Id: Iba998a788dbdc48d031da8a8c908ea1a9f8f795f

8 years agoUse RenderDrawable to render mipmaps
Jerome Gaillard [Fri, 11 Dec 2015 15:05:46 +0000 (15:05 +0000)]
Use RenderDrawable to render mipmaps

Bug: http://b.android.com/179714
Change-Id: If05e71b33ee3a95590eb892f4fffbff4cfca1867

8 years agoMerge "Scheduling fix for JobScheduler"
Shreyas Basarge [Fri, 11 Dec 2015 12:25:30 +0000 (12:25 +0000)]
Merge "Scheduling fix for JobScheduler"

8 years agoMerge changes If80df0bc,I4e91b2d7,If3aef820
Yohei Yukawa [Fri, 11 Dec 2015 04:43:05 +0000 (04:43 +0000)]
Merge changes If80df0bc,I4e91b2d7,If3aef820

* changes:
  Apply Java 7 diamond operator.
  Remove a redundant method overload.
  Remove unnecessary parameter that is always true.

8 years agoMerge "Fix invalid API use of XmlPullParser.getAttributeValue."
Seigo Nonaka [Fri, 11 Dec 2015 03:14:43 +0000 (03:14 +0000)]
Merge "Fix invalid API use of XmlPullParser.getAttributeValue."

8 years agoMerge "Switch WordIterator's BreakIterator to ICU4J"
Roozbeh Pournader [Fri, 11 Dec 2015 02:57:56 +0000 (02:57 +0000)]
Merge "Switch WordIterator's BreakIterator to ICU4J"

8 years agoMerge "Even more Inline Reply goodness"
Adrian Roos [Fri, 11 Dec 2015 02:38:07 +0000 (02:38 +0000)]
Merge "Even more Inline Reply goodness"

8 years agoFix invalid API use of XmlPullParser.getAttributeValue.
Seigo Nonaka [Fri, 11 Dec 2015 02:23:37 +0000 (18:23 -0800)]
Fix invalid API use of XmlPullParser.getAttributeValue.

The 1st argument of the getAttributeValue is a namespace of the xml.

Bug: 10861108
Change-Id: I73fd15eca7101b745870ca7b6509b1dbfcc9b0d7

8 years agoSwitch WordIterator's BreakIterator to ICU4J
Roozbeh Pournader [Fri, 11 Dec 2015 02:14:55 +0000 (18:14 -0800)]
Switch WordIterator's BreakIterator to ICU4J

The java.text results are different from the ICU4J's results when
non-BMP characters are present, and the ICU4J's results appear to be
more correct. See also bug 26144875.

Bug: 25993844
Change-Id: Iec2e48008b2ce2147260ed3874e90a51ecf94a35

8 years agoMerge "Introduce ttcIndex attribute into system font configuration."
Seigo Nonaka [Fri, 11 Dec 2015 01:44:21 +0000 (01:44 +0000)]
Merge "Introduce ttcIndex attribute into system font configuration."

8 years agoMerge "AAPT2: Fix overlay support"
Adam Lesinski [Fri, 11 Dec 2015 01:22:58 +0000 (01:22 +0000)]
Merge "AAPT2: Fix overlay support"

8 years agoEven more Inline Reply goodness
Adrian Roos [Mon, 7 Dec 2015 22:53:53 +0000 (14:53 -0800)]
Even more Inline Reply goodness

- Removed action icon processing
- Correct color for action label
- Change default notification color to Gray 600
- Handle different states in RemoteInputView
- Handle updates to Notifications with active remote input

Bug: 22452379
Change-Id: I30a0cd917dbf814f156ab5a106e018a245d99b67

8 years agoMerge "Refactored what happens when a BUGREPORT_FINISHED is received."
Felipe Leme [Fri, 11 Dec 2015 01:02:04 +0000 (01:02 +0000)]
Merge "Refactored what happens when a BUGREPORT_FINISHED is received."

8 years agoIntroduce ttcIndex attribute into system font configuration.
Seigo Nonaka [Thu, 10 Dec 2015 22:30:37 +0000 (14:30 -0800)]
Introduce ttcIndex attribute into system font configuration.

ttcIndex is used for specifying index of the TrueType Collection.
No user visible change is expected with this CL.

BUG: 10861108
Change-Id: I76a1c890164bb55a7ece7b9c7db2ce2bac3f8b89

8 years agoMerge "Fix activity not launching from recents after it was dismissed."
Filip Gruszczynski [Fri, 11 Dec 2015 00:31:16 +0000 (00:31 +0000)]
Merge "Fix activity not launching from recents after it was dismissed."

8 years agoAAPT2: Fix overlay support
Adam Lesinski [Wed, 9 Dec 2015 23:20:52 +0000 (15:20 -0800)]
AAPT2: Fix overlay support

Supports the <add-resource> tag and mimics old AAPT behavior of
not allowing new resources defined unless <add-resource> was used
or --auto-add-overlay was specified.

Change-Id: I9b461137357617ade37fd7045b418b8e6450b9c4

8 years agoMerge "Remove hide annotation from AXIS_SCROLL"
Prashant Malani [Fri, 11 Dec 2015 00:21:16 +0000 (00:21 +0000)]
Merge "Remove hide annotation from AXIS_SCROLL"

8 years agoUse direct alarm callbacks instead of broadcasts in the job scheduler
Christopher Tate [Thu, 10 Dec 2015 00:00:37 +0000 (16:00 -0800)]
Use direct alarm callbacks instead of broadcasts in the job scheduler

No more broadcasts needed for deadline/delay tracking!

Bug 26114467

Change-Id: Ie5b1cc8eecfe9caf7d82ec6b84ac56057e4586c6

8 years agoPrevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4 am: 4e4ff058c1
Adam Lesinski [Thu, 10 Dec 2015 23:44:14 +0000 (15:44 -0800)]
Prevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4 am: 4e4ff058c1
am: 0b754d122c

* commit '0b754d122c3b9db395a86d9a098f6a29bf042b53':
  Prevent DivideByZero error in BatteryStatsImpl

8 years agoMerge "Fixed a bug where the group overflow was invisible"
Selim Cinek [Thu, 10 Dec 2015 23:19:36 +0000 (23:19 +0000)]
Merge "Fixed a bug where the group overflow was invisible"

8 years agoRemove hide annotation from AXIS_SCROLL
Prashant Malani [Thu, 10 Dec 2015 20:40:57 +0000 (12:40 -0800)]
Remove hide annotation from AXIS_SCROLL

Bug: 22836852
Bug: 18707397
Change-Id: I77ec72cf577cb68782b9954f4d40845d723a7685

8 years agoPrevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4
Adam Lesinski [Thu, 10 Dec 2015 22:54:38 +0000 (14:54 -0800)]
Prevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4
am: 4e4ff058c1

* commit '4e4ff058c1a0b4b77f468a206a790bb6f084f616':
  Prevent DivideByZero error in BatteryStatsImpl

8 years agoScheduling fix for JobScheduler
Shreyas Basarge [Thu, 10 Dec 2015 21:32:52 +0000 (21:32 +0000)]
Scheduling fix for JobScheduler

All ready jobs are now queued for execution when
a job completes execution or when a job becomes ready
and some other job is being executed.

Also fixes reporting of idle state.

Bug: 26131545
Change-Id: Ibadd95a31869e610c63fc147f9b10866a7439ac6

8 years agoPrevent DivideByZero error in BatteryStatsImpl
Adam Lesinski [Thu, 10 Dec 2015 22:47:09 +0000 (14:47 -0800)]
Prevent DivideByZero error in BatteryStatsImpl
am: ba88e68fe4

* commit 'ba88e68fe47b66f1fc5d10c15f04f20fe662399e':
  Prevent DivideByZero error in BatteryStatsImpl

8 years agoMerge "AAPT: Dump uses-permission-sdk-23"
Adam Lesinski [Thu, 10 Dec 2015 22:36:29 +0000 (22:36 +0000)]
Merge "AAPT: Dump uses-permission-sdk-23"

8 years agoFix leak of file descriptors in test code
Tom Hudson [Thu, 10 Dec 2015 21:46:57 +0000 (16:46 -0500)]
Fix leak of file descriptors in test code

skia_dm rendering through HWUI was hanging after roughly 300 tests.
logcat reports some process was unable to get any file descriptors.

When we migrated TestWindowContext into HWUI and started using PIMPL
I didn't clean up the implementation struct in the destructor. Doing
so solved the hang for me.

My guess was that BufferQueue was being leaked, and that gralloc is
backed by file descriptors, but some research suggests that Android
ought to be able to handle far more than 1k fds (ulimit -Hn returns
4096 on this device).

R=djsollen@google.com

Change-Id: I2cd9f8945cee9b22f838002e1ad687d5fe29cb97

8 years agoAAPT: Dump uses-permission-sdk-23
Adam Lesinski [Wed, 2 Dec 2015 23:40:19 +0000 (15:40 -0800)]
AAPT: Dump uses-permission-sdk-23

Include <uses-permission-sdk-23> permissions in dump badging and dump permissions.

This will also add implied features for that permission, marked as -sdk-23 features.

Ex:

uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission-sdk-23: name='android.permission.CAMERA'

feature-group: label=''
  uses-feature: name='android.hardware.location'
  uses-implied-feature: name='android.hardware.location' reason='...'
  uses-feature-sdk-23: name='android.hardware.camera'
  uses-implied-feature-sdk-23: name='android.hardware.camera' reason='...'

Bug:24939655
Change-Id: Ifb374696ed4760b0ba2f1cc3516f3bf08e6cb6a3

8 years agoFixed a bug where the group overflow was invisible
Selim Cinek [Thu, 10 Dec 2015 20:56:13 +0000 (12:56 -0800)]
Fixed a bug where the group overflow was invisible

Change-Id: I6e43decc9d68dbf869245ee99b80f4d5c9ae4456

8 years agoMerge "Merge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db1...
Matthew Williams [Thu, 10 Dec 2015 21:28:02 +0000 (21:28 +0000)]
Merge "Merge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db19fc70e"

8 years agoMerge "Added test annotation."
Felipe Leme [Thu, 10 Dec 2015 20:49:53 +0000 (20:49 +0000)]
Merge "Added test annotation."

8 years agoMerge "Revert "Fixed a bug where the panel could be too small in certain cases""
Selim Cinek [Thu, 10 Dec 2015 20:45:52 +0000 (20:45 +0000)]
Merge "Revert "Fixed a bug where the panel could be too small in certain cases""

8 years agoMerge "Add property animations to new reorderer/renderer"
Chris Craik [Thu, 10 Dec 2015 20:43:56 +0000 (20:43 +0000)]
Merge "Add property animations to new reorderer/renderer"

8 years agoAdded test annotation.
Felipe Leme [Thu, 10 Dec 2015 20:43:31 +0000 (12:43 -0800)]
Added test annotation.

BUG: 25752530
Change-Id: Ia84233371481be89b1c9c852dfbb990020f0e6c0

8 years agoRevert "Fixed a bug where the panel could be too small in certain cases"
Selim Cinek [Thu, 10 Dec 2015 20:39:16 +0000 (20:39 +0000)]
Revert "Fixed a bug where the panel could be too small in certain cases"

This reverts commit c349c3d43bd59ff22a638bded955594bd765fc26.

Change-Id: I76a41db987027128294b4e398af9564a8e2aaa05

8 years agomedia: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC.
Ronghua Wu [Thu, 10 Dec 2015 18:16:38 +0000 (10:16 -0800)]
media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC.

Bug: 25684127
Change-Id: I535b1971e0fe6b19e5182b09ca04b69b337a8474

8 years agoMerge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db19fc70e
Matthew Williams [Thu, 10 Dec 2015 20:29:02 +0000 (20:29 +0000)]
Merge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db19fc70e

Change-Id: I8f997804d17ac7635b0dd4aa9cad79334c19eb61

8 years agoMerge "Return long long from get_zram_mem_used()"
Greg Hackmann [Thu, 10 Dec 2015 20:23:22 +0000 (20:23 +0000)]
Merge "Return long long from get_zram_mem_used()"

8 years agoMerge "Add new target SDK filtering feature to BroadcastOptions."
Dianne Hackborn [Thu, 10 Dec 2015 20:13:29 +0000 (20:13 +0000)]
Merge "Add new target SDK filtering feature to BroadcastOptions."

8 years agoAdd new target SDK filtering feature to BroadcastOptions.
Dianne Hackborn [Thu, 10 Dec 2015 01:22:26 +0000 (17:22 -0800)]
Add new target SDK filtering feature to BroadcastOptions.

You can now control the range of target SDKs that receivers
will be need to have in order to receive your broadcast.

Use this for CONNECTIVITY_ACTION to not allow N+ applications
to receive these broadcasts through their manifest.

Also tweak the broadcast debug output code to now include the
disposition of each receiver in the list.  This is becoming
important as skipping receivers is becoming a more common
thing to have happen.

Change-Id: I251daf68575c07cbb447536286ab4e68b7015148

8 years agoMerge "Add quick settings permission to system ui"
Mindy DelliCarpini [Thu, 10 Dec 2015 19:26:33 +0000 (19:26 +0000)]
Merge "Add quick settings permission to system ui"

8 years agoAdd quick settings permission to system ui
Mindy Pereira [Thu, 10 Dec 2015 18:59:06 +0000 (10:59 -0800)]
Add quick settings permission to system ui

Makes it possible to use the new quick settings api from:
I82b6bebb0b21a5c9eb926cb1a761cac340a293df

Change-Id: I053bb2b28284c4f49d67339b617ef72ede1f2843

8 years agoAdd property animations to new reorderer/renderer
Chris Craik [Thu, 10 Dec 2015 02:05:12 +0000 (18:05 -0800)]
Add property animations to new reorderer/renderer

bug:22480459

Change-Id: Id8091038004245a56deb48bf3625edfd08ab8681

8 years agoMerge "Use Android.mk to specify private symbol package name"
Adam Lesinski [Thu, 10 Dec 2015 19:01:22 +0000 (19:01 +0000)]
Merge "Use Android.mk to specify private symbol package name"

8 years agoFix activity not launching from recents after it was dismissed.
Filip Gruszczynski [Thu, 10 Dec 2015 18:41:39 +0000 (10:41 -0800)]
Fix activity not launching from recents after it was dismissed.

When activity was launched from recents and started at the same time, we
would first try resuming activities and then focus on the started
activity. That is wrong odering, as the previously focused activity will
be resumed (in this case recents). We need to first focus on the start
activity and then request resuming.

The CL also flag protects some logging that is being very frequently
printed from activity manager.

Bug: 25823213
Change-Id: I5311fb2bf316ce3d298b30fa90fb257978bacdca

8 years agoMerge changes I2363e66a,If17effb9
Ritesh Reddy [Thu, 10 Dec 2015 18:38:42 +0000 (18:38 +0000)]
Merge changes I2363e66a,If17effb9

* changes:
  Enabled NetworkPolicy backup and restore.
  Enabled SoftAP Configuration Backup

8 years agoMerge "ConcurrentModificationException in SyncManager"
Matthew Williams [Thu, 10 Dec 2015 18:16:19 +0000 (10:16 -0800)]
Merge "ConcurrentModificationException in SyncManager"
am: 7e4d92fbc7

* commit '7e4d92fbc7761d561c1bc61dc5cf55b69d3a54f3':
  ConcurrentModificationException in SyncManager

8 years agoMerge "ConcurrentModificationException in SyncManager"
Matthew Williams [Thu, 10 Dec 2015 18:04:44 +0000 (18:04 +0000)]
Merge "ConcurrentModificationException in SyncManager"

8 years agoMerge "Remove more extras during notification lightening."
Daniel Sandler [Thu, 10 Dec 2015 17:59:43 +0000 (17:59 +0000)]
Merge "Remove more extras during notification lightening."

8 years agoMerge "Use BCP-47 LanguageTag in IME/Spell-Checker."
Yohei Yukawa [Thu, 10 Dec 2015 17:45:18 +0000 (17:45 +0000)]
Merge "Use BCP-47 LanguageTag in IME/Spell-Checker."

8 years agoMerge "Fix selection highlights."
Ben Kwa [Thu, 10 Dec 2015 17:21:55 +0000 (17:21 +0000)]
Merge "Fix selection highlights."

8 years agoRemove more extras during notification lightening.
Dan Sandler [Tue, 8 Dec 2015 20:42:41 +0000 (15:42 -0500)]
Remove more extras during notification lightening.

Basically anything Parcelable needs to go since it might be
quite large. Note that this includes additional extras such as
those contributed by WearableExtender.

Bug: 26038546
Change-Id: I85a20173158717c866a36dacd6a04391c2a33376

8 years agoMerge "Protect android.intent.action.BUGREPORT_STARTED."
Felipe Leme [Thu, 10 Dec 2015 16:23:03 +0000 (16:23 +0000)]
Merge "Protect android.intent.action.BUGREPORT_STARTED."

8 years agoEnabled NetworkPolicy backup and restore.
Ritesh Reddy [Wed, 9 Dec 2015 14:01:18 +0000 (14:01 +0000)]
Enabled NetworkPolicy backup and restore.

Backing up NetworkPolicy through NetworkPolicyManager API

Bug: 17857156
Change-Id: I2363e66a1b27f50b2454b4550a241a3d84bf4b7c

8 years agoFix default QS tiles
Jason Monk [Thu, 10 Dec 2015 16:10:23 +0000 (11:10 -0500)]
Fix default QS tiles

Also add emergency only to header.

Bug: 26124044
Change-Id: If39fa2cca052b711516bd5a92a91f541ad00e62a

8 years agoFix canceling renew alarms.
Lorenzo Colitti [Wed, 9 Dec 2015 13:14:28 +0000 (22:14 +0900)]
Fix canceling renew alarms.

1. Entering DhcpBoundState cancels the renew alarm, but at that
   point the renew alarm is guaranteed not to have been scheduled.
   This is harmless, but results in an "unknown listener" message
   in the AlarmManager logs.
2. We don't cancel the renew alarm when exiting DhcpBoundState.
   This is also harmless, because that alarm does nothing except
   in DhcpBoundState, and we cancel it whenever we enter
   DhcpBoundState. But canceling it on exit is more correct.

Change-Id: I60dfcf00f243253b81b8906540e0a6218a7a489c

8 years agoApply Java 7 diamond operator.
Yohei Yukawa [Thu, 10 Dec 2015 09:04:06 +0000 (01:04 -0800)]
Apply Java 7 diamond operator.

This is a mechanical refactoring to apply Java 7 diamond operators in
InputMethodSubtypeSwitchingController.java.

Bug: 22859862
Change-Id: If80df0bcf0b1485c43d55ff51cab69c8ae211eb2

8 years agoRemove a redundant method overload.
Yohei Yukawa [Thu, 10 Dec 2015 09:01:02 +0000 (01:01 -0800)]
Remove a redundant method overload.

Bug: 22859862
Change-Id: I4e91b2d7f2da7716ae5a34125a29db5e1ad5a983

8 years agoRemove unnecessary parameter that is always true.
Yohei Yukawa [Thu, 10 Dec 2015 08:58:55 +0000 (00:58 -0800)]
Remove unnecessary parameter that is always true.

This is a mechanical refactoring that removes an unnecessary parameter
that is always specified to 'true'.

No behavior change is intended.

Bug: 22859862
Change-Id: If3aef8209a355af1432ca2600bcc3a0027a6c24c

8 years agoMerge "TextView test: floating toolbar + drag handle interaction."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 07:20:20 +0000 (07:20 +0000)]
Merge "TextView test: floating toolbar + drag handle interaction."

8 years agoMerge "TextView test: insertion handle movement tests."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 07:18:55 +0000 (07:18 +0000)]
Merge "TextView test: insertion handle movement tests."

8 years agoMerge "Fix selection expansion detection logic."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 07:18:21 +0000 (07:18 +0000)]
Merge "Fix selection expansion detection logic."

8 years agoMove double tap/triple click detection to Editor.
Keisuke Kuroyanagi [Thu, 5 Nov 2015 10:10:07 +0000 (19:10 +0900)]
Move double tap/triple click detection to Editor.

The logic was in TextView, but it's only for Editor.
Move it to Editor and have constants for the state.

Bug: 19544351
Change-Id: I391f66753aa5cbb26fbefcba5b4e7e3d917454e2

8 years agoMerge "TextView tests: Add mouse triple click tests."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 06:01:33 +0000 (06:01 +0000)]
Merge "TextView tests: Add mouse triple click tests."

8 years agoTriple click to start paragraph based selection.
Keisuke Kuroyanagi [Thu, 5 Nov 2015 09:51:00 +0000 (18:51 +0900)]
Triple click to start paragraph based selection.

- Detect triple click in TextView#onTouchEvent.
- Select paragraph on triple click.
- Extend drag accelerator to support paragraph based
selection.

Bug: 19544351
Change-Id: I0a6752a0642a2c569b69a1fc2c0f49169a72844a

8 years agoRemove unneeded method HandleView#showAtLocation.
Keisuke Kuroyanagi [Thu, 5 Nov 2015 08:55:13 +0000 (17:55 +0900)]
Remove unneeded method HandleView#showAtLocation.

Now, the handles will be shown at the proper positions in
Editor#startSelectionActionMode. No need to call
HandleView#showAtLocation.

Change-Id: I5a7fb7bc4419a49234584bd06db5acc3d23168b8

8 years agoMerge "TextView tests: tests for improved mouse text selection."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 05:14:11 +0000 (05:14 +0000)]
Merge "TextView tests: tests for improved mouse text selection."

8 years agoMerge "Move mouse selection handling logic to Editor."
Keisuke Kuroyanagi [Thu, 10 Dec 2015 05:14:11 +0000 (05:14 +0000)]
Merge "Move mouse selection handling logic to Editor."

8 years agoMove mouse selection handling logic to Editor.
Keisuke Kuroyanagi [Sat, 5 Dec 2015 00:56:38 +0000 (16:56 -0800)]
Move mouse selection handling logic to Editor.

- Remove mouse selection related logic from
ArrowKeyMovementMethod and Touch.
- Extend drag accelerator to support character based
selection by dragging and use it for mouse drag selection.
- Enable word based drag accelerator even if the clicked
position is not on a word.
- Disable y-coordinate adjustment for word based drag
accelerator when the user is using a mouse.

Bug: 19544351

Change-Id: I1b29a65be3d321ac472f8c5b70ab6fee4e895964

8 years agoMerge "MediaRouter: Add getDeviceType() to RouteInfo"
Insun Kang [Thu, 10 Dec 2015 02:57:29 +0000 (02:57 +0000)]
Merge "MediaRouter: Add getDeviceType() to RouteInfo"

8 years agoMerge "Avoid caller NPE if callback null in AppOpsService"
Svetoslav Ganov [Thu, 10 Dec 2015 02:26:33 +0000 (02:26 +0000)]
Merge "Avoid caller NPE if callback null in AppOpsService"

8 years agoAvoid caller NPE if callback null in AppOpsService
Svetoslav Ganov [Thu, 10 Dec 2015 02:25:13 +0000 (18:25 -0800)]
Avoid caller NPE if callback null in AppOpsService

bug:25863432

Change-Id: Ib0386ed4c1637ff8b084f32592ba316b65498005

8 years agoMerge "Improved test case by checking for dangling service."
Felipe Leme [Thu, 10 Dec 2015 02:03:06 +0000 (02:03 +0000)]
Merge "Improved test case by checking for dangling service."

8 years agoRefactored what happens when a BUGREPORT_FINISHED is received.
Felipe Leme [Wed, 9 Dec 2015 21:03:09 +0000 (13:03 -0800)]
Refactored what happens when a BUGREPORT_FINISHED is received.

Previously on 24: when a BUGREPORT_FINISHED was received,
BugreportProgressService would remove the watched BugreportInfo from its
map and if there was no info left, it would stop self and send the
SEND_MULTIPLE_ACTION intent.

Soon we're going to allow the user to enter more details (like a title
and description) for the bugreport, but if the service is stopped while
the user is still entering data, that window will be killed.

Hence, although this refactoring doesn't change the current logic, it
paves the way for such new feature.

BUG: 25794470

Change-Id: Ic5283ddc3e07d88ba2a9a925f9534426857e7606

8 years agoMerge "Remaining APIs for freeform window caption."
Filip Gruszczynski [Thu, 10 Dec 2015 01:57:10 +0000 (01:57 +0000)]
Merge "Remaining APIs for freeform window caption."

8 years agoMerge "Allow direct-callback alarms for non-wakeup alarms"
Chris Tate [Thu, 10 Dec 2015 01:18:14 +0000 (01:18 +0000)]
Merge "Allow direct-callback alarms for non-wakeup alarms"

8 years agoAllow direct-callback alarms for non-wakeup alarms
Christopher Tate [Thu, 10 Dec 2015 01:12:37 +0000 (17:12 -0800)]
Allow direct-callback alarms for non-wakeup alarms

Turns out there are known use cases for it, in particular to avoid
interfering with doze/idle type optimizations.  In addition, it is
not reliably possible to aim for a specific *wall-clock* trigger time
when posting work to a Handler, since the time base used there is
uptime rather than elapsed.

Bug 26114467

Change-Id: I7cede733fc7e09704b63dfe3e98b00365bbdff35

8 years agoMerge changes from topic 'more_groups'
Selim Cinek [Thu, 10 Dec 2015 00:58:21 +0000 (00:58 +0000)]
Merge changes from topic 'more_groups'

* changes:
  Fixed a bug where the heads up had the wrong size
  Adapted the appear animation for notification children
  Added darkmode for notification groups
  And suddenly notification children appeared

8 years agoPrevent DivideByZero error in BatteryStatsImpl
Adam Lesinski [Tue, 8 Dec 2015 20:06:55 +0000 (12:06 -0800)]
Prevent DivideByZero error in BatteryStatsImpl

It was assumed that when a UID had either rx or tx bytes/packets that it would
have the other as well.

Bug:25706750
Change-Id: Iefac59a6bd02876aed9a0bac218d187b81807a95

8 years agoReturn long long from get_zram_mem_used()
Greg Hackmann [Thu, 10 Dec 2015 00:36:08 +0000 (16:36 -0800)]
Return long long from get_zram_mem_used()

Commit 187a6aeb112ecbf85387a21ea75cf6beb3f9fc76 replaced atoll() with
fscanf("%ld").  Though unlikely, there could theoretically be 32-bit
devices with >2GB zram where the type difference matters.

Bug: 25951511

Change-Id: I902e27a214038fea1396185ef9a521316b0009f9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
8 years agoMerge "Allow white-listed apps to change VIBRATE_WHEN_RINGING"
Svetoslav Ganov [Thu, 10 Dec 2015 00:35:09 +0000 (00:35 +0000)]
Merge "Allow white-listed apps to change VIBRATE_WHEN_RINGING"

8 years agoAllow white-listed apps to change VIBRATE_WHEN_RINGING
Svetoslav Ganov [Thu, 10 Dec 2015 00:29:22 +0000 (16:29 -0800)]
Allow white-listed apps to change VIBRATE_WHEN_RINGING

We don't allows apps white-listed to write to system
settings to change settings that aren't a part of the
public APIs. Now that we made VIBRATE_WHEN_RINGING it
should be moved from the list of private settings to
the public list which apps can modify.

bug:25941020

Change-Id: Ice91f782aeca4785fa0aed300b22d9ecdbb51bd3

8 years agoFixed a bug where the heads up had the wrong size
Selim Cinek [Wed, 9 Dec 2015 18:18:02 +0000 (10:18 -0800)]
Fixed a bug where the heads up had the wrong size

Change-Id: I05bc0e68bf4b9f786b9f0cb4466bba002a0fc4d4

8 years agoAdapted the appear animation for notification children
Selim Cinek [Wed, 9 Dec 2015 05:21:17 +0000 (21:21 -0800)]
Adapted the appear animation for notification children

Previously the delays where inverted leading to a weird
staggering effect.

Change-Id: I6e212fcf1651cf0e5fa15934a91bc6b648abcfad

8 years agoAdded darkmode for notification groups
Selim Cinek [Wed, 9 Dec 2015 03:19:48 +0000 (19:19 -0800)]
Added darkmode for notification groups

Somewhere in the dark a dim shimmer of light appeared

Change-Id: I9de970d4f5b8bb3c3d99f34af7f411f62ff2e094

8 years agoMerge "Add bitmapmesh, rect, and patch rendering"
Chris Craik [Thu, 10 Dec 2015 00:11:50 +0000 (00:11 +0000)]
Merge "Add bitmapmesh, rect, and patch rendering"

8 years agoMerge "Prefer new zram ABI"
Greg Hackmann [Thu, 10 Dec 2015 00:09:51 +0000 (00:09 +0000)]
Merge "Prefer new zram ABI"

8 years agoAdd bitmapmesh, rect, and patch rendering
Chris Craik [Wed, 9 Dec 2015 01:21:58 +0000 (17:21 -0800)]
Add bitmapmesh, rect, and patch rendering

bug:22480459

Change-Id: Id9e9146997dd018b3e4e785c2bc13689e3cf7c3c

8 years agoUse Android.mk to specify private symbol package name
Adam Lesinski [Mon, 7 Dec 2015 23:00:25 +0000 (15:00 -0800)]
Use Android.mk to specify private symbol package name

Change-Id: I290cb5a16173af9e8d1b16203ed8e8ddaa35045f

8 years agoMerge "Fix issue #26102692: Unable to create secondary user..."
Dianne Hackborn [Thu, 10 Dec 2015 00:00:10 +0000 (00:00 +0000)]
Merge "Fix issue #26102692: Unable to create secondary user..."