Home
last modified time | relevance | path

Searched refs:oldPolicy (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java241 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in getDefaultAccountFromCp2() local
243 new StrictMode.ThreadPolicy.Builder(oldPolicy) in getDefaultAccountFromCp2()
250 StrictMode.setThreadPolicy(oldPolicy); in getDefaultAccountFromCp2()
275 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in setDefaultAccountToCp2() local
277 new StrictMode.ThreadPolicy.Builder(oldPolicy) in setDefaultAccountToCp2()
285 StrictMode.setThreadPolicy(oldPolicy); in setDefaultAccountToCp2()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardContentProvider.java82 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in bulkInsert() local
144 StrictMode.setThreadPolicy(oldPolicy); in bulkInsert()
162 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in query() local
178 StrictMode.setThreadPolicy(oldPolicy); in query()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java165 final int oldPolicy = mUidPolicies.get(uid, POLICY_NONE); in handleUidPoliciesChanged() local
172 final boolean wasAllowlisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()
173 final boolean wasDenylisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in handleUidPoliciesChanged()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/provider/
DBaseQCProvider.java171 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindStrict() local
183 StrictMode.setThreadPolicy(oldPolicy); in onBindStrict()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java540 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in onMenuItemClick() local
548 StrictMode.setThreadPolicy(oldPolicy); in onMenuItemClick()
575 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in initializeSettings() local
577 StrictMode.setThreadPolicy(oldPolicy); in initializeSettings()
/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java213 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSlice() local
282 StrictMode.setThreadPolicy(oldPolicy); in onBindSlice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DConnectedDevicesSliceProvider.java182 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSlice() local
186 new StrictMode.ThreadPolicy.Builder(oldPolicy).permitDiskReads().build()); in onBindSlice()
195 StrictMode.setThreadPolicy(oldPolicy); in onBindSlice()