Commit Graph

8962 Commits

Author SHA1 Message Date
Treehugger Robot
a60b71817f Merge "BugreportManager API review updates." am: e0db8b998f am: c8e42d59e7 am: 94a089b673 am: feed10cb15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584520

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia732a5c8ebf12e8d138df55e960abfebb6b092b0
2021-02-24 00:43:23 +00:00
Tianjie Xu
b03e458835 Merge "Throw an exception in RoR api on no-pin case" am: 7444774737 am: 4d208ac97e am: c26952bf52 am: fd08d9eac5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584516

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I700f72a41e9f257e19bd63396f161a0ff832c482
2021-02-24 00:42:56 +00:00
Treehugger Robot
feed10cb15 Merge "BugreportManager API review updates." am: e0db8b998f am: c8e42d59e7 am: 94a089b673
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584520

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If29af220ff4d636b5870a16b14ead953e562aa70
2021-02-24 00:20:46 +00:00
Tianjie Xu
fd08d9eac5 Merge "Throw an exception in RoR api on no-pin case" am: 7444774737 am: 4d208ac97e am: c26952bf52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584516

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I65d8cb00ee0c08763a53714f8825bc4d8a75557e
2021-02-24 00:19:46 +00:00
Treehugger Robot
94a089b673 Merge "BugreportManager API review updates." am: e0db8b998f am: c8e42d59e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584520

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibba20423d6d2d3a5394d871f5f4f2d33d0afdceb
2021-02-24 00:14:10 +00:00
Tianjie Xu
c26952bf52 Merge "Throw an exception in RoR api on no-pin case" am: 7444774737 am: 4d208ac97e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584516

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic6399b2d5de8fdca4973c8cf4a435c22ba0e68d8
2021-02-23 23:58:41 +00:00
Treehugger Robot
c8e42d59e7 Merge "BugreportManager API review updates." am: e0db8b998f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584520

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I41e43baa35a660165075df1bc602cf197656df82
2021-02-23 23:58:26 +00:00
Tianjie Xu
4d208ac97e Merge "Throw an exception in RoR api on no-pin case" am: 7444774737
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584516

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic466002e50e6125c27f52eb2e989505720fc30c0
2021-02-23 23:52:30 +00:00
TreeHugger Robot
957680b76f Merge "Fix Vibrator and VibratorManager public API docs" into sc-dev am: 1d55488df5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13671772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I333321bad888df8c3760e6c3851a26b723e5422c
2021-02-23 19:18:13 +00:00
TreeHugger Robot
1d55488df5 Merge "Fix Vibrator and VibratorManager public API docs" into sc-dev 2021-02-23 19:00:43 +00:00
Lais Andrade
89d7a876fa Fix Vibrator and VibratorManager public API docs
Add information about value returned by Vibrator.getId, including a
description of what the default -1 value represents.

Fix description of CombinedVibrationEffect arguments to
VibratorManager methods.

Fix: 180962151
Fix: 180963421
Test: N/A
Change-Id: I3fab2d5fe299be5a951f32bd75eb2e5275ef6e56
2021-02-23 17:23:18 +00:00
Songchun Fan
ba6118561d Merge "[pm] smooth transition from install progress to incremental loading progress" into sc-dev am: df9c8ba64b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13619076

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I592fe868b17c4178ae391655680ab673de8b531d
2021-02-23 16:58:28 +00:00
Songchun Fan
a67a1a9841 [pm] smooth transition from install progress to incremental loading progress
Previously, regardless of the downloading progress reported by the client,
right before installation completion, we publish the install progress
as 0.9. For incremental installs, because we will publish the
incremnetal loading progress after the installation completion, we
might see the progress going backward, because the incremental loading
progress is likely less than 0.9.

For a smoother transition, we do not overwrite the client progress.
Instead, during committing, publish the incremental loading progress
while making sure the progress doesn't go backwards. After committing,
the launcher will keep showing the incremental loading progress.

+ Making sure the installer's incremental progress listener is
unregistered after session is committed.

See the demo video for an example. Notice that the progress is changed
during "Installing..." (around 00:35).

BUG: 180040329
Test: manual
Change-Id: I6c30b0dac6758fd103ed6a985ca39b6f8557ba8f
2021-02-22 22:25:51 +00:00
Treehugger Robot
e0db8b998f Merge "BugreportManager API review updates." 2021-02-22 21:46:41 +00:00
Tianjie Xu
7444774737 Merge "Throw an exception in RoR api on no-pin case" 2021-02-22 20:42:35 +00:00
TreeHugger Robot
28a92fd4f8 Merge "Adds caller check to getAllPackages()" into sc-dev 2021-02-22 18:23:55 +00:00
Kweku Adams
e6904ada6a Merge "Remove unnecessary permission check." into sc-dev am: 0c89d4b843
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13616884

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I94103b01d0644395d15e400996924f89dd1719ae
2021-02-22 16:57:51 +00:00
Kweku Adams
0c89d4b843 Merge "Remove unnecessary permission check." into sc-dev 2021-02-22 16:55:01 +00:00
Kholoud Mohamed
222b5c70d9 Merge "Expose isUserKeyUnlocked as a TestAPI" into sc-dev am: bfe45b77f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13567147

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa9ef78829cdc0420daf949ae97ee1fe97392333
2021-02-22 16:01:52 +00:00
Kholoud Mohamed
bfe45b77f8 Merge "Expose isUserKeyUnlocked as a TestAPI" into sc-dev 2021-02-22 15:46:21 +00:00
TreeHugger Robot
8a0a87003a Merge "Constrain scaled amplitude to valid values in [1,255]" into sc-dev am: 81c669d39b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13519387

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19d177ad2adfdd918ff8d5f9b1f20cfb589fe43e
2021-02-22 03:33:18 +00:00
Lais Andrade
2356453306 Constrain scaled amplitude to valid values in [1,255]
Scaling down low amplitudes can lead to one-shot effects with amplitude
zero, which leads to an invalid VibrationEffect and causes
IllegalArgumentException to be thrown on an originally valid effect.

Bug: 179674498
Test: VibrationEffectTest
Change-Id: Ie653084d37f9bfed20aac25f8805ffdf40661e03
2021-02-22 01:08:18 +00:00
TreeHugger Robot
c1fd0badfc Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev am: 863e3fee2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13556589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia6c80f20a5ac02b2cc9c892bedfa78b5c479fb94
2021-02-21 20:12:50 +00:00
TreeHugger Robot
863e3fee2b Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev 2021-02-21 19:08:28 +00:00
Dmitri Plotnikov
5363df4157 Merge "Copy custom measured power to BatteryUsageStats" into sc-dev am: 919528f401
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13564227

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c3c00c53721aaf0604cf718dbcb16961fe525c6
2021-02-21 18:35:11 +00:00
Xin Li
be473bf819 Merge ab/7061308 into stage.
Bug: 180401296
Merged-In: I4bf82035631ccff6d5a6144d6d9b1d203b076851
Change-Id: I1b5f3a672a55eaabba0f5389bab110b395553559
2021-02-21 09:39:53 -08:00
Dmitri Plotnikov
66a11604f5 Copy custom measured power to BatteryUsageStats
Bug: 158137862
Test: atest FrameworksCoreTests:com.android.internal.os.CustomMeasuredPowerCalculatorTest
Change-Id: I53a974baf773f35eb212f234755c553be45336ce
2021-02-20 13:38:48 -08:00
TreeHugger Robot
356c359096 Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev am: 9fb89c22ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13538912

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I157de70b2b18f5c909712d575ebf8a64f59c2e7b
2021-02-20 21:13:34 +00:00
TreeHugger Robot
9fb89c22ca Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev 2021-02-20 20:34:33 +00:00
Chiachang Wang
b56502c056 Merge changes I0a75c440,Ief9e8925,Ie03e8276,If0ac9a64,I716bd771 am: 63bc7bd3c2 am: 7fcc3efb9c am: 2540861d4f am: 6aca8c36e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573943

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2c067aee69645e23e31427b04c3b6a614993529b
2021-02-20 05:32:16 +00:00
Chiachang Wang
6aca8c36e0 Merge changes I0a75c440,Ief9e8925,Ie03e8276,If0ac9a64,I716bd771 am: 63bc7bd3c2 am: 7fcc3efb9c am: 2540861d4f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573943

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52c41154ae3364774e63376fbdd5a9f42727b65f
2021-02-20 05:04:03 +00:00
Chiachang Wang
2540861d4f Merge changes I0a75c440,Ief9e8925,Ie03e8276,If0ac9a64,I716bd771 am: 63bc7bd3c2 am: 7fcc3efb9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573943

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1e81aa264d988cc50f2d42f8b9592f050a01b69f
2021-02-20 04:22:17 +00:00
Chiachang Wang
63bc7bd3c2 Merge changes I0a75c440,Ief9e8925,Ie03e8276,If0ac9a64,I716bd771
* changes:
  [IT06]Move INetworkActivityListener into connectivity module
  [IT05] Remove the unused network activity logic out from NMS
  [IT4.7] Add network activity info into dumpsys for debugging
  [IT4.6] Unbundle NMS out from ConnectivityManager
  [IT4.5] Update radio power from CS directly
2021-02-20 02:02:46 +00:00
Robert Horvath
687865e87c Merge "Document behaviour of "quiescent" reboot reason" into sc-dev am: d34a5f6aab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13453877

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieedc975e9f3e8c8c34f9a23721d3e7c935465ea2
2021-02-19 16:38:34 +00:00
Robert Horvath
d34a5f6aab Merge "Document behaviour of "quiescent" reboot reason" into sc-dev 2021-02-19 16:14:14 +00:00
Dmitri Plotnikov
fc0ba64301 Add discharge power estimates to BatteryUsageStats
Bug: 158137862
Test: atest DischargedPowerCalculatorTest
Change-Id: I68e8ad491d92dca08bb7c49fadf663dd48ee2b90
2021-02-18 16:47:42 -08:00
Tianjie
9dbd5e7457 Throw an exception in RoR api on no-pin case
If the device doesn't have a pin, the current RoR preparation will
go through; but the lskf capture event won't happen. In order not
to confuse the caller, throw an exception instead in the no-pin
case.

Bug: 170664917
Test: remove pin, request RoR with adb shell
Change-Id: Ib04c629234b71e3f6cb36bdfe47759a715a69146
2021-02-18 15:26:33 -08:00
Dmitri Plotnikov
8c2e375c1f Measured energy for Ambient Display in BatteryUsageStats
Bug: 178140704
Test: atest FrameworksCoreTests:com.android.internal.os.AmbientDisplayPowerCalculatorTest

Change-Id: I1a573c3e380777637b7c0466aa78a4cab4c05887
2021-02-18 14:25:50 -08:00
Primiano Tucci
306022aebf Merge "Do not check for debuggable / profilable for app tracing." am: 355753053c am: c8def00f9f am: 8bc9d1cd8e am: bf4a20e4c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587412

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If3f40a46884d03589a7f602cb9126a7d2cba3105
2021-02-18 21:11:21 +00:00
Primiano Tucci
bf4a20e4c9 Merge "Do not check for debuggable / profilable for app tracing." am: 355753053c am: c8def00f9f am: 8bc9d1cd8e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587412

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa74e243082c0b66148d53e8123c34ee25010242
2021-02-18 20:54:38 +00:00
Primiano Tucci
8bc9d1cd8e Merge "Do not check for debuggable / profilable for app tracing." am: 355753053c am: c8def00f9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587412

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I11c3344dc0a6e735040822aa52f93d13961dd1e9
2021-02-18 20:12:19 +00:00
Songchun Fan
2f0abc13a8 Merge "Revert "Revert "[pm/incremental] start monitoring progress on storage creation""" into sc-dev am: 1f535786c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13585238

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8889820831c6771137eb4ee112e74b4aea5eb4d2
2021-02-18 19:47:15 +00:00
Hunter Knepshield
8c4887a7ce BugreportManager API review updates.
- Expand BugreportManager class javadoc
    - Explain what "privileged" means
    - Highlight only one-BR-at-a-time behavior
- Add more detail to BugreportCallback javadocs
    - Explain standard callback invocation flow
    - More detail on when BUGREPORT_ERROR_INVALID_INPUT is used
- Add @WorkerThread to {start{,Connectivity},cancel}Bugreport

Bug: 180015324
Test: make
Change-Id: Id3400b1cdd271f47bdeaf8cdc1a0dea61aafc933
2021-02-18 19:31:44 +00:00
Kweku Adams
e57d5ac376 Remove unnecessary permission check.
There's no reason for getPowerSaveModeTrigger to require the POWER_SAVER
permission. The API is only marked as a SystemApi because it was designed
for a specific use case and 3rd party apps don't need to know the
information, but there's no problem if they get the value. All the value
tells you is whether the device will turn on battery saver automatically
based on the percentage level or if it'll turn on automatically based on
a different dynamic signal.

Bug: 174241855
Test: atest android.os.cts.PowerManagerTest
Test: atest android.permission.cts.PowerManagerServicePermissionTest
Test: atest CtsPermission2TestCases
Test: atest SettingsProviderTest
Change-Id: I3146a681d9c5da9c68a7e6b38b50314b293dc924
2021-02-18 10:53:12 -08:00
Songchun Fan
1f535786c7 Merge "Revert "Revert "[pm/incremental] start monitoring progress on storage creation""" into sc-dev 2021-02-18 18:33:50 +00:00
yawanng
1ea4f56c3d Adds caller check to getAllPackages()
This change enforces that only system, root or shell may call
getAllPackages(), a hidden API that shares all package names regardless
of user, instant app or package visibility rules.

The only exception is the uid of iorapd. iorapd needs the package info
to prefetch the right data.

Bug: 179618216
Bug: 174661955
Test: run iorapd and check it works well.
Change-Id: I77460ae19a4d41151577646441f11e2eddbb741a
Merged-In: I77460ae19a4d41151577646441f11e2eddbb741a
(cherry picked from commit 8124efd57b)
2021-02-18 18:15:21 +00:00
Primiano Tucci
355753053c Merge "Do not check for debuggable / profilable for app tracing." 2021-02-18 17:52:31 +00:00
TreeHugger Robot
918ade453d Merge "Remove unused method" into sc-dev am: c1d7c4d6ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13593505

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d1b73c89f2c2ebab13a4871dd3a93a00aea8536
2021-02-18 04:36:53 +00:00
TreeHugger Robot
c1d7c4d6ab Merge "Remove unused method" into sc-dev 2021-02-18 04:25:02 +00:00
Chiachang Wang
6080999ebe [IT06]Move INetworkActivityListener into connectivity module
INetworkActivityListener is hidden and the only usage is inside
the connectivity module. Thus, move this into module scope.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: I0a75c440c1daa773217bbd362b212fda4d07ec64
2021-02-18 12:03:21 +08:00