Commit Graph

6181 Commits

Author SHA1 Message Date
Yiwei Zhang
5ccf21b382 Merge "Game Driver: process sphal libraries in GPU service" 2019-02-22 21:45:56 +00:00
Wale Ogunwale
691af68a3c Added some TestApi that are already used by CTS
Allows us to remove the use of private platform API from CTS.

Bug: 124134247
Test: builds
Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
2019-02-21 20:15:56 -08:00
Leo Hsu
ab28fff9f9 Add UserManager APIs to SystemApi.
Bug: 124940146
Test: make
Change-Id: I1cac9a6106b3da099e08f10f2c08d90e9f515e42
2019-02-22 01:08:14 +00:00
Yiwei Zhang
1c51f05ab4 Game Driver: process sphal libraries in GPU service
This change adds the sphal libraries text file parsing to the GPU
service. As the result, when the Game Driver apk is updated, the sphal
library list will be read out to the GAME_DRIVER_SPHAL_LIBRARIES
settings global property to be used in the graphics environment to
extend the current linker namespace.

Bug: 124448366
Test: Build, flash and boot. Install the apk to verify settings global.

Change-Id: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
2019-02-21 00:26:17 -08:00
Yiwei Zhang
786386074b Merge "Game Driver: update the format of driver build date" 2019-02-21 07:35:11 +00:00
Christian Wailes
a2f67c96cc Merge "Updated Zygote IPC related comments." am: f8881b6821 am: c850654edc
am: 49574608ae

Change-Id: Ie14f3a5377599f3542dedc0a42a87ca3a41ca9ba
2019-02-20 16:56:15 -08:00
Christian Wailes
49574608ae Merge "Updated Zygote IPC related comments." am: f8881b6821
am: c850654edc

Change-Id: I15a33cdf792727f58b3d89d86ccf454536737868
2019-02-20 16:12:40 -08:00
Makoto Onuki
3d44f6379c Merge "Fix boost charging, also expose test API" 2019-02-20 22:06:05 +00:00
Chris Wailes
b13bfc5682 Updated Zygote IPC related comments.
Bug: 124637285
Test: None; comment only changes
Change-Id: Ie567715a1ee08cdf65e3135aa75e3bd95ef5ab0d
2019-02-20 11:19:54 -08:00
Yiwei Zhang
f7b0a5f404 Game Driver: update the format of driver build date
The string based driver build date has been updated to Unix epoch
timestamp based driver build time. This change updates the corresponding
apis and throw exceptions when the meta-data timestamp in the game
driver apk is not set properly.

Bug: 123156461
Test: Build, flash and boot. Verify the GpuService receiver side.
Change-Id: Id4fb3ade31fa5944dcb32fedf5ca926b497e82dc
2019-02-20 18:08:40 +00:00
TreeHugger Robot
a835f26315 Merge "Start RenderThread earlier to preload Vulkan/EGL drivers" 2019-02-20 08:07:39 +00:00
Jeff Sharkey
3f2385b97f Merge "Respond to various API council feedback." 2019-02-20 07:07:33 +00:00
Stan Iliev
898123b6a3 Start RenderThread earlier to preload Vulkan/EGL drivers
This CL should fix application startup regression for Vulkan
detected by "Hermetic Startup: EmptyActivity" test.
EGL drivers are loaded in a temp thread to leave more time
in RenderThread for other work. Loading EGL drivers
on the RenderThread may cause a perf regression.

Test: Ran cold-dropcache-test test.
Bug: 122659224
Bug: 123361175
Change-Id: I8ca818e98fac196a41d079be15594caca5cb1bab
2019-02-20 02:10:52 +00:00
Makoto Onuki
897f63664a Fix boost charging, also expose test API
Bug: 124437856
Bug: 111360323
Test: atest CtsBatterySavingTestCases
Change-Id: I7cf25e9dca669ae1bb5d9bb62ada35a59ca26f6f
2019-02-19 13:12:09 -08:00
Jeff Sharkey
924f620c9f Merge "Map MediaStore items to StorageVolume." 2019-02-19 20:23:05 +00:00
Christian Wailes
18f7673fcd Merge "Add blastula pool system properties" 2019-02-19 18:15:48 +00:00
Jeff Sharkey
b91eaa54a8 Respond to various API council feedback.
Handle many simple, smaller changes in a single CL.  Hide
CPC.closeQuietly(), now that it implements AutoCloseable.  Add more
details to CR.set/getCache() docs.  Add many @Nullable/@NonNull
annotations.

Bug: 124507578, 124447751, 124302519, 123697622
Bug: 123661322, 122887179, 122528742, 122527812, 116224797
Test: manual
Change-Id: Icee556a6ed76bbdf4c8e42b59d69d5580d461b95
2019-02-19 11:09:22 -07:00
Jeff Sharkey
f8fa940405 Map MediaStore items to StorageVolume.
Add missing getStorageVolume() method to provide mapping from Uri
to underlying StorageVolume.

Bug: 124013019
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I91e246d29629eec84956ff113ef976e153fc69f7
2019-02-18 20:38:07 +00:00
Gavin Corkery
5ae3856c9e Rename data/staging to data/pkg_staging
Test: Build, flash, atest apex_e2e_tests
Change-Id: Ie66b0baaeb1845fdedbd6fa4bd5b33e63035627b
Fixes: 122999313
2019-02-18 14:45:48 +00:00
Santos Cordon
c34d735f43 Merge "Add force suspend API to PowerManager." 2019-02-18 10:23:04 +00:00
Ben Murdoch
f706696969 Merge "Update AppCompacted WW atom to include device ZRAM usage." 2019-02-18 09:13:23 +00:00
Mathieu Chartier
0bccbf7984 Add blastula pool system properties
This patch adds the following properties to DeviceConfig:
* BLASTULA_POOL_ENABLED
* BLASTULA_POOL_SIZE_MAX
* BLASTULA_POOL_SIZE_MIN
* BLASTULA_POOL_REFILL_THERSHOLD

The BLASTULA_POOL_ENABLED property is checked by ZygoteProcess but not
currently used due to an existing bug (b/123409530).  This will be
enabled by go/ag/6162164.  Until then the code path is tested via log
inspection.

The remaining properties are checked by ZygoteServer.  Values are
clamped to ensure that they cannot be set to values that are harmful to
the device.

Since device_config is not available in the Zygote the system properties
interface is used instead.

Bug: 123524494
Bug: 68253328

Test: adb shell device_config put runtime_native blastula_pool_enabled true
Test: manually verify the property change is observed

Change-Id: I2b675afd9fbc1cbb0e8bc1c491cfdbbb612d0d3b
2019-02-15 17:07:37 -08:00
Yiwei Zhang
31f5adb887 Game Driver: get driver build date info from Game Driver apk
Get the driver build date info from read-only system property
ro.gfx.driver.build_date for apps using system built-in driver, while
getting the Game Driver build date info from the apk's meta-data.

Bug: 123156461
Test: Build, flash and boot. Verify the GpuService receiver side.
Change-Id: Ie4acb658c9b1776179e2bb72d0b434dcf0a9a856
2019-02-15 16:27:22 -08:00
Santos Cordon
12f92eb6cf Add force suspend API to PowerManager.
Add a hidden system API (protected by DEVICE_POWER) that forces suspend,
ignoring any existing wakelock.  Add a shell cmd to trigger the API
to run.

Bug: 111991113
Test: 'adb shell svc power forcesuspend'
Change-Id: I5a258e1b7c8b1391fe1baf3930dd9d9af47235c9
2019-02-15 17:23:18 +00:00
Xin Li
07ec9dbec5 Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master 2019-02-14 22:11:32 +00:00
Maurice Lam
b8e161804d Merge "Add system APIs to implement locale picker" 2019-02-14 20:03:04 +00:00
Blake Kragten
0b2efd9f09 Merge "Power Monitor Addition framworks base:" 2019-02-14 19:33:34 +00:00
TreeHugger Robot
dbc9708897 Merge "Add NonNull annotation into unregisterThermalStatusCallback" 2019-02-14 18:53:29 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Peiyong Lin
b76bfe95e9 [Game Driver] Add global whitelist option.
Allow a '*' at the beginning of the whitelist file to mean whitelist
everything.

BUG: 120869311
Test: Build, flash and boot. Verify with apk
Change-Id: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
2019-02-13 18:52:35 -08:00
Wei Wang
3dcd3f6c8d Add NonNull annotation into unregisterThermalStatusCallback
Bug: 119613338
Test: Build
Change-Id: I4fde9ba69b549fa61197c53d99a0c394dd3dcc82
2019-02-13 18:19:52 -08:00
Peiyong Lin
7d4ac2977a Merge "Revert "Revert "[GPU Service] Move blacklists process to GPU service.""" 2019-02-14 00:20:59 +00:00
Chenjie Yu
afe83a6720 Merge "add api to log BinaryPushStateChanged atom" 2019-02-14 00:14:07 +00:00
Peiyong Lin
248542053b Revert "Revert "[GPU Service] Move blacklists process to GPU service.""
This reverts commit 67773e8b87. Below is the
original commit message:

Instead of re-processing blacklists proto everytime, we move the processing to
GPU Service, and add SettingsObserver to observe the change of
Settings.Global.GAME_DRIVER_BLACKLISTS such that we only re-process the
blacklists when needed.

As a result, we will have GAME_DRIVER_BLACKLISTS which is used to accept a list
of blacklist from the server, one for each game driver version that needs to
have blacklist, and GAME_DRIVER_BLACKLIST will only contain a list of
blacklisted application package names for the current version of game driver on
the device, separated by comma.

BUG: 120869311
Test: Build, flash and boot. Use adb shell settings put command to verify.
Change-Id: I3a82d1cc020640f7b595def67b280dbc2d3a3155
2019-02-13 13:46:35 -08:00
Blake Kragten
cb308d9c61 Power Monitor Addition framworks base:
Frameworks Base section of power monitor addition. Since IPowerStats
does not have a java interface, we needed to make a native interface
into the code. I followed how the LowPowerStats collection is being
done.

Native code is located in
com_android_server_am_BatteryStatsService.cpp. We are calling the
getEnergyData to get all rails energy data that has been collecting from
boot. This energy data is collected in uWs (microWatt seconds). After
the rail data is collected at each update in the RailStats class, the
wifi and cellular total energy values will contain the energy that all
rails associated with the specific subsystem will have.

We update and collect the energy data using battery stats and propagate
it to telephony metrics. When we collect the total energy for an update
we need to zero out the energy data so it can be accumulated correctly.

1/31: Added modemRailEnergy and wifiRailEnergy to Volta historian.

Bug: 115929961
Test: adb shell dumpsys activity service TelephonyDebugService --metrics
Results Examples:
	Energy consumed by modem (mAh): 2.41
	Energy Rails consumed by modem (mAh): 2.76
Dumpsys historian results:
	  +4m23s712ms (2) 100 cc511a18 modemRailChargemAh=0.34 wifiRailChargemAh=1.17 +wifi_scan stats=0:"dump"
         +10m24s089ms (2) 100 c4511a18 modemRailChargemAh=0.71 wifiRailChargemAh=1.77 stats=0:"write"
         +11m24s228ms (3) 100 c4511a19 volt=4315 charge=3988 modemRailChargemAh=0.77 wifiRailChargemAh=1.94 wifi_signal_strength=2 stats=0:"battery-state"

Change-Id: I97521a03204968079e61f3de86640d4f1a580255
2019-02-13 13:23:37 -08:00
Tianjie Xu
a1261476fc Merge "Improved wipe reason information for RecoverySystem" am: c8f5981028 am: 361d379280
am: 3c4afc34ee

Change-Id: I643c75d5dd066ec4e82e53b5601ecb951e5a6a34
2019-02-13 12:15:42 -08:00
Peiyong Lin
2f9ebd5982 Merge "Revert "[GPU Service] Move blacklists process to GPU service."" 2019-02-13 19:59:53 +00:00
Peiyong Lin
67773e8b87 Revert "[GPU Service] Move blacklists process to GPU service."
This reverts commit 50350c15b8.

Reason for revert: Break build.
BUG: 120869311
Test: N/A
Change-Id: Ida39fa1e0a3e75001af19adb5cf330d1be26af64
2019-02-13 19:59:18 +00:00
Tianjie Xu
3c4afc34ee Merge "Improved wipe reason information for RecoverySystem" am: c8f5981028
am: 361d379280

Change-Id: I224a98abd065bf5437d4a2ea242f146e91740ef1
2019-02-13 11:55:34 -08:00
Tianjie Xu
c8f5981028 Merge "Improved wipe reason information for RecoverySystem" 2019-02-13 19:18:01 +00:00
Peiyong Lin
8f6c9f36ab Merge "[GPU Service] Move blacklists process to GPU service." 2019-02-13 19:01:33 +00:00
Chenjie Yu
6b1667c8b1 add api to log BinaryPushStateChanged atom
This api is to log BinaryPushStateChanged.
Experiment id is added as a binary blob that is not expected to be
accessed on device side.
This cl is mainly for API.
Will add follow up cls for persisting train info on disk and make puller
for it.
Will address sepolicy in follow up cls.

Bug: 119633962
Bug: 119685453
Test: will add gts
Change-Id: I68b4246cf7e8079155e16121ca37a312b35a5328
2019-02-13 10:47:27 -08:00
Blake Kragten
d120e75490 Merge "Modem power monitor" am: 366318b9c3 am: e66ad835f2
am: 47552367f4

Change-Id: I089325b15a8c7c47823d95a1b74c735cb99ba55f
2019-02-13 10:09:37 -08:00
Blake Kragten
47552367f4 Merge "Modem power monitor" am: 366318b9c3
am: e66ad835f2

Change-Id: I8753ea8b944c7dfea1fa049f67350a1ce85fd9f7
2019-02-13 09:42:43 -08:00
Blake Kragten
4d3a9f2b3c Modem power monitor
This is an AOSP carry over for the frameworks base CL. This change is needed here to allow telephony changes to be added to AOSP with no issues.

Adding monitored power rail as a new cellular battery stats component. This will be used to better determine actual power usage of the modem rather than relying on battery reduction rates.

If the device does not support rail power monitoring then this value
will always remain at 0.

Test: adb shell dumpsys activity service TelephonyDebugService --metrics
Results Examples:
	Energy consumed by modem (mAh): 2.41

Change-Id: If85af2f2e1b255661e189c5375ecc5825be84c58
2019-02-13 16:02:03 +00:00
TreeHugger Robot
5dbf94cbc0 Merge "Statsd sends active config broadcasts" 2019-02-13 06:17:50 +00:00
Hans Boehm
e9cbc81cbd Merge "Adjust AsyncTask.THREAD_POOL_EXECUTOR config" am: 2b56c4cf48 am: e0203aa6ec
am: 4e85978e38

Change-Id: I357362798b25eb2e98a806dc309b742c954244fa
2019-02-12 21:53:05 -08:00
Hans Boehm
4e85978e38 Merge "Adjust AsyncTask.THREAD_POOL_EXECUTOR config" am: 2b56c4cf48
am: e0203aa6ec

Change-Id: I1b96696556a49faab4d003c71e78efda823da193
2019-02-12 21:41:56 -08:00
Hans Boehm
2b56c4cf48 Merge "Adjust AsyncTask.THREAD_POOL_EXECUTOR config" 2019-02-13 05:14:43 +00:00
Tej Singh
6ede28bcb9 Statsd sends active config broadcasts
Statsd now sends active configs changed broadcasts when needed per uid.
Also made an adb command to help debug.

More gts tests and unit tests required, will follow.
Test: GTS in topic
Bug: 123372077
Change-Id: Ib079018ded85d002581ffc2ba1240138ce7a54e7
2019-02-12 19:28:26 -08:00