Loading src/java/com/android/internal/telephony/RIL.java +5 −12 Original line number Diff line number Diff line Loading @@ -479,6 +479,7 @@ public class RIL extends BaseCommands implements CommandsInterface { mWakeLockCount = 0; mRILDefaultWorkSource = new WorkSource(context.getApplicationInfo().uid, context.getPackageName()); mActiveWakelockWorkSource = new WorkSource(); TelephonyDevController tdc = TelephonyDevController.getInstance(); tdc.registerRIL(this); Loading Loading @@ -4266,11 +4267,7 @@ public class RIL extends BaseCommands implements CommandsInterface { String clientId = rr.getWorkSourceClientId(); if (!mClientWakelockTracker.isClientActive(clientId)) { if (mActiveWakelockWorkSource != null) { mActiveWakelockWorkSource.add(rr.mWorkSource); } else { mActiveWakelockWorkSource = rr.mWorkSource; } mWakeLock.setWorkSource(mActiveWakelockWorkSource); } Loading Loading @@ -4327,12 +4324,8 @@ public class RIL extends BaseCommands implements CommandsInterface { rr.mRequest, rr.mSerial, (mWakeLockCount > 1) ? mWakeLockCount - 1 : 0); String clientId = rr.getWorkSourceClientId(); if (!mClientWakelockTracker.isClientActive(clientId) && (mActiveWakelockWorkSource != null)) { if (!mClientWakelockTracker.isClientActive(clientId)) { mActiveWakelockWorkSource.remove(rr.mWorkSource); if (mActiveWakelockWorkSource.size() == 0) { mActiveWakelockWorkSource = null; } mWakeLock.setWorkSource(mActiveWakelockWorkSource); } Loading Loading @@ -4365,7 +4358,7 @@ public class RIL extends BaseCommands implements CommandsInterface { mWakeLockCount = 0; mWakeLock.release(); mClientWakelockTracker.stopTrackingAll(); mActiveWakelockWorkSource = null; mActiveWakelockWorkSource = new WorkSource(); return true; } } else { Loading src/java/com/android/internal/telephony/RILRequest.java +1 −2 Original line number Diff line number Diff line Loading @@ -115,9 +115,8 @@ public class RILRequest { */ // @VisibleForTesting public static RILRequest obtain(int request, Message result, WorkSource workSource) { RILRequest rr = null; RILRequest rr = obtain(request, result); rr = obtain(request, result); if (workSource != null) { rr.mWorkSource = workSource; rr.mClientId = rr.getWorkSourceClientId(); Loading Loading
src/java/com/android/internal/telephony/RIL.java +5 −12 Original line number Diff line number Diff line Loading @@ -479,6 +479,7 @@ public class RIL extends BaseCommands implements CommandsInterface { mWakeLockCount = 0; mRILDefaultWorkSource = new WorkSource(context.getApplicationInfo().uid, context.getPackageName()); mActiveWakelockWorkSource = new WorkSource(); TelephonyDevController tdc = TelephonyDevController.getInstance(); tdc.registerRIL(this); Loading Loading @@ -4266,11 +4267,7 @@ public class RIL extends BaseCommands implements CommandsInterface { String clientId = rr.getWorkSourceClientId(); if (!mClientWakelockTracker.isClientActive(clientId)) { if (mActiveWakelockWorkSource != null) { mActiveWakelockWorkSource.add(rr.mWorkSource); } else { mActiveWakelockWorkSource = rr.mWorkSource; } mWakeLock.setWorkSource(mActiveWakelockWorkSource); } Loading Loading @@ -4327,12 +4324,8 @@ public class RIL extends BaseCommands implements CommandsInterface { rr.mRequest, rr.mSerial, (mWakeLockCount > 1) ? mWakeLockCount - 1 : 0); String clientId = rr.getWorkSourceClientId(); if (!mClientWakelockTracker.isClientActive(clientId) && (mActiveWakelockWorkSource != null)) { if (!mClientWakelockTracker.isClientActive(clientId)) { mActiveWakelockWorkSource.remove(rr.mWorkSource); if (mActiveWakelockWorkSource.size() == 0) { mActiveWakelockWorkSource = null; } mWakeLock.setWorkSource(mActiveWakelockWorkSource); } Loading Loading @@ -4365,7 +4358,7 @@ public class RIL extends BaseCommands implements CommandsInterface { mWakeLockCount = 0; mWakeLock.release(); mClientWakelockTracker.stopTrackingAll(); mActiveWakelockWorkSource = null; mActiveWakelockWorkSource = new WorkSource(); return true; } } else { Loading
src/java/com/android/internal/telephony/RILRequest.java +1 −2 Original line number Diff line number Diff line Loading @@ -115,9 +115,8 @@ public class RILRequest { */ // @VisibleForTesting public static RILRequest obtain(int request, Message result, WorkSource workSource) { RILRequest rr = null; RILRequest rr = obtain(request, result); rr = obtain(request, result); if (workSource != null) { rr.mWorkSource = workSource; rr.mClientId = rr.getWorkSourceClientId(); Loading