Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +12 −12 Original line number Diff line number Diff line Loading @@ -14991,9 +14991,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { } private void setNetworkLoggingActiveInternal(boolean active) { final boolean[] shouldSendNotification = new boolean[] {false}; synchronized (getLockObject()) { mInjector.binderWithCleanCallingIdentity(() -> { boolean shouldSendNotification = false; synchronized (getLockObject()) { if (active) { if (mNetworkLogger == null) { final int affectedUserId = getNetworkLoggingAffectedUser(); Loading @@ -15008,7 +15008,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { + " service not being available yet."); } maybePauseDeviceWideLoggingLocked(); shouldSendNotification[0] = shouldSendNetworkLoggingNotificationLocked(); shouldSendNotification = shouldSendNetworkLoggingNotificationLocked(); } else { if (mNetworkLogger != null && !mNetworkLogger.stopNetworkLogging()) { Slogf.wtf(LOG_TAG, "Network logging could not be stopped due to the logging" Loading @@ -15016,15 +15016,15 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { } mNetworkLogger = null; } }); } if (active) { if (shouldSendNotification[0]) { if (shouldSendNotification) { sendNetworkLoggingNotification(); } } else { mInjector.getNotificationManager().cancel(SystemMessage.NOTE_NETWORK_LOGGING); } }); } private @UserIdInt int getNetworkLoggingAffectedUser() { Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +12 −12 Original line number Diff line number Diff line Loading @@ -14991,9 +14991,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { } private void setNetworkLoggingActiveInternal(boolean active) { final boolean[] shouldSendNotification = new boolean[] {false}; synchronized (getLockObject()) { mInjector.binderWithCleanCallingIdentity(() -> { boolean shouldSendNotification = false; synchronized (getLockObject()) { if (active) { if (mNetworkLogger == null) { final int affectedUserId = getNetworkLoggingAffectedUser(); Loading @@ -15008,7 +15008,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { + " service not being available yet."); } maybePauseDeviceWideLoggingLocked(); shouldSendNotification[0] = shouldSendNetworkLoggingNotificationLocked(); shouldSendNotification = shouldSendNetworkLoggingNotificationLocked(); } else { if (mNetworkLogger != null && !mNetworkLogger.stopNetworkLogging()) { Slogf.wtf(LOG_TAG, "Network logging could not be stopped due to the logging" Loading @@ -15016,15 +15016,15 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { } mNetworkLogger = null; } }); } if (active) { if (shouldSendNotification[0]) { if (shouldSendNotification) { sendNetworkLoggingNotification(); } } else { mInjector.getNotificationManager().cancel(SystemMessage.NOTE_NETWORK_LOGGING); } }); } private @UserIdInt int getNetworkLoggingAffectedUser() {