OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StrictMode
(Results
1 - 25
of
54
) sorted by null
1
2
3
/frameworks/base/core/tests/benchmarks/src/android/os/
StrictModeBenchmark.java
19
import android.os.
StrictMode
.ThreadPolicy;
30
StrictMode
.setThreadPolicy(mOn);
31
StrictMode
.setThreadPolicy(mOff);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractMailActivity.java
23
import android.os.
StrictMode
;
47
StrictMode
.setThreadPolicy(new
StrictMode
.ThreadPolicy.Builder()
53
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder()
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
Utils.java
21
import android.os.
StrictMode
;
44
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
45
new
StrictMode
.ThreadPolicy.Builder()
50
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
51
new
StrictMode
.VmPolicy.Builder()
67
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
68
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
Utils.java
24
import android.os.
StrictMode
;
35
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
36
new
StrictMode
.ThreadPolicy.Builder()
39
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
40
new
StrictMode
.VmPolicy.Builder()
50
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
51
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/frameworks/base/core/java/com/android/internal/util/
MemInfoReader.java
20
import android.os.
StrictMode
;
29
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
33
StrictMode
.setThreadPolicy(savedPolicy);
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
SyncStatusHelper.java
11
import android.os.
StrictMode
;
106
StrictMode
.ThreadPolicy oldPolicy = temporarilyAllowDiskWritesAndDiskReads();
110
StrictMode
.setThreadPolicy(oldPolicy);
119
StrictMode
.ThreadPolicy oldPolicy = temporarilyAllowDiskWritesAndDiskReads();
121
StrictMode
.setThreadPolicy(oldPolicy);
128
StrictMode
.ThreadPolicy oldPolicy = temporarilyAllowDiskWritesAndDiskReads();
130
StrictMode
.setThreadPolicy(oldPolicy);
189
StrictMode
.ThreadPolicy oldPolicy = temporarilyAllowDiskWritesAndDiskReads();
194
StrictMode
.setThreadPolicy(oldPolicy);
374
StrictMode
.ThreadPolicy oldPolicy = temporarilyAllowDiskWritesAndDiskReads()
[
all
...]
/frameworks/base/core/java/android/webkit/
WebViewFactory.java
20
import android.os.
StrictMode
;
100
StrictMode
.ThreadPolicy oldPolicy =
StrictMode
.allowThreadDiskReads();
109
StrictMode
.setThreadPolicy(oldPolicy);
/frameworks/base/services/java/com/android/server/
UiThread.java
21
import android.os.
StrictMode
;
50
if (
StrictMode
.conditionallyEnableDebugLogging()) {
51
Slog.i("UiThread", "Enabled
StrictMode
logging for UI thread");
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
MemInfoReader.java
19
import android.os.
StrictMode
;
63
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
94
StrictMode
.setThreadPolicy(savedPolicy);
/frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java
25
import android.os.
StrictMode
;
75
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
115
StrictMode
.setThreadPolicy(savedPolicy);
128
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
162
StrictMode
.setThreadPolicy(savedPolicy);
194
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
237
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/app/
NotificationManager.java
24
import android.os.
StrictMode
;
130
if (
StrictMode
.vmFileUriExposureEnabled()) {
155
if (
StrictMode
.vmFileUriExposureEnabled()) {
LoadedApk.java
39
import android.os.
StrictMode
;
316
StrictMode
.ThreadPolicy oldPolicy =
StrictMode
.allowThreadDiskReads();
323
StrictMode
.setThreadPolicy(oldPolicy);
532
final boolean reportRegistrationLeaks =
StrictMode
.vmRegistrationLeaksEnabled();
546
StrictMode
.onIntentReceiverLeaked(leak);
569
StrictMode
.onServiceConnectionLeaked(leak);
[
all
...]
/frameworks/base/core/java/android/database/sqlite/
SQLiteCursor.java
22
import android.os.
StrictMode
;
97
if (
StrictMode
.vmSqliteObjectLeaksEnabled()) {
266
StrictMode
.onSqliteObjectLeaked(
/packages/apps/Contacts/src/com/android/contacts/
ContactsApplication.java
27
import android.os.
StrictMode
;
45
* Log tag for enabling/disabling
StrictMode
violation log.
120
StrictMode
.setThreadPolicy(
121
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
/packages/apps/Mms/src/com/android/mms/
MmsApp.java
28
import android.os.
StrictMode
;
65
// Log tag for enabling/disabling
StrictMode
violation log. This will dump a stack
66
// in the log that shows the
StrictMode
violator.
67
// To enable: adb shell setprop log.tag.Mms:
strictmode
DEBUG
68
StrictMode
.setThreadPolicy(
69
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
/development/cmds/monkey/src/com/android/commands/monkey/
Monkey.java
32
import android.os.
StrictMode
;
285
//
StrictMode
's disk checks end up catching this on
291
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites();
294
StrictMode
.setThreadPolicy(savedPolicy);
302
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites();
312
StrictMode
.setThreadPolicy(savedPolicy);
319
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites()
[
all
...]
/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()
/frameworks/base/core/java/android/os/
StrictMode.java
48
* <p>
StrictMode
is a developer tool which detects things you might be
52
* <p>
StrictMode
is most commonly used to catch accidental disk or
77
*
StrictMode
.setThreadPolicy(new {@link ThreadPolicy.Builder
StrictMode
.ThreadPolicy.Builder}()
83
*
StrictMode
.setVmPolicy(new {@link VmPolicy.Builder
StrictMode
.VmPolicy.Builder}()
102
* But don't feel compelled to fix everything that
StrictMode
finds. In particular,
104
*
StrictMode
to find things you did by accident. Network requests on the UI thread
107
* <p class="note">
StrictMode
is not a security mechanism and is not
113
* more (or fewer) operations, so you should never leave
StrictMode
[
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
...]
/frameworks/base/core/java/android/content/
ClipboardManager.java
25
import android.os.
StrictMode
;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
Utility.java
33
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
29
import android.os.
StrictMode
;
141
* The
StrictMode
"critical time span" objects to catch animation
146
private
StrictMode
.Span mScrollStrictSpan = null; // aka "drag"
147
private
StrictMode
.Span mFlingStrictSpan = null;
510
mScrollStrictSpan =
StrictMode
.enterCriticalSpan("ScrollView-scroll");
544
mScrollStrictSpan =
StrictMode
.enterCriticalSpan("ScrollView-scroll");
[
all
...]
Completed in 859 milliseconds
1
2
3