commit | 12d2922a6e9c63ca890f8c9e44bb8f4a50024044 | [log] [tgz] |
---|---|---|
author | Sudheer Shanka <sudheersai@google.com> | Fri Feb 24 16:30:04 2017 -0800 |
committer | Sudheer Shanka <sudheersai@google.com> | Fri Feb 24 16:38:15 2017 -0800 |
tree | e003d519c4c0222aac5cfd1ce4b3fe8f8d12773d | |
parent | 3b264fa2afdeb7c01753eb6879e0f7f2461267e4 [diff] |
Fix default value for mUidState.get. In updateRulesForWhitelistedPowerSaveUL, we are using mUidState.get(uid). So if the uid didn't already exist, it will give 0 which represents PROCESS_STATE_PERSISTENT and this is inconsistent with it's other usages. Bug: 35766310 Test: verified that apps coming to foreground, while the battery saver is on, have access to network. Change-Id: I42a8455862e3a15e14825d9cf74e05a6f1dbe298