HomeSort by relevance Sort by last modified time
    Searched refs:policy (Results 151 - 175 of 1673) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/speculative/
3-1.c 11 * 2. Set the policy and an invalid priority in that object
32 int policy = FIFOPOLICY; local
42 rc = pthread_attr_setschedpolicy(&attr, policy);
48 priority = sched_get_priority_max(policy);
3-2.c 11 * 2. Set the policy and an invalid priority in that object
32 int policy = RRPOLICY; local
42 rc = pthread_attr_setschedpolicy(&attr, policy);
48 priority = sched_get_priority_max(policy);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
15-1.c 11 * contention scope threads have their scheduling policy changed to the
33 int new_policy, policy, result; local
38 /* Make sure new policy != old policy */
63 ("This process does not have the permission to set its own scheduling policy.\nTry to launch this test as root.\n");
70 if (pthread_getschedparam(tid, &policy, &param) != 0) {
77 if (policy == new_policy) {
81 printf("sched_setscheduler() does not set the right policy.\n");
  /external/python/cpython3/Lib/email/mime/
audio.py 48 _encoder=encoders.encode_base64, *, policy=None, **_params):
73 MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy,
  /frameworks/av/services/mediaextractor/
Android.mk 18 LOCAL_REQUIRED_MODULES := crash_dump.policy
19 LOCAL_REQUIRED_MODULES_arm := mediaextractor.policy
20 LOCAL_REQUIRED_MODULES_arm64 := mediaextractor.policy
21 LOCAL_REQUIRED_MODULES_x86 := mediaextractor.policy
49 LOCAL_MODULE := mediaextractor.policy
52 LOCAL_SRC_FILES := seccomp_policy/mediaextractor-$(TARGET_ARCH).policy
  /packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
BaseTask.java 37 * Policy}
57 @NonNull private final List<Policy> policies = new ArrayList<>();
98 * Should be call in the constructor or {@link Policy#onCreate(BaseTask, Bundle)} will be missed.
101 public BaseTask addPolicy(Policy policy) {
103 policies.add(policy);
108 * Indicate the task has failed. {@link Policy#onFail()} will be triggered once the execution
165 for (Policy policy : policies) {
166 policy.onCreate(this, extras)
    [all...]
  /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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/
categoryquery.py 31 policy The policy to query.
42 def __init__(self, policy, **kwargs):
43 super(CategoryQuery, self).__init__(policy, **kwargs)
48 self.log.info("Generating category results from {0.policy}".format(self))
52 for cat in self.policy.categories():
commonquery.py 32 policy The policy to query.
47 def __init__(self, policy, **kwargs):
48 super(CommonQuery, self).__init__(policy, **kwargs)
53 self.log.info("Generating common results from {0.policy}".format(self))
57 for com in self.policy.commons():
devicetreeconquery.py 31 policy The policy to query.
61 def __init__(self, policy, **kwargs):
62 super(DevicetreeconQuery, self).__init__(policy, **kwargs)
67 self.log.info("Generating results from {0.policy}".format(self))
71 for devicetreecon in self.policy.devicetreecons():
initsidquery.py 31 policy The policy to query.
57 def __init__(self, policy, **kwargs):
58 super(InitialSIDQuery, self).__init__(policy, **kwargs)
63 self.log.info("Generating initial SID results from {0.policy}".format(self))
67 for i in self.policy.initialsids():
netifconquery.py 32 policy The policy to query.
58 def __init__(self, policy, **kwargs):
59 super(NetifconQuery, self).__init__(policy, **kwargs)
64 self.log.info("Generating netifcon results from {0.policy}".format(self))
68 for netif in self.policy.netifcons():
  /external/python/cpython3/Lib/email/
generator.py 38 policy=None):
44 Optional mangle_from_ is a flag that, when True (the default if policy
55 The policy keyword specifies a policy object that controls a number of
56 aspects of the generator's operation. If no policy is specified,
57 the policy associated with the Message object passed to the
63 mangle_from_ = True if policy is None else policy.mangle_from_
67 self.policy = policy
    [all...]
  /hardware/qcom/audio/legacy/alsa_sound/
audio_policy_hal.cpp 45 struct audio_policy policy; member in struct:android_audio_legacy::qcom_audio_policy
340 qap->policy.set_device_connection_state = ap_set_device_connection_state;
341 qap->policy.get_device_connection_state = ap_get_device_connection_state;
342 qap->policy.set_phone_state = ap_set_phone_state;
343 qap->policy.set_ringer_mode = ap_set_ringer_mode;
344 qap->policy.set_force_use = ap_set_force_use;
345 qap->policy.get_force_use = ap_get_force_use;
346 qap->policy.set_can_mute_enforced_audible =
348 qap->policy.init_check = ap_init_check;
349 qap->policy.get_output = ap_get_output
    [all...]
  /bionic/libc/bionic/
pthread_setschedparam.cpp 35 int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) {
41 return (sched_setscheduler(tid, policy, param) == -1) ? errno : 0;
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
common.h 35 printf("Failed: policy: %s, func: %s, rc: %s (%u)\n", \
39 int policy; member in struct:params
50 int policy; local
54 rc = pthread_getschedparam(self, &policy, &sp);
62 if (policy != p->policy) {
63 printf("Failed: policy: %s thread policy: %u != %u\n",
64 p->policy_label, policy, p->policy);
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
1-1.c 9 * policy and scheduling parameters for the thread whose thread ID is
11 * policy and param, respectively. The priority value returned from
32 int policy; local
35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam);
  /frameworks/av/services/mediacodec/
Android.mk 30 LOCAL_REQUIRED_MODULES := crash_dump.policy
31 LOCAL_REQUIRED_MODULES_arm := mediacodec.policy
32 LOCAL_REQUIRED_MODULES_x86 := mediacodec.policy
67 # service seccomp policy
70 LOCAL_MODULE := mediacodec.policy
74 # use the 32 bit policy
77 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_2ND_ARCH).policy
79 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy
82 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy
  /frameworks/base/core/java/android/net/
INetworkPolicyManager.aidl 27 * Interface that creates and modifies network policy rules.
34 void setUidPolicy(int uid, int policy);
35 void addUidPolicy(int uid, int policy);
36 void removeUidPolicy(int uid, int policy);
38 int[] getUidsWithPolicy(int policy);
47 /** Snooze limit on policy matching given template. */
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
BatteryController.java 17 package com.android.systemui.statusbar.policy;
21 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
CastController.java 17 package com.android.systemui.statusbar.policy;
20 import com.android.systemui.statusbar.policy.CastController.Callback;
SecurityController.java 16 package com.android.systemui.statusbar.policy;
19 import com.android.systemui.statusbar.policy.SecurityController.SecurityControllerCallback;
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
FakeCastController.java 19 import com.android.systemui.statusbar.policy.CastController;
20 import com.android.systemui.statusbar.policy.CastController.Callback;
FakeRotationLockController.java 19 import com.android.systemui.statusbar.policy.RotationLockController;
20 import com.android.systemui.statusbar.policy.RotationLockController.RotationLockControllerCallback;
  /packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
SummaryDetector.java 31 public SummaryDetector(BatteryTipPolicy policy, long averageTimeMs) {
32 mPolicy = policy;

Completed in 301 milliseconds

1 2 3 4 5 67 8 91011>>