Searched refs:oldPolicy (Results 1 – 7 of 7) sorted by relevance
241 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in getDefaultAccountFromCp2() local243 new StrictMode.ThreadPolicy.Builder(oldPolicy) in getDefaultAccountFromCp2()250 StrictMode.setThreadPolicy(oldPolicy); in getDefaultAccountFromCp2()275 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in setDefaultAccountToCp2() local277 new StrictMode.ThreadPolicy.Builder(oldPolicy) in setDefaultAccountToCp2()285 StrictMode.setThreadPolicy(oldPolicy); in setDefaultAccountToCp2()
82 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in bulkInsert() local144 StrictMode.setThreadPolicy(oldPolicy); in bulkInsert()162 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in query() local178 StrictMode.setThreadPolicy(oldPolicy); in query()
165 final int oldPolicy = mUidPolicies.get(uid, POLICY_NONE); in handleUidPoliciesChanged() local172 final boolean wasAllowlisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()173 final boolean wasDenylisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in handleUidPoliciesChanged()
171 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindStrict() local183 StrictMode.setThreadPolicy(oldPolicy); in onBindStrict()
540 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in onMenuItemClick() local548 StrictMode.setThreadPolicy(oldPolicy); in onMenuItemClick()575 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in initializeSettings() local577 StrictMode.setThreadPolicy(oldPolicy); in initializeSettings()
213 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSlice() local282 StrictMode.setThreadPolicy(oldPolicy); in onBindSlice()
182 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSlice() local186 new StrictMode.ThreadPolicy.Builder(oldPolicy).permitDiskReads().build()); in onBindSlice()195 StrictMode.setThreadPolicy(oldPolicy); in onBindSlice()