Home
last modified time | relevance | path

Searched refs:ThreadPolicy (Results 1 – 25 of 31) 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()
1154 public static void setThreadPolicy(final ThreadPolicy policy) { in setThreadPolicy()
1225 public static ThreadPolicy getThreadPolicy() { in getThreadPolicy()
1230 return new ThreadPolicy( in getThreadPolicy()
1245 public static ThreadPolicy allowThreadDiskWrites() { in allowThreadDiskWrites()
[all …]
DProcess.java1213 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.java401 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in update()
/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/core/java/android/os/strictmode/
DUnbufferedIoViolation.java18 import android.os.StrictMode.ThreadPolicy.Builder;
/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/services/core/java/com/android/server/net/
DNetworkStatsFactory.java199 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryDev()
255 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readNetworkStatsSummaryXt()
405 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in javaReadNetworkStatsDetail()
/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java35 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads(); in readMemInfo()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java42 import android.os.StrictMode.ThreadPolicy;
547 ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSliceStrict()
549 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() in onBindSliceStrict()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java394 StrictMode.ThreadPolicy policy = in readAt()
395 new StrictMode.ThreadPolicy.Builder().permitAll().build(); in readAt()
/frameworks/base/core/java/android/app/
DQueuedWork.java175 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish()
DLoadedApk.java699 private StrictMode.ThreadPolicy allowThreadDiskReads() { in allowThreadDiskReads()
710 private void setThreadPolicy(StrictMode.ThreadPolicy policy) { in setThreadPolicy()
830 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
863 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
882 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked()
DActivityThread.java3660 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleInstallProvider()
4070 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpService()
4086 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpActivity()
4102 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpProvider()
6466 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites(); in handleBindApplication()
6467 final StrictMode.ThreadPolicy writesAllowedPolicy = StrictMode.getThreadPolicy(); in handleBindApplication()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1458 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1475 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1493 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1507 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1525 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1539 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
DProcessList.java1695 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
/frameworks/base/api/
Dremoved.txt367 public static final class StrictMode.ThreadPolicy.Builder {
368 …method @NonNull public android.os.StrictMode.ThreadPolicy.Builder penaltyListener(@NonNull android…
/frameworks/base/non-updatable-api/
Dremoved.txt367 public static final class StrictMode.ThreadPolicy.Builder {
368 …method @NonNull public android.os.StrictMode.ThreadPolicy.Builder penaltyListener(@NonNull android…
/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.java6022 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in logAppTooSlow()
/frameworks/base/config/
Dboot-image-profile.txt12202 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;-><init>()V
12203 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;-><init>(Landroid/os/StrictMode$ThreadPolicy;)V
12204 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->build()Landroid/os/StrictMode$ThreadPolicy;
12205 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->detectAll()Landroid/os/StrictMode$ThreadPolicy$Bui…
12206 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->detectCustomSlowCalls()Landroid/os/StrictMode$Thre…
12207 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->detectNetwork()Landroid/os/StrictMode$ThreadPolicy
12208 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->penaltyDeath()Landroid/os/StrictMode$ThreadPolicy$…
12209 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->penaltyLog()Landroid/os/StrictMode$ThreadPolicy$Bu…
12210 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->permitAll()Landroid/os/StrictMode$ThreadPolicy$Bui…
12211 HSPLandroid/os/StrictMode$ThreadPolicy$Builder;->permitDiskReads()Landroid/os/StrictMode$ThreadPoli…
[all …]

12