Commit Graph

6087 Commits

Author SHA1 Message Date
TreeHugger Robot
d47fcfdc72 Merge "Adding support for adaptive battery saver." 2019-01-31 08:37:32 +00:00
Remi NGUYEN VAN
5de539172f Merge "Add UserHandle.getAppId to SystemApi" am: b334bbefd4 am: dac257d27c
am: ac358e2951

Change-Id: I64f2353311978ac585e6a2555adedbe967e23588
2019-01-30 22:41:52 -08:00
Remi NGUYEN VAN
ac358e2951 Merge "Add UserHandle.getAppId to SystemApi" am: b334bbefd4
am: dac257d27c

Change-Id: If35e251dbbbca2839529bbb999c6813fb601d1c0
2019-01-30 22:29:31 -08:00
Howard Chen
0a94764738 Add the DynamicAndroid Service
Define the DynamicAndroid with AIDL.
  Add a java implementation.
  Start a service instance in the system server.
  Add a permission test.

Bug: 122015653
Test: Build & Test on a pixel phone with following command \
  ./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest

Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
2019-01-31 14:19:34 +08:00
Remi NGUYEN VAN
b334bbefd4 Merge "Add UserHandle.getAppId to SystemApi" 2019-01-31 06:04:11 +00:00
Remi NGUYEN VAN
9e70a42252 Add UserHandle.getAppId to SystemApi
This is consistent with other methods in this class, and unbundled
system apps such as the network stack need this API to verify their
callers regardless of the userid. The method is already marked as
TestApi.

Test: m
Bug: 123655057
Change-Id: I0ecef4abcd850dc641cd70681a56cb038778c04c
2019-01-31 12:52:03 +09:00
Christian Wailes
a6fd7351cd Merge "Added OWNERS entries for some Zygote related files." am: 3ad8923842 am: 2f0392e6f7
am: c5de65d8f0

Change-Id: I4bae89b7d2996042f3a8e72ec1dcc78ba4fa4a27
2019-01-30 17:44:07 -08:00
Christian Wailes
c5de65d8f0 Merge "Added OWNERS entries for some Zygote related files." am: 3ad8923842
am: 2f0392e6f7

Change-Id: If5c42163657b9704bcd4e257a0869e4ee8345793
2019-01-30 17:29:36 -08:00
Christian Wailes
3ad8923842 Merge "Added OWNERS entries for some Zygote related files." 2019-01-31 01:04:28 +00:00
Kweku Adams
9f488e2eae Adding support for adaptive battery saver.
Adaptive battery saver is a state that can be entered into dynamically
without the user turning on full EBS. With this, some features of
battery saver can be enabled to save power before the user needs to have
EBS turned on.

Bug: 119261320
Bug: 32423528
Test: atest android.provider.SettingsBackupTest
Test: atest com.android.server.power.PowerManagerServiceTest
Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest
Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest
Test: atest com.android.server.power.batterysaver.BatterySavingStatsTest
Test: atest CtsBatterySavingTestCases
Change-Id: Ib11ea069828275d788e20cd2e858375eaaea888e
2019-01-30 15:38:25 -08:00
TreeHugger Robot
78ae2b5bb6 Merge "Skeleton API for IncidentManager to retrieve incident reports." 2019-01-30 03:30:40 +00:00
TreeHugger Robot
52c0db9ccb Merge "[GPU Service] Implement GPU service." 2019-01-30 02:50:00 +00:00
Joe Onorato
8daca75889 Skeleton API for IncidentManager to retrieve incident reports.
Bug: 123543706
Test: make
Change-Id: I0a41d476703cb0c1c728c6de1bf290162129e699
2019-01-29 16:10:44 -08:00
Peiyong Lin
fd71c20c68 [GPU Service] Implement GPU service.
GPU Service is used to monitor all GPU and graphics driver related features.
This patch implements GPU service into System Server, and implements
functionality to extract the whitelist out of game driver package when the
package is upgraded or removed. This will move the whitelist processing off
critical path when app launches.

BUG: 123290424
Test: Build, flash and boot. Verify by upgrading game driver apk.
Change-Id: I563a138bfe0c4c1bb17ed28dab5d6a8df244021d
2019-01-29 13:41:44 -08:00
Amith Yamasani
173af94d25 Merge "Introduce a new process state for location fg service" 2019-01-29 20:07:13 +00:00
Joe Onorato
e21ab7eab4 Add IncidentCompanionService
It is a helper in the system process that helps dumpstate and incidentd get
user confirmation to share reports

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: Ia3fe4bd5257044ed89fe56ce683876fa03ba6c36
2019-01-29 09:59:28 -08:00
TreeHugger Robot
1ea5775448 Merge "Game Driver: rename GUP to Game Driver" 2019-01-29 10:51:26 +00:00
Martijn Coenen
d5b1afc8ae Merge "Speed up Zygote connection retry." 2019-01-29 08:34:05 +00:00
Nandana Dutt
2ef1ad5216 Merge "Remove DumpstateOptions" am: 706b2d0e16 am: bc960e3905
am: 454d6e56f3

Change-Id: I765b9e390a709ced07f9173d05d95df5243764ab
2019-01-28 21:25:13 -08:00
Nandana Dutt
454d6e56f3 Merge "Remove DumpstateOptions" am: 706b2d0e16
am: bc960e3905

Change-Id: Ieb16f21c95a1fd332530e1630101b56e8c4efdb7
2019-01-28 21:00:13 -08:00
Nandana Dutt
d38769402a Merge "Expose bugreporting API as system API." am: 6ac57c669a
am: f1c0ec00a3

Change-Id: I6d0dd760b964d2e4ccfc271f001023a066c350ea
2019-01-28 20:42:08 -08:00
Sudheer Shanka
ca923a9aab Merge "Update DownloadStorageProvider to include MediaStore.Downloads." 2019-01-29 02:57:44 +00:00
Nandana Dutt
706b2d0e16 Merge "Remove DumpstateOptions" 2019-01-28 17:20:45 +00:00
David Brazdil
f7ad5af4a8 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981 am: fe642a81d9
am: 47b4ad2c13

Change-Id: I6a85a7960825a6f2471338b17f8b9cf8497b8e10
2019-01-28 08:33:18 -08:00
Nandana Dutt
6ac57c669a Merge "Expose bugreporting API as system API." 2019-01-28 16:27:07 +00:00
David Brazdil
47b4ad2c13 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
am: fe642a81d9

Change-Id: I927ed3371a0f6df6182999fb188d040af28289e6
2019-01-28 08:24:04 -08:00
Sudheer Shanka
e93db5123b Update DownloadStorageProvider to include MediaStore.Downloads.
Bug: 120879205
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I44be836899437d87fc1a00e5fe316c6b68488643
2019-01-28 08:20:47 -08:00
Sudheer Shanka
31f977a443 Merge "Update FileObserver to be able to watch multiple files." 2019-01-28 16:01:50 +00:00
David Brazdil
faedae5981 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" 2019-01-28 14:23:43 +00:00
Nandana Dutt
b8a51a3169 Merge "Expose bugreporting API as system API." 2019-01-28 14:21:57 +00:00
Martijn Coenen
82dc85af64 Speed up Zygote connection retry.
For the app zygote, the time to connect to the Zygote is in the critical
path for the (first) isolated service start. Speed up the retry.

Bug: 111434506
Test: atest CtsApptestCases:ServiceTest
Change-Id: I634a7b45e3065744e3d15287453327eca763660f
2019-01-28 13:52:33 +01:00
David Brazdil
576da0582f Add @UnsupportedAppUsage to methods known to be used by apps
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 123308819
Bug: 122291025
Test: m appcompat
Change-Id: Iafd62b8ece0d19268fad65086134a1e7369bc0bb
2019-01-28 12:46:33 +00:00
Nandana Dutt
9abc452d0e Remove DumpstateOptions
This is not used anymore, instead bugreport mode is used to encapulsate
a number of options.

BUG: 111441001
Test: builds

Change-Id: I04f17b2605d242a33909cfaecbc647e9eee8d1fc
2019-01-28 10:56:48 +00:00
Nandana Dutt
2083e8c8b8 Expose bugreporting API as system API.
BUG: 111441001
Test: Builds
Change-Id: I1530f92971807b7e43c763a58dd1e18e793255da
Merged-In: I1530f92971807b7e43c763a58dd1e18e793255da
2019-01-28 09:33:55 +00:00
Yiwei Zhang
2b3be86334 Game Driver: rename GUP to Game Driver
Bug: 119221883
Test: Build, flash, boot and make RunSettingsRoboTests
Change-Id: I39724917b516b4871c6b1b1f0d30aa0f793942a4
2019-01-28 00:24:30 -08:00
Sudheer Shanka
f7c79b4f06 Update FileObserver to be able to watch multiple files.
Bug: 120879205
Test: atest cts/tests/tests/os/src/android/os/cts/FileObserverTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileObserverTest.java
Change-Id: Ie1067c81dc502f2ad971e1f5d02be8baa319c3ad
2019-01-27 20:45:27 -08:00
Michael Wright
a6a4f9c0a9 Merge "Add new ExternalVibratorService." 2019-01-27 23:44:13 +00:00
Jeff Sharkey
8bcdea7182 Merge "Get CtsProviderTestCases building against API." 2019-01-27 03:03:48 +00:00
Jeff Sharkey
cb269aac7e Get CtsProviderTestCases building against API.
To help confirm that we're actually testing developer-visible
behaviors, we need to build against public APIs, since there have
been plenty of examples in this suite of "testing" hidden API
behaviors, which are then misleading to developers.

Bug: 120429729
Test: atest cts/tests/tests/provider/
Exempt-From-Owner-Approval: Trivial API annotations
Change-Id: I07fe33e54f611a6060217f0706fb99b809961f4d
2019-01-27 03:03:39 +00:00
Tej Singh
bd37b5f8b3 Merge "APIs for registering config activation broadcasts" 2019-01-27 02:32:37 +00:00
Nandana Dutt
0a18820a49 Expose bugreporting API as system API.
BUG: 111441001
Test: Builds
Change-Id: I1530f92971807b7e43c763a58dd1e18e793255da
(cherry picked from commit b3857c4f7301b0b9c80e6db3f27c8ebada82a60f)
2019-01-26 22:36:08 +00:00
Michael Wright
c390fbe928 Add new ExternalVibratorService.
This lets services outside of the vibrator service (and outside of
system_server) take control of the vibrator hardware. We still apply
policy in vibrator service, however, and can ask them to mute their
operations so we can give more critical haptic feedback when necessary.

Bug: 111457573
Test: manual
Change-Id: Ib7d06aa5940790cac627499acb23e4f0bda1b035
2019-01-26 16:40:54 +00:00
Tej Singh
2c9ef2a92e APIs for registering config activation broadcasts
Creates a StatsManager API to register a pending intent that is invoked
whenever the active status of any of any config sent by that uid
changes.

ag/6112554 and further cls are needed to properly send back the pending
intent.

Bug: 123372077
Test: build success on blueline-eng. More thorough testing should be
done once ag/6112554 is submitted.

Change-Id: I36985c9820d4e7ac178064924190af88ea822254
2019-01-25 17:58:02 -08:00
TreeHugger Robot
4e78dec0d8 Merge "Add api to change charging state update delay" 2019-01-25 22:42:06 +00:00
Lucas Dupin
cea31af085 Merge "Do not sleep if someone is paying attention" 2019-01-25 21:55:51 +00:00
Nandana Dutt
9669b21417 Merge "Follow API guidelines in BugreportManager" am: 37aee80c76 am: 0dcbf78430
am: 99d137b32a

Change-Id: Ibb61ae2f4f633744229b4b619205f396d2c3f8a8
2019-01-25 13:41:18 -08:00
Nandana Dutt
99d137b32a Merge "Follow API guidelines in BugreportManager" am: 37aee80c76
am: 0dcbf78430

Change-Id: I2664d2de3d1ad770faa9681275c030f976c90a21
2019-01-25 13:29:23 -08:00
Chris Wailes
5d0f240569 Added OWNERS entries for some Zygote related files.
This commit adds two OWNERS files and modifies a third to add owner
entries for files related to the Zygote.

Test: none
Change-Id: Id26271e5af168775b2d2d3f9d3cc0c3421ad03f1
2019-01-25 11:22:58 -08:00
Lucas Dupin
0a5d79707d Do not sleep if someone is paying attention
Test: atest AttentionDetectorTest
Test: manual; let device sleep because of timeout (without attention)
Test: manual; let device sleep after maximum attention timeout
Test: manual; touch screen multiple times to avoid timeout
Bug: 111939367
Change-Id: Iafeea7569f84fce08888bc5b6d74ba02fb13fd04
2019-01-25 10:28:01 -08:00
Ng Zhi An
0941120f79 Add api to change charging state update delay
This adds a field Settings.Global.BATTERY_CHARGING_STATE_UPDATE_DELAY
that overrides the value of battery_charged_delay_ms in
Settings.GLOBAL.BATTERY_STATS_CONSTANTS.

This new field can then be set for experimentation, and easily reset to
default by deleting, or setting it to a negative value.

Expose a method in BatteryManager to set a value for this new setting.

Bug: 111360323
Test: adb shell settings put global battery_charging_state_update_delay 999
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=999
adb shell settings put global battery_charging_state_update_delay -1
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=90000
Change-Id: Ic308af938836a1f9c235cec341808b6c6c28d22d
2019-01-25 09:14:44 -08:00