Commit Graph

55491 Commits

Author SHA1 Message Date
Julia Reynolds
bf7cf7e19f Merge "Allow apps to know what users think of their notifications." into nyc-dev am: 146d931ece
am: 9ad07f5c6e

* commit '9ad07f5c6eccc2ae46de2660af29c50cd2148a54':
  Allow apps to know what users think of their notifications.
2016-02-10 14:17:44 +00:00
Julia Reynolds
9ad07f5c6e Merge "Allow apps to know what users think of their notifications." into nyc-dev
am: 146d931ece

* commit '146d931ece7fc273311c049067742bab40a9999a':
  Allow apps to know what users think of their notifications.
2016-02-10 14:14:44 +00:00
Julia Reynolds
146d931ece Merge "Allow apps to know what users think of their notifications." into nyc-dev 2016-02-10 14:10:24 +00:00
Elliott Hughes
b79064bd0a Merge "The NDK samples moved a while back." am: 9653790de2
am: 1ac526df67

* commit '1ac526df67af568f47dd1bfa767928c0d268b6cb':
  The NDK samples moved a while back.
2016-02-10 09:22:13 +00:00
Svetoslav Ganov
1bd77c440c Merge "Add an API to query the package name of the services shared lib" into nyc-dev am: e0feadcaac
am: 43e8c55e0f

* commit '43e8c55e0f0d394112517619e376a94ab955f001':
  Add an API to query the package name of the services shared lib
2016-02-10 09:20:04 +00:00
Elliott Hughes
1ac526df67 Merge "The NDK samples moved a while back."
am: 9653790de2

* commit '9653790de25dfa77076701c3c2932ea93b7f9968':
  The NDK samples moved a while back.
2016-02-10 04:50:01 +00:00
Svetoslav Ganov
e0feadcaac Merge "Add an API to query the package name of the services shared lib" into nyc-dev 2016-02-10 03:00:09 +00:00
Svet Ganov
d7b1f41109 Add an API to query the package name of the services shared lib
The servcies shared lib contains components apps can invoke such
as services to bind to, activities to start, UI choosers, etc.
This lib is built from AOSP code but an OEM may chage its
package name. For example, Google renames the package names for
GMS apps from android.foo.bar to com.google.android.foo.bar.
While we have more than one shared lib that are a part of the
platform (currently shared and services libs) the serivces lib
is the only one clients need to start components in, thus need
to know its package name. This change adds an API to query the
package name of the services shared lib. The API is hidden as
currently the only clients are a part of the system.

Change-Id: Ied48fa4819024522791764b22b3336d4f4b42cc3
2016-02-09 18:49:27 -08:00
Wale Ogunwale
290c142203 Merge "Reduce jank during pinned stack animation" into nyc-dev am: 0489c1459e
am: 7be50af83c

* commit '7be50af83c0c5b6feb6de31695be322908fe9c3d':
  Reduce jank during pinned stack animation
2016-02-10 00:29:31 +00:00
Elliott Hughes
3edfa8f67b The NDK samples moved a while back.
Change-Id: I10f419b0ad58f9c5417a3f06775e298c74f284dc
2016-02-09 16:12:02 -08:00
Wale Ogunwale
0489c1459e Merge "Reduce jank during pinned stack animation" into nyc-dev 2016-02-10 00:11:11 +00:00
Jeff Sharkey
8003c3d02e Merge "More encryption-aware triaging." into nyc-dev am: 950b30426e
am: 0b0f03a128

* commit '0b0f03a12805f4d936e8d26b267dd6dc7e137bb8':
  More encryption-aware triaging.
2016-02-09 23:32:10 +00:00
Shawn Willden
b8aa1b4704 Merge "Add attestation API to Android KeyStore." into nyc-dev am: ea46bb2cbf
am: 14db164e0c

* commit '14db164e0c9258b2f8d0e46fae4665e91d495c3a':
  Add attestation API to Android KeyStore.
2016-02-09 23:30:23 +00:00
Jeff Sharkey
950b30426e Merge "More encryption-aware triaging." into nyc-dev 2016-02-09 23:00:55 +00:00
Shawn Willden
ea46bb2cbf Merge "Add attestation API to Android KeyStore." into nyc-dev 2016-02-09 22:57:24 +00:00
Jeff Sharkey
c7bacab20f More encryption-aware triaging.
Most of these callers are okay having results omitted when a package
is uninstalled or encryption unaware.  For example, jobs and
notifications can only be enqueued by already running apps.

When clearing zen rules, keep around rules inserted by apps on
ejected external storage devices.

Make ServiceWatcher stricter by requiring that the matching package
be in the system image.

Bug: 26471205, 27105254
Change-Id: Ie41ea8042ac1a54e9cbe0c35cec89e70521e9bed
2016-02-09 15:56:13 -07:00
Yohei Yukawa
7baeceb966 Merge "Make InputMethodInfo#isEncryptionAware() strict." into nyc-dev am: ae8e090004
am: 7f2bfe20e1

* commit '7f2bfe20e17751b8e9e1169c943d53c65949760a':
  Make InputMethodInfo#isEncryptionAware() strict.
2016-02-09 22:50:41 +00:00
Yohei Yukawa
b128427289 Merge changes Icf921fe3,Ie1a8ee22 into nyc-dev am: 2ba26dd87c
am: 3b656f7a82

* commit '3b656f7a821f4ff4b3d882954a4fdba91b491acc':
  Add a utility method to InputMethodInfo for FBE.
  Fix style issues in InputMethodInfo.java.
2016-02-09 22:44:07 +00:00
Andres Morales
7e8da9ca19 Merge "updates to FrameStatsObserver API" into nyc-dev am: 7364905303
am: 3d5a7e408a

* commit '3d5a7e408a1421bee144c87c832a7ac1b0fdc9ab':
  updates to FrameStatsObserver API
2016-02-09 22:36:15 +00:00
Selim Gurun
692c3a9203 Fix build break am: 75827b2fb6
am: ce10f2098b

* commit 'ce10f2098b33e61234f2fa61deb97b0dd013f6a6':
  Fix build break
2016-02-09 22:35:12 +00:00
Selim Gurun
2254773e76 Merge "Introduce a use32bitAbi flag" into nyc-dev am: 8b67c1697e
am: 6e6470cea0

* commit '6e6470cea0f87f7843d79be8300399c49e270996':
  Introduce a use32bitAbi flag
2016-02-09 22:33:03 +00:00
Yohei Yukawa
37db07216e Make InputMethodInfo#isEncryptionAware() strict.
This is a follow up CL to the previous CL [1], which unintentionally
relied on whether the entire application rather than the
InputMethodService is marked to be encryption-aware.  This wasn't
obvious because right now LatinIME is entirely marked to be
encryption-aware, which probably needs to be reconsidered in subsequent
CLs.

This CL drops "encryptionAware" line from InputMethodInfo#dump() as it
is redundant.  The same information is already dumped in the
'ServiceInfo' section.

 [1] Icf921fe3661eccf4a589b08b616d05decc561356
     69811a98f1

Bug: 26279466
Change-Id: I6cea5fe5731f4a6a64ea722b854b99c5154a15ae
2016-02-09 13:39:50 -08:00
Wale Ogunwale
480dca0d1b Reduce jank during pinned stack animation
- Don’t launch Pip overlay activities during pinned stack animation.
This causes extra CPU load and takes a way resources from the running
animation.
- Finish Pip overlay activities before starting pinned stack resize
animation. Reduces the amount of work the system needs to do to keep
the overlays in-sync with the other activities in the pinned stack.
- Use AM.resizeStack with null bounds to take Pip to fullscreen so that
we can animate the bounds changed.
- Also, fixed Activity.enterPictureInPicture API to animate the transition
if Pip is entered from the app instead of Pip manager.

Bug: 25672053
Change-Id: I82399c10f1b8c675ea3861ba973dc8ecfbfbe50f
2016-02-09 12:48:11 -08:00
Julia Reynolds
81afbcdbf9 Allow apps to know what users think of their notifications.
- App wide blocking
- Topic importance

Change-Id: I9026e5c26c5dbcab1c86c385beede891f961933f
2016-02-09 14:54:08 -05:00
Yohei Yukawa
2ba26dd87c Merge changes Icf921fe3,Ie1a8ee22 into nyc-dev
* changes:
  Add a utility method to InputMethodInfo for FBE.
  Fix style issues in InputMethodInfo.java.
2016-02-09 19:49:20 +00:00
Andres Morales
7364905303 Merge "updates to FrameStatsObserver API" into nyc-dev 2016-02-09 19:00:32 +00:00
Selim Gurun
75827b2fb6 Fix build break
Bug: 26874366
Change-Id: Ic7634cb9d823d4f74d2893f4c46a77a5af02a0a1
2016-02-09 10:55:33 -08:00
Andres Morales
910beb8f5d updates to FrameStatsObserver API
- Rename to FrameMetrics to avoid collision with existing
  android.view.FrameStats class
- Make FrameMetricsObserver implementation detail,
  exposing FrameMetricsListener interface as public API
  and wrapping in FrameStatsObserver to maintain state
- Remove dropped frame count call, in favor of passing as
  parameter to callback method.
- Move away from raw timestamp access in favor of Metric IDs
  which represent higher-level, more stable stages in a frame
  lifecycle and match the categories exposed in the onscreen
  bars.
- Support many-to-many Window<->FrameMetricsListener relationship

Change-Id: I00e741d664d4c868b1b6d0131a23f8316bd8c5c2
2016-02-09 10:40:01 -08:00
Selim Gurun
2d291d89f9 Introduce a use32bitAbi flag
Bug: 26874366

On Multiarch apps, it might be necessary to prioritize 32bit Abi ahead
of 64bit ones. The use32bitAbi flag enables this.

This CL also reverts the public api changes in  I2c1fd1d036efe72b28b5fe996416df69a583959f and Ie3ecea6d84e2cb1522e736a21c3a3a24ac62eb27. Previously
the same functionality was provided using a raw abi string that
utilized cpuabioverride flag.

Change-Id: Idce3cbfedd11ef9079ce8a2901e69d30b1cf9ef4
2016-02-09 10:20:21 -08:00
Phil Weaver
cc494765fa Merge "Clean up UiAutomation working alongside a11y." into nyc-dev 2016-02-09 16:59:26 +00:00
Yohei Yukawa
69811a98f1 Add a utility method to InputMethodInfo for FBE.
This is another preparation for Bug 26279466.  Whether an input method
is marked to be encryption-aware or not would become the thing here and
there in the Framework code.  Having a utility method and debug info
in dumpsys should make our lives easier.

Bug: 26279466
Change-Id: Icf921fe3661eccf4a589b08b616d05decc561356
2016-02-09 01:10:27 -08:00
Yohei Yukawa
285765014f Fix style issues in InputMethodInfo.java.
This has nothing to do with Bug 26279466 but might be something nice to
fix just as a preparation.

Bug: 26279466
Change-Id: Ie1a8ee2248081a70728c29e52c657b3a0ed919b1
2016-02-09 01:10:17 -08:00
Jorim Jaggi
8d2b92f112 Merge "Put dismiss end target at navigation bar" into nyc-dev am: 93f04f8920
am: 8629333b9c

* commit '8629333b9c1fe90459120357421b831c8bf761bf':
  Put dismiss end target at navigation bar
2016-02-09 02:12:27 +00:00
Jorim Jaggi
93f04f8920 Merge "Put dismiss end target at navigation bar" into nyc-dev 2016-02-09 01:56:23 +00:00
Jorim Jaggi
81ba11eccb Put dismiss end target at navigation bar
This makes the animation when exiting docked mode a bit nicer
when you fling the divider towards to the navigation bar. However,
since the divider ends at the navigation bar, we need to immediately
dismiss it instead of fading out when the divider is fully occluded
by the navigation bar.

Change-Id: Ic5432fd118cb71be36485667b2c537caf5065ce5
2016-02-08 16:54:55 -08:00
Phil Weaver
78d2e2ddf0 Clean up accessibility gestures.
Closing two small holes in the implementation:
1. The gesture was dispatched before the callback was registered. It
was possible for gestures that failed quickly to fail to report any
status.
2. Gestures could be dispatched before the input filter was
installed. Adding a wait to give the filter a chance to install
before reporting a failure.

Also removing an unused method on the input filter.

Change-Id: I77cd80dcd2cec6c72b3761169aba5eaecf62250b
(cherry picked from commit 03465fb874)
2016-02-09 00:51:18 +00:00
Phil Weaver
156618c991 Merge "Clean up accessibility gestures." 2016-02-09 00:51:06 +00:00
Phil Weaver
f564afa4cd Clean up UiAutomation working alongside a11y.
Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
(cherry picked from commit 846522cea0)
2016-02-09 00:08:59 +00:00
Phil Weaver
8333cfec7a Merge "Clean up UiAutomation working alongside a11y." 2016-02-09 00:08:36 +00:00
Svetoslav Ganov
9137079ca2 Merge "Multi packages per APK" into nyc-dev am: f2971c45df
am: 9ebeee829c

* commit '9ebeee829cba860e5106407963be479085e6789d':
  Multi packages per APK
2016-02-09 00:04:34 +00:00
Siyamed Sinir
8664c051fc Merge "Clamp EditText cursor in the drawable boundaries." into nyc-dev am: f4aa7d2e8a
am: c1a79aebc2

* commit 'c1a79aebc2378c49b878d561131d895dd471efc8':
  Clamp EditText cursor in the drawable boundaries.
2016-02-09 00:03:00 +00:00
John Reck
e5957279d1 Merge "Fix drawing cache on sw drawing" into nyc-dev am: 8f81637a87
am: 167c5b76be

* commit '167c5b76be038fba621eca65e8c3e81af16ecb0f':
  Fix drawing cache on sw drawing
2016-02-08 23:22:17 +00:00
Svetoslav Ganov
f2971c45df Merge "Multi packages per APK" into nyc-dev 2016-02-08 23:20:51 +00:00
Siyamed Sinir
f4aa7d2e8a Merge "Clamp EditText cursor in the drawable boundaries." into nyc-dev 2016-02-08 23:16:49 +00:00
Svet Ganov
354cd3ce22 Multi packages per APK
This change introduces the ability to have multiple packages per
APK. The feature is currently restricted to privileged apps and
updates to such apps.

In essence the manifest can have multiple child package declarations.
A child package can declare everything an Android package can except
some tags or attributes that are not applicable and instead inherited
from the parent when needed. For example, the target SDK of the parent
applies to all children.

A child package can be updated only through the parent package.
A package with multiple child packages is installed, uninstalled
atomically - no partial installs where some child packages are not
installed.

The remaining work is to ensure broadcasts are also sent for child
packages. This will come in a subsequent change.

Sample app:ag/848432

Design doc: https://docs.google.com/document/d/18nFWtJuZchLxrHf5SBbJW03-Ky9Rh_G0-OVB14b6u78

Change-Id: I6fd021d981bf5786290e0c53502724a14c97358c
2016-02-08 15:14:07 -08:00
Tao Bao
1c8f646c2d Merge "Add system APIs for A/B update." into nyc-dev am: 6af1d75a0c
am: bfc03b7a93

* commit 'bfc03b7a93a26ed26fcc0516436e383b0106175e':
  Add system APIs for A/B update.
2016-02-08 22:59:28 +00:00
Paul Crowley
760f2686ed Merge "Password security for FBE disk encryption keys" into nyc-dev am: 23b588c7b3
am: d386008899

* commit 'd386008899ff359a0e8cea629523d6bf305896b9':
  Password security for FBE disk encryption keys
2016-02-08 22:53:02 +00:00
Siyamed Sinir
087d7b7c9c Merge "Do not save TextView text when freezesText is false" into nyc-dev 2016-02-08 22:51:33 +00:00
John Reck
8f81637a87 Merge "Fix drawing cache on sw drawing" into nyc-dev 2016-02-08 22:46:09 +00:00
Siyamed Sinir
217c0f71df Clamp EditText cursor in the drawable boundaries.
EditText tried to draw outside of the padding boundaries because of a
cursor positioning issue in RTL. This CL removes that fix and instead
clamps the cursor position if cursor is outside of the clipped view
boundary.

Bug: 23397961
Change-Id: Id5f1fbe2a0f571100c89b21758fbb81b14d5da57
2016-02-08 22:41:26 +00:00