468 Commits

Author SHA1 Message Date
Yifan Hong
becc56d7ea Add Java API for libvintf.
android.os.VintfObject has two methods:

- report: return device info that can be reported to OTA server
- verify: verify that metadata for a given OTA package is
          compatible.

Test: pass
Test: adb shell am instrument -w -e class android.os.VintfObjectTest \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Bug: 36814503

Change-Id: Iff8fae289eec8ae9cfc327d0d0d36a1cdd5e6800
2017-04-13 18:04:05 -07:00
Andreas Gampe
76d4fc8451 Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit
Move methods where they belong.

(cherry picked from commit 4e66db8d0c60e89f3a87bb05f38f82bda032ff0f)

Test: m
Test: Device boots
Change-Id: I805c6493078e960ff5b70d84dd93d2da6c7aa797
2017-02-09 13:16:34 -08:00
Paul Lawrence
46e48b9aa4 resolve merge conflicts of fde0a41065eb to master
Test: Make sure builds, boots
Change-Id: Idf86dc5d888c09e8a65ada51fc2f32aae6d5570d
2017-02-02 13:28:45 -08:00
Paul Lawrence
fde0a41065 Install seccomp into zygote not init am: ef85477470 am: 521d25294b
am: e6e8c7a1dd

Change-Id: I97d2843a2c2940b558f216cf550891a80963be54
2017-02-02 18:37:22 +00:00
Paul Lawrence
ef85477470 Install seccomp into zygote not init
Bug: 34710876
Test: Boots, correct size filter installed, blocks unallowed calls

Change-Id: I3e66e8724ace37f7d30451b98a5e574766252ea0
2017-02-02 17:45:11 +00:00
Craig Donner
1a4d07d919 Adding HardwareBuffer, a Java wrapper around AHardwareBuffer.
Bug: 34050596
Test: new CTS test added in other topic CL; tested with cts-tradefed on Pixel XL
Change-Id: I177107757f917fcab5bc1f1dcdbb5b81a605f777
2017-01-20 18:52:01 -08:00
Jesse Hall
17ee3aac28 Create GraphicsEnvironment for communicating with driver loaders
The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: I5820d3d1301d5461e10706f551b268c54d4f8926
(cherry picked from commit b12249b67193df07a8ffc3cad0c41643662b887b)
2017-01-15 05:55:46 +00:00
Jesse Hall
b12249b671 Create GraphicsEnvironment for communicating with driver loaders
The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: I5820d3d1301d5461e10706f551b268c54d4f8926
2017-01-14 17:31:56 -08:00
sergeyv
0a0f23163a Move GraphicBuffer to graphics package
Test: locally tested Bitmap.createHardwareBitmap method
bug: 30999911
Change-Id: Iad432577f26f2362ede9e77cd8a5425c010692e5
2017-01-04 14:01:52 -08:00
Ashutosh Joshi
420e45e9cb Move ContextHubService to a better location.
Move ContextHub service from system core to a more appropriate place
for a service.

Test: GTS tests pass.

Change-Id: Ie0f25414fc472a0214c0dd94e7ad4564cd38f842
2016-12-21 11:33:28 -08:00
Derek Sollenberger
dcc3630100 Remove Rasterizer and its subclasses from the public API.
Test: compile
Bug: 14650725
Change-Id: I99e1942d4d1b85f4efdcb3faf3fee1aa6c839b7e
2016-12-12 10:53:58 -05:00
Daichi Hirono
878e86f38f Adding FUSE loop thread in app side.
The CL adds FuseAppLoop internal class to the framework. It parses FUSE commands
from the proxy in the system service and invokes a callback provided by
application.

Bug: 29970149
Test: None, will be tested with CTS for StorageManager#openProxyFileDescriptor.
Change-Id: I10b2add4c2743fb91eae3cb194f55843a74fb668
2016-12-01 13:16:14 +09:00
John Reck
5d31a293ad Cleanup Xfermode
We only support PorterDuff Xfermodes

Removes some unneeded JNI and finalizers()

Change-Id: I4988d6b05c6fd113a8ed8f7dcbf95abe0de95060
2016-09-19 12:52:50 -07:00
Andreas Huber
50546a98ed Adds framework support for hidl-gen Java backend. (to support structs)
Bug: 30575790
Change-Id: Ida30d8fe7a1b210e98f1a0ea5d429a0112f9ef3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-07 15:10:50 +02:00
Andreas Huber
7f5fcabacc Initial commit of Java support for hardware binder
Change-Id: If1098ab921a11bae8eca2a70a3c3070e4daa0ea2
2016-09-07 15:10:30 +02:00
Andreas Huber
9266f9928d Adds framework support for hidl-gen Java backend. (to support structs) (DO NOT MERGE)
Bug: 30575790
Change-Id: Ida30d8fe7a1b210e98f1a0ea5d429a0112f9ef3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-02 06:28:14 -07:00
Andreas Huber
dab5fc65b9 Initial commit of Java support for hardware binder (DO NOT MERGE)
Change-Id: If1098ab921a11bae8eca2a70a3c3070e4daa0ea2
2016-09-02 06:28:14 -07:00
Andreas Huber
dc26321e0b Adds framework support for hidl-gen Java backend. (to support structs)
Bug: 30575790
Change-Id: Ida30d8fe7a1b210e98f1a0ea5d429a0112f9ef3f
2016-08-25 13:38:40 -07:00
Andreas Huber
c0b6c53076 Initial commit of Java support for hardware binder.
Squashed commit of the following:

    commit a536e55110a62871662d2f0b1771d7b66bb3cb27
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Aug 15 09:04:45 2016 -0700

    start HwBinder thread pool upon service registration

    Change-Id: I8e91d20e29a5647a36aad083c23d1b594fdc68c5

    commit 0a1882999e0021b68ccebb0306905f17962b8a70
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Aug 11 15:41:05 2016 -0700

    IHwInterface, queryLocalInterface.

    also moved looking up a service into HwBinder. HwRemoteBinder is now an
    implementation detail.

    Change-Id: Ic0b818f5b36c42c608e570fe41a2c0272a6e48df

    commit d99b0b065bde6e0f071245719f8ab31ad25d91be
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Aug 8 09:07:51 2016 -0700

    work in progress

    Change-Id: I4f5612944e9ac1c762ad1fa2e238836e37b484da

    commit 64f027e55780284b981f88a1605c00a0a0f091f4
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Aug 4 10:10:52 2016 -0700

    Squashed commit of the following:

    commit d023d5570ef810094a3d4382158f32faff46c480
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Aug 4 10:09:41 2016 -0700

    Some more cleanup, file organization more closely matches existing code in

    frameworks/base/core/jni/..., don't produce a separate shared library, this is
    now linked as part of libandroid_runtime.so

    Change-Id: I91024f137ff0faae26e72aa9a7163b80b97f0d05

    commit 7cf5370748a9a99be68fac0f32c6793f5bfc4a15
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Aug 4 09:37:44 2016 -0700

    Some more cleanup.

    Change-Id: Ibb89280f51234f8a3dd29ca6d57d6eaaf80a03ea

    commit d70638398ed47c29401d6118e03d640245ecc9b2
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Aug 4 09:31:49 2016 -0700

    hidl::{Parcel,Binder & friends} => hardware::\1

    Change-Id: I8f37a260d4a9afe66e02f7266c54af093502869f

    commit 0fc680aea7753d8de91b4a3806b892dcb4fface8
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Aug 1 14:55:17 2016 -0700

    Squashed commit of the following:

    commit daa714921e20bc209bd7c05aea458569ce539993
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Aug 1 12:09:27 2016 -0700

    Switch to NativeAllocationRegistry for pairing java- with native objects.

    Change-Id: I011fda51e8c24d9e03d6a0ddbcdac9196dc8ab72

    commit 3a02606dba870f8313e1db919720647f686273b4
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Jul 28 11:44:26 2016 -0700

    Squashed commit of the following:

    commit e77b8ff331ed1b5554b4c7c1cd99ed99dbed5f45
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Jul 28 11:15:12 2016 -0700

    no more LOCAL_C_INCLUDES, read/writeEmbeddedBuffer APIs changed to take

    a size_t instead of a uint64_t for both handles and offsets.
    Use android-base/logging instead of utils/Log.h for logs/assertions.

    Change-Id: I1129c75da46e4335efbf94a3394f9bde7d0ad0c6

    commit fbc3a7be0a8cde86b334a677a0e127123beb0051
    Author: Andreas Huber <andih@google.com>
    Date:   Wed Jul 27 16:20:24 2016 -0700

    Squashed commit of the following:

    commit bda9396472eaa32c7643927017ccfdcba8a6aeb3
    Author: Andreas Huber <andih@google.com>
    Date:   Wed Jul 27 16:19:57 2016 -0700

    Code review in progress.

    Change-Id: I66cc3a4ec8caf6feac0d526130c0c3902fd8e2cc

    commit 2887d9589562c3e9834e5d6bb513ab5eff9cdb5f
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 25 12:00:38 2016 -0700

    Squashed commit of the following:

    commit 8a565b0282577508db00a9f6146e75d962b854f4
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 25 12:00:13 2016 -0700

    @hide everything

    Change-Id: I54411d1b0d9cd2ddb66acc1444c23b17b98e58a6

    commit e55a1dd871a2c653bca300335ba9dcc78b3c5ea5
    Author: Andreas Huber <andih@google.com>
    Date:   Tue Jul 19 11:19:07 2016 -0700

    Squashed commit of the following:

    commit c9ae58af694ae2c8451486fe83fab0f6e1398047
    Author: Andreas Huber <andih@google.com>
    Date:   Tue Jul 19 10:10:56 2016 -0700

    switch to a better way of finishing/sending stub transactions

    Change-Id: I7e237f57f4dbd69d05caeb62de0876c40feaa1cf

    commit 0af00b5c41bf808f31300a565467d463d8df0636
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 18 15:32:09 2016 -0700

    exceptions >> assertions

    Change-Id: I098d6e170525539b81aae5e8890c8460ec78df18

    commit f5e1363c2e6b7713ae1460cd8dc22872deebedc4
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 18 11:57:04 2016 -0700

    Squashed commit of the following:

    commit b8716cdf75ac1785f6decb6d236d689c087889cd
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 18 11:56:35 2016 -0700

    Support for {read,write}StringVector.

    Change-Id: I816e4fc22afde960a481c0fb4c3d8531bffa6e56

    commit 34279699169c9ba5fdc03055a863432a2edd1901
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 18 10:08:32 2016 -0700

    LEGO -> Hw

    Change-Id: Ib63ef44cfd13e5a2c3a358d055aad162163d8600

    commit eb2b09c4a03ba785363a8b230a89718ef319c35b
    Author: Andreas Huber <andih@google.com>
    Date:   Fri Jul 15 14:01:11 2016 -0700

    Squashed commit of the following:

    commit c657839a54cf6054e1983a59a59bfcc0854cc952
    Author: Andreas Huber <andih@google.com>
    Date:   Fri Jul 15 12:55:04 2016 -0700

    Support for {read,write}StringArray and stubs for {read,write}StringVector

    Also refactored existing code to take advantage of HidlSupport.h

    Change-Id: I55613d0c66706008d1f96576b9f7a500d52b2cd3

    commit 5d29cd53c4f2a9fe0cdc9052e4041c92d0873042
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Jul 14 16:38:09 2016 -0700

    Squashed commit of the following:

    commit 0a7e49f20d18a7eebda889594cc1bc5511ce2fdc
    Author: Andreas Huber <andih@google.com>
    Date:   Tue Jul 12 14:21:56 2016 -0700

    support all primitive array and vector read/write operations on LEGOParcel

    Change-Id: I200d1dccedc0fd752c297714e8e0df967fdb653b

    commit e0401c2fabc548681d7fd304c09b4ca8838bb0b5
    Author: Andreas Huber <andih@google.com>
    Date:   Tue Jul 12 09:53:42 2016 -0700

    Added LEGOParcel.{read,write}{Int8,Int16}

    Change-Id: I0d9cc149802837593db606692694dbce1b12e521

    commit 9187f7a349c0861549df2c534803e03066d22b4a
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 11 16:10:50 2016 -0700

    Better handling of temporary storage in JLEGOParcel

    Change-Id: I31cdf7b6f1f4bd486661288346cf530c9e92beaa

    commit dc2e5f6f0bb737c739e1dab356efeac945c000c3
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 11 14:18:09 2016 -0700

    proper (read/writeBuffer based) marshalling of strings and int32 arrays

    Change-Id: I2fadd2f831cc0acb50a41222525e71f29b57e79e

    commit 6463a03074fa514ea8b7cb61e475c246e6136b43
    Author: Andreas Huber <andih@google.com>
    Date:   Mon Jul 11 13:13:31 2016 -0700

    support for ILEGOBinder marshalling

    Change-Id: I8ceea45dfcb8460e59a05999ccdcad319650dede

    commit 8c26a006ded339043677d3607884da0abb3e742d
    Author: Andreas Huber <andih@google.com>
    Date:   Fri Jul 8 16:42:38 2016 -0700

    A quick and dirty fix for the

    "storage must stay around until transact() returns" issue.

    Change-Id: I75ac09391cdc23dcc6e154b32eff945f29d00cc0

    commit df7d2c1e4e33d6554ab16e33c90bdf30ce2a136d
    Author: Andreas Huber <andih@google.com>
    Date:   Fri Jul 8 08:48:31 2016 -0700

    Squashed commit of the following:

    commit c42764acbaefab5ffc829dd1a3b60aa252643ae6
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Jul 7 16:51:10 2016 -0700

    An attempt at LEGOParcel.{read,write}Int32Vector

    Change-Id: I9dc54828ad10c8cec8ca292db011925cd60893e2

    commit faa502ac98d28f3eff10a4c16443059ca316c76b
    Author: Andreas Huber <andih@google.com>
    Date:   Thu Jul 7 14:58:24 2016 -0700

    Support for LEGOParcel.{read,write}{String,Int32Array}

    Change-Id: I38317f22ff977bed2f8203c24333bbb7de6f1cc5

    commit ba048b13eb014472130094fafd0fe982363d7add
    Author: Andreas Huber <andih@google.com>
    Date:   Wed Jul 6 16:41:14 2016 -0700

    LEGO{Binder,Parcel,RemoteBinder} java classes

Change-Id: If1098ab921a11bae8eca2a70a3c3070e4daa0ea2
2016-08-15 09:28:30 -07:00
Dmitriy Filchenko
18e7dbe0b6 Merge \\\\"Handle long process names correctly.\\\\" am: e2994438d2 am: d5a72fae4a am: ea9616e48e
am: a2170b076b

Change-Id: I64722a3adb0f8d66c53d8b8445be5502824ab83e
2016-07-19 00:45:29 +00:00
Dmitriy Filchenko
d5a72fae4a Merge \"Handle long process names correctly.\"
am: e2994438d2

Change-Id: I4edb617030ed2cedb394729f9ce94af080d3e358
2016-07-19 00:19:15 +00:00
Dmitriy Filchenko
f5b6e5590e Handle long process names correctly.
pthread_setname_np() expects 16 or fewer characters for the name argument. When the process name is longer, we should trim it.

Change-Id: I40be3a4212bdaab900c8eb30fa27aeeb7ed1b0d1
2016-07-18 16:03:05 -07:00
Dimitry Ivanov
e543776d59 Merge "Move Vulkan layer path setup to ApplicationLoaders" into nyc-dev am: 7f0708390b am: 76766d29b3
am: 61820a6a63

* commit '61820a6a63e4a10fdab7f9bf7a9e33b0744be253':
  Move Vulkan layer path setup to ApplicationLoaders

Change-Id: Iee0980f34860e51e64aa6d0f9d12abf730d4343f
2016-05-12 21:26:16 +00:00
Dimitry Ivanov
0997908c95 Move Vulkan layer path setup to ApplicationLoaders
ThreadedRenderer was never the right place for this anyway, and
ApplicationLoaders can provide both the full library search path (not
just the extracted native library dir) as well as the application loader
namespace.

Bug: 28213888
Change-Id: Ibcc0a9178da4dba6f3f3105932fdac1a1d0261af
2016-05-11 22:59:10 -07:00
Calin Juravle
7116e4b999 Read -Xjittransitionweight from system properties.
Bug: 27865109

(cherry picked from commit 8d74de55464c885b602b34252ee8721a9e810dcf)

Change-Id: Id4f0668ea212f0fd82d32437ea251118bfce1ae2
2016-04-28 16:34:40 +01:00
The Android Automerger
750ccd5333 Manually merge branch 'nyc-mr1-dev-plus-aosp' to shortcircuit automerger b/28407115 2016-04-27 22:14:50 +00:00
Dimitry Ivanov
cda22ed541 resolve merge conflicts from goog/stage-aosp-master to goog/nyc-dev-plus-aosp
Change-Id: I09c5c2881947b28547a40febf32f02722b03ef81
2016-04-27 13:16:17 -07:00
Dimitry Ivanov
b1ef62bb38 Extract pathclassloader initialization to a separate class
To be able to reuse this code when creating a classloader for
the system_server.

Bug: http://b/27245894
Bug: http://b/27702070
Change-Id: I928175a39a1beb0446d863a5b8f5edf94686e768
(cherry picked from commit 5d7d777fa6f47ade2097e77d3d9ddb52c26d77d6)
2016-04-27 11:38:41 -07:00
The Android Automerger
8bdf39e19c Manually merge branch 'nyc-mr1-dev-plus-aosp' to fix automerger blockage b/28407115 2016-04-27 17:58:24 +00:00
Calin Juravle
8d74de5546 Read -Xjittransitionweight from system properties.
Bug: 27865109
Change-Id: I4a752a68693ac7d764d006f1282398c2e95ef1d0
2016-04-27 15:08:11 +01:00
Dimitry Ivanov
5d7d777fa6 Extract pathclassloader initialization to a separate class
To be able to reuse this code when creating a classloader for
the system_server.

Bug: http://b/27245894
Bug: http://b/27702070
Change-Id: I928175a39a1beb0446d863a5b8f5edf94686e768
2016-04-26 13:16:54 -07:00
Svet Ganov
db2174dcb8 Merge "Ensure local settings caches are not stale" into nyc-dev am: f71d7fe am: d4bc15b
am: 0010741

* commit '0010741818127e6c9449fc49490f0bad14a76240':
  Ensure local settings caches are not stale

Change-Id: I26c4f1f72eda3b2ebfb3ca6e086a0381d357471c
2016-04-26 18:54:37 +00:00
Svet Ganov
53a441ca8e Ensure local settings caches are not stale
We used the system proterties as a shared memory mechanism
to propagate information to local settings caches when the
content has changed and the cache should be cleared. The
system properties are unfortunately updated asynchronously
leading to cases where clients may read stale data.

This change adds a simple int array data structure backed
by shared memory which guarantees individual values are
atomically read and updated without memory tear. Multi-
index opearations are not synchronized between each other.

The settings provider is using the new data structure to
propagate the settings generation which drives when caches
are purged.

We have a single memory array keeping the generation for
different settings tables per user. Since memory array is
not a compact data structure and the user space exceeds
the memory array size we use an in-memory map from keys
to indices in the memory array where the generation id of
a key is stored. A key is derived by the setting type in
the 4 most significant bits and the user id in the 28 least
significant bits.

The mapping from a key to an index is cleared if the user is
removed and the corresponding index in the memory arry is
reset to make it available for other users. The size of the
memory array is derived from the max user count that can be
created at the same time.

bug:18826179

Change-Id: I64009cc5105309ef9aa83aba90b82afc8ad8c659
2016-04-26 11:31:55 -07:00
Calin Juravle
e86e8a659e Handle dalvik.vm.usejitprofiles property
Bug: 26080105

Partial cherry picked from commit
db4a79a5d7d348e9d2286d95d4e5a59dd484456f

Change-Id: Ifef4ec0d153b8d30941a339d7f9052889631f84c
2016-04-22 16:40:50 +01:00
Calin Juravle
215851b441 resolve merge conflicts of 5ec9766 to nyc-dev-plus-aosp
am: 823b117

* commit '823b1173f167c195cca8b7b09307331a8fb2ff07':
  Handle dalvik.vm.jitprithreadweight property

Change-Id: Ia10ccbcc747cdb46412029f0957950fe20267674
2016-04-13 13:29:38 +00:00
Calin Juravle
823b1173f1 resolve merge conflicts of 5ec9766 to nyc-dev-plus-aosp
Change-Id: I503978b0ebabee4401ae955d92d0c073b8ff9b14
2016-04-13 14:19:13 +01:00
Calin Juravle
aa9ecac10b Handle dalvik.vm.jitprithreadweight property
Bug: 28065407
Bug: 27865109
Change-Id: I8cebc22a9e072fd1d6d765427a0cd59ba2201bf6

(cherry picked from commit 0de80b9f550fc8ff1f46d5f95cf229745d71eb2a)
2016-04-13 12:48:12 +01:00
Calin Juravle
0de80b9f55 Handle dalvik.vm.jitprithreadweight property
Bug: 28065407
Bug: 27865109
Change-Id: I8cebc22a9e072fd1d6d765427a0cd59ba2201bf6
2016-04-12 18:39:50 +01:00
Matt Sarett
002c43ef7b Delete references to SkImageDecoder
SkImageDecoder is no longer used by Android and will be deleted
by Skia.

Change-Id: Ied813559a1cbdbbbad953dad2ff1c3f181afa5d5
2016-03-24 15:27:31 +00: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
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
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
Brian Carlstrom
66f4831aa1 frameworks/base: Make Thread::run threadName argument required
Bug: 27557176
Change-Id: Icff15e51fb7c99387ac8317181d12749f343439a
2016-03-12 16:07:48 -08:00
Dimitry Ivanov
4449ef5b6a Display Toast with linker warnings after Activity.onStart()
Displays list of problems linker encountered with app's
native code including
1. Unauthorized access to private platform libraries.
2. Text relocations
3. Invalid DT_NEEDED entires

This change is intended only for preview/beta releases and to
be reverted before the first release build.

Bug: http://b/27365747
Change-Id: I08735472059248c901ef22042682d574fb2b0c92
2016-02-26 18:16:14 -08:00
Dimitry Ivanov
ea90281082 Create linker-namespace for the classloader
With this change ApplicationLoaders.getClassLoader()
creates linker-namespace for the classloader at the
construction time. Before this change the namespace
was created on first load of a jni library.

With this change we ensure that every classloader
has initialized namespace associated with it.

As an additional advantage we now can avoid storing
namespace-specific fields in the classloaders.

Bug: http://b/27189432
Bug: http://b/22548808
Change-Id: I3b160bd478a55171008682c40b2ebc13bdbd9882
(cherry picked from commit a55c7f15a3c386ec643f21eeb2f4e9fd7b03ba70)
2016-02-26 10:16:11 -08:00
Dimitry Ivanov
a55c7f15a3 Create linker-namespace for the classloader
With this change ApplicationLoaders.getClassLoader()
creates linker-namespace for the classloader at the
construction time. Before this change the namespace
was created on first load of a jni library.

With this change we ensure that every classloader
has initialized namespace associated with it.

As an additional advantage we now can avoid storing
namespace-specific fields in the classloaders.

Bug: http://b/27189432
Bug: http://b/22548808
Change-Id: I3b160bd478a55171008682c40b2ebc13bdbd9882
2016-02-25 14:57:55 -08:00
Polina Bondarenko
f8754ac212 Added hardwareproperties SystemService
Add HardwarePropertiesManagerService which call native methods to
get CPU, GPU, battery temperatures, CPU usage info, fan speeds.
Restrict hardware properties retrieval only for device and profile
owners.

Bug: 26945055
Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
2016-02-19 18:24:29 +01:00
Doris Liu
766431aa57 Revert "Revert "VectorDrawable native rendering - Step 4 of MANY""
This reverts commit 5a11e8d0ba21624025b89ac63bbd18befa55be0e.

Change-Id: I7a48b59c4f930dad65ddc8590c25a12636244ea2
2016-02-04 16:29:51 -08:00
Doris Liu
5a11e8d0ba Revert "VectorDrawable native rendering - Step 4 of MANY"
b/26949340 and b/26975469, b/26975079 as well 

This reverts commit f276acd98457bcaabc9e79a17a736b3b484f005e.

Change-Id: I4b55177daf0d289bc03604c71fd4bf579f65073a
2016-02-04 20:59:00 +00:00