232938 Commits

Author SHA1 Message Date
Jeff Tinker
f35b991438 Merge "Add mediadrm service" into nyc-dev 2016-02-13 08:08:32 +00:00
Adam Lesinski
4c44359d91 Fix up some small resource issues
- the "save" string is a duplicate, and is overriden by the next definition below it.
  Due to the way AAPT handles overlays, this was accepted.
- the style attribute should not start with '@'.
- the 'raw' type is reserved for file references. Values should not be 'raw'.

Change-Id: Id611d5915207ce624d7a743b5d79bbb1258d3d51
2016-02-12 23:51:28 -08:00
Joe Onorato
b5b85fc397 Merge "Fix the text so it's visible with current themes." into nyc-dev 2016-02-13 07:49:38 +00:00
Joe Onorato
68723c571e Fix the text so it's visible with current themes.
Change-Id: Ia3f962a8a46ea05465476961de2d297cf08c75b4
2016-02-12 23:41:45 -08:00
Adam Lesinski
5f7c461be6 AAPT2: Fix source output when error occurs in style
We were serializing the wrong Source when writing to protobuf

Change-Id: Ib65e962ebc1244ddf4af0e5666aaaebe5f7864a8
2016-02-12 23:38:08 -08:00
Adam Lesinski
923e6342fb Merge "AAPT2: Introduce notion of 'product' to ResourceTable" into nyc-dev 2016-02-13 06:28:06 +00:00
Adam Lesinski
e4bb9eb5af AAPT2: Introduce notion of 'product' to ResourceTable
This allows us to preserve the various product definitions during the compile
phase, and allows us to select the product in the link phase.

This allows compiled files to remain product-independent, so that they do not need
to be recompiled when switching targets.

Bug:25958912
Change-Id: Iaa7eed25c834b67a39cdc9be43613e8b5ab6cdd7
2016-02-12 22:21:48 -08:00
Jeff Tinker
dc614f86a5 Add mediadrm service
Part of media security hardening

This is an intermediate step toward moving
mediadrm to a new service separate from mediaserver.
This first step allows mediadrmservice to run based
on the system property media.mediadrmservice.enable
so it can be selectively enabled on devices that
support using native_handles for secure buffers.

bug: 22990512
Change-Id: I9af073d8383f25657938d07be90c21c0dc6126b7
2016-02-12 20:23:45 -08:00
Svet Ganov
f4ff39c92b Multi packages per APK - broadcasts
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.

This change ensures that we send package broadcasts for child packages
when they are updated, removed, disabled, replaced, etc.

Sample app:ag/848432

Change-Id: I25b29c98152dcad9ede4d4eb040cc897b7f93426
2016-02-12 20:20:29 -08:00
Doris Liu
0d20a275a5 Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""
This reverts commit e03ef25a3e44ef5d495e366c30b9b5b69fc58194.

Change-Id: I9c2e1c891667451a3ee668e414bf337ad67279ab
2016-02-12 19:49:29 -08:00
Yohei Yukawa
8752367042 Have unified setter/getter for Secure Settings.
In order to make InputMethodManagerService encryption-aware, we are
going to introduce a new state where any read/write access to Secure
Settings from IMMS is virtualized so that we can temporarily enable
only encryption-aware IMEs until the user unlocks the device then revert
any changes made before the device enters into an unlocked state.

To do that, it would be convenient if InputMethodUtils has unified
getter/setter methods to access (Secure) settings.  In subsequent CLs we
will rely on those getter/setter methods to switch between the on-memory
data store and the actual Secure Settings.  Note that because of
multi-user support such a switch can occur multiple times.

This is still a preparation code.  Behavior change is not intended yet
in this CL.

Bug: 26279466
Change-Id: I0f79243e5cc1556764da37fa38078e075a27d42b
2016-02-12 19:37:08 -08:00
Yohei Yukawa
94e3330e63 Remove redundant arguments.
The "list" and "map" arguments of IMMS#buildInputMethodListLocked() are
nothing more than synonyms of IMMS#mMethodList and IMMS#mMethodMap,
respectively.  There is no reason to pass them as parameters.  We can
access them directly as we have done there for other member fields.

This is kind of a mechanical refactoring.  No behavior change is
intended.

Bug: 26279466
Change-Id: Ia27e19f9358ba33abbb1e5a27cebe7c9953c998f
2016-02-12 19:37:03 -08:00
Yohei Yukawa
d34e1486ee Use Context#getSystemService(Class<T>) in IMMS.
This is a mechanical replacement of
  Object Context#getSystemService(String)
with
  T Context#getSystemService(Class<T>)
in InputMethodManagerService.java.

No behavior change is intended.

Bug: 26279466
Change-Id: Iec6b89f0367140f98d3ca4caa1dae7375e27f3ad
2016-02-12 19:36:50 -08:00
Siyamed Sinir
715589fb46 Ellipsized and Non-ellipsized baselines should be same.
This CL make sure that ellipsized and non-ellipsized text have the
same baseline.
- TextView did not set the maxLines for StaticLayout when ellipsized
is false. This resulted in height and baseline calculation
discrepancies between ellipsized and non-ellipsized TextViews using
StaticLayout.
- For single line TextViews when a text is not ellipsized
BoringLayout is used, and when text is ellipsized StaticLayout is
used. Because of the bottom padding added to the last line of
StaticLayout, those two did not have the same baseline.

Bug: 18864800
Change-Id: I5dbc48a6c7f0f4ac4c693d5c95f0a99b989e07f4
2016-02-12 18:23:37 -08:00
Amith Yamasani
dbb75248b1 Fix missing observer reply callbacks
This was causing upto 2 seconds in user switching delay.

Bug: 25813588
Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
2016-02-12 18:13:00 -08:00
Vladislav Kaznacheev
477243b058 Merge "Update pointer icon when View.setPointerIcon is called" into nyc-dev 2016-02-13 02:03:28 +00:00
Winson
680888123d Minor tweaks
- Initializing to focused state when going into Recents
- Dimming the front-most tasks to highlight the focused task
- Fixing wrong call to resize in the LruCache

Change-Id: I41833a9dc59a9bdf4a94b698e4800c1019bceb01
2016-02-12 17:07:14 -08:00
Winson
14e15b2ca1 Adjusting the tuner flags to allow disabling fast toggle.
Change-Id: I0da29479c075a41ddb49e9852eb912604efa9aa8
2016-02-12 17:07:14 -08:00
Winson
1bcf3c4742 Moving dim calculation into the stack layout.
- This simplifies code and also prepares the code for dimming certain
  tasks when focused.
- Ensuring that cancelling transitions will completely remove all 
  listeners in a given animation.

Change-Id: I77050d94097f9af404250c287522d83c146cfb25
2016-02-12 17:07:14 -08:00
Aga Wronska
c4524a97c4 Merge "Fix Rename Document tests" into nyc-dev 2016-02-13 00:57:24 +00:00
Vladislav Kaznacheev
989b58a633 Update pointer icon when View.setPointerIcon is called
Currently the updated pointer icon is only displayed after
the next mouse move.

Bug:27107871
Change-Id: Ieed57b07fe44699735179cf57968a9bb08981396
2016-02-12 16:55:53 -08:00
Aga Wronska
5784996fdc Fix Rename Document tests
Bug:27109148
Change-Id: I489b2bd25f92ebc2b9b84d9cefe1f785a89c89ff
2016-02-12 16:53:52 -08:00
Makoto Onuki
1a5ee776ee Don't allow deactivating DAs when the user is not unlocked
Bug 27149570

Change-Id: I772d9cbd6edc822c8f7b1988905b702e05e674cd
2016-02-12 16:04:42 -08:00
Chong Zhang
5471e90ef9 Clearing mDestroying flag when app is made visible again
If not cleared window will remain invisible and can't receive inputs,
which coud lead to ANR.

Also continue looking for windows to be destroyed instead of stopping
on first one that's not removed by client.

bug: 27123118
Change-Id: I27048779886c69eb6e7ad5e21210be511416d8b6
2016-02-12 23:55:47 +00:00
Jeremy Joslin
44d550c2d1 Exit getAllValidScorers early if not the primary.
This fixes the crash that occurs when getAllValidScorers() is invoked by
a non-primary user when a scorer is active.

BUG: 23040221
Change-Id: I42c9e18d74389be3191258ca5626f2c433ca7cc7
(cherry picked from commit 5b294b45d0d7afbed71fd2e59342c5ad7b8b7d76)
2016-02-12 23:50:22 +00:00
Tenghui Zhu
6f1033104d Merge "Fix the CSL theme support inside VectorDrawable's fill and stroke" into nyc-dev 2016-02-12 23:47:27 +00:00
Hangyu Kuang
6dfd022bb8 Merge "Update Android mediamuxer documentation as it supports webm already." into nyc-dev 2016-02-12 23:30:49 +00:00
Joe Onorato
966319700c Merge "Turn down the logging a little bit." into nyc-dev 2016-02-12 22:56:14 +00:00
Joe Onorato
9fcf3ca4de Turn down the logging a little bit.
Change-Id: Iec36925e3aff1490c8808bdc7a6bd39e7d549556
2016-02-12 14:55:05 -08:00
Phil Burk
af9aa07fbd Merge "AudioFormat: implement ENCODING_IEC61937" into nyc-dev 2016-02-12 22:24:55 +00:00
John Reck
182bd38430 Merge "Include containing window title in SurfaceView's title" into nyc-dev 2016-02-12 22:24:01 +00:00
Nathan Harold
aa0f5873a7 Create BandMode Constants
Bug: 27145805
Change-Id: I733026268600f504325bc92061ee830d1448bbf5
2016-02-12 13:38:53 -08:00
Amith Yamasani
6b6b9c6425 Merge "Use hasInternetPermission method" into nyc-dev 2016-02-12 21:29:15 +00:00
Zachary Kuznia
c8e941f4ba Update the timeout values for accessibility gestures.
Change-Id: I1e6ed7bbec46b848c1278922be3110733a64dcb6
(cherry picked from commit 0522205fd5fdc460fb7af78a3ac4a17fcb988ac5)
2016-02-12 21:20:36 +00:00
Shreyas Basarge
e4f490cc69 Merge "Add defaultPeriodic to every authority" into nyc-dev 2016-02-12 21:16:32 +00:00
Adam Powell
5e6d6f5824 Merge "ChooserActivity direct share jank fixes" into nyc-dev 2016-02-12 21:14:39 +00:00
Aurimas Liutikas
3043c7b19d Merge "Start saving iconified state of SearchView." into nyc-dev 2016-02-12 20:58:05 +00:00
Jae Seo
b6748a2aec Merge "TIF: Check the CEC message length before copying the data" into nyc-dev 2016-02-12 20:50:44 +00:00
Shreyas Basarge
6275d49007 Add defaultPeriodic to every authority
Adds a default periodic sync to every
authority on boot so that subscribedfeeds
adapter gets back its periodic sync if lost.
This change will bereverted in the next droidfood
build.

Change-Id: Icae76c2baafb471ad69d01a4c65023dc6f6525c0
2016-02-12 20:44:31 +00:00
Amith Yamasani
2a4ac4e5ef Use hasInternetPermission method
Followup to Bug: 27165396

Change-Id: Ibdf6f5dd15197d4e19d7c7729612c13a02cdbf2b
2016-02-12 12:43:15 -08:00
Ben Wagner
242afb7809 Merge "Deduplicate font file mappings." into nyc-dev 2016-02-12 20:32:03 +00:00
Julia Reynolds
597c6d8c5d Merge "Show topic settings inline if user has configured topics." into nyc-dev 2016-02-12 20:31:55 +00:00
Amith Yamasani
b8849e6891 Merge "When the device boots up, netd works more than required" into nyc-dev 2016-02-12 20:27:55 +00:00
Dan Sandler
e79c73d626 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
Never attribute to malice that which is adequately explained
by a bug, particularly one involving date math.

Bug: 26326394
Change-Id: I3483ac102c678a8852565c8ea94c06e19b3f26d8
(cherry picked from commit 8d9aea8a1870ad83d9eccba1068a1685da5e96d0)
2016-02-12 20:21:23 +00:00
Ben Wagner
fb95699364 Deduplicate font file mappings.
With ttc and gx variation fonts, it is now possible and common that a
number of fonts will use the same font file for data but with different
parameters. In the current code each font will map the font file data,
taking up an unecessary amount of virtual address space and is
inefficient with respect to memory management (like the tlb). This CL
deduplicates these file mappings so that a given font file will only be
mapped into memory once.

DO NOT MERGE
Change-Id: I5ca69f963a434c72ec4028402ecbf9e0f0ee7148
(cherry picked from commit fffcf0a31fd4c9a4ec8aa7de70b1eda0d48fb337)
2016-02-12 19:33:26 +00:00
Jorim Jaggi
9f6798a936 Fix layout for full-screen floating windows
When the app doesn't set IN_SCREEN and INSET_DECOR but the window is
still full-screen, we force SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN but then
we still need to communicate the content insets to the DecorView.

In DecorView, we consume these insets in this mode and set it as
layout params so this behavior is completely transparent for the
app.

Bug: 26464646
Change-Id: Ib7332b845767a5bbc0266c380bf6240e322db943
2016-02-12 19:31:07 +00:00
Dongwon Kang
edbe2652f9 TIF: Unhide TvInputInfo.isHidden/loadCustomLabel
Needed to load input preferences set by user in settings.

Bug: 26850395
Change-Id: I5cd4e2474724c247c765cafa829fc9d7f363da45
2016-02-12 11:16:27 -08:00
Julia Reynolds
a0424c729f Merge "Possibly fix deadlock." into nyc-dev 2016-02-12 19:00:43 +00:00
Julia Reynolds
0f50e4ebab Possibly fix deadlock.
Bug: 27122790
Change-Id: I4361cc09e34ea71d7d69a54330ce52574c2b9b3d
2016-02-12 19:00:07 +00:00
Selim Cinek
4f0e1e1d09 Merge changes If981a380,I48a8f882,I4b248b2f,Id9e6ce2a,Ib5239325, ... into nyc-dev
* changes:
  Fixed a bug where custom notifications were invisible
  Fixed a transformation error when fading in views
  Fixed animation jank in notification groups
  Fixed a bug where the single line view would be invisible
  Fixed a bug where huns could be invisible
  Fixed a crash with notification children
2016-02-12 18:56:46 +00:00