/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
edit_distance.h | 30 AK_FORCE_INLINE static float getEditDistance(const EditDistancePolicy *const policy) { 31 const int beforeLength = policy->getString0Length(); 32 const int afterLength = policy->getString1Length(); 35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1); 38 dp[i] = i * policy->getDeletionCost(-1, i - 1); 44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), 46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), 47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j))); 48 if (policy->allowTransposition(i, j)) { 52 + policy->getTranspositionCost(i, j)) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/policyrep/ |
netcontext.py | 29 def netifcon_factory(policy, name): 35 return Netifcon(policy, name) 38 def nodecon_factory(policy, name): 44 return Nodecon(policy, name) 47 def portcon_factory(policy, name): 53 return Portcon(policy, name) 58 """Base class for in-policy network labeling rules.""" 66 return context.context_factory(self.policy, self.qpol_symbol.context(self.policy)) 85 return self.qpol_symbol.name(self.policy) [all...] |
symbol.py | 23 """This is a base class for all policy objects.""" 25 def __init__(self, policy, qpol_symbol): 28 policy The low-level policy object. 29 qpol_symbol The low-level policy symbol object. 34 self.policy = policy 38 return self.qpol_symbol.name(self.policy) 58 self, id(self.policy)) 64 newobj.policy = self.polic [all...] |
mlsrule.py | 28 def mls_rule_factory(policy, symbol): 33 return MLSRule(policy, symbol) 46 rule = ExpandedMLSRule(original.policy, original.qpol_symbol) 78 return typeattr.type_or_attr_factory(self.policy, self.qpol_symbol.source_type(self.policy)) 83 return typeattr.type_or_attr_factory(self.policy, self.qpol_symbol.target_type(self.policy)) 88 return mls.range_factory(self.policy, self.qpol_symbol.range(self.policy))
|
default.py | 47 def default_factory(policy, sym): 50 # The low level policy groups default_* settings by object class. 63 if not sym.object_class(policy): 66 user = sym.user_default(policy) 67 role = sym.role_default(policy) 68 type_ = sym.type_default(policy) 69 range_ = sym.range_default(policy) 72 obj = Default(policy, sym) 78 obj = Default(policy, sym) 84 obj = Default(policy, sym [all...] |
boolcond.py | 29 def boolean_factory(policy, name): 33 assert name.policy == policy 36 return Boolean(policy, name) 39 return Boolean(policy, qpol.qpol_bool_t(policy, str(name))) 44 def condexpr_factory(policy, name): 50 return ConditionalExpr(policy, name) 60 return bool(self.qpol_symbol.state(self.policy)) 63 """The policy statement."" [all...] |
/packages/services/Telephony/tests/src/com/android/phone/vvm/omtp/scheduling/ |
BaseTaskTest.java | 45 verify(task.policy).onBeforeExecute(); 46 verify(task.policy).onCompleted(); 54 verify(task.policy).onFail(); 61 verify(task1.policy, never()).onDuplicatedTaskAdded(); 65 verify(task1.policy).onDuplicatedTaskAdded(); 76 verify(task1.policy, never()).onDuplicatedTaskAdded(); 80 verify(task1.policy, never()).onDuplicatedTaskAdded(); 101 public Policy policy; field in class:BaseTaskTest.DummyBaseTask 106 policy = mock(Policy.class) 118 public Policy policy; field in class:BaseTaskTest.FailingBaseTask [all...] |
/external/boringssl/src/crypto/x509v3/ |
pcy_data.c | 67 /* Policy Node routines */ 80 /* Create a data based on an existing policy. If 'id' is NULL use the 81 * oid in the policy, otherwise use 'id'. This behaviour covers the two 87 X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, 92 if (!policy && !cid) 123 ret->valid_policy = policy->policyid; 124 policy->policyid = NULL; 127 if (policy) 129 ret->qualifier_set = policy->qualifiers; 130 policy->qualifiers = NULL [all...] |
/external/opencv3/modules/flann/include/opencv2/flann/ |
any.h | 131 /// Choosing the policy for an any type is illegal, but should never happen. 169 static typename choose_policy<T>::type policy; member in class:cvflann::anyimpl::SinglePolicy 173 typename choose_policy<T>::type SinglePolicy<T>::policy; member in class:cvflann::anyimpl::SinglePolicy 175 /// This function will return a different policy for each type. 177 inline base_any_policy* SinglePolicy<T>::get_policy() { return &policy; } 185 anyimpl::base_any_policy* policy; member in struct:cvflann::any 192 : policy(anyimpl::SinglePolicy<anyimpl::empty_any>::get_policy()), object(NULL) 199 : policy(anyimpl::SinglePolicy<anyimpl::empty_any>::get_policy()), object(NULL) 204 : policy(anyimpl::SinglePolicy<anyimpl::empty_any>::get_policy()), object(NULL) 211 : policy(anyimpl::SinglePolicy<anyimpl::empty_any>::get_policy()), object(NULL [all...] |
/frameworks/av/services/mediacodec/minijail/ |
Android.mk | 5 LOCAL_MODULE := mediacodec-seccomp.policy 10 # use the 32 bit policy 12 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp-$(TARGET_2ND_ARCH).policy 14 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp-$(TARGET_ARCH).policy 18 ifneq (,$(wildcard $(BOARD_SECCOMP_POLICY)/mediacodec-seccomp.policy)) 19 LOCAL_SRC_FILES += $(BOARD_SECCOMP_POLICY)/mediacodec-seccomp.policy
|
/frameworks/av/services/mediaextractor/minijail/ |
Android.mk | 5 LOCAL_MODULE := mediaextractor-seccomp.policy 10 # use the 32 bit policy 12 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp-$(TARGET_2ND_ARCH).policy 14 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp-$(TARGET_ARCH).policy 18 ifneq (,$(wildcard $(BOARD_SECCOMP_POLICY)/mediaextractor-seccomp.policy)) 19 LOCAL_SRC_FILES += $(BOARD_SECCOMP_POLICY)/mediaextractor-seccomp.policy
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/scheduling/ |
BaseTask.java | 34 * Policy} 49 private final List<Policy> mPolicies = new ArrayList<>(); 90 * Should be call in the constructor or {@link Policy#onCreate(BaseTask, Intent, int, int)} will 94 public BaseTask addPolicy(Policy policy) { 96 mPolicies.add(policy); 101 * Indicate the task has failed. {@link Policy#onFail()} will be triggered once the execution 149 for (Policy policy : mPolicies) { 150 policy.onCreate(this, intent, flags, startId) [all...] |
/system/update_engine/ |
UpdateEngine.conf | 4 <policy user="root"> 7 </policy> 8 <policy user="chronos"> 61 </policy> 62 <policy user="power"> 66 </policy>
|
/external/srtp/test/ |
rtpw.c | 145 srtp_policy_t policy; local 305 /* set up the srtp policy and master key */ 308 * create policy structure, using the default mechanisms but 314 crypto_policy_set_rtp_default(&policy.rtp); 315 crypto_policy_set_rtcp_default(&policy.rtcp); 318 crypto_policy_set_aes_cm_128_null_auth(&policy.rtp); 319 crypto_policy_set_rtcp_default(&policy.rtcp); 322 crypto_policy_set_null_cipher_hmac_sha1_80(&policy.rtp); 323 crypto_policy_set_rtcp_default(&policy.rtcp); 329 policy.ssrc.type = ssrc_specific [all...] |
/external/dbus/bus/ |
policy.c | 2 /* policy.c Bus security policy 25 #include "policy.h" 129 DBusList *default_rules; /**< Default policy rules */ 130 DBusList *mandatory_rules; /**< Mandatory policy rules */ 131 DBusHashTable *rules_by_uid; /**< per-UID policy rules */ 132 DBusHashTable *rules_by_gid; /**< per-GID policy rules */ 133 DBusList *at_console_true_rules; /**< console user policy rules where at_console="true"*/ 134 DBusList *at_console_false_rules; /**< console user policy rules where at_console="false"*/ 164 BusPolicy *policy; local 701 BusClientPolicy *policy; local [all...] |
/art/runtime/gc/collector/ |
gc_type.h | 40 std::ostream& operator<<(std::ostream& os, const GcType& policy);
|
/external/dbus/test/data/equiv-config-files/basic/basic.d/ |
basic.conf | 10 <policy context="default"> 12 </policy>
|
/external/dbus/test/data/equiv-config-files/entities/basic.d/ |
basic.conf | 10 <policy context="default"> 12 </policy>
|
/external/dbus/test/data/valid-config-files/basic.d/ |
basic.conf | 10 <policy context="default"> 12 </policy>
|
/external/dbus/test/data/valid-config-files/ |
check-own-rules.conf | 8 <policy context="default"> 12 </policy>
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
EncryptionHelper.java | 17 package com.android.systemui.statusbar.policy;
|
EthernetIcons.java | 17 package com.android.systemui.statusbar.policy;
|
HotspotController.java | 17 package com.android.systemui.statusbar.policy;
|
LocationController.java | 17 package com.android.systemui.statusbar.policy;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
IPolicyService.aidl | 18 import com.android.emailcommon.provider.Policy; 21 boolean isActive(in Policy policies); 24 void setAccountPolicy(long accountId, in Policy policy, String securityKey); 26 void setAccountPolicy2(long accountId, in Policy policy, String securityKey, boolean notify);
|