Badhri Jagan Sridharan
d368d4ee67
Merge "Add systemApis to allow data transfer over USB-C while being docked"
2022-01-24 19:19:25 +00:00
Michael Wachenschwanz
9033b364a6
Merge "Small fixes to PowerProfile and ModemPowerProfile"
2022-01-24 18:06:04 +00:00
Kholoud Mohamed
35216e0275
Merge "Allow updating enterprise strings in the framework"
2022-01-24 15:09:02 +00:00
Siim Sammul
f08622a4df
Merge "Move binder latency data logging to a background thread to improve performance of the main thread." am: 3af0c6a106 am: b24b15c6f9 am: 1f0a6f7d4e am: 4e38ab22c6
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1942954
Change-Id: I9412c2969fa0f61fa7c0d67a279123622f893df6
2022-01-24 14:34:24 +00:00
Siim Sammul
4e38ab22c6
Merge "Move binder latency data logging to a background thread to improve performance of the main thread." am: 3af0c6a106 am: b24b15c6f9 am: 1f0a6f7d4e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1942954
Change-Id: I047b1a6e06a35e4f8fdd7be363e30c59982e0cee
2022-01-24 14:22:12 +00:00
Siim Sammul
1f0a6f7d4e
Merge "Move binder latency data logging to a background thread to improve performance of the main thread." am: 3af0c6a106 am: b24b15c6f9
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1942954
Change-Id: I3fd253bc0e023a3aa05222ef8c7105f26b6f95fe
2022-01-24 14:11:30 +00:00
Siim Sammul
3af0c6a106
Merge "Move binder latency data logging to a background thread to improve performance of the main thread."
2022-01-24 13:40:33 +00:00
Badhri Jagan Sridharan
7212c8fda4
Add systemApis to allow data transfer over USB-C while being docked
...
This change adds two systemApis to UsbPortStatus viz.,
a. getUsbDataStatus: Allows caller to infer whether USB data is enabled.
b. getPowerBrickStatus: Allows caller to infer whether a power brick
is connected to the USB port.
The change also adds enableUsbDataWhileDocked systemApi to UsbPort to
enable Usb data momentarily.
Bug: 211677613
Bug: 213312081
Test: Manually tested on tablet
CTS-Coverage-Bug: 215019881
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com >
Change-Id: Ib7521f0f04b7f8e3e58dc253b28072d3631f21a7
2022-01-24 21:30:05 +08:00
Menghan Li
fb8116d3f3
Merge "Add accessibility tile serivce compoment"
2022-01-24 08:14:14 +00:00
Jean Chalard
3b78298b16
Merge "Have BatteryStatsImpl use the public NetworkStats API"
2022-01-24 04:15:51 +00:00
Jing Ji
c89a869c51
Merge "Include process state data in battery usage stats snapshots."
2022-01-23 04:43:33 +00:00
Jing Ji
7fe38c4864
Include process state data in battery usage stats snapshots.
...
As the background current monitoring would need to access that.
Bug: 203105544
Test: FrameworksCoreTests:com.android.internal.os
Change-Id: Id5c04c4910054675d7f6e989f8eabf4321466e39
2022-01-22 18:42:50 -08:00
Yohei Yukawa
99cc65c470
Remove unused IInputMethod#revokeSession
...
Seems that IInputMethod#revokeSession has been defined but has never
been called since at least Android 1.5.
Let's remove it for now for simplicity.
Bug: 192412909
Test: presubmit
Change-Id: I3de8de1226ae028ac2e6bae8aeb34cd83f4c4f41
2022-01-22 06:35:53 -08:00
Chalard Jean
c5594827a2
Have BatteryStatsImpl use the public NetworkStats API
...
Test: BatteryStatsManagerTest
Change-Id: I0bfb4df45e373aa3907b07a382ba8edd07c73895
(cherry picked from commit 28e712bfa76c3fed1ad88eb693c932e7b0a72664)
2022-01-22 16:51:11 +09:00
Dmitri Plotnikov
d012a49df3
Merge "Include saved battery history chunks into BatteryUsageStats parcel" am: 2f7508a404 am: 587f8cec3d am: 4c21515da7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928178
Change-Id: I283453f3391287e7c2d672db178acbdd57fe715f
2022-01-22 07:10:25 +00:00
Dmitri Plotnikov
4c21515da7
Merge "Include saved battery history chunks into BatteryUsageStats parcel" am: 2f7508a404 am: 587f8cec3d
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928178
Change-Id: I3f3d98d9e44f2807c5558127f84838f40c612297
2022-01-22 06:52:51 +00:00
Badhri Jagan Sridharan
da433c60c1
Merge changes from topics "199357330", "200993386"
...
* changes:
Add limitPowerTransfer SystemAPI to UsbPort
Support IUsb AIDL interface
2022-01-22 01:20:21 +00:00
Dmitri Plotnikov
256a465181
Merge "Fix concurrency issue with BatteryUsageStats" am: 587eef25c9 am: e855d9f17e am: fb37eaa5df
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1927563
Change-Id: Ie0e2b0be5d90cf1a40957a343a44489714446d0f
2022-01-22 00:01:17 +00:00
Dmitri Plotnikov
fb37eaa5df
Merge "Fix concurrency issue with BatteryUsageStats" am: 587eef25c9 am: e855d9f17e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1927563
Change-Id: I5d98a075c1faca7e8cf3c1dfb673da9854114bbf
2022-01-21 23:31:34 +00:00
Dmitri Plotnikov
c4b9de7d95
Include saved battery history chunks into BatteryUsageStats parcel
...
Bug: 209297031
Test: Test: atest FrameworksCoreTests:BatteryUsageStatsTest FrameworksCoreTests:BatteryUsageStatsProviderTest
Merged-In: I369d863b6f6fd488030aa031cc465bef6ce99ab8
Change-Id: Ifc70a49b731b5510e7bcd049e0c12d9ac7f68f44
2022-01-21 22:44:46 +00:00
Dmitri Plotnikov
587eef25c9
Merge "Fix concurrency issue with BatteryUsageStats"
2022-01-21 22:44:28 +00:00
Dmitri Plotnikov
50f887b058
Add BatteryStatsManager.getBluetoothBatteryStats() API
...
Bug: 202876405
Test: atest FrameworksCoreTests:BatteryStatsImplTest
Change-Id: I4a7f880ddad7dc98e9919356859603b17a894705
2022-01-21 13:04:54 -08:00
Dmitri Plotnikov
3d2d4c8263
Merge "Fix RX/TX calculations for WiFi and BT"
2022-01-21 19:05:44 +00:00
kholoud mohamed
9b24fdfb32
Allow updating enterprise strings in the framework
...
Bug: 188410712
Bug: 211422509
Test: manual
Change-Id: Ia27b22b6cad14c8b62f3415a4967e479c21eb30c
2022-01-21 17:10:33 +00:00
Phil Burk
9ed98ff05d
Merge "Include MIDI service OWNERS for internal/midi" am: f5bf153f13 am: 191c4bd7de am: bba74c1c8f am: ba160b15ab
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955339
Change-Id: I906b6e6f0d3e8a007458dc55ab4f51c510be0255
2022-01-21 15:47:15 +00:00
Phil Burk
ba160b15ab
Merge "Include MIDI service OWNERS for internal/midi" am: f5bf153f13 am: 191c4bd7de am: bba74c1c8f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955339
Change-Id: I01ced3aacc6b32bc4a44459cea575780db883cec
2022-01-21 15:28:54 +00:00
Phil Burk
bba74c1c8f
Merge "Include MIDI service OWNERS for internal/midi" am: f5bf153f13 am: 191c4bd7de
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955339
Change-Id: I620d9290d66fa1848ee1a97b27fac1772f0dec4e
2022-01-21 15:11:04 +00:00
Phil Burk
f5bf153f13
Merge "Include MIDI service OWNERS for internal/midi"
2022-01-21 14:58:34 +00:00
Paul Mclean
7c31724f99
Merge "Add BLE MIDI peripheral connection to standard BT connect UI"
2022-01-21 14:43:19 +00:00
Vadim Caen
e0b59d46ce
Merge changes Ifc2ed99b,Ibd7fc78e
...
* changes:
Integration of back gesture animation on Sysui (BackNav 2/n)
Server infrastructure for back nav animation (BackNav 1/n)
2022-01-21 13:36:58 +00:00
Michael Wachenschwanz
a295ebd5fc
Small fixes to PowerProfile and ModemPowerProfile
...
Bug: 207697945
Test: atest PowerProfileTest
Change-Id: I48ee45efbbe8e2ac8e0d808dee50d2b216c41a01
2022-01-21 04:27:41 -08:00
Siim Sammul
42e84a4cc4
Move binder latency data logging to a background thread to improve performance of the main thread.
...
Bug: 213435093
Test: existing tests apply
Change-Id: Ic7a3a413d8e23c0405b4dd16f0b8c919a214eb32
2022-01-21 11:30:26 +00:00
Frank Li
b1a5111269
Merge "[DU07]Remove BatteryStatsImpl NetworkStats.subtract dependences" am: a078c73c47 am: 991351f546 am: 3edf76ed6a am: c8e0e63e44
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956076
Change-Id: Ideb09004826ade4184eb5bd3095ad72e862c725e
2022-01-21 10:33:21 +00:00
Frank Li
c8e0e63e44
Merge "[DU07]Remove BatteryStatsImpl NetworkStats.subtract dependences" am: a078c73c47 am: 991351f546 am: 3edf76ed6a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956076
Change-Id: Ibe90f9f1baf1950b9095747b2515e1cc9ffd7fd0
2022-01-21 10:15:23 +00:00
Michael Wachenschwanz
90a6c03c8f
Merge "Introduce modem element to power_profile.xml"
2022-01-21 10:08:12 +00:00
Frank Li
3edf76ed6a
Merge "[DU07]Remove BatteryStatsImpl NetworkStats.subtract dependences" am: a078c73c47 am: 991351f546
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956076
Change-Id: I24f6e08ce84fc4259dfe862f9958e88a2fc9b4df
2022-01-21 09:57:49 +00:00
Frank Li
a078c73c47
Merge "[DU07]Remove BatteryStatsImpl NetworkStats.subtract dependences"
2022-01-21 09:19:34 +00:00
Frank Li
1c85e6e600
Merge "[DU03-1]Remove INetworkStatsService from BatteryStatsImpl" am: acd0aef603 am: 9c737b782c am: 761a4eb36c am: c7e673cb90
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948496
Change-Id: Ie58903de1d88367bced48dd4e79c51cfd49701b8
2022-01-21 09:12:55 +00:00
Frank Li
c7e673cb90
Merge "[DU03-1]Remove INetworkStatsService from BatteryStatsImpl" am: acd0aef603 am: 9c737b782c am: 761a4eb36c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948496
Change-Id: I06e8e68ec621c70698eb464f36a770c361ae4c13
2022-01-21 09:06:50 +00:00
Frank Li
761a4eb36c
Merge "[DU03-1]Remove INetworkStatsService from BatteryStatsImpl" am: acd0aef603 am: 9c737b782c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948496
Change-Id: If2164db2bf7b8cc239a90341c68c623ac3a8518c
2022-01-21 08:43:37 +00:00
Badhri Jagan Sridharan
bdbb2d15be
Add limitPowerTransfer SystemAPI to UsbPort
...
limitPowerTransfer when invoked limits the power transfer
in and out of the USB port. limitPortTransfer is deactivated
either when limitPowerTransfer is deactivated by the caller
or when Usb disconnect event is observed by the Usb service.
limitPowerTransfer API is asynchronous and the caller gets
notified by invoking UsbOperationCallback.onUsbOperationComplete
callback to notify the status of the operation.
USB_PORT_CHANGED event is broadcasted when port's limitPowerTransfer
status changes. UsbPortStatus object is updated to reflect the
current status.
limitPowerTransfer is protected by android.permission.MANAGE_USB.
Bug: 199357330
Bug: 199358576
Test: Tested on Pixel
CTS-Coverage-Bug: 215019881
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com >
Change-Id: Iabd1187f7527e14ed758abe355ba94a511d8c859
2022-01-21 16:06:04 +08:00
Badhri Jagan Sridharan
bbfa92e694
Support IUsb AIDL interface
...
UsbPortManager is made to support both AIDL & HIDL interface until
HIDL is deprecated eventually. UsbPortHal abstract class is defined
which the UsbPortManager grabs an instance of from UsbPortHalInstance
method to talk to the Hal implementation process. UsbPortHalInstance
queries the underlying hal implementation and instantiates UsbPortHal
with either UsbPortHidl or UsbPortAidl based on the IUsb interface
implemented by HAL implementation.
go/iusb-aidl-migrate.
Bug: 200993386
Bug: 199357330
Bug: 211677613
Bug: 213312081
Bug: 199358576
Test: Manually tested through UI.
CTS-Coverage-Bug: 215019881
Change-Id: I246fd6e5bee8138d3ad3b6994665a1d4788c8789
2022-01-21 16:04:33 +08:00
lifr
20689682e5
[DU03-1]Remove INetworkStatsService from BatteryStatsImpl
...
Expose systemapi NetworkStats.getDetailedUidStats for use by
BatteryStats.
BatteryStatsImpl is using INetworkStatsService APIs, which
cannot be accessed after moving into the mainline module. So, replace
and remove those hidden API usages.
Bug: 210066922
Test: atest BatteryStatsImplTest WifiPowerCalculatorTest
MobileRadioPowerCalculatorTest NetworkStatsServiceTest
CTS-Coverage-Bug: 213437796
Change-Id: I40d713923278f4654d67bb4d12155cea85c10447
2022-01-21 13:52:41 +08:00
Michael Wachenschwanz
c72b58ae0d
Merge "Add BatteryStats owners to PowerProfile ownership"
2022-01-21 02:23:55 +00:00
Dmitri Plotnikov
3cfc426a23
Fix RX/TX calculations for WiFi and BT
...
Bug: 215267723
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I96d95be792e25d4d8485d6dc3ce6515bc5adcc0f
2022-01-20 17:34:47 -08:00
Kate Montgomery
fada8ebfe7
Merge "SysUi: Distinguish between location indicator for system app ops vs others."
2022-01-21 00:28:58 +00:00
Dmitri Plotnikov
802df78a0b
Merge "Attribution of Bluetooth power per process state"
2022-01-21 00:01:02 +00:00
Phil Burk
a4cc251eb8
Include MIDI service OWNERS for internal/midi
...
Change-Id: Icabeeab73b3106e87041a0a9149560ad691640f4
2022-01-20 23:34:39 +00:00
Paul McLean
fff1797319
Add BLE MIDI peripheral connection to standard BT connect UI
...
Bug: 25689266
Test: Connect to various BT MIDI peripherals and test function
with software synthesizer (DRC)
Change-Id: I1df2f3bfbc6302eb9d139546e825f2eb9b4abdd5
2022-01-20 16:10:13 -07:00
Michael Wachenschwanz
2f762f10ec
Add BatteryStats owners to PowerProfile ownership
...
Bug: 194419357
Test: n/a
Change-Id: I088fb2513c906a4aee46791049a6bdb80f525a0f
Ignore-AOSP-First: fix merge conflict with master
2022-01-20 15:04:38 -08:00