5480 Commits

Author SHA1 Message Date
Ashutosh Joshi
b4cc448946 Merge "App upload to Context hub." into nyc-dev 2016-04-05 01:32:59 +00:00
Ashutosh Joshi
cafdee9a72 App upload to Context hub.
Fix constants
Use helper functions to address OS

Change-Id: I61bd1f3eff2716ead2771eda335998f2e9b73afc
2016-04-04 16:50:27 -07:00
Doris Liu
d9289085be Merge "Make AVD thread safe" into nyc-dev 2016-04-04 21:53:45 +00:00
Doris Liu
1d8e194661 Make AVD thread safe
This CL introduces staging properties to VectorDrawable, which holds
properties coming from UI thread. When staging properties are changed,
they are marked dirty, and the staging properties then get pushed to
RenderThread at sync point. In cases where no staging property has
been changed, at sync point we sync the render thread properties back
to staging properties to reflect the latest render thread animation
value change.

Also, update Vector Drawable bitmap only when it's dirty

Bug: 27343970
Bug: 27385912
Bug: 27263667
Bug: 27927674
Bug: 27774383

Change-Id: Ia864f5400a53a08dbfb284fae581fb1aac4fff87
2016-04-04 14:40:17 -07:00
Derek Sollenberger
c6418c04ab Merge "Cleanup addtional files that were missed in the first purge of AvoidXfermode" into nyc-dev 2016-04-04 20:26:28 +00:00
Derek Sollenberger
93ab281e1c Cleanup addtional files that were missed in the first purge of AvoidXfermode
bug: 14650725
Change-Id: Ib7fb6a31705fb60535ecf2017db321c15e3d06cc
2016-04-04 14:49:51 -04:00
Ashutosh Joshi
b741e3b374 Added handling apps query response from context hub
Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: Ie96a860774d005ad6ad72acc88dc79964835486b
2016-04-01 20:10:27 -07:00
Ashutosh Joshi
2c697fb4a8 Revert "Added handling apps query response from context hub"
This reverts commit adf75e31f52a7a935a66a884fb55631c7309ee75.

Change-Id: I8391eb57c3a53e686bd817d27860fa6f785113f1
2016-04-01 20:49:28 +00:00
Ashutosh Joshi
c75f7c20e8 Revert "Ensuring builds compile for both 32 bit and 64 bit targets."
This reverts commit 85e093bc03d747f69b3ada658c9e82f442cda334.

Change-Id: I9346929e6016e36beb3b6949ccec9fce73da91c4
2016-04-01 20:47:28 +00:00
Ashutosh Joshi
85e093bc03 Ensuring builds compile for both 32 bit and 64 bit targets.
Fixing print formats for pointers.
Fixing a dangerous memory free.

Change-Id: I7c53bdaeceed80845ef002ed6a8a783ecb0378dc
2016-04-01 12:45:47 -07:00
Ashutosh Joshi
adf75e31f5 Added handling apps query response from context hub
Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: I8d8ecaa2e75f6ef86ee65a3a050538cbbadc32eb
2016-04-01 17:57:35 +00:00
John Reck
2aaf681dc0 Merge "Remove warning" into nyc-dev 2016-04-01 16:09:22 +00:00
Keisuke Kuroyanagi
aea43f8414 Merge "Fix: doRunAdvance returns wrong value when offset == count." into nyc-dev 2016-04-01 05:27:38 +00:00
John Reck
562cfef1d5 Remove warning
Fixes: 25760687

The recommendation floating around is to ignore this even
though it's unquestionably an app bug so just remove it.

Change-Id: I7075de5d2864874d786a0aab0c945be96de172e3
2016-03-31 10:07:21 -07:00
John Reck
44b49f070a Add a callback for rendernode parentcount=0
Bug: 27709981
Fixes: 22565656

Change-Id: I1cb4461baf9069dc4e7ca6de10d5862578c107f4
2016-03-31 08:36:50 -07:00
Peng Xu
50c52c0b34 Merge "Several code quality improvements" into nyc-dev 2016-03-30 18:04:12 +00:00
Peng Xu
4a4baef431 Several code quality improvements
* Added GuardedBy annotation.
* Fix a misleading variable name.
* Use anonymous namespace to reduce namespace pollution.

Change-Id: Ieffbb8dfd6abbb24b705445659fb96f7ce861592
2016-03-29 23:23:11 -07:00
Eino-Ville Talvala
8c349f5d3b Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev 2016-03-28 17:47:20 +00:00
Keisuke Kuroyanagi
b3677715e6 Fix: doRunAdvance returns wrong value when offset == count.
Bug: 27869952
Change-Id: I56278676da4c354ced4244e4b073bb0d82edf93b
2016-03-28 19:16:30 +09:00
Philip P. Moltmann
cd7c97bcf7 Merge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev 2016-03-26 18:12:59 +00:00
Eino-Ville Talvala
6c91e2c31b Camera: Add bandaid for preview orientation on reverse-landscape cameras
Camera sensors on Android may be either landscape or reverse-landscape
oriented, but the vast majority of shipping devices only use landscape.

This means that many camera-using apps (which are generally forcing
themselves to landscape orientation) never call setDisplayOrientation,
since its default value of 0 is correct for the majority of devices.

However, there are some reverse-landscape devices, and for those, such
apps get upside-down preview.

This bandaid changes the default value of displayOrientation to be 180
on such devices, so that apps that never call setDisplayOrientation get
correct preview.  This bandaid has no effect on apps that do call
setDisplayOrientation, so hopefully such apps are doing the math
correctly.

Also update documentation to indicate that setDisplayOrientation should
be called, and to note the change in default orientation behavior in
Android N.

Change-Id: I1b2c957642fda8edead61bd07eda9d18c38d1fe6
Fixes: 27840948
2016-03-25 12:29:44 -07:00
Derek Sollenberger
a9471b1bd6 Update pixelRef genID when reusing pixels in RecyclingClippingPixelAllocator.
When this code was refactored to support the new RegionDecoder it appears that
we dropped a call to bump the genID.  Adding it back is functionally correct
and should fix the recycling issue.

bug: 26617759
Change-Id: I966d398ca983edb40040e01345799b3cc9957fe0
2016-03-25 13:03:57 -04:00
Sergei Vasilinetc
ab852f2972 Merge "Add offset() to Path's fast-case mode" into nyc-dev 2016-03-24 05:02:02 +00:00
sergeyv
ecbcdd384c Add offset() to Path's fast-case mode
bug:22510833
Change-Id: I417ed13ff450aa7f6c72370b4c5de8e8a53a0235
2016-03-23 16:45:55 -07:00
Pablo Ceballos
6266d8c959 Merge "Java bindings for SurfaceControl::setFinalCrop" into nyc-dev 2016-03-23 16:30:54 +00:00
Lorenzo Colitti
e6109ddd3e Merge "Remove framework code that calls SIOCKILLADDR" into nyc-dev 2016-03-22 05:37:09 +00:00
Lorenzo Colitti
ed7bf2e04e Remove framework code that calls SIOCKILLADDR
Bug: 26976388
Change-Id: I652361d9e650a77085070d6c26b28b7638ba2dfe
2016-03-22 12:54:32 +09:00
sergeyv
bad9918391 Clean up and rename TypefaceImpl
bug:25865834
Change-Id: I77e8a627163e040a5c25865054a8a936052af367
2016-03-21 16:33:14 -07:00
sergeyv
dccca44ffd Reland: Move text logic from jni to hwui level
Initial CL: https://googleplex-android-review.git.corp.google.com/#/c/886854/

Change-Id: I9dfd85fe1d2a2c44f4360c8a29fd58d80e6f31c8
2016-03-21 15:55:46 -07:00
Sergei Vasilinetc
6847953955 Merge "Revert "Move text logic from jni to hwui level"" into nyc-dev 2016-03-21 21:06:47 +00:00
Sergei Vasilinetc
afbd0f1fef Revert "Move text logic from jni to hwui level"
This reverts commit a7f6bba1a3565c19715e878dfe7f0e01022944ff.

Change-Id: If4f36f87a85411b6128fd92d391313803ccaf9dd
2016-03-21 21:03:40 +00:00
Sergei Vasilinetc
49658d4380 Merge "Move text logic from jni to hwui level" into nyc-dev 2016-03-21 20:11:27 +00:00
Philip P. Moltmann
79bd8d48ad PDFium interface changed, hence adjust the adapter jni code.
Bug: 27564090
Change-Id: I983398a90438062ecc9c7ebc0ad325777fa8aaff
2016-03-18 09:51:40 -07:00
doheon1.lee
885b742bb6 Changes of root storage space unmounting time on Zygote Process
Zygote process forks every child process for launch the SystemServer and other
applications. When child process is forked, unmount storage inherited
from Zygote process is executed before it gains its own root storage
space.
If Zygote have no storage spaces, unmount operations not needed to
get relevant permission storage space.
Thus unmount is executed only once shortly before the SystemServer is forked.
And the child processes do not unmount its inherited root storage space.

Change-Id: I311ca7ea2c93085f42579f8cf8bdc7ef1d570a04
2016-03-18 10:31:31 -06:00
John Reck
969e8c365f Merge "Move updating window position off RT" into nyc-dev 2016-03-17 17:43:50 +00:00
John Reck
38f6c034d1 Move updating window position off RT
Bug: 27385141
Change-Id: I6c75b5f1d9ef55ef64dde050f71d0e28fb8714bf
2016-03-17 10:32:07 -07:00
sergeyv
a7f6bba1a3 Move text logic from jni to hwui level
bug:25865834
Change-Id: I2d8c9c9544afcb5ce1784f732aed3e54e0eda372
2016-03-17 09:48:57 -07:00
Glenn Kasten
58ae278294 Merge "Use audio_session_t consistently" into nyc-dev 2016-03-17 14:22:53 +00:00
Yujie Qin
990ea136b2 Return DNG mimeType for the case kRAW_SkEncodedFormat
Bug: 27587823
Change-Id: I0f539034a883083a30f33262edc715714f45e60d
2016-03-17 14:13:22 +01:00
Rubin Xu
c7605b838b Merge "Unifying method names and comments to security logging, not device logging" into nyc-dev 2016-03-17 11:23:55 +00:00
Eino-Ville Talvala
61adad884b Merge "Adjust graphics dataspace references to new standard" into nyc-dev 2016-03-16 22:49:37 +00:00
Jean-Michel Trivi
400349907e Merge "Dynamic audio policies: device type and address" into nyc-dev 2016-03-16 21:31:09 +00:00
Tenghui Zhu
71e806b2f4 Merge "Add fillType support to VectorDrawable" into nyc-dev 2016-03-16 21:13:24 +00:00
Jean-Michel Trivi
4ad39885f2 Dynamic audio policies: device type and address
Store device type and address in audio mixes regardless of the
  mix route type, no "registration" field.
For LOOP_BACK mixes, assign the REMOTE_SUBMIX device type.

Bug 25448664

Change-Id: I8d59b2fd3e05b1dcf1081ad826f985f5e3e74769
2016-03-16 12:15:43 -07:00
Teng-Hui Zhu
46591f4a2d Add fillType support to VectorDrawable
Default as non-zero, which is the same as SVG.
b/27533958

Change-Id: Id20e6d3493bb4d2b4b65d7f6cdb13586631c40e4
2016-03-16 11:03:27 -07:00
Ashutosh Joshi
ac329d3e34 Merge "Exposing Context Hub service." into nyc-dev 2016-03-16 17:21:33 +00:00
Michal Karpinski
6235a94ffa Unifying method names and comments to security logging, not device logging
Also move SecurityLog to android.app.admin package.

Bug: 27531824
Bug: 27532560
Bug: 27532564
Bug: 27532425
Change-Id: I2677afdb5685bc5d21e52c41b381b57a41e364b6
2016-03-16 14:32:09 +00:00
Pablo Ceballos
27982e65ee Java bindings for SurfaceControl::setFinalCrop
Bug 26559810

Change-Id: I74eefa91b2d38e55fb9e27e7dc2cd3536e610108
2016-03-16 14:53:51 +01:00
Derek Sollenberger
7494eb2114 Merge "Remove all non-porterduff xfermodes from the public API" into nyc-dev 2016-03-16 12:17:16 +00:00
Peng Xu
9ff7d22354 Exposing Context Hub service.
Adding the Context hub service. This is the service that exposes
the context hub HAL to the system. The API exposed is a System API.

Change-Id: I854141714ecd21f6386e6b15b7bc9a997483ccf6
2016-03-15 15:18:56 -07:00