Loading services/core/java/com/android/server/appop/HistoricalRegistry.java +1 −5 Original line number Diff line number Diff line Loading @@ -150,11 +150,9 @@ final class HistoricalRegistry { /** * Whether history is enabled. * * <p>The feature is permanently disabled in Android Q */ @GuardedBy("mInMemoryLock") private final int mMode = AppOpsManager.HISTORICAL_MODE_DISABLED; private int mMode = AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE; /** * This granularity has been chosen to allow clean delineation for intervals Loading Loading @@ -453,7 +451,6 @@ final class HistoricalRegistry { void setHistoryParameters(@HistoricalMode int mode, long baseSnapshotInterval, long intervalCompressionMultiplier) { /* synchronized (mOnDiskLock) { synchronized (mInMemoryLock) { // NOTE: We allow this call if persistence is not initialized as Loading Loading @@ -482,7 +479,6 @@ final class HistoricalRegistry { } } } */ } void offsetHistory(long offsetMillis) { Loading services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java +1 −3 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ import com.android.server.LocalServices; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.quality.Strictness; Loading Loading @@ -234,7 +233,6 @@ public class AppOpsServiceTest { assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); } @Ignore("Historical appops are disabled in Android Q") @Test public void testGetOpsForPackage() { mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); Loading Loading @@ -276,7 +274,7 @@ public class AppOpsServiceTest { assertThat(getLoggedOps()).isNull(); } @Ignore("Historical appops are disabled in Android Q") @Test public void testPackageRemovedHistoricalOps() throws InterruptedException { mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); Loading Loading
services/core/java/com/android/server/appop/HistoricalRegistry.java +1 −5 Original line number Diff line number Diff line Loading @@ -150,11 +150,9 @@ final class HistoricalRegistry { /** * Whether history is enabled. * * <p>The feature is permanently disabled in Android Q */ @GuardedBy("mInMemoryLock") private final int mMode = AppOpsManager.HISTORICAL_MODE_DISABLED; private int mMode = AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE; /** * This granularity has been chosen to allow clean delineation for intervals Loading Loading @@ -453,7 +451,6 @@ final class HistoricalRegistry { void setHistoryParameters(@HistoricalMode int mode, long baseSnapshotInterval, long intervalCompressionMultiplier) { /* synchronized (mOnDiskLock) { synchronized (mInMemoryLock) { // NOTE: We allow this call if persistence is not initialized as Loading Loading @@ -482,7 +479,6 @@ final class HistoricalRegistry { } } } */ } void offsetHistory(long offsetMillis) { Loading
services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java +1 −3 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ import com.android.server.LocalServices; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.quality.Strictness; Loading Loading @@ -234,7 +233,6 @@ public class AppOpsServiceTest { assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); } @Ignore("Historical appops are disabled in Android Q") @Test public void testGetOpsForPackage() { mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); Loading Loading @@ -276,7 +274,7 @@ public class AppOpsServiceTest { assertThat(getLoggedOps()).isNull(); } @Ignore("Historical appops are disabled in Android Q") @Test public void testPackageRemovedHistoricalOps() throws InterruptedException { mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); Loading