Loading services/core/java/com/android/server/stats/pull/StatsPullAtomService.java +3 −10 Original line number Diff line number Diff line Loading @@ -836,9 +836,7 @@ public class StatsPullAtomService extends SystemService { registerEventListeners(); }); } else if (phase == PHASE_THIRD_PARTY_APPS_CAN_START) { if (true) { initNetworkStatsManager(); } BackgroundThread.getHandler().post(() -> { // Network stats related pullers can only be initialized after service is ready. initAndRegisterNetworkStatsPullers(); Loading @@ -859,9 +857,6 @@ public class StatsPullAtomService extends SystemService { mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE); mStatsSubscriptionsListener = new StatsSubscriptionsListener(mSubscriptionManager); mStorageManager = (StorageManager) mContext.getSystemService(StorageManager.class); if (false) { initNetworkStatsManager(); } // Initialize DiskIO mStoragedUidIoStatsReader = new StoragedUidIoStatsReader(); Loading Loading @@ -1043,11 +1038,9 @@ public class StatsPullAtomService extends SystemService { */ @NonNull private NetworkStatsManager getNetworkStatsManager() { if (true) { if (mNetworkStatsManager == null) { throw new IllegalStateException("NetworkStatsManager is not ready"); } } return mNetworkStatsManager; } Loading Loading
services/core/java/com/android/server/stats/pull/StatsPullAtomService.java +3 −10 Original line number Diff line number Diff line Loading @@ -836,9 +836,7 @@ public class StatsPullAtomService extends SystemService { registerEventListeners(); }); } else if (phase == PHASE_THIRD_PARTY_APPS_CAN_START) { if (true) { initNetworkStatsManager(); } BackgroundThread.getHandler().post(() -> { // Network stats related pullers can only be initialized after service is ready. initAndRegisterNetworkStatsPullers(); Loading @@ -859,9 +857,6 @@ public class StatsPullAtomService extends SystemService { mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE); mStatsSubscriptionsListener = new StatsSubscriptionsListener(mSubscriptionManager); mStorageManager = (StorageManager) mContext.getSystemService(StorageManager.class); if (false) { initNetworkStatsManager(); } // Initialize DiskIO mStoragedUidIoStatsReader = new StoragedUidIoStatsReader(); Loading Loading @@ -1043,11 +1038,9 @@ public class StatsPullAtomService extends SystemService { */ @NonNull private NetworkStatsManager getNetworkStatsManager() { if (true) { if (mNetworkStatsManager == null) { throw new IllegalStateException("NetworkStatsManager is not ready"); } } return mNetworkStatsManager; } Loading