OSDN Git Service

Give StrictMode more bits to work with.
authorJeff Sharkey <jsharkey@android.com>
Tue, 26 Jun 2018 16:52:48 +0000 (10:52 -0600)
committerJeff Sharkey <jsharkey@android.com>
Tue, 26 Jun 2018 20:12:14 +0000 (14:12 -0600)
commit3ac2a434554214baed22e30867ec1bdfc64c7b03
tree4919dea7bbb7998a67aee5dedc2dabb77300797f
parentc59a5e7e0b01364f30bab0a134f77539c31163dc
Give StrictMode more bits to work with.

We're almost out of bits, and we don't really need to smash both
thread and VM policy into the same 32-bit value, so use the lower
16-bits for each policy type and the upper 16-bits for penalty.

ActivityManager is only consulting the penalty bits, so we can
remove getViolationBit() and switch CTS over to doing instanceof
checks.

Bug: 110413274
Test: atest cts/tests/tests/os/src/android/os/cts/StrictModeTest.java
Change-Id: I760e6a28f56da66dc75b7df9daf2167ff5bdff50
api/test-current.txt
core/java/android/app/IActivityManager.aidl
core/java/android/os/StrictMode.java
services/core/java/com/android/server/am/ActivityManagerService.java