Home
last modified time | relevance | path

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

123

/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()
DProcStatsUtil.java20 import android.os.StrictMode;
98 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readTerminatedProcFile()
151 StrictMode.setThreadPolicy(savedPolicy); in readTerminatedProcFile()
DKernelMemoryBandwidthStats.java3 import android.os.StrictMode;
43 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in updateStats()
54 StrictMode.setThreadPolicy(policy); in updateStats()
DStoragedUidIoStatsReader.java19 import android.os.StrictMode;
77 final int oldMask = StrictMode.allowThreadDiskReadsMask(); in readAbsolute()
110 StrictMode.setThreadPolicyMask(oldMask); in readAbsolute()
DKernelCpuProcStringReader.java19 import android.os.StrictMode;
153 final int oldMask = StrictMode.allowThreadDiskReadsMask(); in open()
182 StrictMode.setThreadPolicyMask(oldMask); in open()
DKernelWakelockReader.java22 import android.os.StrictMode;
94 final int oldMask = StrictMode.allowThreadDiskReadsMask(); in readKernelWakelockStats()
122 StrictMode.setThreadPolicyMask(oldMask); in readKernelWakelockStats()
DKernelCpuUidTimeReader.java23 import android.os.StrictMode;
294 final int oldMask = StrictMode.allowThreadDiskWritesMask(); in removeUidsFromKernelModule()
302 StrictMode.setThreadPolicyMask(oldMask); in removeUidsFromKernelModule()
390 final int oldMask = StrictMode.allowThreadDiskReadsMask(); in readFreqs()
402 StrictMode.setThreadPolicyMask(oldMask); in readFreqs()
/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/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/core/java/com/android/internal/util/
DMemInfoReader.java21 import android.os.StrictMode;
35 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readMemInfo()
39 StrictMode.setThreadPolicy(savedPolicy); in readMemInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/chooser/
DChooserHelper.java24 import android.os.StrictMode;
47 StrictMode.disableDeathOnFileUriExposure(); in onChoose()
52 StrictMode.enableDeathOnFileUriExposure(); in onChoose()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java32 import android.os.StrictMode;
199 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryDev()
237 StrictMode.setThreadPolicy(savedPolicy); in readNetworkStatsSummaryDev()
255 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryXt()
287 StrictMode.setThreadPolicy(savedPolicy); in readNetworkStatsSummaryXt()
405 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in javaReadNetworkStatsDetail()
448 StrictMode.setThreadPolicy(savedPolicy); in javaReadNetworkStatsDetail()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutBitmapSaver.java24 import android.os.StrictMode;
25 import android.os.StrictMode.ThreadPolicy;
170 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in saveBitmapLocked()
174 StrictMode.setThreadPolicy(new ThreadPolicy.Builder(oldPolicy) in saveBitmapLocked()
196 StrictMode.setThreadPolicy(oldPolicy); in saveBitmapLocked()
/frameworks/base/core/java/android/app/
DQueuedWork.java25 import android.os.StrictMode;
175 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish()
179 StrictMode.setThreadPolicy(oldPolicy); in waitToFinish()
DLoadedApk.java45 import android.os.StrictMode;
699 private StrictMode.ThreadPolicy allowThreadDiskReads() { in allowThreadDiskReads()
707 return StrictMode.allowThreadDiskReads(); in allowThreadDiskReads()
710 private void setThreadPolicy(StrictMode.ThreadPolicy policy) { in setThreadPolicy()
712 StrictMode.setThreadPolicy(policy); in setThreadPolicy()
830 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
863 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
882 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
1274 final boolean reportRegistrationLeaks = StrictMode.vmRegistrationLeaksEnabled(); in removeContextRegistrations()
1289 StrictMode.onIntentReceiverLeaked(leak); in removeContextRegistrations()
[all …]
/frameworks/base/services/core/java/com/android/server/
DServiceThread.java21 import android.os.StrictMode;
41 StrictMode.initThreadDefaults(null); in run()
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java26 import android.os.StrictMode;
46 StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
47 StrictMode.setThreadPolicy(policy);
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java19 import android.os.StrictMode;
81 if (options.statsTag == -1 && StrictMode.vmUntaggedSocketEnabled()) { in tag()
82 StrictMode.onUntaggedSocket(); in tag()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java23 import android.os.StrictMode;
105 if (StrictMode.vmSqliteObjectLeaksEnabled()) { in SQLiteCursor()
289 StrictMode.onSqliteObjectLeaked( in finalize()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java41 import android.os.StrictMode;
42 import android.os.StrictMode.ThreadPolicy;
547 ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSliceStrict()
549 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() in onBindSliceStrict()
555 StrictMode.setThreadPolicy(oldPolicy); in onBindSliceStrict()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java24 import android.os.StrictMode;
394 StrictMode.ThreadPolicy policy = in readAt()
395 new StrictMode.ThreadPolicy.Builder().permitAll().build(); in readAt()
397 StrictMode.setThreadPolicy(policy); in readAt()
/frameworks/base/core/java/android/os/
DStrictMode.aidl20 parcelable StrictMode.ViolationInfo;
DProcess.java1213 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isThreadInProcess()
1223 StrictMode.setThreadPolicy(oldPolicy); in isThreadInProcess()
/frameworks/base/core/java/android/os/strictmode/
DUnbufferedIoViolation.java18 import android.os.StrictMode.ThreadPolicy.Builder;
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java77 import android.os.StrictMode;
1458 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1467 StrictMode.setThreadPolicy(oldPolicy);
1475 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1485 StrictMode.setThreadPolicy(oldPolicy);
1493 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1499 StrictMode.setThreadPolicy(oldPolicy);
1507 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1517 StrictMode.setThreadPolicy(oldPolicy);
1525 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
[all …]

123