OSDN Git Service

android-x86/frameworks-base.git
8 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

8 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

8 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

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

Change-Id: I82295b758e5ceb42e260d3c36ea2310a9def5190

8 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

8 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

8 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

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

Change-Id: I9c6b6cd354039ff2914837cfe97a783564ded66f

8 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

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

Change-Id: Icdf6fa14e53a1c030d0d90205d3bf2d7610b6196

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 years agoMerge "Include non-zero dimension views in excess space calculation" into mnc-dev
Alan Viverette [Thu, 30 Jul 2015 17:02:45 +0000 (17:02 +0000)]
Merge "Include non-zero dimension views in excess space calculation" into mnc-dev

8 years agoPermissions: GET_ACCOUNTS permission cleanup
Carlos Valdivia [Mon, 27 Jul 2015 20:06:54 +0000 (13:06 -0700)]
Permissions: GET_ACCOUNTS permission cleanup

First, getAccounts*() will now return all available accounts depending
on both GET_ACCOUNTS grants and signature matching. This is different
from before where a caller of getAccounts() would need GET_ACCOUNTS to
get any accounts, but if that same caller called getAccountsByType, they
might have gotten back accounts if they shared a signature with the same
developer.

Second, cleaned up some NPEs and javadoc.

This change was motivated by progress on the cts tests.

Change-Id: I2f36226780e074fdf58214b46de3b79d8319ace1

8 years agoDateTimeView: don't assume you have an ApplicationContext.
Dan Sandler [Thu, 30 Jul 2015 15:46:10 +0000 (11:46 -0400)]
DateTimeView: don't assume you have an ApplicationContext.

Bug: 22840771
Change-Id: I3be6369936f90e9ce4e61a59ea81b0d3408a0f99

8 years agoInclude non-zero dimension views in excess space calculation
Alan Viverette [Thu, 30 Jul 2015 15:44:12 +0000 (11:44 -0400)]
Include non-zero dimension views in excess space calculation

Bug: 22840778
Change-Id: Iba44c59bbaa48f63b26f342e0510b4c421e8748b

8 years agoAdd missing return statement
Benjamin Franz [Thu, 30 Jul 2015 14:50:16 +0000 (15:50 +0100)]
Add missing return statement

Bug: 22844272
Change-Id: I4b37b28adb1d1b6d0d1235dd68fbfad6c3121c54

8 years agoMerge "Move padding from navigation and overflow icons to Toolbar" into mnc-dev
Alan Viverette [Thu, 30 Jul 2015 14:50:07 +0000 (14:50 +0000)]
Merge "Move padding from navigation and overflow icons to Toolbar" into mnc-dev

8 years agoMove padding from navigation and overflow icons to Toolbar
Alan Viverette [Thu, 30 Jul 2015 14:17:39 +0000 (10:17 -0400)]
Move padding from navigation and overflow icons to Toolbar

Also removes unused default_padding_material dimension.

Bug: 18482784
Change-Id: If294f61391bc76034feb8222d74f40d6b29857c5

8 years agoDon't call cancel() when fingerprint auth fails
Jim Miller [Fri, 17 Jul 2015 21:11:56 +0000 (14:11 -0700)]
Don't call cancel() when fingerprint auth fails

KeyguardUpdateMonitor should not call cancel() when fingerprint
auth fails. The life cycle will continue until an actual error
occurs or the maximum number of retries is reached.

Fixes bug 22562277

Change-Id: I36291d025de9c049cc7f7924f692c8c21349bb7b

8 years agoMerge changes from topic 'fix-media-notifications' into mnc-dev
Daniel Sandler [Thu, 30 Jul 2015 02:57:06 +0000 (02:57 +0000)]
Merge changes from topic 'fix-media-notifications' into mnc-dev

* changes:
  Fully support Icons in Notification actions.
  Fix media notification action icons.

8 years agoRevise lockdown check in getLegacyVpnInfo()
Hung-ying Tyan [Wed, 29 Jul 2015 04:39:21 +0000 (12:39 +0800)]
Revise lockdown check in getLegacyVpnInfo()

Return null instead of raising exception in lockdown mode.

BUG=22749146

Change-Id: I0e9e3ded0d189e3fa9e872b7af9fe363799c85d6

8 years ago[Improve docs for AccountManager]
Simranjit Singh Kohli [Wed, 29 Jul 2015 23:34:49 +0000 (16:34 -0700)]
[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.

Bug: 21924096
Change-Id: If775a54a09219b0f1623d2ff903085b9d12aa863

8 years agoFix issues around process teardown after full-data restore
Christopher Tate [Thu, 30 Jul 2015 02:23:58 +0000 (19:23 -0700)]
Fix issues around process teardown after full-data restore

The unified code path for cleanup was mistakenly looking at the
android:killAfterRestore manifest attribute even for full-data restore
operations.  That attribute is only relevant for key/value payload
handling.  We need to *always* kill after restore in the full-data
case because the app will otherwise be allowed to enter normal
component lifecycles without its correct Application / ContentProvider
state in force.

Bug 22704852

Change-Id: Ia63f985a35c28084c734389cfc49d3792173e5c7

8 years agoMerge "Fix missing onLost NetworkCallbacks when network loses capability" into mnc-dev
Paul Jensen [Thu, 30 Jul 2015 02:10:50 +0000 (02:10 +0000)]
Merge "Fix missing onLost NetworkCallbacks when network loses capability" into mnc-dev

8 years agoFixed a heads up crash
Selim Cinek [Thu, 30 Jul 2015 02:09:03 +0000 (19:09 -0700)]
Fixed a heads up crash

Some references to notifications were still
kept around while timing out, leading to small
leaks and sometimes crashes.

Bug: 22819475
Change-Id: I1429b5669366521c6374efbcae6c26d6e407d8cc

8 years agoMerge "More maybe fix issue #22765972: Binder transactions running out..." into mnc-dev
Dianne Hackborn [Thu, 30 Jul 2015 01:32:09 +0000 (01:32 +0000)]
Merge "More maybe fix issue #22765972: Binder transactions running out..." into mnc-dev

8 years agoMore maybe fix issue #22765972: Binder transactions running out...
Dianne Hackborn [Thu, 30 Jul 2015 00:58:33 +0000 (17:58 -0700)]
More maybe fix issue #22765972: Binder transactions running out...

...of address space causing package manager to fail

Make sure to flush binder commands when done with an async task.

Change-Id: I9f171add7051587ab854226b97a12c7e1844ad5d

8 years agoMerge "Fix touch target for settings icon" into mnc-dev
Jason Monk [Thu, 30 Jul 2015 00:32:17 +0000 (00:32 +0000)]
Merge "Fix touch target for settings icon" into mnc-dev

8 years agoFix state weirdness in the panel
Jorim Jaggi [Wed, 29 Jul 2015 21:52:22 +0000 (14:52 -0700)]
Fix state weirdness in the panel

When QS was open while the we started with expansion, we
immediately notified about expansion finsihed again, which led to all
kinds of weird states. The change that introduced these bugs was to
fix another bug in which onExpandingFinished was not call. Make sure
to call in exactly that case and no other case to not risk
regressions.

Bug: 22806817
Bug: 22807359
Bug: 22807372
Change-Id: Id7daf37ef4a772f724971bf79c61084ff4279f31

8 years agoUpdate status bar time.
Deepanshu Gupta [Thu, 30 Jul 2015 00:01:33 +0000 (17:01 -0700)]
Update status bar time.

Copy the value from the demo mode (commit 33b60bb45f)

Change-Id: I4c215676e7ae26a68aa370e99db005226d8a05d9

8 years agoAdd SMS permissions for Carrier app.
Shishir Agrawal [Wed, 29 Jul 2015 23:54:07 +0000 (16:54 -0700)]
Add SMS permissions for Carrier app.

Carrier apps can act as a transport for SMS and MMS. They may proxy SMSes that
user is sending and need to have access to be able to send these SMSes via the
radio.

Bug: 22830087
Change-Id: I98c0ff1b208be1a7227aef7a4a69222050b3ddb4

8 years agoMIDI docs BTLE: how to open BTLE MIDI devices
Phil Burk [Wed, 29 Jul 2015 22:04:32 +0000 (15:04 -0700)]
MIDI docs BTLE: how to open BTLE MIDI devices

Adds crucial information including required permissions,
MIDI UUID, and call to openBluetoothDevice().

Bug: 22606182
Change-Id: I47393bd0ecc2601906f6e50075d694c9cc17c993
Signed-off-by: Phil Burk <philburk@google.com>
8 years agoFix doze mode
Jorim Jaggi [Wed, 29 Jul 2015 22:17:23 +0000 (15:17 -0700)]
Fix doze mode

Make sure to reset the keyguard drawn state in the correct place,
so we don't return early in finishKeyguardDrawn() because
mKeyguardDrawComplete is still true.

Bug: 22808662
Change-Id: I7e18e91c412c6cac7fe253837949602f76b7f270

8 years agoMerge "Fixed out of bounds exception while handling app crash" into mnc-dev
Wale Ogunwale [Wed, 29 Jul 2015 23:41:08 +0000 (23:41 +0000)]
Merge "Fixed out of bounds exception while handling app crash" into mnc-dev

8 years agoWorkaround View.post issues to fix runtime crash
Jorim Jaggi [Wed, 29 Jul 2015 22:46:29 +0000 (15:46 -0700)]
Workaround View.post issues to fix runtime crash

Using View.post was really dangerous because when the view wasn't
attached, it got posted on the run queue of the *calling* thread.
However, that run queue was never executed until power down, and
then it was executed from the PowerManagerService thread, because
that was the calling thread when we posted it. Work around this by
using a solid Handler.

Bug: 22820787
Change-Id: Id60e49e859558993256fae0403236f2e4b6f1075

8 years agoFixed out of bounds exception while handling app crash
Wale Ogunwale [Wed, 29 Jul 2015 23:01:50 +0000 (16:01 -0700)]
Fixed out of bounds exception while handling app crash

The current stack we are proccessing can be deleted as part of
the clean-up process, so the size of the stack list is reduced
by one.

Bug: 22822743
Change-Id: I6a6af5d8d811e231f345f01dd2aa4a61510c8d2b

8 years agoUsbMidiDevice: add timestamps for input events
Phil Burk [Wed, 29 Jul 2015 22:55:00 +0000 (15:55 -0700)]
UsbMidiDevice: add timestamps for input events

This will improve the accuracy of recorded MIDI performances.

Bug: 22801515
Change-Id: Ib78bc929224f2f27938c83a815eaa62f6b5f9560
Signed-off-by: Phil Burk <philburk@google.com>
8 years agoMerge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check...
Billy Lau [Wed, 29 Jul 2015 22:42:27 +0000 (22:42 +0000)]
Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)" into mnc-dev

8 years agoMerge "Add API to let carrier app send SMS without auto perisisting." into mnc-dev
Ji Yang [Wed, 29 Jul 2015 22:35:30 +0000 (22:35 +0000)]
Merge "Add API to let carrier app send SMS without auto perisisting." into mnc-dev

8 years agoFix imports.
Deepanshu Gupta [Mon, 27 Jul 2015 17:11:03 +0000 (10:11 -0700)]
Fix imports.

Also remove null checks on return value of ReflectionUtils.getMethod()
as the method always return non null.

Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f

8 years agoAdd MockView constructor used by LayoutInflater.
Deepanshu Gupta [Wed, 29 Jul 2015 22:08:17 +0000 (15:08 -0700)]
Add MockView constructor used by LayoutInflater.

Change-Id: I0aede28866c1b87fb66c8a416c5026a9b2cb04fe

8 years agoPoor implementation of Path.approximate()
Deepanshu Gupta [Wed, 29 Jul 2015 21:24:25 +0000 (14:24 -0700)]
Poor implementation of Path.approximate()

Include a very poor implementation of Path.approximate() in LayoutLib
that only returns the first and last coordinate of the path. This avoids
crashing the rendering when certain assumptions are made on the value
returned from the method.

Also change the error to a warning.

Change-Id: I9241dec734d4df90a9eebd1e6de8b3e443eee3c8

8 years agoBug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check
Billy Lau [Fri, 17 Jul 2015 23:26:58 +0000 (00:26 +0100)]
Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check
changes)

AppOpsManager:
Changed the default operating mode for WRITE_SETTINGS to MODE_DEFAULT from
MODE_ALLOWED.

packages/SettingsProvider:
We no longer do static permission checks for WRITE_SETTINGS in early checks and
defer that to app op when MODE_DEFAULT is returned. For some operations,
checking against WRITE_SECURE_SETTINGS is sufficient.

ActivityManagerService & PowerManagerService:
Incorporated app op checks and handled the MODE_DEFAULT case.

provider/Settings:
Added helper function to do checks on whether app ops protected operations
can be performed by a caller. This includes checks for WRITE_SETTINGS and
SYSTEM_ALERT_WINDOW.
Also added a public API (with javadocs) for apps to query if they can modify
system settings.
Changed the javadocs description for ACTION_MANAGE_WRITE_SETTINGS and
ACTION_MANAGE_OVERLAY_PERMISSION.
Added public API (with javadocs) for apps to query whether they can draw overlays or not,
and also javadocs description on how to use that check.

Change-Id: I7b651fe8af836c2074defdbd6acfec3f32acdbe9

8 years agoChange MNC codename to just M.
Dianne Hackborn [Wed, 29 Jul 2015 22:20:21 +0000 (15:20 -0700)]
Change MNC codename to just M.

Change-Id: I4281d200ff6560791c47cf9073ceea1cb509361e

8 years agoAccessibility: Read the time correctly in quick settings.
Dan Sandler [Thu, 11 Jun 2015 13:17:07 +0000 (09:17 -0400)]
Accessibility: Read the time correctly in quick settings.

The problem is that, for 12-hour locales, we cut the "a"
part of the time format out to show it in a separate
TextView so it can be animated independently of the actual
time. Unfortunately, while TTS is smart enough to pronounce
"1:15 AM" as /wʌn fɪftin eɪ ɛm/, "AM" on its own looks like
the English word "am" and is pronounced /æm/.

To fix this, a TextClock must be able to accept separate
formats for its content description than its presentation.
With this capability we can place the complete 12-hour time
format (including am/pm) in one of the views and suppress
the other one, so that the utterance creates an identical
experience to visual inspection: "1:15 AM" for all users.

Bug: 21718000
Change-Id: Ic9920d71ae4d4ad41ba86d7bd96f9a19b07e2108

8 years agoMerge "Revert "DO NOT MERGE Enhance local log."" into mnc-dev
Robert Greenwalt [Wed, 29 Jul 2015 22:00:40 +0000 (22:00 +0000)]
Merge "Revert "DO NOT MERGE Enhance local log."" into mnc-dev

8 years agoMerge "Default grants: handle update system packages" into mnc-dev
Svetoslav Ganov [Wed, 29 Jul 2015 21:54:13 +0000 (21:54 +0000)]
Merge "Default grants: handle update system packages" into mnc-dev

8 years agoInclude EpicenterTranslateClipReveal in LayoutLib
Deepanshu Gupta [Wed, 29 Jul 2015 21:23:38 +0000 (14:23 -0700)]
Include EpicenterTranslateClipReveal in LayoutLib

Needed by Spinner to create transitions that are then ignored :)

Change-Id: Ibe7167a643ecb186e97c9af446c0e1d2eb2d6f86

8 years agoFix theme namespace in tests.
Deepanshu Gupta [Wed, 29 Jul 2015 18:12:44 +0000 (11:12 -0700)]
Fix theme namespace in tests.

The tests used framework theme (Material), but the ResourceResolver was
created with project theme. This caused tests to fail becasue of missing
resources.

Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f

8 years agoMerge "Fix pattern lock for accessibility" into mnc-dev
Adrian Roos [Wed, 29 Jul 2015 21:23:25 +0000 (21:23 +0000)]
Merge "Fix pattern lock for accessibility" into mnc-dev

8 years agoFix pattern lock for accessibility
Adrian Roos [Mon, 27 Jul 2015 20:49:53 +0000 (13:49 -0700)]
Fix pattern lock for accessibility

- remove the content description in Keyguard
- only show virtual views when pattern is in progress
- add a content description when the pattern is not in progress

Bug: 22646748
Change-Id: Id32a37c4c74c82b547cee8861b2856fa0a08c41c

8 years agoRevert "DO NOT MERGE Enhance local log."
Robert Greenwalt [Wed, 29 Jul 2015 19:12:01 +0000 (19:12 +0000)]
Revert "DO NOT MERGE Enhance local log."

This reverts commit dd6f8441292d30cc51c1e32bb27fab8dfb791f90.

bug:22632129
Change-Id: Ibd4b9c35b66cb7d877085bc010fde45a682ba34f

8 years agoDefault grants: handle update system packages
Svetoslav [Wed, 29 Jul 2015 21:00:18 +0000 (14:00 -0700)]
Default grants: handle update system packages

If there is an app on the system image that gets default
grants but it is updated with a version that does not use
all permissions the version on the system image does, we
would wrongly try to grant a permission to the updated app
that it does not request and crash as a result. Now we
default grant permission that are requested by the system
version of the app regardless if it is updated but only if
the system app is not updated or the update also uses these
permissions.

bug:22800767

Change-Id: Ic22b62ba4976367420a56bdadc8e3824b0b9104f

8 years agoMIDI package doc: add hasSystemFeature() call
Phil Burk [Wed, 29 Jul 2015 21:00:09 +0000 (14:00 -0700)]
MIDI package doc: add hasSystemFeature() call

Bug: 22800792
Change-Id: Ib4b3e16e8167191505c31522bbccd521a9807528
Signed-off-by: Phil Burk <philburk@google.com>
8 years agoMerge "DO NOT MERGE: Don't backup night mode setting" into mnc-dev
Alan Viverette [Wed, 29 Jul 2015 20:46:08 +0000 (20:46 +0000)]
Merge "DO NOT MERGE: Don't backup night mode setting" into mnc-dev

8 years agoMerge "Fix and deprecate lock pattern related settings" into mnc-dev
Adrian Roos [Wed, 29 Jul 2015 20:39:27 +0000 (20:39 +0000)]
Merge "Fix and deprecate lock pattern related settings" into mnc-dev

8 years agoMidiDevice: document that opens can return nulls
Phil Burk [Wed, 29 Jul 2015 20:39:01 +0000 (13:39 -0700)]
MidiDevice: document that opens can return nulls

Bug: 22800792
Change-Id: I8d7ca1976e9a8abbabc011d3b2391ad7fe646f83
Signed-off-by: Phil Burk <philburk@google.com>