Home
last modified time | relevance | path

Searched refs:ThreadPolicy (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/tests/benchmarks/src/android/os/
DStrictModeBenchmark.java19 import android.os.StrictMode.ThreadPolicy;
23 private ThreadPolicy mOff = new ThreadPolicy.Builder().build();
24 private ThreadPolicy mOn = new ThreadPolicy.Builder().detectAll().build();
/frameworks/base/core/java/android/os/
DStrictMode.java421 public static final class ThreadPolicy { class in StrictMode
423 public static final ThreadPolicy LAX = new ThreadPolicy(0, null, null);
430 private ThreadPolicy(@ThreadPolicyMask int mask, OnThreadViolationListener listener, in ThreadPolicy() method in StrictMode.ThreadPolicy
475 public Builder(ThreadPolicy policy) { in Builder()
691 public ThreadPolicy build() { in build()
704 return new ThreadPolicy(mMask, mListener, mExecutor); in build()
1155 public static void setThreadPolicy(final ThreadPolicy policy) { in setThreadPolicy()
1226 public static ThreadPolicy getThreadPolicy() { in getThreadPolicy()
1231 return new ThreadPolicy( in getThreadPolicy()
1246 public static ThreadPolicy allowThreadDiskWrites() { in allowThreadDiskWrites()
[all …]
DProcess.java1148 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isThreadInProcess()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuSpeedReader.java67 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readDelta()
101 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in readAbsolute()
DProcStatsUtil.java98 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readTerminatedProcFile()
DKernelMemoryBandwidthStats.java43 StrictMode.ThreadPolicy policy = StrictMode.allowThreadDiskReads(); in updateStats()
DProcessCpuTracker.java396 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in update()
/frameworks/base/core/java/android/os/strictmode/
DUnbufferedIoViolation.java18 import android.os.StrictMode.ThreadPolicy.Builder;
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutBitmapSaver.java25 import android.os.StrictMode.ThreadPolicy;
170 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in saveBitmapLocked()
174 StrictMode.setThreadPolicy(new ThreadPolicy.Builder(oldPolicy) in saveBitmapLocked()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DStrictModeTest.java73 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); in timeThreadViolation()
95 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); in timeCrossBinderThreadViolation()
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java46 StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java31 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readMemInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java173 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryDev()
229 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryXt()
350 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in javaReadNetworkStatsDetail()
/frameworks/base/media/apex/java/android/media/
DMedia2HTTPConnection.java310 StrictMode.ThreadPolicy policy = in readAt()
311 new StrictMode.ThreadPolicy.Builder().permitAll().build(); in readAt()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java42 import android.os.StrictMode.ThreadPolicy;
539 ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSliceStrict()
541 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() in onBindSliceStrict()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java393 StrictMode.ThreadPolicy policy = in readAt()
394 new StrictMode.ThreadPolicy.Builder().permitAll().build(); in readAt()
/frameworks/base/core/java/android/app/
DQueuedWork.java175 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish()
DLoadedApk.java698 private StrictMode.ThreadPolicy allowThreadDiskReads() { in allowThreadDiskReads()
709 private void setThreadPolicy(StrictMode.ThreadPolicy policy) { in setThreadPolicy()
812 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
845 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
864 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
906 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
DActivityThread.java3641 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleInstallProvider()
4030 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpService()
4046 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpActivity()
4062 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpProvider()
6426 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites(); in handleBindApplication()
6427 final StrictMode.ThreadPolicy writesAllowedPolicy = StrictMode.getThreadPolicy(); in handleBindApplication()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1451 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1468 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1486 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1500 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1518 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1532 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
DProcessList.java1585 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
/frameworks/base/api/
Dremoved.txt359 public static final class StrictMode.ThreadPolicy.Builder {
360 …method @NonNull public android.os.StrictMode.ThreadPolicy.Builder penaltyListener(@NonNull android…
Dtest-current.txt1964 public static final class StrictMode.ThreadPolicy.Builder {
1965 method @NonNull public android.os.StrictMode.ThreadPolicy.Builder detectExplicitGc();
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java862 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in updateAccountVisibilityLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerService.java5975 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in logAppTooSlow()

12