/third_party/node/deps/npm/node_modules/promise-retry/test/ |
H A D | test.js | 7 describe('promise-retry', function () { 8 it('should call fn again if retry was called', function () { 11 return promiseRetry(function (retry) { 17 retry(new Error('foo')); 34 return promiseRetry(function (retry, number) { 41 retry(new Error('foo')); 55 it('should not retry on fulfillment if retry was not called', function () { 74 it('should not retry on rejection if retry wa [all...] |
/third_party/node/deps/npm/node_modules/make-fetch-happen/lib/ |
H A D | options.js | 16 if (!options.retry) { 17 options.retry = { retries: 0 } 18 } else if (typeof options.retry === 'string') { 19 const retries = parseInt(options.retry, 10) 21 options.retry = { retries } 23 options.retry = { retries: 0 } 25 } else if (typeof options.retry === 'number') { 26 options.retry = { retries: options.retry } 28 options.retry [all...] |
/third_party/node/deps/npm/node_modules/retry/test/integration/ |
H A D | test-retry-operation.js | 4 var retry = require(common.dir.lib + '/retry'); variable 8 var operation = retry.operation([1, 2, 3]); 21 if (operation.retry(error)) { 46 var operation = retry.operation(); 57 var operation = retry.operation(); 69 var operation = retry.operation(); 80 var operation = retry.operation(); 96 var operation = retry.operation([1, 2, 3]); 106 if (operation.retry(erro [all...] |
H A D | test-timeouts.js | 3 var retry = require(common.dir.lib + '/retry'); variable 6 var timeouts = retry.timeouts(); 16 var timeouts = retry.timeouts({ 29 var timeouts = retry.timeouts(timeoutsArray); 37 var timeouts = retry.timeouts({ 48 var timeouts = retry.timeouts(); 57 var timeouts = retry.timeouts({ 67 var timeouts = retry.timeouts({retries: 2});
|
H A D | test-retry-wrap.js | 4 var retry = require(common.dir.lib + '/retry'); variable 16 retry.wrap(lib); 24 retry.wrap(lib, {retries: 2}); 35 retry.wrap(lib, ['fn2', 'fn3']); 43 retry.wrap(lib, {retries: 2}, ['fn2', 'fn3']); 59 retry.wrap(lib); 80 retry.wrap(lib, {}, ['fn1', 'fn2']); 95 retry.wrap(lib, {retries: 1});
|
H A D | test-forever.js | 3 var retry = require(common.dir.lib + '/retry'); variable 6 var operation = retry.operation({ 20 if (operation.retry(err)) {
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | random_seed.c | 33 int i, j, rsf, retry; in main() local 38 for (retry=0; retry<3; retry++){ in main() 43 goto retry; in main() 47 retry:; in main() 49 if (retry >= 3) { in main()
|
/third_party/curl/tests/libtest/ |
H A D | lib1594.c | 34 curl_off_t retry; in test() local 48 res = curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry); in test() 55 retry += time(NULL); in test() 56 retry /= 10000; in test() 58 printf("Retry-After %" CURL_FORMAT_CURL_OFF_T "\n", retry); in test()
|
/base/print/print_fwk/services/print_service/src/ |
H A D | print_service_helper.cpp | 60 uint32_t retry = 0; in StartAbility() local 61 while (retry++ < MAX_RETRY_TIMES) { in StartAbility() 68 PRINT_HILOGD("PrintServiceHelper::StartAbility %{public}d", retry); in StartAbility() 70 if (retry > MAX_RETRY_TIMES) { in StartAbility() 83 uint32_t retry = 0; in StartPluginPrintIconExtAbility() local 92 while (retry++ < MAX_RETRY_TIMES) { in StartPluginPrintIconExtAbility() 98 PRINT_HILOGE("PrintServiceHelper::StartPluginPrintIconExtAbility %{public}d", retry); in StartPluginPrintIconExtAbility() 100 if (retry > MAX_RETRY_TIMES) { in StartPluginPrintIconExtAbility()
|
/third_party/alsa-utils/alsactl/ |
H A D | monitor.c | 165 static int check_control_cdev(int infd, bool *retry) in check_control_cdev() argument 190 *retry = true; in check_control_cdev() 303 bool *retry) in run_dispatcher() 339 err = check_control_cdev(infd, retry); in run_dispatcher() 340 if (err < 0 || *retry) in run_dispatcher() 399 bool retry; in monitor() local 422 retry: in monitor() 423 retry = false; in monitor() 430 err = run_dispatcher(epfd, sigfd, infd, &srcs, &retry); in monitor() 433 if (retry) { in monitor() 302 run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs, bool *retry) run_dispatcher() argument [all...] |
/third_party/toybox/toys/pending/ |
H A D | tftp.c | 219 int packetlen, retry; in read_ack() local 221 for (retry = 0; retry < TFTP_RETRIES; retry++) { in read_ack() 272 int len, sd, fd, retry, nbytesrecvd = 0, ndatabytes, ret, result = -1; in file_get() local 290 for (retry = 0 ; retry < TFTP_RETRIES; retry++) { in file_get() 302 retry--; in file_get() 314 retry in file_get() 388 int packetlen, sd, fd, retry = 0, ret, result = -1; file_put() local [all...] |
/base/update/updater/services/updater_binary/ |
H A D | main.cpp | 35 bool retry = false; in main() local 41 } else if (argc == 3) { // 3 a: package, pipe, retry in main() 42 if (strcmp(argv[2], "retry") == 0) { // 2: retry index in main() 43 retry = true; in main() 47 } else { // 4 a: binary, package, pipe, retry=1/retry=0 in main() 50 retry = strcmp(argv[3], "retry=0") == 0 ? false : true; // 3: retry inde in main() [all...] |
/third_party/node/deps/npm/node_modules/sigstore/dist/ |
H A D | config.js | 72 retry: options.retry ?? exports.DEFAULT_RETRY, 96 retry: options.retry ?? exports.DEFAULT_RETRY, 103 retry: options.retry ?? exports.DEFAULT_RETRY,
|
/base/global/i18n/services/src/ |
H A D | i18n_service_event.cpp | 58 int32_t retry = RETRY; in SubscriberEvent() local 65 HILOG_ERROR_I18N("SubscriberEvent: SubscriberEvent failed %{public}d.", retry); in SubscriberEvent() 66 retry--; in SubscriberEvent() 68 } while (retry); in SubscriberEvent()
|
/third_party/openssl/test/ |
H A D | rdrand_sanitytest.c | 34 int retry; in sanity_check_bytes() local 35 for (retry = 0; retry < max_retries; retry++) { in sanity_check_bytes() 89 * multiplied by the 8x retry loop in asm, and failure probabilities are in sanity_check_rdseed_bytes()
|
/third_party/node/deps/npm/node_modules/retry/example/ |
H A D | stop.js | 1 var retry = require('../lib/retry'); variable 11 var operation = retry.operation(opts); 21 if (operation.retry(err)) {
|
H A D | dns.js | 2 var retry = require('../lib/retry'); variable 12 var operation = retry.operation(opts); 16 if (operation.retry(err)) {
|
/base/update/updater/test/unittest/updater_test/ |
H A D | test_update_binary.cpp | 41 bool retry = false; in main() local 43 if (argc >= withRetry && strcmp(argv[withRetry - 1], "retry") == 0) { in main() 44 retry = true; in main() 55 if (retry) { in main()
|
/third_party/node/deps/npm/node_modules/promise-retry/ |
H A D | index.js | 4 var retry = require('retry'); variable 23 operation = retry.operation(options); 41 if (operation.retry(err || new Error())) {
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/ |
H A D | hdi_light_connection.cpp | 42 int32_t retry = 0; in ConnectHdi() local 43 while (retry < GET_HDI_SERVICE_COUNT) { in ConnectHdi() 49 retry++; in ConnectHdi() 50 MISC_HILOGW("Connect hdi service failed, retry:%{public}d", retry); in ConnectHdi()
|
/third_party/ltp/tools/genload/ |
H A D | stress.c | 38 /* By default, retry on non-critical errors every 50ms. */ 136 } else if (strcmp(arg, "--no-retry") == 0) { in main() 140 } else if (strcmp(arg, "--retry-delay") == 0) { in main() 141 assert_arg("--retry-delay"); in main() 143 dbg(stdout, "setting retry delay to %dus\n", in main() 341 " --no-retry exit rather than retry non-critical errors\n" in usage() 342 " --retry-delay n wait n us before continuing past error\n" in usage() 473 int retry = global_retry; in hogcpu() local 496 usleep(retry); in hogcpu() 549 int retry = global_retry; hogio() local 625 int retry = global_retry; hogvm() local 748 int retry = global_retry; hoghdd() local [all...] |
H A D | genload.c | 38 /* By default, retry on non-critical errors every 50ms. */ 136 } else if (strcmp(arg, "--no-retry") == 0) { in main() 140 } else if (strcmp(arg, "--retry-delay") == 0) { in main() 141 assert_arg("--retry-delay"); in main() 143 dbg(stdout, "setting retry delay to %dus\n", in main() 341 " --no-retry exit rather than retry non-critical errors\n" in usage() 342 " --retry-delay n wait n us before continuing past error\n" in usage() 473 int retry = global_retry; in hogcpu() local 496 usleep(retry); in hogcpu() 549 int retry = global_retry; hogio() local 625 int retry = global_retry; hogvm() local 748 int retry = global_retry; hoghdd() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_mschapv2.c | 402 int retry = 1; in eap_mschapv2_failure_txt() local 423 retry = atoi(pos); in eap_mschapv2_failure_txt() 424 wpa_printf(MSG_DEBUG, "EAP-MSCHAPV2: retry is %sallowed", in eap_mschapv2_failure_txt() 425 retry == 1 ? "" : "not "); in eap_mschapv2_failure_txt() 473 if (data->prev_error == ERROR_AUTHENTICATION_FAILURE && retry && in eap_mschapv2_failure_txt() 477 "EAP-MSCHAPV2: mark password retry disabled based on local configuration"); in eap_mschapv2_failure_txt() 478 retry = 0; in eap_mschapv2_failure_txt() 481 "EAP-MSCHAPV2: failure message: '%s' (retry %sallowed, error " in eap_mschapv2_failure_txt() 483 msg, retry == 1 ? "" : "not ", data->prev_error); in eap_mschapv2_failure_txt() 492 } else if (retry in eap_mschapv2_failure_txt() 659 int retry = 0; eap_mschapv2_failure() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_mschapv2.c | 402 int retry = 1; in eap_mschapv2_failure_txt() local 423 retry = atoi(pos); in eap_mschapv2_failure_txt() 424 wpa_printf(MSG_DEBUG, "EAP-MSCHAPV2: retry is %sallowed", in eap_mschapv2_failure_txt() 425 retry == 1 ? "" : "not "); in eap_mschapv2_failure_txt() 473 if (data->prev_error == ERROR_AUTHENTICATION_FAILURE && retry && in eap_mschapv2_failure_txt() 477 "EAP-MSCHAPV2: mark password retry disabled based on local configuration"); in eap_mschapv2_failure_txt() 478 retry = 0; in eap_mschapv2_failure_txt() 481 "EAP-MSCHAPV2: failure message: '%s' (retry %sallowed, error " in eap_mschapv2_failure_txt() 483 msg, retry == 1 ? "" : "not ", data->prev_error); in eap_mschapv2_failure_txt() 492 } else if (retry in eap_mschapv2_failure_txt() 659 int retry = 0; eap_mschapv2_failure() local [all...] |
/base/sensors/miscdevice/frameworks/native/light/src/ |
H A D | light_client.cpp | 62 int32_t retry = 0; in InitLightClient() local 63 while (retry < GET_SERVICE_MAX_COUNT) { in InitLightClient() 67 MISC_HILOGD("miscdeviceProxy_ get service success, retry:%{public}d", retry); in InitLightClient() 76 MISC_HILOGW("Get service failed, retry:%{public}d", retry); in InitLightClient() 78 retry++; in InitLightClient()
|