Loading services/core/java/com/android/server/appop/AppOpsService.java +1 −0 Original line number Diff line number Diff line Loading @@ -1889,6 +1889,7 @@ public class AppOpsService extends IAppOpsService.Stub { synchronized (this) { if (mWriteScheduled) { mWriteScheduled = false; mHandler.removeCallbacks(mWriteRunner); doWrite = true; } } Loading services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java +5 −5 Original line number Diff line number Diff line Loading @@ -130,7 +130,9 @@ public class AppOpsServiceTest { } @After public void resetStaticMocks() { public void tearDown() { mAppOpsService.shutdown(); mMockingSession.finishMocking(); } Loading Loading @@ -216,9 +218,8 @@ public class AppOpsServiceTest { false); mAppOpsService.writeState(); // Create a new app ops service, and initialize its state from XML. // Create a new app ops service which will initialize its state from XML. setupAppOpsService(); mAppOpsService.readState(); // Query the state of the 2nd service. List<PackageOps> loggedOps = getLoggedOps(); Loading @@ -233,9 +234,8 @@ public class AppOpsServiceTest { mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName, null, false, null, false); mAppOpsService.shutdown(); // Create a new app ops service, and initialize its state from XML. // Create a new app ops service which will initialize its state from XML. setupAppOpsService(); mAppOpsService.readState(); // Query the state of the 2nd service. List<PackageOps> loggedOps = getLoggedOps(); Loading Loading
services/core/java/com/android/server/appop/AppOpsService.java +1 −0 Original line number Diff line number Diff line Loading @@ -1889,6 +1889,7 @@ public class AppOpsService extends IAppOpsService.Stub { synchronized (this) { if (mWriteScheduled) { mWriteScheduled = false; mHandler.removeCallbacks(mWriteRunner); doWrite = true; } } Loading
services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java +5 −5 Original line number Diff line number Diff line Loading @@ -130,7 +130,9 @@ public class AppOpsServiceTest { } @After public void resetStaticMocks() { public void tearDown() { mAppOpsService.shutdown(); mMockingSession.finishMocking(); } Loading Loading @@ -216,9 +218,8 @@ public class AppOpsServiceTest { false); mAppOpsService.writeState(); // Create a new app ops service, and initialize its state from XML. // Create a new app ops service which will initialize its state from XML. setupAppOpsService(); mAppOpsService.readState(); // Query the state of the 2nd service. List<PackageOps> loggedOps = getLoggedOps(); Loading @@ -233,9 +234,8 @@ public class AppOpsServiceTest { mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName, null, false, null, false); mAppOpsService.shutdown(); // Create a new app ops service, and initialize its state from XML. // Create a new app ops service which will initialize its state from XML. setupAppOpsService(); mAppOpsService.readState(); // Query the state of the 2nd service. List<PackageOps> loggedOps = getLoggedOps(); Loading