TreeHugger Robot
36628604bc
Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde am: c42ccdd692
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175
Change-Id: I97f6073cc2d3a2d8dd0d74c73aba2a95b57c41f0
2021-06-15 18:29:51 +00:00
TreeHugger Robot
0a9650dcde
Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev
2021-06-15 18:02:16 +00:00
Dmitri Plotnikov
b2baae41c2
Add BatteryUsageStatsProtoTests to presubmit
...
Bug: 189221904
Test: atest --test-mapping frameworks/base/core/java/android/os
Test: atest --test-mapping frameworks/base/core/java/com/android/internal/os
Change-Id: Id279e899a19c81726cabb5e134a199bb3c367475
2021-06-14 18:56:55 -07:00
Dmitri Plotnikov
969e4064ac
Limit the number of UidBatteryConsumers included in the BatteryUsageStats atom
...
Bug: 189225426
Test: atest BatteryUsageStatsProtoTests:BatteryUsageStatsPulledTest
Change-Id: Ic9866962330f0b51727e5202560d97ffac0b8980
Merged-In: Ic9866962330f0b51727e5202560d97ffac0b8980
2021-06-14 11:53:48 -07:00
Dmitri Plotnikov
4e17d25774
Limit the number of UidBatteryConsumers included in the BatteryUsageStats atom
...
Bug: 189225426
Test: atest BatteryUsageStatsProtoTests:BatteryUsageStatsPulledTest
Change-Id: Ic9866962330f0b51727e5202560d97ffac0b8980
2021-06-14 11:51:41 -07:00
Pavel Grafov
b620951b84
Merge "Don't reset user VPN without reason" into sc-dev am: c0115519f6 am: f74b5d16c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14717702
Change-Id: I1b8e37af88cd7ec00b7e084e85eaea019e0fd11e
2021-06-10 16:02:44 +00:00
Pavel Grafov
c0115519f6
Merge "Don't reset user VPN without reason" into sc-dev
2021-06-10 15:31:04 +00:00
TreeHugger Robot
89788e24cd
Merge "Proper retrying DL installation sessions." into sc-dev am: aea3115776 am: 36b9c31b43
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14910490
Change-Id: I8580191ac095639339dfe18a5578000d02f95b8b
2021-06-09 17:22:58 +00:00
Dmitri Plotnikov
0429fc7527
Merge changes I3c27deb5,If3703606,I66bbb173
...
* changes:
Implement battery_usage_stats_before_reset pull atom
Add BatteryUsageStatsQuery parameters: time range
Implement BatteryUsageStatsStore
2021-06-09 17:21:30 +00:00
Pavel Grafov
d406212ac2
Don't reset user VPN without reason
...
When DPM.setAlwaysOnVpn is called with package=null, it resets
any VPN configured by the user. With this change it won't happen
anymore: it will only reset VPN configuration if it was previously
configured by the admin.
If an admin actually wants to remove any user configured VPN, they
can enforce DISALLOW_CONFIG_VPN restriction which will remove any
user VPNs and will prevent the user from configuring a new one.
+ Also make sure that when the DPC removes an always-on VPN
configuration, the package loses ability to start VPN until the
user authorizes it again.
Bug: 139823667
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ia703015b4e8d7eaf156358d7eb000d6f58d32238
2021-06-09 14:22:01 +01:00
Alex Buynytskyy
4bafd4ddd8
Proper retrying DL installation sessions.
...
Plus more robust handling of broken DLs.
Bug: 190012477
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest com.google.android.packageinstallerv2proxy.host.gts.IncrementalInstallerHostTest
Change-Id: I5cb037d49cd2b140bed1045c99f072112495acfc
2021-06-08 17:41:47 -07:00
Keun-young Park
1722914fc5
Merge "Allow SharedMemory creation from ParcelFileDescriptor"
2021-06-08 23:45:48 +00:00
Dmitri Plotnikov
6ea400b27c
Add BatteryUsageStatsQuery parameters: time range
...
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: If370360695a3f0327f07457abac1fd02164864e1
2021-06-08 13:45:41 -07:00
Songchun Fan
6ad5139919
Merge "[metrics] log TotalDelayedReadsDurationMillis during ANR and Crash" into sc-dev am: 27d6aa2ec4 am: b793470e6f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14824025
Change-Id: Ifeca05ca9e1b0820fc2d5ef65036f351d7c8f90d
2021-06-08 16:40:59 +00:00
Songchun Fan
e8b6bcf6cc
[metrics] log TotalDelayedReadsDurationMillis during ANR and Crash
...
BUG: 187354818
Test: atest android.cts.statsdatom.incremental.AppErrorAtomTests
Change-Id: I54de2d558248a65775452474464ea3f786bf5c55
2021-06-07 12:12:58 -07:00
Keun young Park
d397f0e17d
Allow SharedMemory creation from ParcelFileDescriptor
...
- added as system module api
- Will be used to get shared memory from stable AIDL where only
ParcelFileDescriptor is available.
- Usage / test will be added to p/s/Car later.
Bug: 188780895
Test: build only
Change-Id: I8a634062d10ff0c114f3add1d2a5e8056f17b788
2021-06-04 16:05:21 -07:00
Jeff Sharkey
dbfae6ddc7
Merge changes from topic "may27-sdk" into sc-dev am: e6fb6087aa am: b3a4448be3 am: 77499b3231
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14749815
Change-Id: I759a5582a387d95bb13ad726817b0bcba86e841d
2021-06-02 20:27:34 +00:00
Jeff Sharkey
b3a4448be3
Merge changes from topic "may27-sdk" into sc-dev am: e6fb6087aa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14749815
Change-Id: I9ac77657a3bde896f7a90fa9879daf66f5f7a35a
2021-06-02 20:14:07 +00:00
Jeff Sharkey
e6fb6087aa
Merge changes from topic "may27-sdk" into sc-dev
...
* changes:
Finalize resource IDs; script to help in future.
platform/frameworks/base/ - S is now 31
2021-06-02 20:11:14 +00:00
Lais Andrade
085266a2ca
Remove non-zero amplitude validation for waveforms am: c0c482736b am: 95c8656802 am: 3164090c83
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703097
Change-Id: If8807f323e110dc604bab07657d29b7e173dec41
2021-06-02 14:20:04 +00:00
Lais Andrade
95c8656802
Remove non-zero amplitude validation for waveforms am: c0c482736b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703097
Change-Id: I91effcc0155767c71fc2c5840279f7f06983b27e
2021-06-02 13:18:46 +00:00
Lais Andrade
c0c482736b
Remove non-zero amplitude validation for waveforms
...
The validation does not exist in Android R and is causing apps to start
crashing in S.
The validation for the static API createOneShot was maintained, as it
already existed in previous releases.
Fix: 184890231
Test: VibrationEffectTest
Change-Id: I606c943a35ddd68ccacab76f0047b9a276b5cf28
2021-06-02 12:26:35 +01:00
TreeHugger Robot
94b2261f04
Merge "Clarify what ignoring battery optimizations means." into sc-dev am: 1b3424aa94 am: dba9178b42 am: 4a1227f074
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14748399
Change-Id: I9cff2c39eb6239ff52ff78f0907d4c7db1147a45
2021-06-01 15:38:44 +00:00
TreeHugger Robot
dba9178b42
Merge "Clarify what ignoring battery optimizations means." into sc-dev am: 1b3424aa94
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14748399
Change-Id: Ie4ff90c685e9cac8674f326967c7c117eff12843
2021-06-01 14:59:36 +00:00
TreeHugger Robot
1b3424aa94
Merge "Clarify what ignoring battery optimizations means." into sc-dev
2021-06-01 14:39:55 +00:00
Jeff Sharkey
7c5f4337fd
platform/frameworks/base/ - S is now 31
...
Bug: 171506470
Test: Build
Change-Id: I46d4df5f27783a96a58c966b113391ea3bc112cb
2021-06-01 06:48:51 -06:00
TreeHugger Robot
331609e51b
Merge "Fix storage directory API docs" into sc-dev am: 787c2a6d2a am: 564dc9758b am: c5cc43ae98
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14733694
Change-Id: I68dd9561ee6b509c36c80cdaa92e83162f9c9bfd
2021-05-28 03:18:11 +00:00
Jeff Sharkey
19e14f1d4c
Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev am: 14016d39a6 am: c3943f2be7 am: d02d709d8b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669180
Change-Id: Icf9a664e58bdab771768890978bf81c93698a30e
2021-05-28 03:03:54 +00:00
TreeHugger Robot
564dc9758b
Merge "Fix storage directory API docs" into sc-dev am: 787c2a6d2a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14733694
Change-Id: Iec00a3d2fc4f5b46649a6692d38beed443022c1c
2021-05-28 02:47:26 +00:00
Jeff Sharkey
c3943f2be7
Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev am: 14016d39a6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669180
Change-Id: I00c7e75726e73f7a4f6b2a5a5a0494c47e98e72c
2021-05-28 02:26:03 +00:00
TreeHugger Robot
787c2a6d2a
Merge "Fix storage directory API docs" into sc-dev
2021-05-27 20:34:54 +00:00
Kweku Adams
b4582d98c5
Clarify what ignoring battery optimizations means.
...
Add some more definition to what it means to be on the power allowlist.
Bug: 173547576
Test: N/A
Change-Id: I6c6bd3248dc39877e560656e787ef02adf7d279f
2021-05-27 09:22:05 -07:00
Nandana Dutt
3863979df8
Fix storage directory API docs
...
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.
Fix docs for getExternalStorageDirectory() and
getExternalStoragePublicDirectory() to reflect the current level of support.
BUG: 153562415
Test: m docs
Change-Id: I8bc2a4aa266dbbcc391b415e6209ed6e5d56fe97
2021-05-27 15:57:02 +00:00
Jeff Sharkey
14016d39a6
Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev
2021-05-27 11:59:21 +00:00
Treehugger Robot
3f53bce726
Merge "Add documentation to Vibrator on foreground/background app behavior" am: 8ceda33e96 am: 53720c4394 am: a3ff04d175 am: 4e2916e5d3
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1567201
Change-Id: Id423a5047560084aa908ad8b2d4e1217f8ab33ab
2021-05-26 20:18:41 +00:00
Treehugger Robot
a3ff04d175
Merge "Add documentation to Vibrator on foreground/background app behavior" am: 8ceda33e96 am: 53720c4394
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1567201
Change-Id: I5d8500c398b6504a29a3e438461b5bcd41b44a75
2021-05-26 19:40:23 +00:00
Treehugger Robot
8ceda33e96
Merge "Add documentation to Vibrator on foreground/background app behavior"
2021-05-26 18:43:56 +00:00
TreeHugger Robot
74718dd672
Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev am: 03b86cd11f am: 8dd78439b7 am: 1b96873bef
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14734462
Change-Id: I0bcb9ed4dfc24ef2904c3a31ff01ef46b72efa0f
2021-05-26 18:11:07 +00:00
Adam Bookatz
70f4c58e99
Merge "BatteryUsageStats - use bus end time" into sc-dev am: fdf919fbd5 am: f5c559850b am: 62fe2b32c8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720951
Change-Id: I727959804d53b9c19f7b15081107c50676bdb68a
2021-05-26 18:09:01 +00:00
TreeHugger Robot
1b96873bef
Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev am: 03b86cd11f am: 8dd78439b7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14734462
Change-Id: Ib23a2d29cf02cda50b59c67fed8795b725283ebe
2021-05-26 17:47:49 +00:00
Adam Bookatz
62fe2b32c8
Merge "BatteryUsageStats - use bus end time" into sc-dev am: fdf919fbd5 am: f5c559850b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720951
Change-Id: Iea8114bf54b7ab9f81ed94815f12b8769e34d223
2021-05-26 17:46:52 +00:00
TreeHugger Robot
887404acd3
Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev am: 03b86cd11f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14734462
Change-Id: I38f73b91541f9b292d3e714ed971606cba83d95c
2021-05-26 17:35:47 +00:00
TreeHugger Robot
03b86cd11f
Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev
2021-05-26 17:28:52 +00:00
Adam Bookatz
e6eb812d39
Merge "BatteryUsageStats - use bus end time" into sc-dev am: fdf919fbd5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720951
Change-Id: I5b959441b3385cce1f9fb24a55e6ddadd671d56c
2021-05-26 17:23:45 +00:00
Adam Bookatz
fdf919fbd5
Merge "BatteryUsageStats - use bus end time" into sc-dev
2021-05-26 17:19:47 +00:00
Ytai Ben-tsvi
7c68e09284
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41 am: c087064034 am: 74517e5536
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253
Change-Id: I2aad855714789fe565e5830aa47c7f9025790d68
2021-05-26 17:02:55 +00:00
Ytai Ben-tsvi
74517e5536
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41 am: c087064034
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253
Change-Id: Iea6e50ef349379c6870e1a0e975c1c998cd626a2
2021-05-26 16:59:22 +00:00
Ytai Ben-tsvi
0d12eff29a
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253
Change-Id: I355a0ef827db2d00cee80c15317cf805c86cb7c2
2021-05-26 16:49:56 +00:00
Ytai Ben-tsvi
c53f7a2d41
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev
2021-05-26 16:41:14 +00:00
Lais Andrade
c76c77393f
Add documentation to VibratorManager on foreground/background behavior
...
Add information to javadocs explaining that apps in background can
only vibrate the device if the given AudioAttributes usage is one of
notification, ringtone or alarm usages.
Bug: 146313440
Test: N/A
Change-Id: Ib0b8401539157f0ce2768aab281f3b23aae38dae
2021-05-26 15:11:11 +01:00