Commit Graph

14859 Commits

Author SHA1 Message Date
TreeHugger Robot
bcfbdd28e5 Merge "Launch Panic gesture from SysUI" 2020-10-14 22:15:15 +00:00
Matthew Fritze
9394bd84bd Launch Panic gesture from SysUI
- Add StatusBar interface for launching panic gesture
- Add basic method to launch the panic gesture in sysui
- Swap call to launch telephony to launching eshare intent

Tested in Pixel 3a using the Settings Panel intent (since it resolves)
and found that it does indeed launch ontop of the camera (see
screenshot) and turns off the screen. These can be fixed in a later CL.

Screenshot: https://screenshot.googleplex.com/8KKEEXbyBLkJssy

Test: atest StatusBarTest GestureLauncherServiceTest CommandQueueTest
Bug: 169087010
Change-Id: I9efccffd06edbf37c15ea92ef5935ab7091a7f80
2020-10-14 12:33:43 -07:00
Hall Liu
5b161c752d Merge "Update and expose ModemActivityInfo" 2020-10-14 18:31:15 +00:00
Hall Liu
0eca33ec91 Update and expose ModemActivityInfo
Update ModemActivityInfo to present a nicer API surface and expose it as
a SystemApi. Also change clients in BatteryStats to match the new
surface.

This is part 1. Part 2 will modify the methods in TelephonyManager to
use a more up-to-standards threading model.

Bug: 170427831
Test: atest ModemActivityInfoTest
Change-Id: I762ed949342861c75d94eafce88335e7bd8c9139
2020-10-14 11:22:11 -07:00
Sally
b5248c1f92 Use inclusive language
Test: builds
Bug: na
Change-Id: I014007bccfa2671c2887a3f239ed0e87b80c01ce
2020-10-14 15:01:25 +00:00
Sally
e131718f36 Add infrastructure for supporting Reduce Bright Colors as an A11y shortcut
The RBC settings subpage will have a switch to assign RBC activation to this shortcut

BYPASS_INCLUSIVE_LANGUAGE_REASON=ag/12828007

Test: builds
Bug: b/128465252
Change-Id: I4f254374ebb531fe8657b262646299e2be635cf8
2020-10-14 15:01:25 +00:00
TreeHugger Robot
c68c2288ed Merge "Add statsd atoms for tracking motion events of notification shade" 2020-10-13 21:38:28 +00:00
Ahan Wu
1bfb259af2 Add statsd atoms for tracking motion events of notification shade
Add an interaction type enum for tracking expand / collapse of
notification shade through motion events.

Bug: 158756171
Test: Manually
Change-Id: I31e16d3517dcf4f278080a84b74ba45703da133e
2020-10-13 08:24:22 +00:00
Miranda Kephart
4a0fedc2e3 Add logs for screenshot errors
Currently, we post a notification but do not log anything for some
classes of screenshot error (specifically, if the bitmap is null
or if the service connection is disrupted). This means that even
if a user reports that an error ocurred, we have no way to tell
which error it was or what the cause might have been.

Bug: 170310033
Fix: 170310033
Test: manual (deliberately caused the relevant errors to verify
that the logs were observed)

Change-Id: I18a32655e0f353e8befa55e030434dda0c4a2071
2020-10-12 13:08:31 -04:00
Dmitri Plotnikov
bc8a0ee79e Merge "Rewrite KernelSingleProcessCpuThreadReader to native" 2020-10-12 00:01:33 +00:00
Mark Renouf
60eec1c72d Merge "Adds scroll capture support for RecyclerView" 2020-10-09 23:55:00 +00:00
Dmitri Plotnikov
313d4a43d1 Rewrite KernelSingleProcessCpuThreadReader to native
For now, the native implementation is identical to the
Java implementation.  The performance improvement is ~20%
in a microbenchmarks.

Bug: 169279846
Test: atest FrameworksCoreTests:com.android.internal.os.KernelSingleProcessCpuThreadReaderTest
Change-Id: I8685a7f0adf9476209e29bb3ee3e89e99f66fa95
2020-10-09 23:50:55 +00:00
Mark Renouf
7d8968bc0d Adds scroll capture support for RecyclerView
Test: atest RecyclerViewCaptureHelperTest

Change-Id: I2480a6761daf6e874703e8aab414edbbe8558c06
2020-10-09 15:10:56 -04:00
Nate Myren
c7859e9813 Merge "Add start/finishProxyOp methods" 2020-10-08 21:38:22 +00:00
Jeff Sharkey
f76ffeaff1 Merge changes from topic "oct6"
* changes:
  Upgrade AndroidFrameworkBinderIdentity to fatal.
  Tighten up Binder.clearCallingIdentity() usage.
  Tighten up Binder.clearCallingIdentity() usage.
  Tighten up Binder.clearCallingIdentity() usage.
2020-10-08 18:50:22 +00:00
Nate Myren
eb75200bc4 Add start/finishProxyOp methods
Test: atest AppOpEventCollectionTest
Fixes: 170336396
Change-Id: I825c58d615fe23e6529d1f877e45a896438dbf15
2020-10-07 14:44:58 -07:00
Dmitri Plotnikov
5dc9d9725a Merge "Make KernelSingleProcessCpuThreadReader aggregate CPU times" 2020-10-07 16:21:41 +00:00
Song Hu
d155484926 Merge "Fix race condition in AbstractMultiplePendingRequestsRemoteService. Make mPendingRequests thread safe." 2020-10-07 14:19:16 +00:00
Alison Cichowlas
0b94a0eb97 Merge " Add a flag for calling old ChooserTargetService API & remove flags for Shortcuts." 2020-10-07 12:51:31 +00:00
Song Hu
a025037b09 Fix race condition in AbstractMultiplePendingRequestsRemoteService. Make mPendingRequests thread safe.
Bug: 159669667
Test: atest com.android.tests.stagedinstallinternal.host.StagedInstallInternalTest
Change-Id: I8f2641e9aa364faddf524e1661422eec079bc2d3
2020-10-07 11:30:58 +00:00
Jin Seok Park
b1161a0937 Merge "[Media ML] Refactor APIs for dispatching key events" 2020-10-07 09:30:26 +00:00
Dmitri Plotnikov
492ed242a3 Make KernelSingleProcessCpuThreadReader aggregate CPU times
This is done to
- prepare to switch to a native implementation
- reduce memory allocations

Test: atest FrameworksCoreTests:com.android.internal.os.KernelSingleProcessCpuThreadReaderTest
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServerCpuThreadReaderTest
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsBinderCallStatsTest
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServicePowerCalculatorTest

Bug: 169279846

Change-Id: I4ff41ad7110120836518d86a8c74cd18631e96c7
2020-10-06 19:55:42 -07:00
Alison Cichowlas
cef37d003a Add a flag for calling old ChooserTargetService API & remove flags for Shortcuts.
This flag is temporary, just want to make sure we like the state of the world without these targets as we continue down this path.

Test: manual via adb: adb shell device_config get systemui share_use_service_targets false
Bug: 170144291
Change-Id: I8f1ef4b98e7068ff5ee7dbe12827ec4ec034e126
2020-10-06 16:58:15 -04:00
Collin Fijalkovich
efc301a844 Merge "Disallow overlays for ResolverActivity" 2020-10-06 18:52:08 +00:00
Jeff Sharkey
2d2e07e2ff Tighten up Binder.clearCallingIdentity() usage.
The recently added AndroidFrameworkBinderIdentity Error Prone checker
examines code to ensure that any cleared identities are restored to
avoid obscure security vulnerabilities.

This change is a purely mechanical refactoring that adds the "final"
keyword to the cleared identity to ensure that it's not accidentally
modified before eventually being cleared.  Here's the exact command
used to generate this CL:

$ find . -name "*.java" -exec sed -Ei \
    's/    (long \w+ = .+?clearCallingIdentity)/    final \1/' \
    {} \;

Bug: 155703208
Test: make
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: I832c9d70c3dfcd8d669cf71939d97837becc973a
2020-10-06 11:18:09 -06:00
TreeHugger Robot
725daaceb9 Merge "Replace List<Integer> with faster IntArray." 2020-10-06 07:45:32 +00:00
Jeff Sharkey
345f5c7bec Replace List<Integer> with faster IntArray.
These were uncovered by the recently added EfficientCollections
Error Prone detector, and several of them are in hot codepaths.

Bug: 155703208
Test: make
Change-Id: I4cff2d6b846edc9a7482d21a803117132cbcdadf
2020-10-05 21:19:33 -06:00
Collin Fijalkovich
34534e1fd2 Disallow overlays for ResolverActivity
Prevents non-system apps from placing a window over the app selection
screen.

Bug: 143559931
Test: Installed test app and attempted to overlay
Change-Id: Ied05088a5007e0f10cd3e1abd8d7da8ffeb3b674
2020-10-05 13:12:38 -07:00
Marcin Oczeretko
ed528d6eba Merge "Set CujType int values correctly" 2020-10-05 16:33:07 +00:00
Marcin Oczeretko
a0f3fd9906 Set CujType int values correctly
Test: run InteractionJankMonitorTest
Change-Id: Ibd5a2580dfd43b7ccfec90724eee73f575824e0a
Bug: 167170986
2020-10-05 14:01:14 +00:00
Zimuzo Ezeozue
2d9b034fdc Merge "Removed unused mount mode constants" 2020-10-05 12:15:34 +00:00
Zim
c8fe3d2acd Removed unused mount mode constants
Since FUSE in R, there are only 4 mount modes that are used
from IVold.aidl:

REMOUNT_MODE_NONE
REMOUNT_MODE_DEFAULT
REMOUNT_MODE_INSTALLER
REMOUNT_MODE_PASS_THROUGH
REMOUNT_MODE_ANDROID_WRITABLE

Bug: 148454884
Test: Manual
Change-Id: I62b66083f2099b429474872b6f9c7cffb9fb906d
2020-10-05 10:26:14 +01:00
TreeHugger Robot
b9ab0176b4 Merge changes I3bc46f80,Ic3126518
* changes:
  Upgrade AndroidFrameworkUid to be fatal error.
  Refine CompatChanges check and enable as error.
2020-10-02 22:13:33 +00:00
Jeff Sharkey
9af4aea0c3 Upgrade AndroidFrameworkUid to be fatal error.
We've fixed the one remaining example of code that accidentally
crosses UID with userId, so this change upgrades the check to become
a fatal build error to prevent future bugs.

Bug: 155703208
Test: atest error_prone_android_framework_test
Change-Id: I3bc46f8039a88b5f3d5f89dc9b5fda785d5c654f
2020-10-02 13:56:44 -06:00
Steven Moreland
25993a64d4 Merge "Move AIDL files to declared packages." am: 1f125fcd66 am: 66f6e3d77e am: 89d60ad686 am: e143e071d1 am: 21b0d25ba8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1445648

Change-Id: I128cd4bb43e648436318a42dbfef1f70930cbf38
2020-10-02 19:00:43 +00:00
Steven Moreland
21b0d25ba8 Merge "Move AIDL files to declared packages." am: 1f125fcd66 am: 66f6e3d77e am: 89d60ad686 am: e143e071d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1445648

Change-Id: I089b2f50a38e05c785de35b41363b809c823caa7
2020-10-02 18:23:31 +00:00
Steven Moreland
e143e071d1 Merge "Move AIDL files to declared packages." am: 1f125fcd66 am: 66f6e3d77e am: 89d60ad686
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1445648

Change-Id: I7facecc0e6306e4c22d9b9b23d116c982197a38f
2020-10-02 18:03:08 +00:00
Steven Moreland
89d60ad686 Merge "Move AIDL files to declared packages." am: 1f125fcd66 am: 66f6e3d77e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1445648

Change-Id: Ibb810b6c18f3951679092072fc9f587acd7cf660
2020-10-02 17:35:21 +00:00
Diego Vela
b7e3d02925 Merge "Migrate System Logs to ProtoLog" 2020-10-02 16:47:56 +00:00
Steven Moreland
1f125fcd66 Merge "Move AIDL files to declared packages." 2020-10-02 16:37:24 +00:00
Rick Yiu
62b07cad0d Merge "Revert "Implement the ThreadPrioritySetter interface"" am: b01d0fe127 am: f7ac1ee91d am: 05a7df810c am: 149f54eb11 am: 545b3b4465
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440013

Change-Id: I83d70f9d9b562240c5b1be88ed27ac0e5f6db528
2020-10-02 15:08:43 +00:00
Rick Yiu
545b3b4465 Merge "Revert "Implement the ThreadPrioritySetter interface"" am: b01d0fe127 am: f7ac1ee91d am: 05a7df810c am: 149f54eb11
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440013

Change-Id: I3cd3845bd538a95676744d0976d963455a2949df
2020-10-02 14:06:22 +00:00
Rick Yiu
149f54eb11 Merge "Revert "Implement the ThreadPrioritySetter interface"" am: b01d0fe127 am: f7ac1ee91d am: 05a7df810c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440013

Change-Id: I1c8d127cfa36748cc6115414c9887ecaec731a02
2020-10-02 13:46:49 +00:00
Rick Yiu
05a7df810c Merge "Revert "Implement the ThreadPrioritySetter interface"" am: b01d0fe127 am: f7ac1ee91d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440013

Change-Id: Ic36f19df3a28d502f72a00ac41e25ddfb7011949
2020-10-02 13:15:21 +00:00
Diego Vela
d4411a519e Migrate System Logs to ProtoLog
Migrate logs for States and Tasks
Remove DEBUG_PAUSE flag
Remove DEBUG_SAVES_STATE flag
Remove DEBUG_STATES flag
Remove DEBUG_TASKS flag

Bug: 153162675
Test: n/a
Change-Id: I3811f58ff5c904dab0b1ff61d29d83d78ec1a121
2020-10-01 19:17:10 -07:00
Steven Moreland
844bd1dd1e Move AIDL files to declared packages.
There was a regression in the AIDL compiler recently that removed the
requirement that, like in Java, .aidl unstructured parcelables (these
parcelable declarations) are in directories and files which match their
packages and file names. This CL moves relevant files to the correct
directory required by their type.

Bug: N/A
Test: build
Change-Id: I71f6f714e98e184a02b6bbf3d4f8b0b8c8aee30b
2020-10-01 21:17:52 +00:00
TreeHugger Robot
563c312ecb Merge "Fix bug in ArrayUtils.filter." 2020-10-01 20:12:33 +00:00
Kweku Adams
0dd52ce64b Fix bug in ArrayUtils.filter.
ArrayUtils.filter is only supposed to return elements that satisfed the
predicate but it was incorrectly returning everything if nothing
satisfed the predicate.

Bug: 169854982
Test: Android builds
Change-Id: Ia6bd553922ff5823778e5865b6431c6f07aca334
2020-10-01 10:17:53 -07:00
Evan Rosky
5577b8f591 Merge "Scaffolding for Shell Transitions" 2020-09-30 22:37:20 +00:00
TreeHugger Robot
bf3fcf6ade Merge "Further refactor UidPermissionState and GIDs." 2020-09-30 22:01:01 +00:00