Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java20 import android.os.StrictMode;
29 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readMemInfo()
33 StrictMode.setThreadPolicy(savedPolicy); in readMemInfo()
/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/os/
DKernelCpuSpeedReader.java19 import android.os.StrictMode;
66 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta()
90 StrictMode.setThreadPolicy(policy); in readDelta()
DKernelMemoryBandwidthStats.java3 import android.os.StrictMode;
40 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in updateStats()
51 StrictMode.setThreadPolicy(policy); in updateStats()
DProcessCpuTracker.java23 import android.os.StrictMode;
385 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in update()
389 StrictMode.setThreadPolicy(savedPolicy); in update()
870 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
890 StrictMode.setThreadPolicy(savedPolicy);
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java26 import android.os.StrictMode;
99 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryDev()
137 StrictMode.setThreadPolicy(savedPolicy); in readNetworkStatsSummaryDev()
150 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryXt()
182 StrictMode.setThreadPolicy(savedPolicy); in readNetworkStatsSummaryXt()
278 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in javaReadNetworkStatsDetail()
321 StrictMode.setThreadPolicy(savedPolicy); in javaReadNetworkStatsDetail()
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
DRSTest.java25 import android.os.StrictMode;
42 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() in onCreate()
/frameworks/base/core/java/android/app/
DQueuedWork.java24 import android.os.StrictMode;
170 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish()
174 StrictMode.setThreadPolicy(oldPolicy); in waitToFinish()
DLoadedApk.java43 import android.os.StrictMode;
648 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
652 StrictMode.setThreadPolicy(oldPolicy); in createOrUpdateClassLoaderLocked()
674 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
680 StrictMode.setThreadPolicy(oldPolicy); in createOrUpdateClassLoaderLocked()
1044 final boolean reportRegistrationLeaks = StrictMode.vmRegistrationLeaksEnabled(); in removeContextRegistrations()
1059 StrictMode.onIntentReceiverLeaked(leak); in removeContextRegistrations()
1085 StrictMode.onServiceConnectionLeaked(leak); in removeContextRegistrations()
DActivityThread.java81 import android.os.StrictMode;
1401 if (StrictMode.vmCleartextNetworkEnabled()) { in notifyCleartextNetwork()
1402 StrictMode.onCleartextNetworkDetected(firstPacket); in notifyCleartextNetwork()
2710 StrictMode.incrementExpectedActivityCount(activity.getClass()); in performLaunchActivity()
3121 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleInstallProvider()
3125 StrictMode.setThreadPolicy(oldPolicy); in handleInstallProvider()
3482 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpService()
3493 StrictMode.setThreadPolicy(oldPolicy); in handleDumpService()
3498 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpActivity()
3509 StrictMode.setThreadPolicy(oldPolicy); in handleDumpActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/
DServiceThread.java21 import android.os.StrictMode;
42 if (!mAllowIo && StrictMode.conditionallyEnableDebugLogging()) { in run()
/frameworks/base/tests/CoreTests/android/core/
DNsdServiceInfoTest.java7 import android.os.StrictMode;
23 StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
24 StrictMode.setThreadPolicy(policy);
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java19 import android.os.StrictMode;
77 if (options.statsTag == -1 && StrictMode.vmUntaggedSocketEnabled()) { in tag()
78 StrictMode.onUntaggedSocket(); in tag()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java22 import android.os.StrictMode;
97 if (StrictMode.vmSqliteObjectLeaksEnabled()) { in SQLiteCursor()
265 StrictMode.onSqliteObjectLeaked( in finalize()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java21 import android.os.StrictMode;
320 StrictMode.ThreadPolicy policy = in readAt()
321 new StrictMode.ThreadPolicy.Builder().permitAll().build(); in readAt()
323 StrictMode.setThreadPolicy(policy); in readAt()
/frameworks/base/core/java/android/os/
DStrictMode.java123 public final class StrictMode { class
363 private StrictMode() {} in StrictMode() method in StrictMode
1204 int threadPolicyMask = StrictMode.DETECT_DISK_WRITE | in conditionallyEnableDebugLogging()
1205 StrictMode.DETECT_DISK_READ | in conditionallyEnableDebugLogging()
1206 StrictMode.DETECT_NETWORK; in conditionallyEnableDebugLogging()
1209 threadPolicyMask |= StrictMode.PENALTY_DROPBOX; in conditionallyEnableDebugLogging()
1212 threadPolicyMask |= StrictMode.PENALTY_FLASH; in conditionallyEnableDebugLogging()
1215 StrictMode.setThreadPolicyMask(threadPolicyMask); in conditionallyEnableDebugLogging()
1806 synchronized (StrictMode.class) { in setVmPolicy()
1851 synchronized (StrictMode.class) { in getVmPolicy()
[all …]
DProcess.java997 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isThreadInProcess()
1007 StrictMode.setThreadPolicy(oldPolicy); in isThreadInProcess()
DStrictMode.aidl20 parcelable StrictMode.ViolationInfo;
DBinder.java461 StrictMode.clearGatheredViolations(); in onTransact()
486 StrictMode.clearGatheredViolations(); in onTransact()
711 StrictMode.clearGatheredViolations(); in execTransact()
/frameworks/base/core/java/android/webkit/
DWebViewFactory.java33 import android.os.StrictMode;
208 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in getProvider()
236 StrictMode.setThreadPolicy(oldPolicy); in getProvider()
DWebView.java41 import android.os.StrictMode;
1676 StrictMode.noteSlowCall("findAll blocks UI: prefer findAllAsync"); in findAll()
2483 StrictMode.onWebViewMethodCalledOnWrongThread(throwable); in checkThread()
/frameworks/base/core/java/android/content/res/
DTypedArray.java27 import android.os.StrictMode;
335 StrictMode.noteResourceMismatch(v); in getBoolean()
374 StrictMode.noteResourceMismatch(v); in getInt()
415 StrictMode.noteResourceMismatch(v); in getFloat()
/frameworks/base/core/java/android/widget/
DScrollView.java30 import android.os.StrictMode;
161 private StrictMode.Span mScrollStrictSpan = null; // aka "drag"
162 private StrictMode.Span mFlingStrictSpan = null;
546 mScrollStrictSpan = StrictMode.enterCriticalSpan("ScrollView-scroll"); in onInterceptTouchEvent()
582 mScrollStrictSpan = StrictMode.enterCriticalSpan("ScrollView-scroll"); in onInterceptTouchEvent()
1629 mFlingStrictSpan = StrictMode.enterCriticalSpan("ScrollView-fling"); in fling()
/frameworks/base/core/java/android/content/
DClipData.java29 import android.os.StrictMode;
940 if (StrictMode.vmFileUriExposureEnabled()) { in prepareToLeaveProcess()
943 if (StrictMode.vmContentUriWithoutPermissionEnabled()) { in prepareToLeaveProcess()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java26 import android.os.StrictMode;
606 StrictMode.noteSlowCall("Warning: attempt to read pixels from hardware " in noteHardwareBitmapSlowCall()
1233 StrictMode.noteSlowCall("Compression of a bitmap is slow"); in compress()

12