Commit Graph

8255 Commits

Author SHA1 Message Date
TreeHugger Robot
cac0df7343 Merge "Add battery discharge prediction APIs." 2020-08-19 15:59:22 +00:00
TreeHugger Robot
f0d495611d Merge "Rename driver build time manifest flag." into rvc-dev-plus-aosp am: f2502dcd60 am: 5d8f13267b am: cbfb9f157c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12404439

Change-Id: Ia9cc42abafcda07569ba216b74457db43b70f530
2020-08-19 05:01:06 +00:00
TreeHugger Robot
5d8f13267b Merge "Rename driver build time manifest flag." into rvc-dev-plus-aosp am: f2502dcd60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12404439

Change-Id: I96b6bdef10b75b466fe3d654d44dc21e4399b06a
2020-08-19 04:36:18 +00:00
Bowgo Tsai
cd5d503301 Merge "Add systrace tag for system property" 2020-08-19 02:37:28 +00:00
Peiyong Lin
b0ce703e9a Rename driver build time manifest flag.
The driver apk is an implication of updatable, hence the word updatable
is redundant.

Bug: b/164449016
Test: build
Change-Id: Ia9477ed9277e20540f79e94e7229dc3760025eb8
2020-08-18 19:25:15 -07:00
Kweku Adams
f3b99fa7cf Add battery discharge prediction APIs.
This CL adds an API to enable an external app to provide the system with
an estimate of how much time is remaining until the battery reaches 0%.
This information will be used in Settings and SysUI to display the
estimated time until the device is fully discharged.

Bug: 139413884
Test: atest android.os.cts.PowerManagerTest
Test: atest android.permission.cts.PowerManagerServicePermissionTest
Test: atest CtsPermission2TestCases
Test: atest SettingsProviderTest
Change-Id: I7073c521e392e9616111e5e80b92a11285ac6c91
2020-08-18 11:34:33 -07:00
TreeHugger Robot
f7c04c3abc Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d am: f6d2c0abc5 am: 73f4897f80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ie51f028e1f48448f76ae2efaa2cb6183ceb1a7d5
2020-08-17 20:40:17 +00:00
TreeHugger Robot
f6d2c0abc5 Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ief345ee98cd8758baa1adde984abe01a753dce5c
2020-08-17 20:25:52 +00:00
Peiyong Lin
b18a2fccc3 Rename game driver to updatable driver.
Game driver is considered a production name. We should use the term
updatable driver instead of the production name.

Bug: b/164449016
Test: build
Change-Id: I787f97b4801dcc7b5ec2acd569a7ce284c9a1f18
2020-08-14 10:44:59 -07:00
Sudheer Shanka
e64b3e7ba8 Merge "Update language to comply with Android’s inclusive language guidance." into rvc-dev-plus-aosp am: 7f61eb2622
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347904

Change-Id: I5b9a25710e5088c525fde0416b770d25017c70b2
2020-08-13 07:14:54 +00:00
Sudheer Shanka
7f61eb2622 Merge "Update language to comply with Android’s inclusive language guidance." into rvc-dev-plus-aosp 2020-08-13 07:01:06 +00:00
Sudheer Shanka
759c96a3d4 Update language to comply with Android’s inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference

Leaving the power save whitelists as is for now. These will be handled
in a follow-up cl.

Bug: 161896447
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Change-Id: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
Merged-In: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
Exempt-From-Owner-Approval: clean cherrypick
(cherry picked from commit 76e523aa00)
2020-08-13 06:59:40 +00:00
Bradley Allen
2701609caf Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7 am: d015d7299a am: 94d6fae288 am: bb8de33a24
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: Ibc9e0bab25ebf2c66535c68a5ea601f89191b065
2020-08-12 17:36:56 +00:00
Bradley Allen
94d6fae288 Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7 am: d015d7299a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: Idfa103d97b06b8cee627909e5de387acd82f0173
2020-08-12 16:57:07 +00:00
Bradley Allen
53cb3689e3 Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: I7745361a5d9fcda8359b8245a72d2f75e59f30c4
2020-08-12 16:46:33 +00:00
Bradley Allen
d015d7299a Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: I7bd9a90e3b66e4a842bdcaa33f62328fd9928af7
2020-08-12 16:46:29 +00:00
Bradley Allen
462481663c docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com.
Test: http://go/forrest-run/L62500000661914456
Bug: 149267624
Change-Id: I73b92cf0af8f78117448db9a89d7685f45bc512d
2020-08-11 18:56:15 +00:00
Treehugger Robot
b697e1a6f6 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094 am: 2b97b69661 am: 6a6e0c282d am: 2cf9b73e4c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: I1c3f047476afa6c1e0046cc7012a745fdbd706c3
2020-08-10 21:43:23 +00:00
Treehugger Robot
6a6e0c282d Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094 am: 2b97b69661
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: Ib21378fd78ad3f69c7dc9c4270b35e94b6bd64b2
2020-08-10 21:06:59 +00:00
Treehugger Robot
2b97b69661 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: Ibd396e7b4d12e1765f71413d730d51997c5b4306
2020-08-10 20:47:00 +00:00
Treehugger Robot
e3b0b6d007 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" 2020-08-10 20:22:05 +00:00
Suprabh Shukla
9e07b814cb Merge "Switching StatLogger to uptime" 2020-08-10 20:14:59 +00:00
Sudheer Shanka
000444efdc Merge "Update language to comply with Android’s inclusive language guidance." 2020-08-09 21:07:33 +00:00
Santos Cordon
f7ab406e32 Merge "Allow Power-button to temporarily ignore proximity sensor." into rvc-d1-dev am: fdc35a2491 am: 69603f319e am: 64bff5c814
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12282513

Change-Id: I144bd25307e616fdbaf7c233dcebd941ab36e8be
2020-08-07 10:13:28 +00:00
Santos Cordon
69603f319e Merge "Allow Power-button to temporarily ignore proximity sensor." into rvc-d1-dev am: fdc35a2491
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12282513

Change-Id: I4913d33ac3e20e97ebdc524189e40f772f4dbbe3
2020-08-07 09:46:31 +00:00
Steven Moreland
7542475521 Parcelable getStability SystemApi MODULE_LIBRARIES
This method is intentionally overridden by subclasses. The
infrastructure doesn't detect that this is happening, but we should
still annotate this as part of the API.

As requested by API review council.

Bug: 162811168
Test: build only
Change-Id: I27714a93b71108cc0cc62fc858c260e2a6920ba9
2020-08-06 21:22:15 +00:00
Xin Li
4b3c00e75f Merge "Merge QQ3A.200805.001" 2020-08-05 21:05:34 +00:00
Xin Li
da7d27b21e Merge QQ3A.200805.001
Bug: 162879794
Merged-In: I6e0bdc8c02bab54f6278096b3a3acadd97c064c6
Change-Id: Idbcffbd09045575e92297fd6e0071a56a4e3cbae
2020-08-05 17:40:02 +00:00
Christian Wailes
0f2d849c39 Merge "Rename blacklist to denylist" 2020-08-05 17:32:00 +00:00
Suprabh Shukla
21489b3443 Switching StatLogger to uptime
Uptime is a better estimate of time spent in cpu. Adding uptimeNanos to
SystemClock to get finer timestamps.

Test: Manual:
`adb shell dumpsys alarm` should show sensible information under 'Stats'
printed at the end.

Bug: 162791194
Change-Id: I4f1c9d41c53ec03fc414730d38fd7a2233bb0569
2020-08-05 00:34:15 -07:00
repo sync -c -j8
8d2ad2176f Rename blacklist to denylist
Test: no new test
Change-Id: If8bb7c923f1ce8d8ce8c3142bf1b674982a96573
Merged-In: If8bb7c923f1ce8d8ce8c3142bf1b674982a96573
2020-08-04 21:42:25 +00:00
Christian Wailes
47c5c8d1ef Merge "Rename blacklist to denylist" into rvc-dev-plus-aosp 2020-08-04 21:41:59 +00:00
Dmitri Plotnikov
6c3defc282 Implement a PowerCalculator to attribute system service power to apps
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServicePowerCalculatorTest
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServerCpuThreadReaderTest
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsBinderCallStatsTest
Bug: 158232997

Change-Id: I14f6527524d6c32de460d80b33dfa0d6c0ad863c
2020-08-04 18:01:58 +00:00
Bowgo Tsai
98d0d4ba03 Add systrace tag for system property
Introduce a new systrace tag, TRACE_TAG_SYSPROP, for use with
system property.

Bug: 147275573
Test: build
Change-Id: Id78992d238a73257bb9b80bfaa6bbfeb16f477d8
2020-08-04 03:31:38 +00:00
Santos Cordon
31c24e048f Allow Power-button to temporarily ignore proximity sensor.
If a device has an active proximity wakelocks while proximity
is in the "near" state, a press of the power button will temporarily
ignore proximity sensor allowing the screen to turn back on.
It will stop being ignored where there is a change to the
proximity sensor state.

Bug: 162443904
Test: atest PowerManagerServiceTests, atest DisplayManagerTests
Change-Id: I2656cca3e643e278cd5e5fedc2d74d9cbca82c2b
2020-08-03 16:26:51 +00:00
Christian Wailes
1a08982881 Merge "Rename blacklist to denylist" 2020-08-03 14:02:47 +00:00
Orion Hodson
6f379f0346 Merge "Update art-team members in OWNERS files" am: 63ceb6abdb am: be3aeabfef am: 489aa7f7a2 am: fb84aa69d3 am: 181934aa7e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1376496

Change-Id: Ibbededd570645c4d6619c37406e1b160b8cfa77d
2020-08-03 10:16:15 +00:00
Orion Hodson
489aa7f7a2 Merge "Update art-team members in OWNERS files" am: 63ceb6abdb am: be3aeabfef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1376496

Change-Id: If52c858195b9619511e400567911e52b9c6004dc
2020-08-03 09:04:48 +00:00
Orion Hodson
63ceb6abdb Merge "Update art-team members in OWNERS files" 2020-08-03 08:18:39 +00:00
Peiyong Lin
78ea35bef3 Merge "Use more inclusive terms." into rvc-dev-plus-aosp am: 094c85c93a am: 8d7604a4cb am: a5220103f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12272621

Change-Id: I389a17b987a5a3bc40e2ecc70f348f4cec045245
2020-08-01 07:28:43 +00:00
Peiyong Lin
094c85c93a Merge "Use more inclusive terms." into rvc-dev-plus-aosp 2020-08-01 06:25:52 +00:00
repo sync -c -j8
b656b9540a Rename blacklist to denylist
Test: no new test
Change-Id: If8bb7c923f1ce8d8ce8c3142bf1b674982a96573
Merged-In: If8bb7c923f1ce8d8ce8c3142bf1b674982a96573
2020-07-31 16:28:57 -07:00
repo sync -c -j8
05a35b1877 Rename blacklist to denylist
Test: no new test
Change-Id: If8bb7c923f1ce8d8ce8c3142bf1b674982a96573
2020-07-31 16:23:55 -07:00
Treehugger Robot
b40e4f7352 Merge "Update language to comply with Android's inclusive language guidance" am: e2d9b14b60 am: 6f22d2c310 am: 9bade16516 am: acbb11f541 am: 69194793fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382541

Change-Id: I0be07dc3bf70507f82a4005ccd7fe2d687d58d81
2020-07-31 17:09:57 +00:00
Treehugger Robot
9bade16516 Merge "Update language to comply with Android's inclusive language guidance" am: e2d9b14b60 am: 6f22d2c310
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382541

Change-Id: I94da777e46e45795d01708f3ba52ce81f61aec87
2020-07-31 16:10:11 +00:00
Lais Andrade
5c2a4f55d9 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=162536543

Change-Id: Iea1f8c3d2a253cad5a6a429389bbe3fc5fd4bc6b
2020-07-31 14:11:38 +00:00
Sudheer Shanka
76e523aa00 Update language to comply with Android’s inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference

Leaving the power save whitelists as is for now. These will be handled
in a follow-up cl.

Bug: 161896447
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Change-Id: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
2020-07-31 03:06:21 -07:00
Orion Hodson
c320cd0b89 Update art-team members in OWNERS files
Test: build/make/tools/checkowners.py -c -v frameworks/base/core/java/android/os/OWNERS
Test: build/make/tools/checkowners.py -c -v frameworks/base/core/java/com/android/internal/os/OWNERS
Test: build/make/tools/checkowners.py -c -v frameworks/base/core/jni/OWNERS
Test: build/make/tools/checkowners.py -c -v frameworks/base/services/core/java/com/android/server/pm/dex/OWNERS
Test: build/make/tools/checkowners.py -c -v frameworks/base/tests/BootImageProfileTest/OWNERS
Change-Id: I958c12aacf2c0c18df7505674a49103f89e5a770
2020-07-31 08:52:35 +01:00
Peiyong Lin
7bc64bdf00 Use more inclusive terms.
BUG: b/162288333
Test: N/A
Change-Id: Icd58adb5eb19395548f20bd9349639e84a0cce88
2020-07-29 16:23:28 -07:00
Dieter Hsu
f7f4f62850 Add BugreportManagerTestCases to bugreport presubmit
Bug: 159590499
Test: atest --test-mapping --dry-run \
                 services/core/java/com/android/server/os:presubmit
Test: atest --test-mapping --dry-run core/java/android/os:presubmit

Change-Id: Ib6ec81570d5000ae3c7cb76da0e8e0eed98c425e
2020-07-29 17:55:35 +08:00