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
207
) sorted by null
1
2
3
4
5
6
7
8
9
/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());
/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/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/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);
/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());
/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/util/
MemInfoReader.java
20
import android.os.
StrictMode
;
29
StrictMode
.ThreadPolicy savedPolicy =
StrictMode
.allowThreadDiskReads();
33
StrictMode
.setThreadPolicy(savedPolicy);
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/static/
jquery.url.js
50
function parseUri( url,
strictMode
) {
52
res = parser[
strictMode
|| false ? 'strict' : 'loose' ].exec( str ),
203
function purl( url,
strictMode
) {
205
strictMode
= true;
208
strictMode
=
strictMode
|| false;
213
data : parseUri(url,
strictMode
),
257
$.fn.url = function(
strictMode
) {
262
return purl( url,
strictMode
);
/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/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
...]
/frameworks/base/docs/html/sdk/api_diff/23/changes/
android.os.StrictMode.ThreadPolicy.Builder.html
10
android.os.
StrictMode
.ThreadPolicy.Builder
74
Class android.os.<A HREF="../../../../reference/android/os/
StrictMode
.ThreadPolicy.Builder.html" target="_top"><font size="+2"><code>
StrictMode
.ThreadPolicy.Builder</code></font></A>
86
<A NAME="android.os.
StrictMode
.ThreadPolicy.Builder.detectResourceMismatches_added()"></A>
87
<nobr><code>Builder</code> <A HREF="../../../../reference/android/os/
StrictMode
.ThreadPolicy.Builder.html#detectResourceMismatches()" target="_top"><code>detectResourceMismatches</code></A>()</nobr>
93
<A NAME="android.os.
StrictMode
.ThreadPolicy.Builder.permitResourceMismatches_added()"></A>
94
<nobr><code>Builder</code> <A HREF="../../../../reference/android/os/
StrictMode
.ThreadPolicy.Builder.html#permitResourceMismatches()" target="_top"><code>permitResourceMismatches</code></A>()</nobr>
android.os.StrictMode.VmPolicy.Builder.html
10
android.os.
StrictMode
.VmPolicy.Builder
74
Class android.os.<A HREF="../../../../reference/android/os/
StrictMode
.VmPolicy.Builder.html" target="_top"><font size="+2"><code>
StrictMode
.VmPolicy.Builder</code></font></A>
86
<A NAME="android.os.
StrictMode
.VmPolicy.Builder.detectCleartextNetwork_added()"></A>
87
<nobr><code>Builder</code> <A HREF="../../../../reference/android/os/
StrictMode
.VmPolicy.Builder.html#detectCleartextNetwork()" target="_top"><code>detectCleartextNetwork</code></A>()</nobr>
93
<A NAME="android.os.
StrictMode
.VmPolicy.Builder.penaltyDeathOnCleartextNetwork_added()"></A>
94
<nobr><code>Builder</code> <A HREF="../../../../reference/android/os/
StrictMode
.VmPolicy.Builder.html#penaltyDeathOnCleartextNetwork()" target="_top"><code>penaltyDeathOnCleartextNetwork</code></A>()</nobr>
/frameworks/base/docs/html/sdk/api_diff/24/changes/
android.os.StrictMode.VmPolicy.Builder.html
10
android.os.
StrictMode
.VmPolicy.Builder
74
Class android.os.<A HREF="../../../../reference/android/os/
StrictMode
.VmPolicy.Builder.html" target="_top"><font size="+2"><code>
StrictMode
.VmPolicy.Builder</code></font></A>
86
<A NAME="android.os.
StrictMode
.VmPolicy.Builder.penaltyDeathOnFileUriExposure_added()"></A>
87
<nobr><code>Builder</code> <A HREF="../../../../reference/android/os/
StrictMode
.VmPolicy.Builder.html#penaltyDeathOnFileUriExposure()" target="_top"><code>penaltyDeathOnFileUriExposure</code></A>()</nobr>
/frameworks/base/docs/html-intl/intl/ja/distribute/googleplay/quality/
core.jd
517
StrictMode
??????????????? <a href="#
strictmode
">
StrictMode
????</a>?????????????????????? UI ?????????????????????????????????
StrictMode
??????????????????????????
948
<a href="#
strictmode
">???????????</a>
StrictMode
??????????????<em>?? ????</em>????????
1000
<h3 id="
strictmode
">
1001
StrictMode
????????
1005
??????????????????? {@link android.os.
StrictMode
} ??????????????????????????????????????????????????? ??????????????/?????????????????????????????????????
1009
{@link android.os.
StrictMode
.ThreadPolicy.Builder}?????????????????? ?????????{@link android.os.StrictMode.ThreadPolicy.Builder (…)
[
all
...]
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/googleplay/quality/
core.jd
578
??
StrictMode
????????? <a href="#
strictmode
">
StrictMode
??</a>???????????????????????????????????????????????
StrictMode
???????
1067
?<a href="#
strictmode
">?????</a>??
StrictMode
????????<em>????</em>???
1125
<h3 id="
strictmode
">
1126
??
StrictMode
????
1130
????????????????? {@link android.os.
StrictMode
}
1138
android.os.
StrictMode
.ThreadPolicy.Builder} ??????????????? {@lin
[
all
...]
/frameworks/base/docs/html-intl/intl/zh-tw/distribute/googleplay/quality/
core.jd
517
???
StrictMode
(?????? <a href="#
strictmode
">
StrictMode
??</a>) ???????????? (?????????????? UI ???????????????????)????? (
StrictMode
?????) ????
948
???
StrictMode
?????<em>????</em>?<a href="#
strictmode
">????</a>?
1000
<h3 id="
strictmode
">
1001
??
StrictMode
????
1005
????????????????????? {@link android.os.
StrictMode
}?????????????????????????????????/?????????
1009
????? {@link android.os.
StrictMode
.ThreadPolicy.Builder} ???????????????? <code>ThreadPolicy</code> ?{@link android.os.StrictMode.Thr (…)
[
all
...]
/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);
/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
...]
NetworkOnMainThreadException.java
29
* <p>Also see {@link
StrictMode
}.
/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);
Completed in 630 milliseconds
1
2
3
4
5
6
7
8
9