HomeSort by relevance Sort by last modified time
    Searched defs:policy (Results 176 - 200 of 842) sorted by null

1 2 3 4 5 6 78 91011>>

  /libcore/ojluni/src/main/java/sun/security/timestamp/
TimestampToken.java 45 * policy TSAPolicyId,
76 private ObjectIdentifier policy; field in class:TimestampToken
119 return policy.toString();
143 // Parse policy
144 policy = tstInfo.data.getOID();
  /packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
AnomalyCleanupJobService.java 64 final BatteryTipPolicy policy = new BatteryTipPolicy(this); local
68 policy.dataHistoryRetainDay));
  /packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
AnomalyDetectionPolicyTest.java 98 AnomalyDetectionPolicy policy = createAnomalyPolicyWithConfig(); local
100 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.WAKE_LOCK)).isFalse();
101 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.WAKEUP_ALARM)).isTrue();
102 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.BLUETOOTH_SCAN)).isTrue();
113 AnomalyDetectionPolicy policy = new AnomalyDetectionPolicy(mContext); local
114 ReflectionHelpers.setField(policy, "mParser", mKeyValueListParser);
116 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.WAKE_LOCK)).isFalse();
117 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.WAKEUP_ALARM)).isFalse();
118 assertThat(policy.isAnomalyDetectorEnabled(Anomaly.AnomalyType.BLUETOOTH_SCAN)).isFalse();
134 final AnomalyDetectionPolicy policy = new AnomalyDetectionPolicy(mContext) local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
HtmlSanitizer.java 138 * This sanitizer policy removes these elements and the content within:
148 * This sanitizer policy removes these elements but preserves the content within:
162 * This sanitizer policy removes these attributes from all elements:
397 // create a thread-specific policy
398 final org.owasp.html.HtmlSanitizer.Policy policy = POLICY_DEFINITION.apply(renderer); local
403 org.owasp.html.HtmlSanitizer.sanitize(rawHtml, policy);
  /frameworks/base/services/tests/servicestests/src/com/android/server/policy/
PhoneWindowManagerTestBase.java 17 package com.android.server.policy;
55 import com.android.server.policy.keyguard.KeyguardServiceDelegate;
240 TestablePhoneWindowManager[] policy = new TestablePhoneWindowManager[1]; local
242 policy[0] = new TestablePhoneWindowManager();
243 policy[0].mContext = context;
244 policy[0].mKeyguardDelegate = mock(KeyguardServiceDelegate.class);
245 policy[0].mAccessibilityManager = new AccessibilityManager(context,
247 policy[0].mSystemGestures = mock(SystemGesturesPointerEventListener.class);
248 policy[0].mNavigationBarCanMove = true;
249 policy[0].mPortraitRotation = ROTATION_0
    [all...]
  /frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/omadm/
PpsMoParserTest.java 26 import android.net.wifi.hotspot2.pps.Policy;
164 // Policy configuration.
165 Policy policy = new Policy(); local
166 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
167 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
172 Policy.RoamingPartner partner2 = new Policy.RoamingPartner()
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointXmlUtilsTest.java 25 import android.net.wifi.hotspot2.pps.Policy;
137 // Policy configuration.
138 Policy policy = new Policy(); local
139 List<Policy.RoamingPartner> preferredRoamingPartnerList = new ArrayList<>();
140 Policy.RoamingPartner partner1 = new Policy.RoamingPartner();
145 Policy.RoamingPartner partner2 = new Policy.RoamingPartner()
    [all...]
  /packages/apps/Email/tests/src/com/android/email/provider/
PolicyTests.java 32 import com.android.emailcommon.provider.Policy;
37 * This is a series of unit tests for the Policy class
72 Policy policy1 = new Policy();
75 Policy policy2 = new Policy();
84 assertEquals(account1.mId, Policy.getAccountIdWithPolicyKey(mMockContext,
86 assertEquals(account2.mId, Policy.getAccountIdWithPolicyKey(mMockContext,
95 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI));
96 Policy policy = new Policy() local
191 Policy policy = new Policy(); local
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointXmlUtils.java 22 import android.net.wifi.hotspot2.pps.Policy;
48 private static final String XML_TAG_SECTION_HEADER_POLICY = "Policy";
276 * Serialize a {@link Policy} to an output stream as a XML block.
279 * @param policy The {@link Policy} to serialize
283 private static void serializePolicy(XmlSerializer out, Policy policy)
285 if (policy == null) {
290 policy.getMinHomeDownlinkBandwidth());
292 policy.getMinHomeUplinkBandwidth())
573 Policy policy = new Policy(); local
    [all...]
  /bionic/libc/bionic/
pthread_create.cpp 121 // Set the scheduling policy/priority of the thread if necessary.
123 int policy; local
127 policy = sched_getscheduler(0);
128 need_set = ((policy & SCHED_RESET_ON_FORK) != 0);
130 if (policy == -1) {
142 policy = thread->attr.sched_policy;
151 if (sched_setscheduler(thread->tid, policy, &param) == -1) {
153 "pthread_create sched_setscheduler(%d, {%d}) call failed: %s", policy,
  /cts/tests/vr/src/android/vr/cts/
VrSetFIFOThreadTest.java 82 int vr_thread = 0, policy = 0; local
88 policy = (int) Process.getThreadScheduler(vr_thread);
89 Log.e(TAG, "scheduling policy: " + policy);
90 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy);
104 int vr_thread = 0, policy = 0; local
110 policy = (int) Process.getThreadScheduler(vr_thread);
111 Log.e(TAG, "scheduling policy: " + policy);
112 assertEquals(SCHED_OTHER, policy);
    [all...]
  /device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/
arm_io_storage.c 283 * an image. Use this to enforce platform load policy */
288 const struct plat_io_policy *policy; local
292 policy = &policies[image_id];
293 result = policy->check(policy->image_spec);
295 *image_spec = policy->image_spec;
296 *dev_handle = *(policy->dev_handle);
  /device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/
hikey960_io_storage.c 189 * an image. Use this to enforce platform load policy
195 const struct plat_io_policy *policy; local
199 policy = &policies[image_id];
200 result = policy->check(policy->image_spec);
203 *image_spec = policy->image_spec;
204 *dev_handle = *(policy->dev_handle);
  /external/ipsec-tools/src/racoon/
policy.h 1 /* $NetBSD: policy.h,v 1.5.4.2 2007/06/07 20:34:19 manu Exp $ */
3 /* Id: policy.h,v 1.5 2004/06/11 16:00:17 ludvigm Exp */
54 * Security Policy Index
67 u_int32_t priority; /* priority for the policy */
74 /* Security Policy Data Base */
81 u_int policy; /* DISCARD, NONE or IPSEC, see keyv2.h */ member in struct:secpolicy
84 /* if policy == IPSEC else this value == NULL.*/
  /external/libnfnetlink/include/libnfnetlink/
linux_nfnetlink.h 61 const struct nla_policy *policy; /* netlink attribute policy */ member in struct:nfnl_callback
  /external/ltp/testcases/kernel/syscalls/get_mempolicy/
get_mempolicy01.c 77 DEFAULT, /* get default policy */
78 ADDR, /* get policy of memory which include mapped address */
90 int policy; member in struct:test_case
110 .policy = MPOL_DEFAULT,
117 .policy = MPOL_BIND,
124 .policy = MPOL_INTERLEAVE,
131 .policy = MPOL_PREFERRED,
138 .policy = MPOL_PREFERRED,
145 .policy = MPOL_DEFAULT,
152 .policy = MPOL_BIND
224 int policy, flags; local
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
3-2.c 31 * -> sched policy/param change
32 * -> create a new thread with a known policy
33 * -> change the policy in the thread attribute and check the thread policy did not change
35 * -> change the policy in the running thread and check the thread attribute did not change.
316 int policy; member in struct:__anon28603
326 /* Read the current sched policy & param */
328 pthread_getschedparam(pthread_self(), &(td->policy), &(td->param));
330 UNRESOLVED(ret, "Failed to read current thread policy / param");
345 /* Read the current sched policy & param *
    [all...]
  /external/ltp/testcases/realtime/func/prio-preempt/
prio-preempt.c 138 int policy, mypri = 0, tid; local
141 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) {
164 int policy, rc, mypri = 0, tid, times = 0; local
168 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) {
  /external/ltp/testcases/realtime/func/prio-wake/
prio-wake.c 133 int policy; local
140 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) {
  /external/ltp/testcases/realtime/include/
librttest.h 89 int policy; member in struct:thread
233 int create_thread(void*(*func)(void*), void *arg, int prio, int policy);
262 * and its policy to SCHED_FIFO
  /external/ltp/testcases/realtime/stress/pi-tests/
testpi-3.c 80 int policy;
101 int rc, i, j, policy, tid = gettid(); local
117 pthread_getschedparam(pthr->pthread, &policy, &schedp);
124 pthr->priority, policy, schedp.sched_priority);
129 policy = sched_getscheduler(tid);
132 policy, schedp.sched_priority);
150 int rc, i, j, policy, tid = gettid(); local
166 pthread_getschedparam(pthr->pthread, &policy, &schedp);
174 pthr->priority, policy, schedp.sched_priority);
184 policy = sched_getscheduler(tid)
206 int rc, i, j, policy, tid = gettid(); local
253 int retc, policy, inherit; local
    [all...]
  /external/owasp/sanitizer/src/main/org/owasp/html/examples/
UrlTextExample.java 136 HtmlSanitizer.Policy policy = policyBuilder.apply( local
149 HtmlSanitizer.sanitize(input, policy);
  /external/owasp/sanitizer/src/tests/org/owasp/html/
SanitizersTest.java 275 PolicyFactory policy = Sanitizers.FORMATTING local
285 assertEquals(want, policy.sanitize(input));
  /external/selinux/python/audit2allow/
sepolgen-ifgen-attr-helper.c 13 * the attributes in the policy so that it can resolve the
107 policydb_t *policy; member in struct:callback_data
121 render_key(key, cb_data->policy, cb_data->fp);
122 render_access_mask(datum->data, key, cb_data->policy, cb_data->fp);
136 if (avtab_map(&cb_data->policy->te_avtab, output_avrule, cb_data) < 0)
138 if (avtab_map(&cb_data->policy->te_cond_avtab, output_avrule, cb_data) < 0)
205 /* Open the policy. */
210 /* Open the output policy. */
220 cb_data.policy = p;
  /external/webrtc/webrtc/base/
platform_thread.cc 210 const int policy = SCHED_RR; local
212 const int policy = SCHED_FIFO;
214 const int min_prio = sched_get_priority_min(policy);
215 const int max_prio = sched_get_priority_max(policy);
246 return pthread_setschedparam(thread_, policy, &param) == 0;

Completed in 707 milliseconds

1 2 3 4 5 6 78 91011>>