Commit Graph

9617 Commits

Author SHA1 Message Date
Kalesh Singh
05d0f24586 Merge "Add API to get GPU private memory" into sc-dev am: 4b939ccd2f am: ff0875c231
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15266039

Change-Id: I55950548223f47cddf1d8e23f28c6c54b4078b5e
2021-07-15 17:56:56 +00:00
Colin Cross
92380ef500 Merge "Add android.os.Build.VERSION_CODES.T" into sc-dev-plus-aosp am: 3e1311a4b4 am: adb28d6357
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286710

Change-Id: I4c55061aacf62269c985eef6623545986ffd1461
2021-07-15 17:26:01 +00:00
Kalesh Singh
4b939ccd2f Merge "Add API to get GPU private memory" into sc-dev 2021-07-15 17:21:49 +00:00
Colin Cross
adb28d6357 Merge "Add android.os.Build.VERSION_CODES.T" into sc-dev-plus-aosp am: 3e1311a4b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286710

Change-Id: Ie92f05f3b752f18f9bf17a2d80e755292635128b
2021-07-15 17:10:41 +00:00
Colin Cross
3e1311a4b4 Merge "Add android.os.Build.VERSION_CODES.T" into sc-dev-plus-aosp 2021-07-15 16:40:36 +00:00
TreeHugger Robot
862051d910 Merge "Added Ble scan APIs to BatteryStatsManager" into sc-dev-plus-aosp am: 1c32cef21f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15233610

Change-Id: I416da2e03e823c671967d12c349b7d7329c103b9
2021-07-15 16:33:17 +00:00
TreeHugger Robot
1c32cef21f Merge "Added Ble scan APIs to BatteryStatsManager" into sc-dev-plus-aosp 2021-07-15 16:19:08 +00:00
Tim Van Patten
e301bc3d78 Merge "Enable ANGLE as a Game Dashboard Intervention" 2021-07-15 04:00:01 +00:00
Kalesh Singh
c6deb0fd9d Add API to get GPU private memory
Remove getGpuDmabufUsageKb since the kernel no longer
supports the sysfs nodes that this depends on.

Add getGpuPrivateMemoryKb which uses the memtrack hal
to report the system-wide GPU private memory.

Bug: 193226716
Bug: 193465681
Bug: 192621117
Test: dumpsys meminfo
Change-Id: Ib90505ec184339d5acbcd42c67dad3ad65dbd933
2021-07-14 21:16:18 +00:00
Tim Van Patten
acf3851b8f Enable ANGLE as a Game Dashboard Intervention
Enable ANGLE as a Game Dashboard intervention via Phenotype.

Bug: b/188475576
Test: GameManagerServiceTests
Change-Id: I91894a76b8dcf7a97244cff679a501001734f671
2021-07-14 13:24:02 -06:00
Colin Cross
1c3c21ec6e Add android.os.Build.VERSION_CODES.T
Set to CUR_DEVELOPMENT.

Bug: 186121492
Test: m checkbuild
Change-Id: I2c92a1bc4b8bb2414e55bbd4f5cd0ac86e55e91a
2021-07-14 11:59:02 -07:00
Jeff Sharkey
7351d81a06 Merge "Consistent version documentation." into sc-dev am: af2d4c8c8f am: f0f641d21d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275398

Change-Id: Ic897809076ce278e2e7194a17308ad9394121114
2021-07-14 15:45:23 +00:00
Jeff Sharkey
d30833af94 Merge "Consistent version documentation." into sc-dev am: af2d4c8c8f am: 60374908ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275398

Change-Id: I6ee74ee95c510229de34ea5acfc1482f4780c4b9
2021-07-14 15:44:32 +00:00
Jeff Sharkey
b7fec03713 Merge "Consistent version documentation." into sc-dev am: af2d4c8c8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275398

Change-Id: I4df46a6b39dd98160f5db9eb6a6f2388ccc5f523
2021-07-14 15:33:29 +00:00
Jeff Sharkey
f0f641d21d Merge "Consistent version documentation." into sc-dev am: af2d4c8c8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275398

Change-Id: Ia258cc5ac7a7bd4887422eb0a4d57f9c22fa5ae1
2021-07-14 15:33:27 +00:00
Jeff Sharkey
866af3b915 Consistent version documentation.
Aligns description of all VERSION_CODES based on details at:
https://en.wikipedia.org/wiki/Android_version_history

Bug: 193421818
Change-Id: I0ccb2480b5255b0e3a61a82d6be75f746166e536
2021-07-13 13:17:18 -06:00
TreeHugger Robot
2f446c57fb Merge "Added Ble scan APIs to BatteryStatsManager" 2021-07-08 18:43:28 +00:00
Etienne Ruffieux
6222c48ad5 Added Ble scan APIs to BatteryStatsManager
Added missing service functions to manager to prevent directly
calling BatteryStatsService from Bluetooth package. Updated
system-current.txt accordingly.

Tag: #feature
Bug: 190442794
Test: Manual
Merged-in: Ie6c6d3688d2da45956d57ea1dbc2cc4430f27783
Change-Id: Ie6c6d3688d2da45956d57ea1dbc2cc4430f27783
2021-07-08 09:20:01 +00:00
Etienne Ruffieux
f771dac97b Added Ble scan APIs to BatteryStatsManager
Added missing service functions to manager to prevent directly
calling BatteryStatsService from Bluetooth package. Updated
system-current.txt accordingly.

Tag: #feature
Bug: 190442794
Test: Manual
Change-Id: Ie6c6d3688d2da45956d57ea1dbc2cc4430f27783
2021-07-08 08:56:34 +00:00
Martijn Coenen
d4f9da0795 Throw BinderProxyMapSizeException when hitting limits.
To make it easier to cluster these errors.

Test: N/A
Change-Id: Id967c1d537ca655df2363bf38a798d632bf1b160
2021-07-06 10:15:32 +02:00
Dmitri Plotnikov
593a4e7a21 Merge "Address race condition in procstate time tracking" into sc-dev am: b1f548e3e4 am: f99c289be5 am: b40a34e68e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15177890

Change-Id: I14aee56d18b15736e121c202c45158fb5006062e
2021-07-03 00:36:25 +00:00
Dmitri Plotnikov
ee0373e491 Merge "Address race condition in procstate time tracking" into sc-dev am: b1f548e3e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15177890

Change-Id: I20670af72e0fe93f4d86c08c72e722ec4595bd67
2021-07-03 00:27:32 +00:00
Dmitri Plotnikov
b40a34e68e Merge "Address race condition in procstate time tracking" into sc-dev am: b1f548e3e4 am: f99c289be5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15177890

Change-Id: Ic176c205eb9403ce5c880474ff6132abe5780091
2021-07-03 00:19:53 +00:00
Dmitri Plotnikov
f99c289be5 Merge "Address race condition in procstate time tracking" into sc-dev am: b1f548e3e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15177890

Change-Id: I322ee8c8ab5b64607c2815ae28122b9667fbc67c
2021-07-03 00:18:57 +00:00
Dmitri Plotnikov
dc3a78354e Address race condition in procstate time tracking
The issue occurs when the application proc state changes
rapidly, e.g. from FOREGROUND to BACKGROUND to CACHED.
The original code would sometimes attribute the time slice
to the wrong proc state.

Bug: 192550308
Test: (on cuttlefish) atest --rerun-until-failure 300 FrameworksCoreTests:com.android.internal.os.BstatsCpuTimesValidationTest -- --abi x86_64

Change-Id: Ic22bbfa3aae701014fc016ec9e2d32b1c528d462
2021-07-01 22:04:28 -07:00
Tim Van Patten
e36c94e1d9 Merge "Remove support: libfeature_support_angle.so" 2021-06-28 21:45:29 +00:00
TreeHugger Robot
b3e392b364 Merge "FileBridge: use a ByteBuffer for the temp buffer" into sc-dev am: 64dcdac602 am: 88aa0bcc1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15100555

Change-Id: I916e311b0c3816221ae8530b4552e708b044c517
2021-06-25 21:43:55 +00:00
TreeHugger Robot
355ae24ec5 Merge "FileBridge: use a ByteBuffer for the temp buffer" into sc-dev am: 64dcdac602 am: 6147b389b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15100555

Change-Id: Ib0d24ca9061f81ee79414f8ee1a096576001df32
2021-06-25 21:42:56 +00:00
TreeHugger Robot
f0dfbe020d Merge "FileBridge: use a ByteBuffer for the temp buffer" into sc-dev am: 64dcdac602
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15100555

Change-Id: If64fd555e446b76d76fb557bb34522f945ed844a
2021-06-25 21:30:43 +00:00
TreeHugger Robot
88aa0bcc1c Merge "FileBridge: use a ByteBuffer for the temp buffer" into sc-dev am: 64dcdac602
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15100555

Change-Id: If54c5779dbb27cc24b0f270ee5a49bb1cc88fe33
2021-06-25 21:29:47 +00:00
TreeHugger Robot
64dcdac602 Merge "FileBridge: use a ByteBuffer for the temp buffer" into sc-dev 2021-06-25 21:25:40 +00:00
Tim Murray
8c37737cbc FileBridge: use a ByteBuffer for the temp buffer
Using a direct ByteBuffer allows the buffer to be passed to/from JNI
without intermediate copies.

Test: FileBridgeTests, apps get installed without allocation churn
Bug: 192020559
Change-Id: Ic5965c94ba14de6599af67d2e3bba33cd9996046
2021-06-25 11:14:53 -07:00
Nandana Dutt
27bb9a53f4 Merge "Undeprecate storage directory APIs" into sc-v2-dev am: 19325e4648
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080410

Change-Id: I3c18042f36ccaaa0d4ff20fb5694285d68eb3af2
2021-06-25 11:00:27 +00:00
Nandana Dutt
19325e4648 Merge "Undeprecate storage directory APIs" into sc-v2-dev 2021-06-25 10:50:42 +00:00
TreeHugger Robot
6b61b1b599 Merge "Fix SystemVibrator constant support checks on device without vibrator" into sc-dev am: a02615b9cc am: 58436298c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054858

Change-Id: Ic491b701db9edc81fdca6cfacb707800e134d452
2021-06-24 14:35:26 +00:00
TreeHugger Robot
223d1c6638 Merge "Fix SystemVibrator constant support checks on device without vibrator" into sc-dev am: a02615b9cc am: 1978727ed9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054858

Change-Id: I22ea2674119701180cfbceb816b9561e66f2f64a
2021-06-24 14:30:10 +00:00
TreeHugger Robot
b474cc0757 Merge "Fix SystemVibrator constant support checks on device without vibrator" into sc-dev am: a02615b9cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054858

Change-Id: I4805c35f08126378eed3e1ccdff90819ce7ac110
2021-06-24 14:26:12 +00:00
Lais Andrade
efc9cc93be Fix SystemVibrator constant support checks on device without vibrator
Fix the implementation of SystemVibrator to return always no support to
all effect and primitive constants on devices with no vibrator.

Fix: 191414125
Test: FrameworksCoreTests:VibratorTest
Change-Id: I0fd9e27d6e2890df9ee206029488ea70ff50712d
2021-06-24 12:33:40 +01:00
Dmitri Plotnikov
56c8848776 Change required permission declaration for BatteryStatsManager.get*BatteryStats
This is a compatible change: either the new or the previously declared
permission are allowed by the implementation of this API.

Bug: 191784003
Test: Build
Change-Id: Iee7b7ad5806dd13795aea07af3bbb1d88fdabe09
2021-06-23 11:57:57 -07:00
Tim Van Patten
187688f371 Remove support: libfeature_support_angle.so
Remove support for ANGLE's libfeature_support_angle.so.

This also removes all of the logic related to checking the rules file,
since libfeature_support_angle.so is what parsed the JSON rules file.

Bug: 187342779
Test: make and manual verification ANGLE is loaded
Change-Id: I02ac083fb8144465b60ac0ed2738c73b31addda1
2021-06-23 15:54:27 +00:00
Nandana Dutt
9f77f7f31b Undeprecate storage directory APIs
Android 10 did not support file path operations for apps in
scoped storage. But Android 11 and above do support file path
operations for such apps.

Undeprecate getExternalStorageDirectory() and
getExternalStoragePublicDirectory() to reflect the current level of
support.

BUG: 153562415
Test: m
Change-Id: Ibd93ca07a0c08b11a82b70dca8c2cd7d49600354
(cherry picked from commit 74bf4e682d)
2021-06-23 11:40:17 +00:00
TreeHugger Robot
3536f1a68c Merge "Split long vibration composition using HAL limits" into sc-dev am: 55a8db6450 am: 5c6c3e1f59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807584

Change-Id: I95636922ec2ca5cd91181932b7c1ab560f87e46e
2021-06-22 21:48:09 +00:00
TreeHugger Robot
14faf554e8 Merge "Create config for audio haptic channels max value" into sc-dev am: 8affbdac22 am: a5df8afcd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15027757

Change-Id: Iee4c58a2d8d76f6205072424f2e1bf7f487dc78f
2021-06-22 21:47:40 +00:00
TreeHugger Robot
eeacf72270 Merge "Split long vibration composition using HAL limits" into sc-dev am: 55a8db6450 am: 4391344e4f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807584

Change-Id: Ie7282dc3d3b916b1410fc8110d9bba1e7dd6deee
2021-06-22 16:45:01 +00:00
TreeHugger Robot
c536559f00 Merge "Split long vibration composition using HAL limits" into sc-dev am: 55a8db6450
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807584

Change-Id: I97b1b2584a05db04ccaf25fe2cc63807e451c10b
2021-06-22 16:30:22 +00:00
Nandana Dutt
062ac293b3 Merge "Undeprecate storage directory APIs" 2021-06-22 16:23:45 +00:00
TreeHugger Robot
55a8db6450 Merge "Split long vibration composition using HAL limits" into sc-dev 2021-06-22 16:08:22 +00:00
Dmitri Plotnikov
c306b3924c Merge "Reduce size of BatteryUsageStats Parcel" into sc-dev am: 8b22190dfd am: 4211df1c5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15020275

Change-Id: Id7212adad5425855eee1d744f2e388a3dce12035
2021-06-22 15:10:55 +00:00
TreeHugger Robot
d2c49e6291 Merge "Create config for audio haptic channels max value" into sc-dev am: 8affbdac22 am: 3c39dfe93d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15027757

Change-Id: I2b904c62c09925fb658f468fda80aadcd0cb0dd2
2021-06-22 15:08:11 +00:00
TreeHugger Robot
f9036d82b1 Merge "Create config for audio haptic channels max value" into sc-dev am: 8affbdac22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15027757

Change-Id: I92135cff69068350d3bb65f33efe42fca7d90454
2021-06-22 15:02:47 +00:00