HomeSort by relevance Sort by last modified time
    Searched refs:StrictMode (Results 1 - 25 of 40) sorted by null

1 2

  /frameworks/base/core/java/com/android/internal/util/
MemInfoReader.java 21 import android.os.StrictMode;
64 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
95 StrictMode.setThreadPolicy(savedPolicy);
  /frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java 25 import android.os.StrictMode;
72 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
114 StrictMode.setThreadPolicy(savedPolicy);
127 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
163 StrictMode.setThreadPolicy(savedPolicy);
179 final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
224 StrictMode.setThreadPolicy(savedPolicy)
    [all...]
  /packages/experimental/StrictModeTest/src/com/android/strictmodetest/
StrictModeActivity.java 46 import android.os.StrictMode;
182 // own pre-StrictMode network-on-Looper thread check. The
184 // instrumentation for StrictMode instead.
283 File file = new File("/sdcard/strictmode-service-dump.txt");
285 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy();
287 StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.LAX);
289 StrictMode.setThreadPolicy(oldPolicy);
296 StrictMode.setThreadPolicy(oldPolicy)
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
SharedPreferencesTest.java 27 import android.os.StrictMode;
319 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy();
321 StrictMode.ThreadPolicy diskReadDeath =
322 new StrictMode.ThreadPolicy.Builder().detectDiskReads().penaltyDeath().build();
323 StrictMode.setThreadPolicy(diskReadDeath);
333 } catch (StrictMode.StrictModeViolation e) {
338 StrictMode.setThreadPolicy(oldPolicy);
  /frameworks/base/core/java/android/database/sqlite/
SQLiteCursor.java 22 import android.os.StrictMode;
97 if (StrictMode.vmSqliteObjectLeaksEnabled()) {
257 StrictMode.onSqliteObjectLeaked(
  /packages/apps/Contacts/src/com/android/contacts/
ContactsApplication.java 33 import android.os.StrictMode;
130 StrictMode.setThreadPolicy(
131 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());
  /packages/apps/Mms/src/com/android/mms/
MmsApp.java 27 import android.os.StrictMode;
62 // Log tag for enabling/disabling StrictMode violation log. This will dump a stack
63 // in the log that shows the StrictMode violator.
64 // To enable: adb shell setprop log.tag.Mms:strictmode DEBUG
65 StrictMode.setThreadPolicy(
66 new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());
  /packages/apps/KeyChain/tests/src/com/android/keychain/tests/
KeyChainTestActivity.java 23 import android.os.StrictMode;
81 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
88 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
  /development/cmds/monkey/src/com/android/commands/monkey/
Monkey.java 32 import android.os.StrictMode;
273 // StrictMode's disk checks end up catching this on
279 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites();
282 StrictMode.setThreadPolicy(savedPolicy);
290 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites();
300 StrictMode.setThreadPolicy(savedPolicy);
307 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites()
    [all...]
  /frameworks/base/core/java/android/os/
StrictMode.java 46 * <p>StrictMode is a developer tool which detects things you might be
50 * <p>StrictMode is most commonly used to catch accidental disk or
75 * StrictMode.setThreadPolicy(new {@link ThreadPolicy.Builder StrictMode.ThreadPolicy.Builder}()
81 * StrictMode.setVmPolicy(new {@link VmPolicy.Builder StrictMode.VmPolicy.Builder}()
100 * But don't feel compelled to fix everything that StrictMode finds. In particular,
102 * StrictMode to find things you did by accident. Network requests on the UI thread
105 * <p class="note">StrictMode is not a security mechanism and is not
111 * more (or fewer) operations, so you should never leave StrictMode
    [all...]
Binder.java 134 * Sets the native thread-local StrictMode policy mask.
136 * <p>The StrictMode settings are kept in two places: a Java-level
143 * @see StrictMode
149 * Gets the current native thread-local StrictMode policy mask.
261 // Write the StrictMode header.
265 StrictMode.clearGatheredViolations();
FileUtils.java 88 StrictMode.noteDiskRead();
Parcel.java     [all...]
  /packages/experimental/RpcPerformance/src/com/android/rpc_performance/
ProviderPerfActivity.java 50 import android.os.StrictMode;
558 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy();
559 int oldPolicyMask = StrictMode.getThreadPolicyMask(); // hidden API
561 StrictMode.ThreadPolicy policyA =
562 new StrictMode.ThreadPolicy.Builder().detectDiskReads().build();
563 StrictMode.ThreadPolicy policyB =
564 new StrictMode.ThreadPolicy.Builder().detectDiskWrites().build();
566 StrictMode.ThreadPolicy policy = ((i & 1) == 1) ? policyA : policyB;
570 StrictMode.setThreadPolicy(policy)
    [all...]
  /external/webkit/Tools/MiniBrowser/qt/
UrlLoader.cpp 71 QUrl url(qstr, QUrl::StrictMode);
  /external/webkit/Tools/QtTestBrowser/
urlloader.cpp 72 QUrl url(qstr, QUrl::StrictMode);
  /frameworks/base/core/java/android/app/
LoadedApk.java 38 import android.os.StrictMode;
315 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
322 StrictMode.setThreadPolicy(oldPolicy);
526 final boolean reportRegistrationLeaks = StrictMode.vmRegistrationLeaksEnabled();
541 StrictMode.onIntentReceiverLeaked(leak);
565 StrictMode.onServiceConnectionLeaked(leak);
    [all...]
ActivityThread.java 62 import android.os.StrictMode;
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerTest.java 31 import android.os.StrictMode;
    [all...]
  /frameworks/base/core/java/android/widget/
ScrollView.java 26 import android.os.StrictMode;
135 * The StrictMode "critical time span" objects to catch animation
140 private StrictMode.Span mScrollStrictSpan = null; // aka "drag"
141 private StrictMode.Span mFlingStrictSpan = null;
489 mScrollStrictSpan = StrictMode.enterCriticalSpan("ScrollView-scroll");
523 mScrollStrictSpan = StrictMode.enterCriticalSpan("ScrollView-scroll");
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
Utility.java 33 import android.os.StrictMode;
    [all...]
  /packages/apps/Browser/src/com/android/browser/view/
ScrollerView.java 23 import android.os.StrictMode;
131 * The StrictMode "critical time span" objects to catch animation
136 private StrictMode.Span mScrollStrictSpan = null; // aka "drag"
137 private StrictMode.Span mFlingStrictSpan = null;
541 mScrollStrictSpan = StrictMode
583 mScrollStrictSpan = StrictMode
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
ProcessStats.java 22 import android.os.StrictMode;
808 StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
833 StrictMode.setThreadPolicy(savedPolicy);
  /frameworks/base/core/java/android/webkit/
WebView.java 32 import android.os.StrictMode;
    [all...]
  /packages/apps/Settings/src/com/android/settings/
DevelopmentSettings.java 45 import android.os.StrictMode;
453 // strictmode flashes. One of:
458 if (TextUtils.isEmpty(SystemProperties.get(StrictMode.VISUAL_PROPERTY))) {
461 boolean enabled = SystemProperties.getBoolean(StrictMode.VISUAL_PROPERTY, false);
    [all...]

Completed in 712 milliseconds

1 2