/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
H A D | NativeAudioContext.h | 83 int32_t policy = getIntegerProperty("aaudio.mmap_policy", 0); in AAudioExtensions() local 84 mMMapSupported = isPolicyEnabled(policy); in AAudioExtensions() 86 policy = getIntegerProperty("aaudio.mmap_exclusive_policy", 0); in AAudioExtensions() 87 mMMapExclusiveSupported = isPolicyEnabled(policy); in AAudioExtensions() 90 static bool isPolicyEnabled(int32_t policy) { in isPolicyEnabled() argument 91 return (policy == AAUDIO_POLICY_AUTO || policy == AAUDIO_POLICY_ALWAYS); in isPolicyEnabled() 115 int32_t policy = mAAudio_getMMapPolicy(); in isMMapEnabled() 116 return isPolicyEnabled(policy); in isMMapEnabled() 162 mAAudio_setMMapPolicy = (int32_t (*)(aaudio_policy_t policy)) in loadLibrary() [all...] |
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/ |
H A D | net_policy_client.h | 35 * Set the network policy for the specified UID. 38 * @param policy The network policy for application, for details, see {@link NetUidPolicy}. 43 [[nodiscard]] int32_t SetPolicyByUid(uint32_t uid, uint32_t policy); 46 * Get the network policy of the specified UID. 49 * @param policy The network policy of the specified UID application, for details, see {@link NetUidPolicy}. 54 [[nodiscard]] int32_t GetPolicyByUid(uint32_t uid, uint32_t &policy); 57 * Get the application UIDs of the specified policy. 59 * @param policy th [all...] |
/foundation/communication/netmanager_base/services/netpolicymanager/include/ |
H A D | net_policy_service.h | 54 * Set the network policy for the specified UID. 56 * @param policy The network policy for application. 60 int32_t SetPolicyByUid(uint32_t uid, uint32_t policy) override; 63 * Get the network policy of the specified UID. 65 * @param policy Return this uid's policy. 69 int32_t GetPolicyByUid(uint32_t uid, uint32_t &policy) override; 72 * Get the application UIDs of the specified policy. 73 * @param policy th [all...] |
/foundation/communication/ipc/ipc/native/c/manager/src/ |
H A D | ipc_thread_pool.c | 89 int32_t policy = threadContext->policy; in ThreadHandler() local 94 switch (policy) { in ThreadHandler() 141 int32_t SpawnNewThread(ThreadPool *threadPool, int32_t policy, int32_t proto) in SpawnNewThread() argument 166 threadContext->policy = policy; in SpawnNewThread()
|
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | key_control.c | 126 bool KeyCtrlGetPolicyEx(const char *path, struct fscrypt_get_policy_ex_arg *policy) in KeyCtrlGetPolicyEx() argument 129 return FsIoctl(path, FS_IOC_GET_ENCRYPTION_POLICY_EX, (void *)(policy)); in KeyCtrlGetPolicyEx() 133 bool KeyCtrlSetPolicy(const char *path, union FscryptPolicy *policy) in KeyCtrlSetPolicy() argument 136 return FsIoctl(path, FS_IOC_SET_ENCRYPTION_POLICY, (void *)(policy)); in KeyCtrlSetPolicy() 139 bool KeyCtrlGetPolicy(const char *path, struct fscrypt_policy *policy) in KeyCtrlGetPolicy() argument 142 return FsIoctl(path, FS_IOC_GET_ENCRYPTION_POLICY, (void *)(policy)); in KeyCtrlGetPolicy() 156 LOGE("open policy file failed, errno: %d", errno); in CheckKernelFscrypt()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | ts.c | 40 const EVP_MD *md, const char *policy, int no_nonce, 43 const char *policy, int no_nonce, int cert); 52 const char *policy, const char *in, int token_in, 58 const char *chain, const char *policy); 167 char *data = NULL, *digest = NULL, *policy = NULL; in ts_main() local 226 policy = opt_arg(); in ts_main() 319 ret = !query_command(data, digest, md, policy, no_nonce, cert, in ts_main() 331 password, inkey, md, signer, chain, policy, in ts_main() 395 const char *policy, int no_nonce, in query_command() 413 query = create_query(data_bio, digest, md, policy, no_nonc in query_command() 394 query_command(const char *data, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert, const char *in, const char *out, int text) query_command() argument 441 create_query(BIO *data_bio, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert) create_query() argument 584 reply_command(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy, const char *in, int token_in, const char *out, int token_out, int text) reply_command() argument 692 create_response(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy) create_response() argument [all...] |
/third_party/openssl/apps/ |
H A D | ts.c | 40 const EVP_MD *md, const char *policy, int no_nonce, 43 const char *policy, int no_nonce, int cert); 52 const char *policy, const char *in, int token_in, 58 const char *chain, const char *policy); 167 char *data = NULL, *digest = NULL, *policy = NULL; in ts_main() local 226 policy = opt_arg(); in ts_main() 319 ret = !query_command(data, digest, md, policy, no_nonce, cert, in ts_main() 331 password, inkey, md, signer, chain, policy, in ts_main() 395 const char *policy, int no_nonce, in query_command() 413 query = create_query(data_bio, digest, md, policy, no_nonc in query_command() 394 query_command(const char *data, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert, const char *in, const char *out, int text) query_command() argument 441 create_query(BIO *data_bio, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert) create_query() argument 584 reply_command(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy, const char *in, int token_in, const char *out, int token_out, int text) reply_command() argument 692 create_response(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy) create_response() argument [all...] |
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_query_device.c | 49 HDF_LOGD("%{public}s %{public}s policy:%{public}d status:%{public}d type:%{public}d", __func__, in DevFillQueryDeviceInfo() 50 deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); in DevFillQueryDeviceInfo() 51 if ((deviceInfo->policy == SERVICE_POLICY_CAPACITY || deviceInfo->policy == SERVICE_POLICY_PUBLIC) && in DevFillQueryDeviceInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/ |
H A D | accesstoken_kit.h | 29 static AccessTokenIDEx AllocHapToken(const HapInfoParams& info, const HapPolicyParams& policy); 47 static int32_t InitHapToken(const HapInfoParams& info, HapPolicyParams& policy, AccessTokenIDEx& fullTokenId); 49 AccessTokenIDEx& tokenIdEx, const UpdateHapInfoParams& info, const HapPolicyParams& policy);
|
/third_party/ltp/lib/ |
H A D | tst_hugepage.c | 33 if (hp->policy == TST_NEEDS) in tst_reserve_hugepages() 51 if (hp->policy == TST_NEEDS) { in tst_reserve_hugepages() 76 if (hp->policy == TST_NEEDS) { in tst_reserve_hugepages()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
H A D | sched_setscheduler01.c | 17 * 2. Call sched_setscheduler with an invalid scheduling policy, 43 int policy; member 49 /* The policy is invalid - EINVAL */ 69 TST_EXP_FAIL(tv->sched_setscheduler(*tc->pid, tc->policy, tc->p), in run() 71 *tc->pid, tc->policy, tc->p); in run()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/ |
H A D | 2-4.c | 9 * policy and priority. 13 * 2. Change main's priority and policy 16 * 5. Check that it has correct priority and policy 38 int policy; in thread() local 41 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in thread() 46 if (policy == POLICY) { in thread()
|
H A D | 2-3.c | 9 * policy and priority. 14 * 3. Change main's priority and policy 16 * 5. Check that it has correct priority and policy 38 int policy; in thread() local 41 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in thread() 46 if (policy == POLICY) { in thread()
|
H A D | 2-1.c | 12 * 2. Set schedule policy (policy) in attr to SCHED_FIFO 16 * policy value(new_policy) 18 * default policy value in the creating thread. if new_policy is 32 static const long int policy = SCHED_FIFO; variable 47 if (new_policy == policy) { in thread_func() 69 rc = pthread_attr_setschedpolicy(&attr, policy); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 21-1.c | 12 * their scheduling policy from the process. 32 int new_priority, max_priority, old_policy, policy, result; in main() local 69 if (pthread_getschedparam(tid, &policy, ¶m) != 0) { in main() 76 if (policy == old_policy) { in main() 80 printf("The threads does not inherit the right policy.\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 22-1.c | 12 * their scheduling policy from the process. 33 int new_policy, policy, result; in main() local 43 /* Make sure new policy != old policy */ in main() 51 ("This process does not have the permission to set its own scheduling policy.\nTry to launch this test as root.\n"); in main() 75 if (pthread_getschedparam(tid, &policy, ¶m) != 0) { in main() 82 if (policy == new_policy) { in main() 86 printf("The thread does not inherit the right policy.\n"); in main()
|
/third_party/python/Lib/email/mime/ |
H A D | audio.py | 18 _encoder=encoders.encode_base64, *, policy=None, **_params): 43 MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy,
|
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/ |
H A D | net_policy_client.cpp | 32 int32_t NetPolicyClient::SetPolicyByUid(uint32_t uid, uint32_t policy) in SetPolicyByUid() argument 40 return proxy->SetPolicyByUid(uid, policy); in SetPolicyByUid() 43 int32_t NetPolicyClient::GetPolicyByUid(uint32_t uid, uint32_t &policy) in GetPolicyByUid() argument 50 return proxy->GetPolicyByUid(uid, policy); in GetPolicyByUid() 53 int32_t NetPolicyClient::GetUidsByPolicy(uint32_t policy, std::vector<uint32_t> &uids) in GetUidsByPolicy() argument 61 return proxy->GetUidsByPolicy(policy, uids); in GetUidsByPolicy() 402 int32_t NetPolicyClient::SetNetworkAccessPolicy(uint32_t uid, NetworkAccessPolicy policy, bool reconfirmFlag) in SetNetworkAccessPolicy() argument 410 return proxy->SetNetworkAccessPolicy(uid, policy, reconfirmFlag); in SetNetworkAccessPolicy() 413 int32_t NetPolicyClient::GetNetworkAccessPolicy(AccessPolicyParameter parameter, AccessPolicySave& policy) in GetNetworkAccessPolicy() argument 420 return proxy->GetNetworkAccessPolicy(parameter, policy); in GetNetworkAccessPolicy() [all...] |
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/ |
H A D | ut_net_policy_service.cpp | 67 uint32_t policy = 50; in HWTEST_F() local 68 int32_t ret = instance_->SetPolicyByUid(uid, policy); in HWTEST_F() 80 uint32_t policy = 50; in HWTEST_F() local 81 int32_t ret = instance_->GetPolicyByUid(uid, policy); in HWTEST_F() 93 uint32_t policy = 50; in HWTEST_F() local 95 int32_t ret = instance_->IsUidNetAllowed(uid, policy, isAllowed); in HWTEST_F() 207 uint32_t policy = 0; in HWTEST_F() local 209 ret = instance_->GetUidsByPolicy(policy, uids); in HWTEST_F() 258 uint32_t policy = 0; in HWTEST_F() local 260 auto ret = instance_->GetUidsByPolicy(policy, uid in HWTEST_F() [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | ut_net_policy_service.cpp | 67 uint32_t policy = 50; in HWTEST_F() local 68 int32_t ret = instance_->SetPolicyByUid(uid, policy); in HWTEST_F() 80 uint32_t policy = 50; in HWTEST_F() local 81 int32_t ret = instance_->GetPolicyByUid(uid, policy); in HWTEST_F() 93 uint32_t policy = 50; in HWTEST_F() local 95 int32_t ret = instance_->IsUidNetAllowed(uid, policy, isAllowed); in HWTEST_F() 207 uint32_t policy = 0; in HWTEST_F() local 209 ret = instance_->GetUidsByPolicy(policy, uids); in HWTEST_F() 258 uint32_t policy = 0; in HWTEST_F() local 260 auto ret = instance_->GetUidsByPolicy(policy, uid in HWTEST_F() [all...] |
/third_party/node/deps/npm/node_modules/make-fetch-happen/lib/cache/ |
H A D | entry.js | 8 const CachePolicy = require('./policy.js') 27 // a cache policy based on the metadata it will think the cached response 114 const _policy = Symbol('policy') 146 return entryA.policy.satisfies(entryB.request) 184 if (_entry.policy.satisfies(request)) { 232 get policy () { 254 !this.policy.storable() 339 const headers = { ...this.policy.responseHeaders() } 388 headers: this.policy.revalidationHeaders(request), 395 // options then those will overwrite the ones from the policy [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 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. 309 int policy; member 319 /* Read the current sched policy & param */ in schedtest() 321 pthread_getschedparam(pthread_self(), &(td->policy), &(td->param)); in schedtest() 323 UNRESOLVED(ret, "Failed to read current thread policy / param"); in schedtest() 338 /* Read the current sched policy in schedtest() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | common_decoration.h | 70 BlurStyleActivePolicy policy = BlurStyleActivePolicy::ALWAYS_ACTIVE;
member 78 policy == other.policy && blurType == other.blurType &&
in operator ==() 101 jsonBrightnessOption->Put("policy", POLICY[static_cast<int>(policy)]);
in ToJsonValue()
|
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_thread_pool.cpp | 76 bool IPCWorkThreadPool::SpawnThread(int policy, int proto) in SpawnThread() argument 84 if ((policy == IPCWorkThread::ACTV_PASSIVE || policy == IPCWorkThread::ACTV_ACTIVE) && in SpawnThread() 108 newThread->Start(policy, proto, threadIndex); in SpawnThread()
|
/third_party/gn/src/base/mac/ |
H A D | scoped_typeref.h | 44 // Retain in initialization). This behavior is based on the |policy| parameter, 45 // with |ASSUME| for the former and |RETAIN| for the latter. The default policy 58 base::scoped_policy::OwnershipPolicy policy = base::scoped_policy::ASSUME) in ScopedTypeRef() 60 if (object_ && policy == base::scoped_policy::RETAIN) in ScopedTypeRef() 100 base::scoped_policy::OwnershipPolicy policy = in reset() 102 if (object && policy == base::scoped_policy::RETAIN) in reset()
|