Commit Graph

55628 Commits

Author SHA1 Message Date
Andrei Stingaceanu
cb4634aa72 Merge "Suspend packages - one call for multiple packages" into nyc-dev
am: 3e7bfe98e0

* commit '3e7bfe98e0727f54fe369bfa6b416e1d040830a7':
  Suspend packages - one call for multiple packages
2016-02-17 15:23:54 +00:00
Andrei Stingaceanu
3e7bfe98e0 Merge "Suspend packages - one call for multiple packages" into nyc-dev 2016-02-17 15:17:35 +00:00
Andrei Stingaceanu
eb84b1843a Suspend packages - one call for multiple packages
Refactor setPackageSuspended into setPackagesSuspended. The rationale
is that the consumers of this API are likely to want to remove
multiple packages at once. Rather than calling the API N times, call
it just once.

The good part is that we already have the broadcast intent for
suspended packages take an array so only one broadcast. Less stress
on the system.

Another good part is that (right now) we only have one consumer of
this API and it will be easy to make changes once this CL goes in.

As a shell command, for consistency only allowed one package at
a time.

Bug: 22776761
Change-Id: Ic8b8cf64d0a288ea3a282bb7b72f9d663b3b0049
2016-02-17 15:14:33 +00:00
Sergey Poromov
05878e0b06 Merge "Fix BackupTransport#getBackupQuota() javadoc." into nyc-dev
am: af11ff0c03

* commit 'af11ff0c03a774324726ade96ef162dbe9f279f4':
  Fix BackupTransport#getBackupQuota() javadoc.
2016-02-17 13:51:20 +00:00
Sergey Poromov
af11ff0c03 Merge "Fix BackupTransport#getBackupQuota() javadoc." into nyc-dev 2016-02-17 13:46:23 +00:00
Andrei Stingaceanu
d09548d408 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev
am: 5ae4e73ef0

* commit '5ae4e73ef0747c2d08a901f1a76d8fb8ee64a53a':
  Suspend packages - new API for retrieving the suspended status
2016-02-17 12:03:16 +00:00
Andrei Stingaceanu
5ae4e73ef0 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev 2016-02-17 11:57:51 +00:00
Tomasz Mikolajewski
d0c2533b5c Merge "Implement getDocumentStreamTypes() in DocumentsProvider." into nyc-dev
am: 804d648138

* commit '804d648138212a00bb260291e39fde0b327df709':
  Implement getDocumentStreamTypes() in DocumentsProvider.
2016-02-17 11:41:04 +00:00
Tomasz Mikolajewski
804d648138 Merge "Implement getDocumentStreamTypes() in DocumentsProvider." into nyc-dev 2016-02-17 11:34:12 +00:00
Tomasz Mikolajewski
ae65936e8f Merge "Remove unused return in DocumentsProvider.removeDocument." into nyc-dev
am: 36aafd5086

* commit '36aafd5086dbd2e604419a0e02a9c7f292f092cd':
  Remove unused return in DocumentsProvider.removeDocument.
2016-02-17 07:05:54 +00:00
Tomasz Mikolajewski
36aafd5086 Merge "Remove unused return in DocumentsProvider.removeDocument." into nyc-dev 2016-02-17 07:02:55 +00:00
Seigo Nonaka
ab421cab7a Merge "Improve backspace for emoji and variation sequences." into nyc-dev
am: 3c6e30818d

* commit '3c6e30818d5927aace44331c70020e42ce8f5bf2':
  Improve backspace for emoji and variation sequences.
2016-02-17 06:46:26 +00:00
Seigo Nonaka
3c6e30818d Merge "Improve backspace for emoji and variation sequences." into nyc-dev 2016-02-17 06:42:14 +00:00
Seigo Nonaka
ff3bfd5a79 Improve backspace for emoji and variation sequences.
This CL makes backspace handling aware of variation selector, combining
enclosing keycaps, zero width joiner, regional indicator symbols and
emoji modifiers.

BUG: 25737208

Change-Id: I740578bfee955cc623e2831778e5b7ec4b8cb627
2016-02-17 15:29:52 +09:00
Jorim Jaggi
ec8506212c Fix recents transitions
am: 8a5c64062f

* commit '8a5c64062f78b96c05638171a78331a2f8d422b5':
  Fix recents transitions
2016-02-17 06:23:20 +00:00
Jorim Jaggi
8a5c64062f Fix recents transitions
- Also animate when there is no thumbnail, which can frequently
happen after exiting multi-window.
- Also animate when the target stack id is INVALID, because we
currently don't persist stack id's in the tasks.

Change-Id: I280c85e62f55d712408a3e77c43f665acb19bc4c
2016-02-17 06:17:48 +00:00
Doris Liu
e3358edaf1 Merge "Check RenderNode\'s owning view before attaching animators" into nyc-dev
am: e6e57a9d51

* commit 'e6e57a9d5175b6e5c874317b232652f481b6f4a4':
  Check RenderNode's owning view before attaching animators
2016-02-17 00:16:51 +00:00
Doris Liu
f6cd90c75a Merge "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""" into nyc-dev
am: 5b49c6f31b

* commit '5b49c6f31bce6b5ac250178ce004c21d50a48819':
  Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""
2016-02-17 00:07:06 +00:00
Keisuke Kuroyanagi
e2a7ad6d5e Merge "Make scrollbar draggable only when it\'s visible." into nyc-dev
am: f19e3434f8

* commit 'f19e3434f80977d6f8313a2057bca161c4f777c5':
  Make scrollbar draggable only when it's visible.
2016-02-16 23:57:49 +00:00
Doris Liu
e6e57a9d51 Merge "Check RenderNode's owning view before attaching animators" into nyc-dev 2016-02-16 23:38:57 +00:00
Doris Liu
5b49c6f31b Merge "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""" into nyc-dev 2016-02-16 23:38:43 +00:00
Keisuke Kuroyanagi
f19e3434f8 Merge "Make scrollbar draggable only when it's visible." into nyc-dev 2016-02-16 23:26:32 +00:00
Siyamed Sinir
597062a34b Merge "Ellipsized and Non-ellipsized baselines should be same." into nyc-dev
am: afe3cd1aaf

* commit 'afe3cd1aaf71e01b78097be57bf5a2aae266be07':
  Ellipsized and Non-ellipsized baselines should be same.
2016-02-16 22:45:28 +00:00
Siyamed Sinir
afe3cd1aaf Merge "Ellipsized and Non-ellipsized baselines should be same." into nyc-dev 2016-02-16 22:37:54 +00:00
Wale Ogunwale
b6fa9e82ab Merge changes from topic \'flaky-test\' into nyc-dev
am: 5a21494d6e

* commit '5a21494d6eafce44adc95e1bf2a67658fa752196':
  Fixed issue with losing window name when copying WindowManager.LayoutParams
  Added AM API to remove a stack
  Don't resume activity on start if there are activities pausing.
2016-02-16 22:37:41 +00:00
Wale Ogunwale
5a21494d6e Merge changes from topic 'flaky-test' into nyc-dev
* changes:
  Fixed issue with losing window name when copying WindowManager.LayoutParams
  Added AM API to remove a stack
  Don't resume activity on start if there are activities pausing.
2016-02-16 22:32:23 +00:00
Selim Gurun
daa08de37f Merge "Better document the ignore behavior for client cert api" into nyc-dev
am: e542c490e1

* commit 'e542c490e1072cf02f9ae890faea079dea4e030e':
  Better document the ignore behavior for client cert api
2016-02-16 22:29:58 +00:00
Doris Liu
12abdeb3c7 Check RenderNode's owning view before attaching animators
-Only add animators to a RenderNode when its owning view is attached
-When changing animator's target RenderNode, remove the animator from
 the old target RenderNode that it's currently running on, if any.
Bug: 27141983
Bug: 27145149
Change-Id: I9c9592382d64ecc0390f7ec743a59ce1ad7d9798
2016-02-16 14:25:48 -08:00
Selim Gurun
e542c490e1 Merge "Better document the ignore behavior for client cert api" into nyc-dev 2016-02-16 22:17:42 +00:00
George Mount
eab074ac05 Merge "Fix TransitionSet javadoc to use transitionOrdering attribute." into nyc-dev
am: c47738d8c2

* commit 'c47738d8c22ae09cd93096888def0cf33f39d285':
  Fix TransitionSet javadoc to use transitionOrdering attribute.
2016-02-16 21:53:49 +00:00
George Mount
eb0dee95d9 Merge "Don\'t use forceVisibility for Activity Transitions." into nyc-dev
am: d6505566a9

* commit 'd6505566a9bc606e84619a7b7a801557e795f1df':
  Don't use forceVisibility for Activity Transitions.
2016-02-16 21:52:38 +00:00
George Mount
c47738d8c2 Merge "Fix TransitionSet javadoc to use transitionOrdering attribute." into nyc-dev 2016-02-16 21:38:02 +00:00
George Mount
d6505566a9 Merge "Don't use forceVisibility for Activity Transitions." into nyc-dev 2016-02-16 21:37:39 +00:00
Selim Gurun
977d943494 Better document the ignore behavior for client cert api
Bug: 26361557

When the embedded app requests a ignore of a client cert request,
webview does not cache the response of the app. However, underlying
layers could. Clarify the document.

Change-Id: I43e6a4c91727f71c88ca69e1334f64de9f66905a
2016-02-16 12:30:08 -08:00
Wale Ogunwale
b6e2eaddfc Fixed issue with losing window name when copying WindowManager.LayoutParams
It is possible for the WindowManager.LayoutParams set from a view/window on
the client side not to have the LayoutParams.mTitle set. This is normally
not an issue as we later set it to the package name before passing the
LayoutParams to window manager. However, we rely on the full window name
in order to identify unique windows during CTS hostside tests. We now
retain the current LayoutParams.mTitle if the LayoutParams we are copying
form didn't set one.

Bug: 26982752
Change-Id: Icc3c5937391ed1646c3777921c6f61c27ebec05d
2016-02-16 10:10:09 -08:00
Wale Ogunwale
06e8ee0c8a Added AM API to remove a stack
Use the new API when closing Pip.

Bug: 26982752
Change-Id: I074d23b5535a4534626183ab77142d3932a803f0
2016-02-16 10:09:51 -08:00
Wale Ogunwale
933b668859 Merge "Force resize pre-N apps that don\'t have fixed orientation." into nyc-dev
am: b305e16051

* commit 'b305e16051192540e2e19863d4c3c0fb3e980db2':
  Force resize pre-N apps that don't have fixed orientation.
2016-02-16 18:00:24 +00:00
Wale Ogunwale
b305e16051 Merge "Force resize pre-N apps that don't have fixed orientation." into nyc-dev 2016-02-16 17:54:33 +00:00
Sergey Poromov
1760fe3f95 Fix BackupTransport#getBackupQuota() javadoc.
Change-Id: Ifff3329c618dabd2e73011439a2ddce2f0eeabf6
2016-02-16 18:04:35 +01:00
George Mount
a096e57ef5 Merge "Null check for fade start alpha value." into nyc-dev
am: 21eb4e2684

* commit '21eb4e2684e8490deedab002dd2b867b6d35147a':
  Null check for fade start alpha value.
2016-02-16 15:26:51 +00:00
George Mount
21eb4e2684 Merge "Null check for fade start alpha value." into nyc-dev 2016-02-16 15:20:43 +00:00
Andrei Stingaceanu
355b232d79 Suspend packages - new API for retrieving the suspended status
Instead of always rebuilding the full ApplicationInfo for a
package when callers are only interested in the suspended status
add a new fast API in Packagemanager (which only checks the
suspended user setting for the requested package and returns
a boolean) and change the appropriate caller code too.

Bug: 26794775
Bug: 22776761
Change-Id: Ide8428ef734479360d5a8a75fd8e0ed8ddf2da7a
2016-02-16 14:57:29 +00:00
Wale Ogunwale
508ff55e8c Force resize pre-N apps that don't have fixed orientation.
We were previously only doing it for SCREEN_ORIENTATION_UNSPECIFIED,
but there are other orientation settings that aren't fixed that we
need to handle.

Change-Id: If21fcd8312b6267407d94b6646158ac6eae44b44
2016-02-15 19:31:50 -08:00
Jeff Sharkey
1cac868cb2 Merge "Add path cache to avoid SharedPreferences jank." into nyc-dev
am: 3104a9ffd6

* commit '3104a9ffd61ed04946a405e0fc78e3904366e35e':
  Add path cache to avoid SharedPreferences jank.
2016-02-16 01:49:28 +00:00
Jeff Sharkey
3104a9ffd6 Merge "Add path cache to avoid SharedPreferences jank." into nyc-dev 2016-02-16 01:38:05 +00:00
Jeff Sharkey
be78258e55 Add path cache to avoid SharedPreferences jank.
The old getSharedPreferences() API had a side-effect behavior that
subsequent calls wouldn't touch disk if there was a cache hit.  Now
that we're using File as the cache key, we were generating the path
every time, which resulted in touching disk.

To bring back the old behavior, let's add yet another cache!

Bug: 26979210
Change-Id: Ib8346c6f69ae25f8f164e3b7e05bc6358de38906
2016-02-15 18:36:01 -07:00
Jeff Sharkey
c0681ba3c7 Merge "Add feature versions for devices and apps." into nyc-dev
am: 9c6d9753a0

* commit '9c6d9753a0f1651c639fe8158b86a1f7ffc3f60a':
  Add feature versions for devices and apps.
2016-02-16 00:53:15 +00:00
Jeff Sharkey
9c6d9753a0 Merge "Add feature versions for devices and apps." into nyc-dev 2016-02-16 00:47:49 +00:00
Jeff Sharkey
115d2c189a Add feature versions for devices and apps.
We're starting to see more instances of device features that will
increment separately from the SDK API level, such as camera HAL,
GPU capabilities, Bluetooth, and other hardware standards.

This change adds the ability for device features to specify a
version, which is defined to be backwards compatible.  That is, apps
requesting an older version of a feature must continue working on
devices with a newer version of that same feature.

When a version is undefined, we assume the default version "0".

Bug: 27162500
Change-Id: If890bf3f3dbb715e8feb80e7059a0d65618482ea
2016-02-15 17:45:42 -07:00
Jeff Sharkey
1dd0b14f1d Explicitly chmod() for compatibility.
am: 46ed6f4bd6

* commit '46ed6f4bd6d28a1319a90eb7c58dca5c20b36670':
  Explicitly chmod() for compatibility.
2016-02-15 21:27:06 +00:00