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
78
) sorted by null
1
2
3
4
/frameworks/base/core/tests/benchmarks/src/android/os/
StrictModeBenchmark.java
19
import android.os.
StrictMode
.ThreadPolicy;
28
StrictMode
.setThreadPolicy(mOn);
29
StrictMode
.setThreadPolicy(mOff);
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
Utils.java
22
import android.os.
StrictMode
;
37
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
38
new
StrictMode
.ThreadPolicy.Builder()
41
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
42
new
StrictMode
.VmPolicy.Builder()
52
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
53
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
Utils.java
22
import android.os.
StrictMode
;
37
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
38
new
StrictMode
.ThreadPolicy.Builder()
41
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
42
new
StrictMode
.VmPolicy.Builder()
52
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
53
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
Utils.java
22
import android.os.
StrictMode
;
37
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
38
new
StrictMode
.ThreadPolicy.Builder()
41
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
42
new
StrictMode
.VmPolicy.Builder()
52
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
53
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/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());
/frameworks/base/services/core/java/com/android/server/
ServiceThread.java
21
import android.os.
StrictMode
;
42
if (!mAllowIo &&
StrictMode
.conditionallyEnableDebugLogging()) {
43
Slog.i(TAG, "Enabled
StrictMode
logging for " + getName() + " looper.");
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractMailActivity.java
22
import android.os.
StrictMode
;
50
StrictMode
.setThreadPolicy(new
StrictMode
.ThreadPolicy.Builder()
56
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder()
/cts/tests/tests/os/src/android/os/cts/
StrictModeTest.java
20
import android.os.
StrictMode
;
34
* Tests for {@link
StrictMode
}
39
private
StrictMode
.VmPolicy mPolicy;
43
mPolicy =
StrictMode
.getVmPolicy();
48
StrictMode
.setVmPolicy(mPolicy);
57
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder()
80
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder()
/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);
/cts/tests/tests/webkit/src/android/webkit/cts/
WebViewStartupTest.java
23
import android.os.
StrictMode
;
95
StrictMode
.ThreadPolicy oldPolicy =
StrictMode
.getThreadPolicy();
96
StrictMode
.ThreadPolicy testPolicy = new
StrictMode
.ThreadPolicy.Builder()
101
StrictMode
.setThreadPolicy(testPolicy);
105
StrictMode
.setThreadPolicy(oldPolicy);
/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
...]
/frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java
26
import android.os.
StrictMode
;
93
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
133
StrictMode
.setThreadPolicy(savedPolicy);
146
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
180
StrictMode
.setThreadPolicy(savedPolicy);
269
final
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
314
StrictMode
.setThreadPolicy(savedPolicy)
[
all
...]
/packages/apps/Contacts/src/com/android/contacts/
ContactsApplication.java
27
import android.os.
StrictMode
;
46
* Log tag for enabling/disabling
StrictMode
violation log.
110
StrictMode
.setThreadPolicy(
111
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
/frameworks/base/tests/CoreTests/android/core/
NsdServiceInfoTest.java
7
import android.os.
StrictMode
;
23
StrictMode
.ThreadPolicy policy = new
StrictMode
.ThreadPolicy.Builder().permitAll().build();
24
StrictMode
.setThreadPolicy(policy);
/cts/tests/tests/content/src/android/content/cts/
SharedPreferencesTest.java
24
import android.os.
StrictMode
;
329
final
StrictMode
.ThreadPolicy oldPolicy =
StrictMode
.getThreadPolicy();
331
StrictMode
.ThreadPolicy diskReadDeath =
332
new
StrictMode
.ThreadPolicy.Builder().detectDiskReads().penaltyDeath().build();
333
StrictMode
.setThreadPolicy(diskReadDeath);
343
} catch (
StrictMode
.StrictModeViolation e) {
348
StrictMode
.setThreadPolicy(oldPolicy);
/cts/tests/tests/security/src/android/security/cts/
BrowserTest.java
23
import android.os.
StrictMode
;
141
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder().build());
/frameworks/base/core/java/android/database/sqlite/
SQLiteCursor.java
22
import android.os.
StrictMode
;
97
if (
StrictMode
.vmSqliteObjectLeaksEnabled()) {
265
StrictMode
.onSqliteObjectLeaked(
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
OpenHelper.java
33
import android.os.
StrictMode
;
54
StrictMode
.disableDeathOnFileUriExposure();
61
StrictMode
.enableDeathOnFileUriExposure();
/packages/apps/TV/src/com/android/tv/
TvApplication.java
33
import android.os.
StrictMode
;
103
// Only set
StrictMode
for ENG builds because the build server only produces userdebug
106
StrictMode
.setThreadPolicy(
107
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
108
StrictMode
.VmPolicy.Builder vmPolicyBuilder = new
StrictMode
.VmPolicy.Builder()
114
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/development/cmds/monkey/src/com/android/commands/monkey/
Monkey.java
32
import android.os.
StrictMode
;
260
//
StrictMode
's disk checks end up catching this on
266
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites();
269
StrictMode
.setThreadPolicy(savedPolicy);
277
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites();
288
StrictMode
.setThreadPolicy(savedPolicy);
295
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskWrites()
[
all
...]
/packages/apps/Settings/src/com/android/settings/
SettingsLicenseActivity.java
24
import android.os.
StrictMode
;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
FastScrollingIndexCache.java
24
import android.os.
StrictMode
;
93
final
StrictMode
.ThreadPolicy old =
StrictMode
.allowThreadDiskReads();
98
StrictMode
.setThreadPolicy(old);
/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
53
* <p>
StrictMode
is a developer tool which detects things you might be
57
* <p>
StrictMode
is most commonly used to catch accidental disk or
82
*
StrictMode
.setThreadPolicy(new {@link ThreadPolicy.Builder
StrictMode
.ThreadPolicy.Builder}()
88
*
StrictMode
.setVmPolicy(new {@link VmPolicy.Builder
StrictMode
.VmPolicy.Builder}()
107
* But don't feel compelled to fix everything that
StrictMode
finds. In particular,
109
*
StrictMode
to find things you did by accident. Network requests on the UI thread
112
* <p class="note">
StrictMode
is not a security mechanism and is not
118
* more (or fewer) operations, so you should never leave
StrictMode
[
all
...]
/frameworks/base/media/java/android/media/
MediaHTTPConnection.java
21
import android.os.
StrictMode
;
314
StrictMode
.ThreadPolicy policy =
315
new
StrictMode
.ThreadPolicy.Builder().permitAll().build();
317
StrictMode
.setThreadPolicy(policy);
Completed in 343 milliseconds
1
2
3
4