OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Restore session params "no decoration" flag" into mnc-dev
Diego Perez [Mon, 3 Aug 2015 21:33:24 +0000 (21:33 +0000)]
Merge "Restore session params "no decoration" flag" into mnc-dev

9 years agoMerge changes Ib5f53f3b,I7debf3ee,Ic494ee7f,Ia8d223ae,Iff7dbbf6 into mnc-dev
Deepanshu Gupta [Mon, 3 Aug 2015 21:27:50 +0000 (21:27 +0000)]
Merge changes Ib5f53f3b,I7debf3ee,Ic494ee7f,Ia8d223ae,Iff7dbbf6 into mnc-dev

* changes:
  Revert to using AppTheme for LayoutLib tests.
  Fix Matrix_Delegate.native_getValues()
  Update test image for upated nav icons.
  Fix typo: s/FullScreen/Fullscreen/ in LayoutLib.
  Fix bugs introduced in 78aa664.

9 years agoMerge "Expand ringtone titles to support OGG and FLAC." into mnc-dev
Jeff Sharkey [Mon, 3 Aug 2015 20:54:32 +0000 (20:54 +0000)]
Merge "Expand ringtone titles to support OGG and FLAC." into mnc-dev

9 years agoExpand ringtone titles to support OGG and FLAC.
Jeff Sharkey [Mon, 3 Aug 2015 20:25:24 +0000 (13:25 -0700)]
Expand ringtone titles to support OGG and FLAC.

These file types don't have "audio/" MIME type, so check for those
MIME types explicitly.

Bug: 22803550
Change-Id: Ia62f94ad4a19409d6a50462935de005bc572f93a

9 years agoMerge "Also consider task intent when trimming recent tasks" into mnc-dev
Wale Ogunwale [Mon, 3 Aug 2015 20:31:31 +0000 (20:31 +0000)]
Merge "Also consider task intent when trimming recent tasks" into mnc-dev

9 years agoMerge "Update Material link text to be colorAccent" into mnc-dev
Alan Viverette [Mon, 3 Aug 2015 20:27:17 +0000 (20:27 +0000)]
Merge "Update Material link text to be colorAccent" into mnc-dev

9 years agoMerge "Don't wipe device because of short PIN, patterns or passwords" into mnc-dev
Jim Miller [Mon, 3 Aug 2015 20:25:00 +0000 (20:25 +0000)]
Merge "Don't wipe device because of short PIN, patterns or passwords" into mnc-dev

9 years agoMerge "Make ResolverDrawerLayout look like a ScrollView to accessibility" into mnc-dev
Alan Viverette [Mon, 3 Aug 2015 20:17:57 +0000 (20:17 +0000)]
Merge "Make ResolverDrawerLayout look like a ScrollView to accessibility" into mnc-dev

9 years agoMerge "Add badge content description to TargetInfo, use in ResolverActivity" into...
Alan Viverette [Mon, 3 Aug 2015 20:17:31 +0000 (20:17 +0000)]
Merge "Add badge content description to TargetInfo, use in ResolverActivity" into mnc-dev

9 years agoMerge "Bug: 22879202 App compatibility with WRITE_SETTINGS failing" into mnc-dev
Billy Lau [Mon, 3 Aug 2015 19:53:28 +0000 (19:53 +0000)]
Merge "Bug: 22879202 App compatibility with WRITE_SETTINGS failing" into mnc-dev

9 years agoMerge "Fix NPE in AppOpsService" into mnc-dev
Svetoslav Ganov [Mon, 3 Aug 2015 19:41:34 +0000 (19:41 +0000)]
Merge "Fix NPE in AppOpsService" into mnc-dev

9 years agoMerge "User correct category for finding headless sync adapters" into mnc-dev
Svetoslav Ganov [Mon, 3 Aug 2015 19:41:15 +0000 (19:41 +0000)]
Merge "User correct category for finding headless sync adapters" into mnc-dev

9 years agoDon't wipe device because of short PIN, patterns or passwords
Jim Miller [Sat, 1 Aug 2015 01:42:53 +0000 (18:42 -0700)]
Don't wipe device because of short PIN, patterns or passwords

This fixes a bug where we were counting short PIN, patterns and
passwords as attempts. For devices with a device policy admin,
this would cause devices to get wiped after a short amount of
interaction with the UI.

Fixes bug 22844609

Change-Id: I7616b38d954f89d4a2cee23f9aec1b898041b1f2

9 years agoRevert to using AppTheme for LayoutLib tests.
Deepanshu Gupta [Mon, 3 Aug 2015 18:25:45 +0000 (11:25 -0700)]
Revert to using AppTheme for LayoutLib tests.

Use AppTheme for all tests other than testExpand. AppTheme contains an
attribute needed by testArrayCheck. Also, since the AppTheme extends
Theme.Material.Light.DarkActionBar, other tests should be unaffected.

Also, update the golden image for the testArrayCheck.

Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a

9 years agoMerge "media: Clarify MediaCodec and CodecCapabilities documentation" into mnc-dev
Lajos Molnar [Mon, 3 Aug 2015 18:17:57 +0000 (18:17 +0000)]
Merge "media: Clarify MediaCodec and CodecCapabilities documentation" into mnc-dev

9 years agoFix Matrix_Delegate.native_getValues()
Deepanshu Gupta [Mon, 3 Aug 2015 17:23:56 +0000 (10:23 -0700)]
Fix Matrix_Delegate.native_getValues()

The bug manifested itself by not rendering the wifi icon in the status
bar.

Change-Id: I7debf3eef387965d774bf66e856812e67c8552a7

9 years agoUpdate Material link text to be colorAccent
Alan Viverette [Mon, 3 Aug 2015 16:42:14 +0000 (12:42 -0400)]
Update Material link text to be colorAccent

Bug: 22918108
Change-Id: I29b795b4c8d2a017dcaca1a9b65705eafaf2140c

9 years agoMerge "Make vendor keys visible in Camera2 java APIs." into mnc-dev
Ruben Brunk [Mon, 3 Aug 2015 16:09:07 +0000 (16:09 +0000)]
Merge "Make vendor keys visible in Camera2 java APIs." into mnc-dev

9 years agoAdd more dump info about emergency calls state
Jason Monk [Mon, 3 Aug 2015 15:09:41 +0000 (11:09 -0400)]
Add more dump info about emergency calls state

Bug: 21549528
Change-Id: Idbd70e2f4b1b3285af283a28dc1933c02ad8d04c

9 years agoMake ResolverDrawerLayout look like a ScrollView to accessibility
Alan Viverette [Mon, 3 Aug 2015 14:01:23 +0000 (10:01 -0400)]
Make ResolverDrawerLayout look like a ScrollView to accessibility

Disable accessibility focus on the layout itself and expose the class
name as ScrollView so that we can get auto-scroll working until we have
first-class support for specifying automatic scrolling behavior.

Bug: 22667764
Change-Id: I9b97e40f16038046898e5b56b935a61db9073ac6

9 years agoRestore session params "no decoration" flag
Diego Perez [Mon, 3 Aug 2015 13:20:18 +0000 (14:20 +0100)]
Restore session params "no decoration" flag

This seems to have removed from a previous version and the theme editor
relies on it to remove the decoration around the preview.

Change-Id: Ifab99e9c1689bfe44ca593e8c66c24e57c3e8c4c

9 years agoFix NPE in AppOpsService
Svet Ganov [Sun, 2 Aug 2015 17:09:56 +0000 (10:09 -0700)]
Fix NPE in AppOpsService

bug:22802981

Change-Id: I73eee5ff9cf1603d8f30355554ef075aa14afd30

9 years agoAlso consider task intent when trimming recent tasks
Wale Ogunwale [Sun, 2 Aug 2015 00:19:21 +0000 (17:19 -0700)]
Also consider task intent when trimming recent tasks

7cbfcd88657ac7d5ab1baf8c964b669c9bd21e24 we stopped comparing
the tasks realActivity when trimming recent task. This led to
task with the same intent been duplicated in the recents list.
We now consider the task intent when deciding when to trim like
we did pre 510e554283d3dc250f836cd3e4abc36d87319333.

Bug: 22812470
Bug: 22564474
Bug: 18642190
Change-Id: I90b3ab9cf7a06b4691099f697e723d8a54def9fa

9 years agoUser correct category for finding headless sync adapters
Svet Ganov [Sat, 1 Aug 2015 19:19:26 +0000 (12:19 -0700)]
User correct category for finding headless sync adapters

bug:22857409

Change-Id: Icc42f1af72c59fba3c60e1bcd558c621df70940a

9 years agoBug: 22879202 App compatibility with WRITE_SETTINGS failing
Billy Lau [Sat, 1 Aug 2015 12:16:25 +0000 (13:16 +0100)]
Bug: 22879202 App compatibility with WRITE_SETTINGS failing

Fix a bug in the app ops protected permission check that broke backwards
compatibility.

Change-Id: Ic73759edd29a479a670fb31407e36aa50d09b6c3

9 years agoMerge "Add per UID control to app ops." into mnc-dev
Svetoslav Ganov [Sat, 1 Aug 2015 02:28:02 +0000 (02:28 +0000)]
Merge "Add per UID control to app ops." into mnc-dev

9 years agoAdd per UID control to app ops.
Svet Ganov [Thu, 30 Jul 2015 15:44:20 +0000 (08:44 -0700)]
Add per UID control to app ops.

The app ops mananger service maintains a mapping from UID to
a list of packages where each package is mapped to a list of
non-default app op states (default states are inferred and
not stored). Hence, specifying the app op state for a UID
requires setting the app op for each package in the shared
UID.

This is problematic when installing new packages if there
is a non-default app op policy set for another already
installed package in the same UID as the app op for the new
package has to be updated to be in sync. The package installer
cannot do this as it is in another process and the app op
update will not be atomic. Therefore, the app ops manager
service has to support specifying app op policy on a per
UID basis.

We now have a UID state object that contains the per package
non-default app op states as well as the per uid non-default
app op states. If there is a UID policy specified then it
takes precedence over the per package one. Even further,
changing the uid policy updates the package policies in this
UID if the state is non-default. Changing a package app op
state also updates the app op state for the whole UID if
the per UID policy for this op is non-default. Clearing the
app op state for a package, clears the policy for the UID
as well.

bug:22802981

Change-Id: I78044906d9fcc6066abf07e706c2c88f3397d293

9 years agoMerge "Added logging in a few error paths for wifi config installation." into mnc-dev
Jan Nordqvist [Sat, 1 Aug 2015 00:30:42 +0000 (00:30 +0000)]
Merge "Added logging in a few error paths for wifi config installation." into mnc-dev

9 years agoAdded logging in a few error paths for wifi config installation.
Jan Nordqvist [Fri, 31 Jul 2015 22:32:25 +0000 (15:32 -0700)]
Added logging in a few error paths for wifi config installation.

Bug: 22790527
Change-Id: I71b298b98da098f647f52886c3c3a7456cb24d51

9 years agoMake vendor keys visible in Camera2 java APIs.
Ruben Brunk [Thu, 30 Jul 2015 01:19:11 +0000 (18:19 -0700)]
Make vendor keys visible in Camera2 java APIs.

- Add vendor keys to getKeys() calls for CameraCharacteristics,
  CaptureRequest, and CaptureResult.
- Vendors can specify whether custom keys show up by listing
  visible keys in the REQUEST_AVAILABLE_RESULT_KEYS field.
- Vendor key types are always treated as a primitive (or Rational)
  array type corresponding to one of the valid types for
  a camera metadata entry.

Bug: 22067625
Change-Id: I6e7dd3db7a8bf533c2ec15ff69ca38824134e971

9 years agoMerge "Instrument printing service for metrics collection." into mnc-dev
Chris Wren [Sat, 1 Aug 2015 00:11:16 +0000 (00:11 +0000)]
Merge "Instrument printing service for metrics collection." into mnc-dev

9 years agoFixed a bug where notifications shadows were blinking out
Selim Cinek [Fri, 31 Jul 2015 23:10:32 +0000 (16:10 -0700)]
Fixed a bug where notifications shadows were blinking out

Bug: 22567770
Change-Id: I2d335241a287d0c64e659221994f19b7c13eccd3

9 years agoMerge "Make enter reveal animation be zorder top." into mnc-dev
Filip Gruszczynski [Fri, 31 Jul 2015 22:31:22 +0000 (22:31 +0000)]
Merge "Make enter reveal animation be zorder top." into mnc-dev

9 years agoMerge "Fix issue #21895842: Add is_assist_blocked to assist.ViewNode.NodeProperties...
Dianne Hackborn [Fri, 31 Jul 2015 22:29:34 +0000 (22:29 +0000)]
Merge "Fix issue #21895842: Add is_assist_blocked to assist.ViewNode.NodeProperties" into mnc-dev

9 years agoMerge "Fix that shutter sound does not play after ringer mode changes to vibrator...
Jean-Michel Trivi [Fri, 31 Jul 2015 22:18:35 +0000 (22:18 +0000)]
Merge "Fix that shutter sound does not play after ringer mode changes to vibrator" into mnc-dev

9 years agomedia: Clarify MediaCodec and CodecCapabilities documentation
Lajos Molnar [Thu, 30 Jul 2015 17:14:16 +0000 (10:14 -0700)]
media: Clarify MediaCodec and CodecCapabilities documentation

Bug: 21932760
Bug: 22847191
Change-Id: Iacd24099a98c73fe4fb50226564690aa9b01c772

9 years agoMerge "Revert two changes to LinearLayout measurement" into mnc-dev
Alan Viverette [Fri, 31 Jul 2015 21:30:48 +0000 (21:30 +0000)]
Merge "Revert two changes to LinearLayout measurement" into mnc-dev

9 years agoAdd badge content description to TargetInfo, use in ResolverActivity
Alan Viverette [Fri, 31 Jul 2015 20:46:56 +0000 (16:46 -0400)]
Add badge content description to TargetInfo, use in ResolverActivity

Bug: 22667344
Change-Id: Iee241b9179c74a15b1c635cf90d2f96f6f7b31cd

9 years agoUpdate test image for upated nav icons.
Deepanshu Gupta [Fri, 31 Jul 2015 20:11:23 +0000 (13:11 -0700)]
Update test image for upated nav icons.

The image shows the nav icons to be separated by a significant distance.
This is because the switch to wide-screen layout happens based on
shortest width. The layout has a small shortest width and hence it uses
the phone layout for a horizontal nav bar and it doesn't look nice. Real
devices will never have this config, so it's okay.

Change-Id: Ic494ee7fdfb1116db39bcab6d6ee7a1e514b23df

9 years agoFix issue #21895842: Add is_assist_blocked to assist.ViewNode.NodeProperties
Dianne Hackborn [Fri, 31 Jul 2015 20:10:55 +0000 (13:10 -0700)]
Fix issue #21895842: Add is_assist_blocked to assist.ViewNode.NodeProperties

Change-Id: I928882d42d0546cc6a12e803d96131beaba76d4e

9 years agoFix typo: s/FullScreen/Fullscreen/ in LayoutLib.
Deepanshu Gupta [Fri, 31 Jul 2015 20:10:18 +0000 (13:10 -0700)]
Fix typo: s/FullScreen/Fullscreen/ in LayoutLib.

Change-Id: Ia8d223ae01f08df945ab05615b07075b98a54a32

9 years agoFix bugs introduced in 78aa664.
Deepanshu Gupta [Fri, 31 Jul 2015 18:33:25 +0000 (11:33 -0700)]
Fix bugs introduced in 78aa664.

Fix a couple of bugs (ArrayIndexOutOfBoundsException due to
miscalculation and a typo - swapped src and dst) introduced in the CL:
78aa664 Poor implementation of Path.approximate()

Change-Id: Iff7dbbf66d2714df51699ddb9a4169c38feefa7b

9 years agoRevert "View measurement optimization"
Alan Viverette [Fri, 31 Jul 2015 19:51:48 +0000 (19:51 +0000)]
Revert "View measurement optimization"

LinearLayout relied on multiple measurement passes to hide a
discrepancy between EXACTLY and non-EXACTLY measurements.

This reverts commit 9cefbda11ee5308145d58b0b99ced0f66a0b1cf9.

Bug: 22810327
Change-Id: I515a80749420d00efc5002fa68221b7c236f03df

9 years agoMoving removeTask to separate thread.
Winson Chung [Fri, 31 Jul 2015 01:08:26 +0000 (18:08 -0700)]
Moving removeTask to separate thread.

Bug: 22760556
Change-Id: Iac6eef77e3ba5432ac1cd4aa792e7b2aadc27c01

9 years agoMake enter reveal animation be zorder top.
Filip Gruszczynski [Fri, 31 Jul 2015 19:20:40 +0000 (12:20 -0700)]
Make enter reveal animation be zorder top.

This fixes the bug where launcher icons become temporarily visible when
home button is pressed while other activity is starting. By having the
starting activity's animation be zoder top, it will continue to be drawn
on top of the launcher until it animates away.

Bug: 22809202
Change-Id: If5e3c09b7a5df4537c355f94e986766f77ad4943

9 years agoMerge "Ensuring that we don't try to use and propagate null activity labels." into...
Winson Chung [Fri, 31 Jul 2015 19:20:51 +0000 (19:20 +0000)]
Merge "Ensuring that we don't try to use and propagate null activity labels." into mnc-dev

9 years agoFix build.
Deepanshu Gupta [Fri, 31 Jul 2015 19:11:07 +0000 (12:11 -0700)]
Fix build.

Change-Id: I82295b758e5ceb42e260d3c36ea2310a9def5190

9 years agoEnsuring that we don't try to use and propagate null activity labels.
Winson Chung [Fri, 31 Jul 2015 00:33:31 +0000 (17:33 -0700)]
Ensuring that we don't try to use and propagate null activity labels.

- Also fixes issue with tapping outside bounds not working to dismiss recents

Bug: 21774486
Bug: 22241587
Change-Id: Ib50f6fece8fb150929a1f8cdb01b8e8fe7b665cd

9 years agoMerge "Fixed issue with artifacts during scale-up transition animation" into mnc-dev
Wale Ogunwale [Fri, 31 Jul 2015 18:45:08 +0000 (18:45 +0000)]
Merge "Fixed issue with artifacts during scale-up transition animation" into mnc-dev

9 years agoMerge "Fix build." into mnc-dev
Dianne Hackborn [Fri, 31 Jul 2015 18:19:11 +0000 (18:19 +0000)]
Merge "Fix build." into mnc-dev

9 years agoFix build.
Dianne Hackborn [Fri, 31 Jul 2015 18:17:43 +0000 (11:17 -0700)]
Fix build.

Change-Id: I9c6b6cd354039ff2914837cfe97a783564ded66f

9 years agoMerge "Improve getTimestamp documentation" into mnc-dev
Glenn Kasten [Fri, 31 Jul 2015 18:04:16 +0000 (18:04 +0000)]
Merge "Improve getTimestamp documentation" into mnc-dev

9 years agoFix build.
Dianne Hackborn [Fri, 31 Jul 2015 17:35:34 +0000 (10:35 -0700)]
Fix build.

Change-Id: Icdf6fa14e53a1c030d0d90205d3bf2d7610b6196

9 years agoMerge "Change MNC codename to just M." into mnc-dev
Dianne Hackborn [Fri, 31 Jul 2015 17:11:58 +0000 (17:11 +0000)]
Merge "Change MNC codename to just M." into mnc-dev

9 years agoRevert two changes to LinearLayout measurement
Alan Viverette [Fri, 31 Jul 2015 16:42:10 +0000 (12:42 -0400)]
Revert two changes to LinearLayout measurement

"Include non-zero dimension views in excess space calculation" and
"Always distribute excess space in LinearLayout measurement" changed
LinearLayout behavior significantly in a way that wasn't covered by
CTS tests.

This reverts commits da2f3044092318d44173bdb9918f31c592b86a73 and
4fabc021583cfd5cc551eda7d7b9809683a6ca9a.

Bug: 22862047
Change-Id: I8d37a525ccf295445d3239b80e5cacb10bf3c947

9 years agoFix that shutter sound does not play after ringer mode changes to vibrator
Sungmin Choi [Mon, 27 Jul 2015 06:09:49 +0000 (23:09 -0700)]
Fix that shutter sound does not play after ringer mode changes to vibrator

Reproduce sequence:

1. Change ring volume to vibration in Settings > Sound & notification
   > Ring volume using touch
2. Launch camera app
3. Capture, but cannot hear shutter sound
4. Even change ringtone to maximum, shutter sound is not played before reboot

Bug: 22589664
Change-Id: I90eb044eaf21f3b558bf050bf1d9f0b33ea4888b

9 years agoMerge "Add telecom extra keys required for DMR release." into mnc-dev
Tyler Gunn [Fri, 31 Jul 2015 15:42:48 +0000 (15:42 +0000)]
Merge "Add telecom extra keys required for DMR release." into mnc-dev

9 years agoMerge "Fix SysUI crash on device boot." into mnc-dev
Julia Reynolds [Fri, 31 Jul 2015 13:49:26 +0000 (13:49 +0000)]
Merge "Fix SysUI crash on device boot." into mnc-dev

9 years agoFix SysUI crash on device boot.
Julia Reynolds [Fri, 31 Jul 2015 13:17:20 +0000 (09:17 -0400)]
Fix SysUI crash on device boot.

Bug: 22869066
Change-Id: I55ab64c430899ebc20bfc8a8e4d1e2a7cd12f0cd

9 years agoMerge "Don't always transfer device owner status to other users." into mnc-dev
Rubin Xu [Fri, 31 Jul 2015 13:11:08 +0000 (13:11 +0000)]
Merge "Don't always transfer device owner status to other users." into mnc-dev

9 years agoDon't always transfer device owner status to other users.
Nicolas Prevot [Tue, 28 Jul 2015 19:41:12 +0000 (20:41 +0100)]
Don't always transfer device owner status to other users.

A device owner cannot use device or profile owner policies on
other users unless it is profile owner there. Also limit device
initializer to system apps only.

Bug: 21800830
Change-Id: Ie1abbd891945b91b17ecdf7f73ba93aaa19819be

9 years agoMerge "Add missing return statement" into mnc-dev
Benjamin Franz [Fri, 31 Jul 2015 08:22:53 +0000 (08:22 +0000)]
Merge "Add missing return statement" into mnc-dev

9 years agoMerge "Stop supporting legacy ConnectivityManager routing methods in M." into mnc-dev
Lorenzo Colitti [Fri, 31 Jul 2015 05:17:08 +0000 (05:17 +0000)]
Merge "Stop supporting legacy ConnectivityManager routing methods in M." into mnc-dev

9 years agoFixed issue with artifacts during scale-up transition animation
Wale Ogunwale [Fri, 31 Jul 2015 03:20:16 +0000 (20:20 -0700)]
Fixed issue with artifacts during scale-up transition animation

It is possible to get some artifacts during scale-up transition
animation of some fullscreen activities like Chrome. This is
caused by the clip rect specified by the transformation extending
outside the sys decor rect. We now contain the clip rect within
the system decor rect.

Also note that we don't want to do this for none-fullscreen
activities as it might cause some premature clipping.

Bug: 22830775
Bug: 21727851
Bug: 20652683
Bug: 19523205
Bug: 15046646
https://code.google.com/p/android/issues/detail?id=161362

Change-Id: I33827caaa256ad8fdc0eb3650ef34e95c48a6988

9 years agoMerge changes from topic 'fix-notification-inflation-2' into mnc-dev
Dave Langemak [Fri, 31 Jul 2015 02:52:30 +0000 (02:52 +0000)]
Merge changes from topic 'fix-notification-inflation-2' into mnc-dev

* changes:
  Make DateTimeView more robust to weird contexts.
  Make the RemoteViews context safe for Icons.

9 years agoMerge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev
Hung-ying Tyan [Fri, 31 Jul 2015 02:51:32 +0000 (02:51 +0000)]
Merge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Fri, 31 Jul 2015 02:38:23 +0000 (02:38 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoMake DateTimeView more robust to weird contexts.
Dan Sandler [Fri, 31 Jul 2015 02:33:12 +0000 (22:33 -0400)]
Make DateTimeView more robust to weird contexts.

In particular, some clients (*ahem* SystemUI) have been
known to inflate RemoteViews with unusual derived contexts
that may not have valid application contexts. DateTimeView
can now resist this.

Bug: 22852700
Change-Id: I5e91ae0e66859f5f5efd7b19c0ae6dfbc26bcc54

9 years agoMake the RemoteViews context safe for Icons.
Dan Sandler [Fri, 31 Jul 2015 02:32:54 +0000 (22:32 -0400)]
Make the RemoteViews context safe for Icons.

Icon needs the RemoteViews' internal context to reflect not
just the Resources of the originating application, but its
package name as well.

Bug: 22840771
Bug: 22852700
Change-Id: I1164cd38d99283982b00daadcf927c7cf63539b3

9 years agoMerge "media: use blocks number to find closest size" into mnc-dev
Ronghua Wu [Fri, 31 Jul 2015 02:32:53 +0000 (02:32 +0000)]
Merge "media: use blocks number to find closest size" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 31 Jul 2015 02:12:14 +0000 (19:12 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 22826906
Change-Id: If1cb05eb42e8e5bd789cdb257dfc3498e4479890

9 years agoStop supporting legacy ConnectivityManager routing methods in M.
Lorenzo Colitti [Wed, 29 Jul 2015 02:41:21 +0000 (11:41 +0900)]
Stop supporting legacy ConnectivityManager routing methods in M.

The methods startUsingNetworkFeature, stopUsingNetworkFeature and
requestRouteToHost were @removed in all the M preview builds, but
internal and external developers have noted that this imposes
additional burden for applications that need to work across
multiple platform versions because it causes compile-time errors.

We switched from @removed back to @deprecated to avoid these
problems. In order to effectively deprecate these methods, which
are error-prone and insecure, make them throw
UnsupportedOperationException if the app's target SDK is M or
above.

Because there are still one or two places in system code that use
these APIs, exempt Process.SYSTEM_UID and the OMA-DM client from
the check for now.

Bug: 22728205
Change-Id: I790bd32f3aa8067cbb625962a209bb9232f4b58c

9 years agoMerge "Handle volumes without visible paths." into mnc-dev
Jeff Sharkey [Fri, 31 Jul 2015 01:46:45 +0000 (01:46 +0000)]
Merge "Handle volumes without visible paths." into mnc-dev

9 years agoHandle volumes without visible paths.
Jeff Sharkey [Fri, 31 Jul 2015 01:10:20 +0000 (18:10 -0700)]
Handle volumes without visible paths.

Transient volumes like USB drives are not mounted as visible, so we
shouldn't be kicking off media scanner for them.

Bug: 22545248
Change-Id: Ic8f2d3134f1edb8b2a12e8ff283eceeeb230f48b

9 years agoMerge "AAPT: Fix resource versioning" into mnc-dev
Adam Lesinski [Fri, 31 Jul 2015 00:28:05 +0000 (00:28 +0000)]
Merge "AAPT: Fix resource versioning" into mnc-dev

9 years agoMerge "The heads up now correctly dissapears when clicking" into mnc-dev
Selim Cinek [Thu, 30 Jul 2015 23:59:59 +0000 (23:59 +0000)]
Merge "The heads up now correctly dissapears when clicking" into mnc-dev

9 years agoMerge "Add OrSelf to privileged permission check." into mnc-dev
Amit Mahajan [Thu, 30 Jul 2015 23:54:06 +0000 (23:54 +0000)]
Merge "Add OrSelf to privileged permission check." into mnc-dev

9 years agoMerge "BatteryStats: include mobile radio active count and unknown time in checkin...
Adam Lesinski [Thu, 30 Jul 2015 23:50:27 +0000 (23:50 +0000)]
Merge "BatteryStats: include mobile radio active count and unknown time in checkin" into mnc-dev

9 years agoBatteryStats: include mobile radio active count and unknown time in checkin
Adam Lesinski [Thu, 30 Jul 2015 23:36:29 +0000 (16:36 -0700)]
BatteryStats: include mobile radio active count and unknown time in checkin

These are important values to help diagnose modem related wakeup issues.

Bug:22803686
Bug:22857991
Change-Id: Ie0164ebd194567bc10d1165d671a583674a39829

9 years agoThe heads up now correctly dissapears when clicking
Selim Cinek [Thu, 30 Jul 2015 00:04:36 +0000 (17:04 -0700)]
The heads up now correctly dissapears when clicking

Bug: 22729955
Change-Id: I977b36823bf936baab527f932b1e5576241f4d71

9 years agoAdd OrSelf to privileged permission check.
Amit Mahajan [Thu, 30 Jul 2015 23:04:13 +0000 (16:04 -0700)]
Add OrSelf to privileged permission check.

Bug: 22857263
Change-Id: Ide7105dfd653e3c271330822fb8cee7cf620e35d

9 years agoBluetooth: Don't call beginBroadcast() while in a broadcast
Andre Eisenbach [Thu, 30 Jul 2015 15:59:32 +0000 (08:59 -0700)]
Bluetooth: Don't call beginBroadcast() while in a broadcast

Block duplicate calls to beginBroadcast() and add try/finally
to ensure finishBroadcast() is always called.

Bug: 22800686
Change-Id: Ie8d4005f4cd50dd2544a2832773d72eab0015d92

9 years agoMerge "Permissions: GET_ACCOUNTS permission cleanup" into mnc-dev
Carlos Valdivia [Thu, 30 Jul 2015 21:58:16 +0000 (21:58 +0000)]
Merge "Permissions: GET_ACCOUNTS permission cleanup" into mnc-dev

9 years agoMerge changes I4c215676,Ib476302c,I0aede288,I9241dec7,Ibe7167a6, ... into mnc-dev
Deepanshu Gupta [Thu, 30 Jul 2015 21:58:03 +0000 (21:58 +0000)]
Merge changes I4c215676,Ib476302c,I0aede288,I9241dec7,Ibe7167a6, ... into mnc-dev

* changes:
  Update status bar time.
  Fix imports.
  Add MockView constructor used by LayoutInflater.
  Poor implementation of Path.approximate()
  Include EpicenterTranslateClipReveal in LayoutLib
  Fix theme namespace in tests.
  LayoutLib: fix layout when nav bar is absent.
  LayoutLib: Fix Status/Navigation Bar color.

9 years agoMerge "Fixed a heads up crash" into mnc-dev
Selim Cinek [Thu, 30 Jul 2015 21:45:55 +0000 (21:45 +0000)]
Merge "Fixed a heads up crash" into mnc-dev

9 years agoMerge "UsbMidiDevice: add timestamps for input events" into mnc-dev
Phil Burk [Thu, 30 Jul 2015 21:28:17 +0000 (21:28 +0000)]
Merge "UsbMidiDevice: add timestamps for input events" into mnc-dev

9 years agoMerge "MIDI docs BTLE: how to open BTLE MIDI devices" into mnc-dev
Phil Burk [Thu, 30 Jul 2015 21:27:47 +0000 (21:27 +0000)]
Merge "MIDI docs BTLE: how to open BTLE MIDI devices" into mnc-dev

9 years agoMerge "MIDI package doc: add hasSystemFeature() call" into mnc-dev
Phil Burk [Thu, 30 Jul 2015 21:27:25 +0000 (21:27 +0000)]
Merge "MIDI package doc: add hasSystemFeature() call" into mnc-dev

9 years agoMerge "MidiDevice: document that opens can return nulls" into mnc-dev
Phil Burk [Thu, 30 Jul 2015 21:26:48 +0000 (21:26 +0000)]
Merge "MidiDevice: document that opens can return nulls" into mnc-dev

9 years agoAdd telecom extra keys required for DMR release.
Tyler Gunn [Thu, 30 Jul 2015 21:18:33 +0000 (14:18 -0700)]
Add telecom extra keys required for DMR release.

Bug: 22848290
Change-Id: I3328234e3f07d83d0dbe5b61b959344b6cc5cc3f

9 years agoMerge "Introduced android.permission.PEERS_MAC_ADDRESS permission" into mnc-dev
Fyodor Kupolov [Thu, 30 Jul 2015 20:50:04 +0000 (20:50 +0000)]
Merge "Introduced android.permission.PEERS_MAC_ADDRESS permission" into mnc-dev

9 years agoInstrument printing service for metrics collection.
Chris Wren [Thu, 30 Jul 2015 18:27:02 +0000 (14:27 -0400)]
Instrument printing service for metrics collection.

Bug: 22837316
Change-Id: I8bf62940f5eb495d8d7a10df958d9bc8ad76662a

9 years agomedia: use blocks number to find closest size
Ronghua Wu [Thu, 30 Jul 2015 17:54:47 +0000 (10:54 -0700)]
media: use blocks number to find closest size

Bug: 22504214
Change-Id: I056e19ac5fdbdff2c5d297b600210c07ae5ed4f4

9 years agoMerge "Raw RSA Cipher relies on keymaster for padding and range checks." into mnc-dev
Shawn Willden [Thu, 30 Jul 2015 19:57:22 +0000 (19:57 +0000)]
Merge "Raw RSA Cipher relies on keymaster for padding and range checks." into mnc-dev

9 years agoMerge "Fix stencil mask usage in HWUI" into mnc-dev
Chris Craik [Thu, 30 Jul 2015 19:30:58 +0000 (19:30 +0000)]
Merge "Fix stencil mask usage in HWUI" into mnc-dev

9 years agoMerge "Add SMS permissions for Carrier app." into mnc-dev
Shishir Agrawal [Thu, 30 Jul 2015 18:54:49 +0000 (18:54 +0000)]
Merge "Add SMS permissions for Carrier app." into mnc-dev

9 years agoFix stencil mask usage in HWUI
Chris Craik [Thu, 30 Jul 2015 18:05:16 +0000 (11:05 -0700)]
Fix stencil mask usage in HWUI

bug:21588246

Ensure we always set the mask before clearing, and removes
some unneeded optimizations around mask usage in
debug (overdraw) mode.

Change-Id: I71ed06c16f8d9f158953d5aa160098514f0f7f00

9 years agoMerge "Fix issues around process teardown after full-data restore" into mnc-dev
Chris Tate [Thu, 30 Jul 2015 17:28:07 +0000 (17:28 +0000)]
Merge "Fix issues around process teardown after full-data restore" into mnc-dev

9 years agoMerge "[Improve docs for AccountManager] Currently, the docs for AccountManager are...
Simranjit Kohli [Thu, 30 Jul 2015 17:09:44 +0000 (17:09 +0000)]
Merge "[Improve docs for AccountManager] Currently, the docs for AccountManager are somewhat misleading and may cause developer errors. To avoid them, we are properly documenting it." into mnc-dev

9 years agoImprove getTimestamp documentation
Glenn Kasten [Fri, 24 Jul 2015 17:56:46 +0000 (10:56 -0700)]
Improve getTimestamp documentation

Bug: 18977548
Change-Id: Ia3c2620b27a173ed1a15268ca43c28e6f4e31965