/frameworks/base/core/java/com/android/internal/util/ |
D | MemInfoReader.java | 20 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/ |
D | StrictModeBenchmark.java | 19 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/ |
D | KernelCpuSpeedReader.java | 19 import android.os.StrictMode; 66 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta() 90 StrictMode.setThreadPolicy(policy); in readDelta()
|
D | KernelMemoryBandwidthStats.java | 3 import android.os.StrictMode; 40 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in updateStats() 51 StrictMode.setThreadPolicy(policy); in updateStats()
|
D | ProcessCpuTracker.java | 23 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/ |
D | NetworkStatsFactory.java | 26 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/ |
D | RSTest.java | 25 import android.os.StrictMode; 42 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() in onCreate()
|
/frameworks/base/core/java/android/app/ |
D | QueuedWork.java | 24 import android.os.StrictMode; 170 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish() 174 StrictMode.setThreadPolicy(oldPolicy); in waitToFinish()
|
D | LoadedApk.java | 43 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()
|
D | ActivityThread.java | 81 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/ |
D | ServiceThread.java | 21 import android.os.StrictMode; 42 if (!mAllowIo && StrictMode.conditionallyEnableDebugLogging()) { in run()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | NsdServiceInfoTest.java | 7 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/ |
D | NetworkManagementSocketTagger.java | 19 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/ |
D | SQLiteCursor.java | 22 import android.os.StrictMode; 97 if (StrictMode.vmSqliteObjectLeaksEnabled()) { in SQLiteCursor() 265 StrictMode.onSqliteObjectLeaked( in finalize()
|
/frameworks/base/media/java/android/media/ |
D | MediaHTTPConnection.java | 21 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/ |
D | StrictMode.java | 123 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 …]
|
D | Process.java | 997 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isThreadInProcess() 1007 StrictMode.setThreadPolicy(oldPolicy); in isThreadInProcess()
|
D | StrictMode.aidl | 20 parcelable StrictMode.ViolationInfo;
|
D | Binder.java | 461 StrictMode.clearGatheredViolations(); in onTransact() 486 StrictMode.clearGatheredViolations(); in onTransact() 711 StrictMode.clearGatheredViolations(); in execTransact()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewFactory.java | 33 import android.os.StrictMode; 208 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in getProvider() 236 StrictMode.setThreadPolicy(oldPolicy); in getProvider()
|
D | WebView.java | 41 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/ |
D | TypedArray.java | 27 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/ |
D | ScrollView.java | 30 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/ |
D | ClipData.java | 29 import android.os.StrictMode; 940 if (StrictMode.vmFileUriExposureEnabled()) { in prepareToLeaveProcess() 943 if (StrictMode.vmContentUriWithoutPermissionEnabled()) { in prepareToLeaveProcess()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 26 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()
|