Home
last modified time | relevance | path

Searched refs:StrictMode (Results 1 – 25 of 105) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/os/
DStrictModeTest.java40 final int mask = StrictMode.allowThreadDiskReadsMask(); in testAllowThreadDiskReadsMask()
44 StrictMode.setThreadPolicyMask(mask); in testAllowThreadDiskReadsMask()
50 final int mask = StrictMode.allowThreadDiskReadsMask(); in testAllowThreadDiskWritesMask()
54 StrictMode.setThreadPolicyMask(mask); in testAllowThreadDiskWritesMask()
60 StrictMode.setThreadPolicyMask(0); in testThreadMask()
61 assertEquals(0, StrictMode.getThreadPolicyMask()); in testThreadMask()
/frameworks/base/keystore/java/android/security/
DAndroidKeyStoreMaintenance.java24 import android.os.StrictMode;
56 StrictMode.noteDiskWrite(); in onUserAdded()
80 StrictMode.noteDiskWrite(); in initUserSuperKeys()
101 StrictMode.noteDiskWrite(); in onUserRemoved()
124 StrictMode.noteDiskWrite(); in onUserPasswordChanged()
146 StrictMode.noteDiskWrite(); in onUserLskfRemoved()
164 StrictMode.noteDiskWrite(); in clearNamespace()
196 StrictMode.noteDiskWrite(); in migrateKeyNamespace()
221 StrictMode.noteDiskWrite(); in getAllAppUidsAffectedBySid()
241 StrictMode.noteDiskWrite(); in deleteAllKeys()
DKeyStore2.java26 import android.os.StrictMode;
163 StrictMode.noteDiskWrite(); in delete()
175 StrictMode.noteDiskRead(); in list()
185 StrictMode.noteDiskRead(); in listBatch()
249 StrictMode.noteDiskWrite(); in grant()
266 StrictMode.noteDiskWrite(); in ungrant()
284 StrictMode.noteDiskRead(); in getKeyEntry()
317 StrictMode.noteDiskWrite(); in updateSubcomponents()
334 StrictMode.noteDiskWrite(); in deleteKey()
346 StrictMode.noteDiskRead(); in getNumberOfEntries()
DKeyStoreOperation.java24 import android.os.StrictMode;
101 StrictMode.noteSlowCall("updateAad"); in updateAad()
117 StrictMode.noteSlowCall("update"); in update()
131 StrictMode.noteSlowCall("finish"); in finish()
142 StrictMode.noteSlowCall("abort"); in abort()
DLegacyVpnProfileStore.java22 import android.os.StrictMode;
55 StrictMode.noteDiskWrite(); in put()
75 StrictMode.noteDiskRead(); in get()
95 StrictMode.noteDiskWrite(); in remove()
116 StrictMode.noteDiskRead(); in list()
DSystemKeyStore.java21 import android.os.StrictMode;
73 StrictMode.noteDiskWrite(); in generateNewKey()
108 StrictMode.noteDiskWrite(); in getKeyFile()
120 StrictMode.noteDiskRead(); in retrieveKey()
129 StrictMode.noteDiskWrite(); in deleteKey()
DKeyStoreAuthorization.java27 import android.os.StrictMode;
62 StrictMode.noteSlowCall("addAuthToken"); in addAuthToken()
92 StrictMode.noteDiskWrite(); in onDeviceUnlocked()
114 StrictMode.noteDiskWrite(); in onDeviceLocked()
DKeyStoreSecurityLevel.java25 import android.os.StrictMode;
79 StrictMode.noteDiskWrite(); in createOperation()
147 StrictMode.noteDiskWrite(); in generateKey()
170 StrictMode.noteDiskWrite(); in importKey()
195 StrictMode.noteDiskWrite(); in importWrappedKey()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuSpeedReader.java20 import android.os.StrictMode;
67 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta()
91 StrictMode.setThreadPolicy(policy); in readDelta()
101 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readAbsolute()
118 StrictMode.setThreadPolicy(policy); in readAbsolute()
DKernelMemoryBandwidthStats.java3 import android.os.StrictMode;
43 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in updateStats()
54 StrictMode.setThreadPolicy(policy); in updateStats()
DProcStatsUtil.java20 import android.os.StrictMode;
99 final int savedPolicy = StrictMode.allowThreadDiskReadsMask(); in readTerminatedProcFile()
103 StrictMode.setThreadPolicyMask(savedPolicy); in readTerminatedProcFile()
DStoragedUidIoStatsReader.java19 import android.os.StrictMode;
78 final int oldMask = StrictMode.allowThreadDiskReadsMask(); in readAbsolute()
82 StrictMode.setThreadPolicyMask(oldMask); in readAbsolute()
/frameworks/base/core/tests/benchmarks/src/android/os/
DStrictModeBenchmark.java19 import android.os.StrictMode.ThreadPolicy;
28 StrictMode.setThreadPolicy(mOn); in timeToggleThreadPolicy()
29 StrictMode.setThreadPolicy(mOff); in timeToggleThreadPolicy()
/frameworks/base/services/core/java/com/android/server/
DResourcePressureUtil.java19 import android.os.StrictMode;
61 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in currentPsiState()
69 StrictMode.setThreadPolicy(savedPolicy); in currentPsiState()
DServiceThread.java23 import android.os.StrictMode;
43 StrictMode.initThreadDefaults(null); in run()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DStrictModeTest.java49 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build()); in timeVmViolation()
72 StrictMode.setThreadPolicy( in timeThreadViolation()
73 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); in timeThreadViolation()
94 StrictMode.setThreadPolicy( in timeCrossBinderThreadViolation()
95 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); in timeCrossBinderThreadViolation()
/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java22 import android.os.StrictMode;
36 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readMemInfo()
40 StrictMode.setThreadPolicy(savedPolicy); in readMemInfo()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityLeakTests.java33 import android.os.StrictMode;
61 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().build()); in tearDown()
163 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() in enableStrictMode()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutBitmapSaver.java24 import android.os.StrictMode;
25 import android.os.StrictMode.ThreadPolicy;
171 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in saveBitmapLocked()
175 StrictMode.setThreadPolicy(new ThreadPolicy.Builder(oldPolicy) in saveBitmapLocked()
197 StrictMode.setThreadPolicy(oldPolicy); in saveBitmapLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java30 import android.os.StrictMode;
83 StrictMode.noteSlowCall("IPC detected on critical path: " + sBlockingIpcs.peek());
112 StrictMode.ThreadPolicy.Builder builder = new StrictMode.ThreadPolicy.Builder()
116 StrictMode.setThreadPolicy(builder.build()); in builder.build()
/frameworks/base/core/java/android/app/
DQueuedWork.java26 import android.os.StrictMode;
203 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish()
207 StrictMode.setThreadPolicy(oldPolicy); in waitToFinish()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DBinderLogger.kt23 import android.os.StrictMode
24 import android.os.StrictMode.ThreadPolicy
59 StrictMode.setThreadPolicy(policyBuilder.build()) in start()
75 StrictMode.noteSlowCall(analysis.logMessage) in onTransactStarted()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java23 import android.os.StrictMode;
279 if (StrictMode.vmSqliteObjectLeaksEnabled()) { in finalize()
282 StrictMode.onSqliteObjectLeaked( in finalize()
/frameworks/base/services/core/java/com/android/server/wm/
DLetterboxConfigurationPersister.java19 import static android.os.StrictMode.setThreadPolicy;
27 import android.os.StrictMode;
28 import android.os.StrictMode.ThreadPolicy;
283 final ThreadPolicy currentPolicy = StrictMode.getThreadPolicy(); in runWithDiskReadsThreadPolicy()
/frameworks/base/services/core/java/com/android/server/am/
DPhantomProcessRecord.java27 import android.os.StrictMode;
88 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in PhantomProcessRecord()
101 StrictMode.setThreadPolicy(oldPolicy); in PhantomProcessRecord()

12345