HomeSort by relevance Sort by last modified time
    Searched refs:Policy (Results 1 - 25 of 178) sorted by null

1 2 3 4 5 6 7 8

  /external/conscrypt/android-stub/src/main/java/dalvik/system/
BlockGuard.java 22 public static Policy getThreadPolicy() {
26 public interface Policy { void onNetwork(); }
28 public static class PolicyWrapper implements Policy {
  /external/clang/include/clang/Sema/
AnalysisBasedWarnings.h 35 class Policy {
43 Policy();
49 Policy DefaultPolicy;
93 void IssueWarnings(Policy P, FunctionScopeInfo *fscope,
96 Policy getDefaultPolicy() { return DefaultPolicy; }
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
CachePruning.cpp 64 CachePruningPolicy Policy;
75 Policy.Interval = *DurationOrErr;
80 Policy.Expiration = *DurationOrErr;
94 Policy.MaxSizePercentageOfAvailableSpace = Size;
115 Policy.MaxSizeBytes = Size * Mult;
117 if (Value.getAsInteger(0, Policy.MaxSizeFiles))
126 return Policy;
130 bool llvm::pruneCache(StringRef Path, CachePruningPolicy Policy) {
143 Policy.MaxSizePercentageOfAvailableSpace =
144 std::min(Policy.MaxSizePercentageOfAvailableSpace, 100u)
    [all...]
  /development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
SecureActivity.java 27 // Check to see if the device is properly secured as per the policy. Send user
28 // back to policy set up screen if necessary.
29 Policy policy = new Policy(this); local
30 policy.readFromLocal();
31 if (!policy.isDeviceSecured()) {
  /cts/tests/app/src/android/app/cts/
ZenPolicyTest.java 36 ZenPolicy policy = builder.build(); local
39 policy.writeToParcel(parcel, 0);
43 assertEquals(policy, policyFromParcel);
49 ZenPolicy policy = builder.allowAlarms(true).build(); local
50 assertEquals(ZenPolicy.STATE_ALLOW, policy.getPriorityCategoryAlarms());
51 assertAllPriorityCategoriesUnsetExcept(policy,
52 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS);
53 assertAllVisualEffectsUnset(policy);
55 policy = builder.allowAlarms(false).build();
56 assertEquals(ZenPolicy.STATE_DISALLOW, policy.getPriorityCategoryAlarms())
65 ZenPolicy policy = builder.allowMedia(true).build(); local
81 ZenPolicy policy = builder.allowSystem(true).build(); local
97 ZenPolicy policy = builder.allowReminders(true).build(); local
113 ZenPolicy policy = builder.allowEvents(true).build(); local
130 ZenPolicy policy = builder.allowRepeatCallers(true).build(); local
146 ZenPolicy policy = builder.allowMessages(ZenPolicy.PEOPLE_TYPE_NONE).build(); local
178 ZenPolicy policy = builder.allowCalls(ZenPolicy.PEOPLE_TYPE_NONE).build(); local
210 ZenPolicy policy = builder.showFullScreenIntent(true).build(); local
226 ZenPolicy policy = builder.showLights(true).build(); local
242 ZenPolicy policy = builder.showPeeking(true).build(); local
258 ZenPolicy policy = builder.showStatusBarIcons(true).build(); local
274 ZenPolicy policy = builder.showBadges(true).build(); local
290 ZenPolicy policy = builder.showInAmbientDisplay(true).build(); local
306 ZenPolicy policy = builder.showInNotificationList(true).build(); local
322 ZenPolicy policy = builder.disallowAllSounds().build(); local
340 ZenPolicy policy = builder.allowAllSounds().build(); local
358 ZenPolicy policy = builder.showAllVisualEffects().build(); local
373 ZenPolicy policy = builder.hideAllVisualEffects().build(); local
    [all...]
  /external/clang/lib/AST/
TypePrinter.cpp 33 PrintingPolicy &Policy;
37 explicit IncludeStrongLifetimeRAII(PrintingPolicy &Policy)
38 : Policy(Policy), Old(Policy.SuppressStrongLifetime) {
39 if (!Policy.SuppressLifetimeQualifiers)
40 Policy.SuppressStrongLifetime = false;
44 Policy.SuppressStrongLifetime = Old;
49 PrintingPolicy &Policy;
53 explicit ParamPolicyRAII(PrintingPolicy &Policy)
    [all...]
DeclPrinter.cpp 30 PrintingPolicy Policy;
50 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
52 : Out(Out), Policy(Policy), Indentation(Indentation),
111 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
113 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
152 raw_ostream &Out, const PrintingPolicy &Policy,
155 (*Begin)->print(Out, Policy, Indentation);
164 PrintingPolicy SubPolicy(Policy);
201 if (Policy.PolishForDeclaration
    [all...]
TemplateBase.cpp 37 /// \param Policy the printing policy for EnumConstantDecl printing.
39 raw_ostream &Out, const PrintingPolicy& Policy) {
50 ECD->printQualifiedName(Out, Policy);
56 if (T->isBooleanType() && !Policy.MSVCFormatting) {
354 void TemplateArgument::print(const PrintingPolicy &Policy,
362 PrintingPolicy SubPolicy(Policy);
385 getAsTemplate().print(Out, Policy);
389 getAsTemplateOrTemplatePattern().print(Out, Policy);
394 printIntegral(*this, Out, Policy);
    [all...]
StmtPrinter.cpp 40 PrintingPolicy Policy;
44 const PrintingPolicy &Policy,
46 : OS(os), IndentLevel(Indentation), Helper(helper), Policy(Policy) {}
49 PrintStmt(S, Policy.Indentation);
126 D->print(OS, Policy, IndentLevel);
131 Decl::printGroup(Decls.data(), Decls.size(), OS, Policy, IndentLevel);
174 Attr->printPretty(OS, Policy);
315 PrintingPolicy SubPolicy(Policy);
323 if (Policy.IncludeNewlines) OS << "\n"
    [all...]
  /external/libbrillo/brillo/
backoff_entry.h 14 // on requests to a given resource, given a back-off policy.
21 // The set of parameters that define a back-off policy.
22 struct Policy {
58 // Lifetime of policy must enclose lifetime of BackoffEntry. The
60 explicit BackoffEntry(const Policy* const policy);
68 // be rejected at the present time due to exponential back-off policy.
84 // had for Policy::entry_lifetime_ms.
108 const Policy* const policy_;
backoff_entry_unittest.cc 13 BackoffEntry::Policy base_policy = { 0, 1000, 2.0, 0.0, 20000, 2000, false };
17 explicit TestBackoffEntry(const Policy* const policy)
18 : BackoffEntry(policy),
50 BackoffEntry::Policy never_expires_policy = base_policy;
86 BackoffEntry::Policy always_delay_policy = base_policy;
106 BackoffEntry::Policy no_store_policy = base_policy;
113 BackoffEntry::Policy lenient_policy = base_policy;
163 BackoffEntry::Policy always_delay_policy = base_policy;
200 BackoffEntry::Policy jittery_policy = base_policy
    [all...]
  /cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
LegacyNotificationManagerTest.java 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
108 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy();
109 int alarmBit = origPolicy.priorityCategories & NotificationManager.Policy
111 int mediaBit = origPolicy.priorityCategories & NotificationManager.Policy
118 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); local
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
MCCodePadder.cpp 24 for (auto *Policy : CodePaddingPolicies)
25 delete Policy;
28 bool MCCodePadder::addPolicy(MCCodePaddingPolicy *Policy) {
29 assert(Policy && "Policy must be valid");
30 return CodePaddingPolicies.insert(Policy).second;
53 const MCCodePaddingPolicy *Policy) -> uint64_t {
54 return Policy->basicBlockRequiresPaddingFragment(Context)
55 ? (Mask | Policy->getKindMask())
93 [&Inst](uint64_t Mask, const MCCodePaddingPolicy *Policy) -> uint64_t
    [all...]
  /external/syzkaller/vendor/cloud.google.com/go/iam/
iam.go 32 Get(ctx context.Context, resource string) (*pb.Policy, error)
33 Set(ctx context.Context, resource string, p *pb.Policy) error
42 func (g *grpcClient) Get(ctx context.Context, resource string) (*pb.Policy, error) {
49 func (g *grpcClient) Set(ctx context.Context, resource string, p *pb.Policy) error {
52 Policy: p,
93 // Policy retrieves the IAM policy for the resource.
94 func (h *Handle) Policy(ctx context.Context) (*Policy, error) {
99 return &Policy{InternalProto: proto}, ni
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
CachePruning.h 25 /// Policy for the pruneCache() function. A default constructed
26 /// CachePruningPolicy provides a reasonable default policy.
63 /// Parse the given string as a cache pruning policy. Defaults are taken from a
70 /// Peform pruning using the supplied policy, returns true if pruning
71 /// occurred, i.e. if Policy.Interval was expired.
76 bool pruneCache(StringRef Path, CachePruningPolicy Policy);
Parallel.h 197 template <class Policy, class RandomAccessIterator,
199 void sort(Policy policy, RandomAccessIterator Start, RandomAccessIterator End,
201 static_assert(is_execution_policy<Policy>::value,
202 "Invalid execution policy!");
206 template <class Policy, class IterTy, class FuncTy>
207 void for_each(Policy policy, IterTy Begin, IterTy End, FuncTy Fn) {
208 static_assert(is_execution_policy<Policy>::value,
209 "Invalid execution policy!");
    [all...]
  /external/tensorflow/tensorflow/python/keras/mixed_precision/experimental/
policy.py 15 """Contains the Policy class for mixed precision training."""
25 @keras_export('keras.mixed_precision.experimental.Policy')
26 class Policy(object):
27 """A mixed precision policy for a Keras layer.
29 A mixed precision policy determines the floating-point dtype that Keras layers
33 argument of layer constructors, or a global policy can be set with
46 argument. `name` determines the behavior of the policy. Currently, `name` can
58 To use mixed precision in a model, the 'infer_float32_vars' policy can be used
73 Alternatively, the policy can be passed to individual layers instead of
74 setting the global policy with `set_policy`
    [all...]
policy_test.py 23 from tensorflow.python.keras.mixed_precision.experimental import policy as mp_policy
32 policy = mp_policy.Policy('infer')
33 self.assertEqual(policy.name, 'infer')
34 self.assertEqual(policy.default_variable_dtype, None)
37 policy = mp_policy.Policy('infer_float32_vars')
38 self.assertEqual(policy.name, 'infer_float32_vars')
39 self.assertEqual(policy.default_variable_dtype, 'float32')
54 policy = mp_policy.Policy('infer_float32_vars'
    [all...]
  /external/llvm/lib/Target/AMDGPU/
AMDGPUSubtarget.cpp 209 void SISubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
214 Policy.ShouldTrackPressure = true;
218 Policy.OnlyTopDown = false;
219 Policy.OnlyBottomUp = false;
223 Policy.ShouldTrackLaneMasks = true;
  /device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
ModifyIdentityPolicy.c 2 The functions for identification policy modification.
19 Verify the new identity policy in the current implementation. The same credential
20 provider can't appear twice in one identity policy.
24 @retval TRUE The NewGuid was found in the identity policy.
63 @param[in] Identity Identity policy item including credential provider.
127 Delete User's credental from all the providers that exist in User's identity policy.
129 @param[in] IdentityPolicy Point to User's identity policy.
130 @param[in] IdentityPolicyLen The length of the identity policy.
162 @param[in] IdentityPolicy Point to user identity item in new identification policy.
163 @param[in] Offset The item offset in the new identification policy.
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/LTO/legacy/
ThinLTOCodeGenerator.h 145 CachePruningPolicy Policy;
152 /// Cache policy: interval (seconds) between two prunes of the cache. Set to a
157 CacheOptions.Policy.Interval.reset();
159 CacheOptions.Policy.Interval = std::chrono::seconds(Interval);
162 /// Cache policy: expiration (in seconds) for an entry.
166 CacheOptions.Policy.Expiration = std::chrono::seconds(Expiration);
184 CacheOptions.Policy.MaxSizePercentageOfAvailableSpace = Percentage;
187 /// Cache policy: the maximum size for the cache directory in bytes. A value
192 CacheOptions.Policy.MaxSizeBytes = MaxSizeBytes;
195 /// Cache policy: the maximum number of files in the cache directory. A valu
    [all...]
  /external/syzkaller/vendor/cloud.google.com/go/storage/
iam.go 34 func (c *iamClient) Get(ctx context.Context, resource string) (*iampb.Policy, error) {
37 var rp *raw.Policy
49 func (c *iamClient) Set(ctx context.Context, resource string, p *iampb.Policy) error {
74 func iamToStoragePolicy(ip *iampb.Policy) *raw.Policy {
75 return &raw.Policy{
92 func iamFromStoragePolicy(rp *raw.Policy) *iampb.Policy {
93 return &iampb.Policy{
  /external/guava/guava-tests/test/com/google/common/base/
FinalizableReferenceQueueClassLoaderUnloadingTest.java 30 import java.security.Policy;
73 private static class PermissivePolicy extends Policy {
151 Policy oldPolicy = Policy.getPolicy();
154 Policy.setPolicy(new PermissivePolicy());
159 Policy.setPolicy(oldPolicy);
180 Policy oldPolicy = Policy.getPolicy();
183 Policy.setPolicy(new PermissivePolicy());
189 Policy.setPolicy(oldPolicy)
    [all...]
  /external/clang/include/clang/AST/
LocInfoType.h 52 const PrintingPolicy &Policy) const;
  /external/llvm/lib/Target/AArch64/
AArch64Subtarget.cpp 141 void AArch64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
145 Policy.OnlyTopDown = false;
146 Policy.OnlyBottomUp = false;
150 Policy.DisableLatencyHeuristic = DisableLatencySchedHeuristic;

Completed in 1937 milliseconds

1 2 3 4 5 6 7 8