Commit Graph

50200 Commits

Author SHA1 Message Date
Daniel Sandler
b10d22ff93 am bbe1682b: Merge changes from topic \'fix-media-notifications\' into mnc-dev
* commit 'bbe1682b1652c37b66609676e5829517279ff141':
  Fully support Icons in Notification actions.
  Fix media notification action icons.
2015-07-30 03:12:32 +00:00
Daniel Sandler
bbe1682b16 Merge changes from topic 'fix-media-notifications' into mnc-dev
* changes:
  Fully support Icons in Notification actions.
  Fix media notification action icons.
2015-07-30 02:57:06 +00:00
Paul Jensen
d732799abb am a991c66c: Merge "Fix missing onLost NetworkCallbacks when network loses capability" into mnc-dev
* commit 'a991c66c12da30d0240ac6c98736edee93d95977':
  Fix missing onLost NetworkCallbacks when network loses capability
2015-07-30 02:21:25 +00:00
Paul Jensen
a991c66c12 Merge "Fix missing onLost NetworkCallbacks when network loses capability" into mnc-dev 2015-07-30 02:10:50 +00:00
Dianne Hackborn
98169db36b am 8d3a67a8: Merge "More maybe fix issue #22765972: Binder transactions running out..." into mnc-dev
* commit '8d3a67a8d475b43cbac50a2a186a19f4a29c7892':
  More maybe fix issue #22765972: Binder transactions running out...
2015-07-30 01:44:08 +00:00
Dianne Hackborn
8d3a67a8d4 Merge "More maybe fix issue #22765972: Binder transactions running out..." into mnc-dev 2015-07-30 01:32:09 +00:00
Dianne Hackborn
6b42bc0e21 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
2015-07-29 17:58:33 -07:00
Billy Lau
77bb814318 am a6706627: Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)" into mnc-dev
* commit 'a6706627a9bf749cc591605272810e03983a9eea':
  Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)
2015-07-29 22:47:18 +00:00
Billy Lau
a6706627a9 Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)" into mnc-dev 2015-07-29 22:42:27 +00:00
Dan Sandler
b4c12fdb52 am 25ffc7ad: Accessibility: Read the time correctly in quick settings.
* commit '25ffc7ad950d9b2857abe9cb66ed53aed7a18ecf':
  Accessibility: Read the time correctly in quick settings.
2015-07-29 22:32:44 +00:00
Billy Lau
6ad2d66072 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
2015-07-29 23:21:26 +01:00
Dan Sandler
25ffc7ad95 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
2015-07-29 22:19:52 +00:00
Robert Greenwalt
b4a5f7d913 am 771d210a: Merge "Revert "DO NOT MERGE Enhance local log."" into mnc-dev
* commit '771d210ab2d0df9d6748eb56e3f7250377df1fc4':
  Revert "DO NOT MERGE Enhance local log."
2015-07-29 22:08:31 +00:00
Robert Greenwalt
771d210ab2 Merge "Revert "DO NOT MERGE Enhance local log."" into mnc-dev 2015-07-29 22:00:40 +00:00
Robert Greenwalt
374d91df94 Revert "DO NOT MERGE Enhance local log."
This reverts commit dd6f844129.

bug:22632129
Change-Id: Ibd4b9c35b66cb7d877085bc010fde45a682ba34f
2015-07-29 14:11:23 -07:00
Alan Viverette
7a763bc155 am 93184eef: Merge "DO NOT MERGE: Don\'t backup night mode setting" into mnc-dev
* commit '93184eef410da6bb958d22e1dc90f3fddabc9369':
  DO NOT MERGE: Don't backup night mode setting
2015-07-29 20:55:04 +00:00
Adrian Roos
bbe80810ab am 726d47b7: Merge "Fix and deprecate lock pattern related settings" into mnc-dev
* commit '726d47b7716807f740ceea6ea71c46b20ecb8ba7':
  Fix and deprecate lock pattern related settings
2015-07-29 20:54:57 +00:00
Alan Viverette
93184eef41 Merge "DO NOT MERGE: Don't backup night mode setting" into mnc-dev 2015-07-29 20:46:08 +00:00
Adrian Roos
726d47b771 Merge "Fix and deprecate lock pattern related settings" into mnc-dev 2015-07-29 20:39:27 +00:00
Alan Viverette
ec9bea7eeb DO NOT MERGE: Don't backup night mode setting
Bug: 22824325
Change-Id: I7a244f416e1aa258735eea09858e3c202e8c8945
2015-07-29 16:22:03 -04:00
Alan Viverette
0322ccf69a am 47a74e7e: Merge "Ensure maxHeight is at least 0 during measureChildHorizontal()" into mnc-dev
* commit '47a74e7e2b45d9ec462f47f6741c381c478b4156':
  Ensure maxHeight is at least 0 during measureChildHorizontal()
2015-07-29 20:13:07 +00:00
Alan Viverette
401de11f16 am 5c380efa: Merge "Always distribute excess space in LinearLayout measurement" into mnc-dev
* commit '5c380efa2c0bf3617aedbb9270fa02cce59c7935':
  Always distribute excess space in LinearLayout measurement
2015-07-29 20:12:59 +00:00
Jeff Sharkey
4854d113ce am b86048da: Merge "Always return content Uri for downloads." into mnc-dev
* commit 'b86048dab3df3e4a8f05de170b38c189243de898':
  Always return content Uri for downloads.
2015-07-29 20:12:53 +00:00
Alan Viverette
47a74e7e2b Merge "Ensure maxHeight is at least 0 during measureChildHorizontal()" into mnc-dev 2015-07-29 20:02:41 +00:00
Alan Viverette
5c380efa2c Merge "Always distribute excess space in LinearLayout measurement" into mnc-dev 2015-07-29 20:01:52 +00:00
Raph Levien
9c5a06aa9c am c3cc344d: Merge "Release text when finishing StaticLayout.Builder" into mnc-dev
* commit 'c3cc344d12ff4a952af8842fab71ef2f6df5e340':
  Release text when finishing StaticLayout.Builder
2015-07-29 19:59:39 +00:00
Jeff Sharkey
b86048dab3 Merge "Always return content Uri for downloads." into mnc-dev 2015-07-29 19:59:36 +00:00
Alan Viverette
7a40d21d89 Ensure maxHeight is at least 0 during measureChildHorizontal()
Bug: 22613599
Change-Id: I11f70ed1f7221874bef0f00f006e0ae294c4bdfa
2015-07-29 15:55:20 -04:00
Alan Viverette
4fabc02158 Always distribute excess space in LinearLayout measurement
Previously, excess space was added to existing measured dimensions.
This consistently resulted in incorrect allocation of excess space,
since the delta already included the height of any measured children
rather than just the excess space itself.

This CL ensures that excess space is always distributed according to the
layout weights.

Bug: 22810327
Change-Id: I482a553c469169769cc40ab3d88b4a44023f3eb5
2015-07-29 15:53:53 -04:00
Raph Levien
c3cc344d12 Merge "Release text when finishing StaticLayout.Builder" into mnc-dev 2015-07-29 19:44:21 +00:00
Raph Levien
22ba7869f6 Release text when finishing StaticLayout.Builder
DynamicLayout reuses a StaticLayout.Builder object to avoid having to
allocate. There is a "finish" method that releases any expensive
internal state of the builder object, but it didn't release a
reference to the text object (which in turn may contain references to
lots of other things, especially if it's a Spannable).

This patch releases the text, as well as a few other arrays, at time
of finish.

Bug: 22822416
Change-Id: Icc8b6cd41a9a2d11689df7bd1b9f524c6524f706
2015-07-29 12:34:13 -07:00
Dan Sandler
912282e731 Fully support Icons in Notification actions.
RemoteViews now allows Icons as TextView compound
drawables in RemoteViews, but not yet as public API.

Bug: 22600607
Change-Id: I986a0ce3bede09746f0b121884184679f39a79f5
2015-07-29 14:18:38 -04:00
Svetoslav Ganov
862dc4f2c9 am 9352af2a: Merge "Remove dependencies on the package installer\'s package name" into mnc-dev
* commit '9352af2a9ef95e3f577a04474625249d3da62a04':
  Remove dependencies on the package installer's package name
2015-07-29 18:18:10 +00:00
Sailesh Nepal
04a69aa102 am 6b96de8d: Merge "Default permissions for sim call manager" into mnc-dev
* commit '6b96de8dae8be99f75c86c795672905e10fca153':
  Default permissions for sim call manager
2015-07-29 17:54:40 +00:00
Svetoslav Ganov
9352af2a9e Merge "Remove dependencies on the package installer's package name" into mnc-dev 2015-07-29 17:54:23 +00:00
Dan Sandler
68079d54f3 Fix media notification action icons.
In addition to cleaning up some bare references to the icon
slot, we now apply updates to notification RemoteViews in
the context of the supplying app's package. This ensures we
can find the drawables inside any Icon objects that were
constructed without a proper package name, such as is the
case with Actions (because the builder and constructor are
Context-free and so don't know the package name).

This CL also makes clear what was previously only implied:
Non-resource action icons are not actually supported yet
since they can't be pushed to TextView compound drawables
using today's RemoteViews APIs. That will require an API
change.

Bug: 22600607
Change-Id: Ie6b88aed36e4db05be35f843ea3bc1898d4a5c96
2015-07-29 13:50:32 -04:00
Sailesh Nepal
6b96de8dae Merge "Default permissions for sim call manager" into mnc-dev 2015-07-29 17:39:37 +00:00
Jeff Sharkey
b11683ba62 Always return content Uri for downloads.
Now that we're relying more heavily on Uri permission grants between
apps, we should always return content:// Uris.

Bug: 22820206
Change-Id: Ie9603da09944dc594ea5dde2db04455f57d6f103
2015-07-29 10:22:30 -07:00
Dianne Hackborn
c2a024392a am eda1cc50: Merge "Work on issue #22765972: Binder transactions running out of address..." into mnc-dev
* commit 'eda1cc50cead674287616e6a852f8f281b70b9f5':
  Work on issue #22765972: Binder transactions running out of address...
2015-07-29 17:19:56 +00:00
Nicolas Prévot
91775db6b5 am 64ac302f: Merge "Send a public broadcast when the device owner is set." into mnc-dev
* commit '64ac302f0c10de0016689b234ba01c1c81da0061':
  Send a public broadcast when the device owner is set.
2015-07-29 17:19:48 +00:00
Dianne Hackborn
eda1cc50ce Merge "Work on issue #22765972: Binder transactions running out of address..." into mnc-dev 2015-07-29 17:05:58 +00:00
Nicolas Prévot
64ac302f0c Merge "Send a public broadcast when the device owner is set." into mnc-dev 2015-07-29 16:59:46 +00:00
Svet Ganov
f1b7f20bb8 Remove dependencies on the package installer's package name
bug:22700053

Change-Id: I8540eb8577fbec84e1a67e31e1c31ba654c828a4
2015-07-29 08:33:46 -07:00
Paul Jensen
1ed96576a8 am 30813942: Merge "Disable WiFi autojoin when user decides via "Stay connected?" dialog" into mnc-dev
* commit '308139425e697536304be55a5865aae7a290fb1d':
  Disable WiFi autojoin when user decides via "Stay connected?" dialog
2015-07-29 14:17:50 +00:00
Paul Jensen
308139425e Merge "Disable WiFi autojoin when user decides via "Stay connected?" dialog" into mnc-dev 2015-07-29 13:52:02 +00:00
Sailesh Nepal
cf85562bc9 Default permissions for sim call manager
This CL adds the following permissions by default to the
SIM call manager:
 - microphone
 - phone

BUG: 22790160
Change-Id: Icaf1db6c6943b3ddbd16a946a81d1bfb734d761f
2015-07-28 22:16:25 -07:00
Jeff Sharkey
667f35fab8 am b8040265: Merge "Give secondary users read-only physical cards." into mnc-dev
* commit 'b8040265dd0d5a2a96e0850623647dad2f528db1':
  Give secondary users read-only physical cards.
2015-07-29 04:04:41 +00:00
Jeff Sharkey
b8040265dd Merge "Give secondary users read-only physical cards." into mnc-dev 2015-07-29 01:19:43 +00:00
Dianne Hackborn
86cbc2bf30 Work on issue #22765972: Binder transactions running out of address...
...space causing package manager to fail

Lower the maximum IPC size we use in various places, to keep it
under the threshold of becoming dangerous.  Now everything tries
to keep not much more than 64k.

Change-Id: I814013097966a7843179e5d581bfdb254c5ae318
2015-07-28 18:13:21 -07:00
Dianne Hackborn
9d3a0efaef am b492ced8: Merge "Fix issue #22802782: APR: NPE in package manager with bad intent data" into mnc-dev
* commit 'b492ced89eaf38b2b9962dbfae2435dd242abf19':
  Fix issue #22802782: APR: NPE in package manager with bad intent data
2015-07-29 01:01:36 +00:00