OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:strictmode
(Results
1 - 25
of
283
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowStrictModeTest.java
3
import android.os.
StrictMode
;
12
StrictMode
.VmPolicy policy = new
StrictMode
.VmPolicy.Builder().build();
13
StrictMode
.setVmPolicy(policy); // should not result in an exception
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowStrictMode.java
3
import android.os.
StrictMode
;
7
@Implements(
StrictMode
.class)
11
public static void setVmPolicy(
StrictMode
.VmPolicy p) {
/packages/apps/Dialer/java/com/android/dialer/strictmode/impl/
SystemDialerStrictMode.java
17
package com.android.dialer.
strictmode
.impl;
23
import android.os.
StrictMode
;
24
import android.os.
StrictMode
.ThreadPolicy;
25
import android.os.
StrictMode
.VmPolicy;
29
import com.android.dialer.
strictmode
.DialerStrictMode;
30
import com.android.dialer.
strictmode
.StrictModeUtils;
37
new
StrictMode
.VmPolicy.Builder().penaltyLog().penaltyDeath().build();
40
new
StrictMode
.ThreadPolicy.Builder().penaltyLog().penaltyDeath().build();
53
// Because Android resets
StrictMode
policies after Application.onCreate is done, we set it
67
private static void setRecommendedMainThreadPolicy(
StrictMode
.ThreadPolicy threadPenalties)
[
all
...]
SystemStrictModeModule.java
17
package com.android.dialer.
strictmode
.impl;
19
import com.android.dialer.
strictmode
.DialerStrictMode;
/cts/tests/tests/os/src/android/os/cts/
StrictModeTest.java
34
import android.os.
StrictMode
;
35
import android.os.
StrictMode
.ThreadPolicy.Builder;
36
import android.os.
StrictMode
.ViolationInfo;
37
import android.os.
strictmode
.CustomViolation;
38
import android.os.
strictmode
.FileUriExposedViolation;
39
import android.os.
strictmode
.UntaggedSocketViolation;
40
import android.os.
strictmode
.Violation;
71
/** Tests for {@link
StrictMode
} */
77
private
StrictMode
.ThreadPolicy mThreadPolicy;
78
private
StrictMode
.VmPolicy mVmPolicy
[
all
...]
/packages/experimental/StrictModeTest/
README
3
A small test utility to intentionally violate
StrictMode
in different
/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());
/packages/apps/Dialer/java/com/android/dialer/strictmode/
StrictModeUtils.java
17
package com.android.dialer.
strictmode
;
22
import android.os.
StrictMode
;
23
import android.os.
StrictMode
.ThreadPolicy;
36
new
StrictMode
.ThreadPolicy.Builder().permitAll().build();
52
ThreadPolicy originalPolicy =
StrictMode
.getThreadPolicy();
53
StrictMode
.setThreadPolicy(THREAD_NO_PENALTY);
57
StrictMode
.setThreadPolicy(originalPolicy);
77
ThreadPolicy originalPolicy =
StrictMode
.getThreadPolicy();
78
StrictMode
.setThreadPolicy(THREAD_NO_PENALTY);
82
StrictMode
.setThreadPolicy(originalPolicy)
[
all
...]
/frameworks/base/core/java/android/os/strictmode/
UnbufferedIoViolation.java
16
package android.os.
strictmode
;
18
import android.os.
StrictMode
.ThreadPolicy.Builder;
Violation.java
17
package android.os.
strictmode
;
19
/** Root class for all
StrictMode
violations. */
InstanceCountViolation.java
16
package android.os.
strictmode
;
23
"android.os.
StrictMode
", "setClassInstanceLimit", "
StrictMode
.java", 1)
/packages/apps/TV/common/src/com/android/tv/common/
BaseApplication.java
25
import android.os.
StrictMode
;
62
// Only set
StrictMode
for ENG builds because the build server only produces userdebug
65
StrictMode
.ThreadPolicy.Builder threadPolicyBuilder =
66
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog();
68
StrictMode
.VmPolicy.Builder vmPolicyBuilder =
69
new
StrictMode
.VmPolicy.Builder().detectAll().penaltyLog();
74
StrictMode
.setThreadPolicy(threadPolicyBuilder.build());
75
StrictMode
.setVmPolicy(vmPolicyBuilder.build());
/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()
/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/apct-tests/perftests/core/src/android/os/
StrictModeTest.java
45
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder().detectAll().penaltyLog().build());
68
StrictMode
.setThreadPolicy(
69
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
90
StrictMode
.setThreadPolicy(
91
new
StrictMode
.ThreadPolicy.Builder().detectAll().penaltyLog().build());
122
// Violate
strictmode
heavily.
/frameworks/base/core/java/com/android/internal/os/
KernelCpuSpeedReader.java
20
import android.os.
StrictMode
;
67
StrictMode
.ThreadPolicy policy =
StrictMode
.allowThreadDiskReads();
91
StrictMode
.setThreadPolicy(policy);
101
StrictMode
.ThreadPolicy policy =
StrictMode
.allowThreadDiskReads();
118
StrictMode
.setThreadPolicy(policy);
KernelMemoryBandwidthStats.java
3
import android.os.
StrictMode
;
43
StrictMode
.ThreadPolicy policy =
StrictMode
.allowThreadDiskReads();
54
StrictMode
.setThreadPolicy(policy);
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
WebViewDeviceSideStartupTest.java
25
import android.os.
StrictMode
;
169
StrictMode
.ThreadPolicy oldThreadPolicy =
StrictMode
.getThreadPolicy();
170
StrictMode
.VmPolicy oldVmPolicy =
StrictMode
.getVmPolicy();
171
StrictMode
.setThreadPolicy(new
StrictMode
.ThreadPolicy.Builder()
176
StrictMode
.setVmPolicy(new
StrictMode
.VmPolicy.Builder()
184
// Try to force Garbage Collection to catch any
StrictMode
violations triggered i
[
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
...]
/frameworks/base/core/java/android/os/
StrictMode.aidl
20
parcelable
StrictMode
.ViolationInfo
/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);
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
StrictModePreferenceControllerTest.java
24
import android.os.
StrictMode
;
80
SystemProperties.set(
StrictMode
.VISUAL_PROPERTY, Boolean.toString(false));
88
SystemProperties.set(
StrictMode
.VISUAL_PROPERTY, Boolean.toString(true));
97
final boolean isEnabled = SystemProperties.getBoolean(
StrictMode
.VISUAL_PROPERTY,
Completed in 1208 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>