Commit Graph

61221 Commits

Author SHA1 Message Date
Svetoslav Ganov
8032741bdc Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev am: 0f3431b616
am: 8a20395156

* commit '8a203951566e6e5df730c49fb35054a851eb8834':
  Improve requestPermissions API docs and throw correct exception.
2016-02-19 04:16:19 +00:00
Svetoslav Ganov
8a20395156 Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev
am: 0f3431b616

* commit '0f3431b616e03fe76cb52cabad209f95e1d7899c':
  Improve requestPermissions API docs and throw correct exception.
2016-02-19 04:10:02 +00:00
Svetoslav Ganov
0f3431b616 Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev 2016-02-19 04:03:50 +00:00
Svet Ganov
f66381cd0d Improve requestPermissions API docs and throw correct exception.
bug:26220898

Change-Id: Iebda3fe13b963b10829de917fb00a9a14186b72c
2016-02-18 20:02:40 -08:00
Yohei Yukawa
9da8464a0b Merge "Introduce InputConnection#getHandler()." into nyc-dev am: 116d872d9c
am: 887f7c0fe3

* commit '887f7c0fe3b6d8b08e8b53638bbfecc1de2b7f8f':
  Introduce InputConnection#getHandler().
2016-02-19 02:59:19 +00:00
Yohei Yukawa
887f7c0fe3 Merge "Introduce InputConnection#getHandler()." into nyc-dev
am: 116d872d9c

* commit '116d872d9c3167a270407af374d4696efa1b21d7':
  Introduce InputConnection#getHandler().
2016-02-19 02:52:35 +00:00
Yohei Yukawa
116d872d9c Merge "Introduce InputConnection#getHandler()." into nyc-dev 2016-02-19 02:36:50 +00:00
Abhijith Shastry
b30c109716 Merge "Make BlockSuppressalStatus constructor public so that it can be constructed by the provider." into nyc-dev am: 5042001350
am: 0c5a42fc6f

* commit '0c5a42fc6f04e8ef4efce246750e06a9be9676f5':
  Make BlockSuppressalStatus constructor public so that it can be constructed by the provider.
2016-02-19 00:33:39 +00:00
Dianne Hackborn
c0e1a23a26 Merge "Implement lenient background check option." 2016-02-19 00:29:54 +00:00
Abhijith Shastry
0c5a42fc6f Merge "Make BlockSuppressalStatus constructor public so that it can be constructed by the provider." into nyc-dev
am: 5042001350

* commit '5042001350bcc74fc58a77eb1122dc4a64a703df':
  Make BlockSuppressalStatus constructor public so that it can be constructed by the provider.
2016-02-19 00:26:16 +00:00
Abhijith Shastry
5042001350 Merge "Make BlockSuppressalStatus constructor public so that it can be constructed by the provider." into nyc-dev 2016-02-19 00:21:16 +00:00
Abhijith Shastry
a4e836c174 Make BlockSuppressalStatus constructor public so that it can be constructed by the provider.
BUG: 26989170
Change-Id: I9fae7fc03b34b4081c7096eb13fa38737b52efe6
2016-02-18 16:15:58 -08:00
Adam Powell
dbc45f3778 Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev am: 35c8e0fcf2
am: e0967f875e

* commit 'e0967f875ebf080b4231a56e7252905c334fe7dc':
  Fix NPE for Fragment#setUserVisibleHint(true)
2016-02-18 23:58:46 +00:00
Adam Powell
e0967f875e Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev
am: 35c8e0fcf2

* commit '35c8e0fcf2e26f24ac21bb3df87158d4a0f4587f':
  Fix NPE for Fragment#setUserVisibleHint(true)
2016-02-18 23:53:06 +00:00
Adam Powell
35c8e0fcf2 Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev 2016-02-18 23:44:15 +00:00
Yohei Yukawa
ae461a986c Merge "Stop granting default Contacts permission to IMEs." into nyc-dev am: 5eb148bab6
am: 46012e0fde

* commit '46012e0fde4fb6435241ceef5f0bcecea8ea9984':
  Stop granting default Contacts permission to IMEs.
2016-02-18 23:38:33 +00:00
Yohei Yukawa
46012e0fde Merge "Stop granting default Contacts permission to IMEs." into nyc-dev
am: 5eb148bab6

* commit '5eb148bab6ea49c4c646649692ae6769b9c4e54c':
  Stop granting default Contacts permission to IMEs.
2016-02-18 23:31:33 +00:00
Adam Powell
b384bfcb7e Merge "Restore auto-launch behavior for ACTION_CHOOSER with a single choice" into nyc-dev am: cff479e2ee
am: 9ed8767dc1

* commit '9ed8767dc16dc55814f3d753309272267ec9158e':
  Restore auto-launch behavior for ACTION_CHOOSER with a single choice
2016-02-18 23:28:23 +00:00
Adam Powell
9ed8767dc1 Merge "Restore auto-launch behavior for ACTION_CHOOSER with a single choice" into nyc-dev
am: cff479e2ee

* commit 'cff479e2eeaedb42765d2522e8befe7efaa67bd6':
  Restore auto-launch behavior for ACTION_CHOOSER with a single choice
2016-02-18 23:20:22 +00:00
Adam Powell
255b008afe Fix NPE for Fragment#setUserVisibleHint(true)
Fix a bug where calling setUserVisibleHint(true) before adding a
Fragment to a FragmentManager could cause a crash.

Bug 27250018

Change-Id: Id192ae31bab95f15d32de9f105e707bdb8691641
2016-02-18 15:17:29 -08:00
Christopher Tate
a836c545c3 Keyguard wallpaper am: be132e6ea4
am: 15e95000b1

* commit '15e95000b18086fc4f5dd948207a8fa863492852':
  Keyguard wallpaper
2016-02-18 23:16:51 +00:00
Yohei Yukawa
5eb148bab6 Merge "Stop granting default Contacts permission to IMEs." into nyc-dev 2016-02-18 23:16:06 +00:00
Adam Powell
cff479e2ee Merge "Restore auto-launch behavior for ACTION_CHOOSER with a single choice" into nyc-dev 2016-02-18 23:13:39 +00:00
Christopher Tate
15e95000b1 Keyguard wallpaper
am: be132e6ea4

* commit 'be132e6ea494023d4b8c37658a34efa8b705dce9':
  Keyguard wallpaper
2016-02-18 23:10:07 +00:00
Christopher Tate
be132e6ea4 Keyguard wallpaper
Clients can now set a lock-only wallpaper that Keyguard can
observe and choose to draw as appropriate.

Bug 25454162

Change-Id: I3fc30e02919e814b55dfded2a1a36ad9d2e55299
2016-02-18 15:01:02 -08:00
Andreas Gampe
461973b1e2 Merge "Frameworks/base: Use Log.printlns in RuntimeInit" into nyc-dev am: a2cc0c2ca2
am: 730eef4a82

* commit '730eef4a829e0d43facb4dbd6a657917d2716396':
  Frameworks/base: Use Log.printlns in RuntimeInit
2016-02-18 22:49:45 +00:00
Adam Lesinski
d09e35a69b Merge branch \'nyc-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev am: cfd49456ec
am: 1720dd8618

* commit '1720dd86180c27e80fb191ed70be38cbfefc36af':
  Push mapping of package name to appId to kernel.
2016-02-18 22:40:01 +00:00
Andreas Gampe
730eef4a82 Merge "Frameworks/base: Use Log.printlns in RuntimeInit" into nyc-dev
am: a2cc0c2ca2

* commit 'a2cc0c2ca282d9b4b8525df37bdb9e9cb0304abc':
  Frameworks/base: Use Log.printlns in RuntimeInit
2016-02-18 22:36:00 +00:00
Andreas Gampe
a2cc0c2ca2 Merge "Frameworks/base: Use Log.printlns in RuntimeInit" into nyc-dev 2016-02-18 22:26:13 +00:00
Adam Lesinski
1720dd8618 Merge branch \'nyc-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev
am: cfd49456ec

* commit 'cfd49456ecd7af35bc808f0e5a6b0ff6db444c25':
  Push mapping of package name to appId to kernel.
2016-02-18 22:16:33 +00:00
Jeff Sharkey
550b38d85b Merge "Push mapping of package name to appId to kernel." into nyc-dev 2016-02-18 22:07:06 +00:00
Andre Eisenbach
b8294d3b8e Read Bluetooth interop database entries from settings (1/2)
am: 82a94d98e7

* commit '82a94d98e74b6ba0f816c675486a0672d473ecf5':
  Read Bluetooth interop database entries from settings (1/2)
2016-02-18 22:02:08 +00:00
Andreas Gampe
d888beb9bf Frameworks/base: Use Log.printlns in RuntimeInit
Make printlns in Log public-@hide so it can be used.

Print uncaught exceptions that will terminate the process in
RuntimeInit using printlns, so that long exception traces are not
being truncated.

Bug: 27245306
Change-Id: Ib24635f0ebdd80bd125e367302cab6a78e6a210a
2016-02-18 14:01:41 -08:00
Jeff Sharkey
2271ba3627 Push mapping of package name to appId to kernel.
The new sdcardfs kernel driver needs to know this mapping for
deriving UID permissions, so push the data through /config when
supported by the kernel.  This also has the nice benefit of letting
us push only the deltas of what actually changes, instead of
re-parsing the entire "packages.list" file.

The mappings for newly installed apps are pushed before the app is
allowed to run, removing some latent race conditions.  Also cleans
up stale mappings when packages are uninstalled, and whenever the
system server reboots.

Bug: 19160983
Change-Id: Iace92efb69616c96b34c0d9d911e4b54e5fd8a67
2016-02-18 15:01:15 -07:00
Chris Tate
a9520351bb Merge "Add android:backupInForeground" into nyc-dev am: 40d8823dd3
am: eced804d01

* commit 'eced804d011c763728f231c2c64f02de2c945edc':
  Add android:backupInForeground
2016-02-18 21:59:52 +00:00
Chris Tate
eced804d01 Merge "Add android:backupInForeground" into nyc-dev
am: 40d8823dd3

* commit '40d8823dd32a6898198c8680135dea715fbddd51':
  Add android:backupInForeground
2016-02-18 21:52:24 +00:00
Andre Eisenbach
82a94d98e7 Read Bluetooth interop database entries from settings (1/2)
Interop database entries are stored in the system settings entry
"BluetoothInteropDatabase". The format is a list of entries separated by
";". An entry consists of a BDA fragment, followed by a comma and an
integer representing a feature from interop.h.

Example:
To disable LE secure connections for devices starting with BDA 11:22:33,
use "11:22:33,0".

Bug: 26548845
Change-Id: I6a9fd34f6af4d3bdfcaa0e051eafebdfbf2a4949
(cherry picked from commit 3bc623be8d)
2016-02-18 21:51:44 +00:00
Yohei Yukawa
726c45970e Stop granting default Contacts permission to IMEs.
This partially reverts the previous commit [1], which allowed special
components to be granted some pre-configured default permissions.

With this CL, we no longer grant Contacts permissions to pre-installed
IMEs.  Rationals are:

  1. Even without this CL, not the all pre-installed IMEs are granted
     Contacts permission by default, because it was done during the boot
     time where InputMethodManagerService is not yet completely
     initialized.  The current behavior is confusing not only for users
     but also for developers.
  2. In almost all the cases, IMEs are supposed to be able to work
     without Contacts permission.  Hence it is not too late to ask users
     to grant the permission to the IME after the initial setup is
     completed.
  3. It is difficult to add new features such as File-Based Encryption
     (FBE) with keeping the current implementation, because currently we
     dynamically call mSettings.setCurrentUserId(userId) just to
     enumerate what IMEs will be enabled for a given user.  Adding
     another condition (whether the user has already unlocked the device
     or not) would make things more complicated.

Note that LatinIME has already support the case where Contacts
permission is not granted by default.  It does not ask users for
anything until Setup-Wizard is completed, and requests Contacts
permission only when the user taps a message in the suggestion strip
that suggests users to use contacts name for typing suggestions.

 [1] If8b8cadbd1980ffe7a6fc15bbb5f54a425f6e8f9
     adc1cf4604

Bug: 24756974
Bug: 26743676
Change-Id: Ief2a40b5971b3eb97d765f934d20ce7f2ef25665
2016-02-18 13:46:12 -08:00
Chris Tate
40d8823dd3 Merge "Add android:backupInForeground" into nyc-dev 2016-02-18 21:43:28 +00:00
Dianne Hackborn
72bea4a1f0 Implement lenient background check option.
Which really means, make background check much more
strict, with an option to revert to the more lenient
behavior.

In this strict version, an app can't have services
started or receive broadcasts at any point when it is
not foreground.  Also, it doesn't matter the importance
of a caller trying to start a service, it only depends
on the state of the app whose service is being started.

A new activity shell command allows you to control
whether to use the strict or lenient behavior.

Change-Id: I660df480dd55575a38c9542210210ec53e34eca0
2016-02-18 13:42:52 -08:00
Chong Zhang
0eac75f53b Merge "Use background drawable from the client" into nyc-dev
am: 82268228a7

* commit '82268228a7c273a6a1af571427e34c9d1adc7a02':
  Use background drawable from the client
2016-02-18 21:40:43 +00:00
Chong Zhang
d3fd96c208 Use background drawable from the client
And set the drawable's callback to null during drag-resizing, since
we use multi-threaded renderer, will do not want to schedule draws
to the ViewRootImpl's thread.

bug: 26729953
Change-Id: I6e5f94a5a6ba15edc2d391dd11d8fee3c657d337
(cherry picked from commit 1cc95075e8)
2016-02-18 21:20:11 +00:00
Antonio Cansado
c607d1db22 Merge "Implementation of data usage callbacks." into nyc-dev am: 12d7ea815b
am: 7e098af672

* commit '7e098af67280dbc877790486043998b13e83986e':
  Implementation of data usage callbacks.
2016-02-18 21:12:15 +00:00
Antonio Cansado
7e098af672 Merge "Implementation of data usage callbacks." into nyc-dev
am: 12d7ea815b

* commit '12d7ea815b772b1013f9f5a583d296701a702a0c':
  Implementation of data usage callbacks.
2016-02-18 20:53:58 +00:00
Jeff Sharkey
3825dcd754 Merge "Make BackupManager encryption aware." into nyc-dev
am: 003ee19851

* commit '003ee198518490c9572e610ddc21e8b3a024364c':
  Make BackupManager encryption aware.
2016-02-18 20:52:48 +00:00
Christopher Tate
43fbc5f898 Add android:backupInForeground
An app can now declare that it really needs to be backed up
whenever possible even if it is currently engaged in foreground-
equivalent work.  Only applies to full-data backup clients: key/value
backups are not intrusive on normal lifecycle so they can already
happen in such circumstances.

Bug 26790411

Change-Id: Ia0ebcc7a53da888ae9ae4d63cd4bcab6e3a2e866
2016-02-18 20:47:36 +00:00
Adam Powell
f5afdb09a6 Restore auto-launch behavior for ACTION_CHOOSER with a single choice
For the initial release of Marshmallow auto-launching was suppressed
for ChooserActivity if there was only a single choice in order to let
the user confirm what would be launched. In practice, many apps use
ACTION_CHOOSER when they should probably use implicit intents, but
still others have use cases where setting a default doesn't make sense
and the user should still be able to make a choice when one is
available.

As the user confirmation didn't buy much in terms of developer API
expectations (ACTION_CHOOSER being a forced choice) and it adds
speedbumps to existing apps in the ecosystem, revert this change.

Bug 27243827

Change-Id: Id8fd5385d5b1f459e80b0096efe7e2944264739a
2016-02-18 12:43:47 -08:00
Doris Liu
117a29cae7 Merge "Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""" into nyc-dev am: 5b7188aebc
am: e98f28aad1

* commit 'e98f28aad1b1392cb2673b829c64b445e35f3737':
  Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""
2016-02-18 19:48:14 +00:00
Doris Liu
e4ab16ec5b Merge "Revert "Check RenderNode\'s owning view before attaching animators"" into nyc-dev am: b9fb8fdf78
am: c5c59024d1

* commit 'c5c59024d1b79fe365fbdbddd5bf80137a6fadcc':
  Revert "Check RenderNode's owning view before attaching animators"
2016-02-18 19:47:01 +00:00
Antonio Cansado
12d7ea815b Merge "Implementation of data usage callbacks." into nyc-dev 2016-02-18 19:43:42 +00:00