/third_party/alsa-lib/test/ |
H A D | audio_time.c | 71 snd_pcm_status_t *status; in _gettimestamp() local 73 snd_pcm_status_alloca(&status); in _gettimestamp() 75 snd_pcm_status_set_audio_htstamp_config(status, audio_tstamp_config); in _gettimestamp() 77 if ((err = snd_pcm_status(handle, status)) < 0) { in _gettimestamp() 78 printf("Stream status error: %s\n", snd_strerror(err)); in _gettimestamp() 81 snd_pcm_status_get_trigger_htstamp(status, trigger_timestamp); in _gettimestamp() 82 snd_pcm_status_get_htstamp(status, timestamp); in _gettimestamp() 83 snd_pcm_status_get_audio_htstamp(status, audio_timestamp); in _gettimestamp() 84 snd_pcm_status_get_audio_htstamp_report(status, audio_tstamp_report); in _gettimestamp() 85 *avail = snd_pcm_status_get_avail(status); in _gettimestamp() [all...] |
/third_party/backends/japi/ |
H A D | ScanIt.java | 77 * Tell consumers our status. The scan is also terminated de- 78 * pending on the status. 278 int status; in scan() 287 status = sane.start(handle); in scan() 288 if (status != Sane.STATUS_GOOD) in scan() 291 + status); in scan() 295 status = sane.getParameters(handle, parms); in scan() 296 if (status != Sane.STATUS_GOOD) in scan() 299 + status); in scan() 312 while ((status in scan() [all...] |
/third_party/mbedtls/library/ |
H A D | psa_util.c | 52 * it's the most common status when everything functions properly. */ 125 int psa_generic_status_to_mbedtls(psa_status_t status) in psa_generic_status_to_mbedtls() argument 127 switch (status) { in psa_generic_status_to_mbedtls() 143 int psa_status_to_mbedtls(psa_status_t status, in psa_status_to_mbedtls() argument 149 if (status == local_translations[i].psa_status) { in psa_status_to_mbedtls() 153 return fallback_f(status); in psa_status_to_mbedtls() 157 int psa_pk_status_to_mbedtls(psa_status_t status) in psa_pk_status_to_mbedtls() argument 159 switch (status) { in psa_pk_status_to_mbedtls() 179 return psa_generic_status_to_mbedtls(status); in psa_pk_status_to_mbedtls() 358 psa_status_t status in mbedtls_psa_get_random() local [all...] |
/third_party/node/test/pummel/ |
H A D | test-policy-integrity-worker-commonjs.js | 79 w.on('exit', (status) => process.exit(status === 0 ? 0 : 1)); 174 child.on('exit', (status, signal) => { 178 assert.strictEqual(status, 0); 180 assert.notStrictEqual(status, 0); 192 console.log('exit code:', status, 'signal:', signal); 204 const { status } = spawnSync( 211 assert.notStrictEqual(status, 0, 'Should not allow multiple policies'); 220 const { status } = spawnSync( 227 assert.notStrictEqual(status, [all...] |
H A D | test-policy-integrity-worker-module.js | 79 w.on('exit', (status) => process.exit(status === 0 ? 0 : 1)); 174 child.on('exit', (status, signal) => { 178 assert.strictEqual(status, 0); 180 assert.notStrictEqual(status, 0); 192 console.log('exit code:', status, 'signal:', signal); 204 const { status } = spawnSync( 211 assert.notStrictEqual(status, 0, 'Should not allow multiple policies'); 220 const { status } = spawnSync( 227 assert.notStrictEqual(status, [all...] |
H A D | test-policy-integrity-worker-no-package-json.js | 79 w.on('exit', (status) => process.exit(status === 0 ? 0 : 1)); 174 child.on('exit', (status, signal) => { 178 assert.strictEqual(status, 0); 180 assert.notStrictEqual(status, 0); 192 console.log('exit code:', status, 'signal:', signal); 204 const { status } = spawnSync( 211 assert.notStrictEqual(status, 0, 'Should not allow multiple policies'); 220 const { status } = spawnSync( 227 assert.notStrictEqual(status, [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/ |
H A D | msgstress04.c | 195 int i, count, status; in dotest_iteration() local 217 if ((wait(&status)) > 0) { in dotest_iteration() 218 if (status >> 8 != PASS) in dotest_iteration() 220 "Child exit status = %d", status >> 8); in dotest_iteration() 264 int i, count, status, exit_status; in dotest() local 313 if ((wait(&status)) > 0) { in dotest() 314 if (status >> 8 != PASS) { in dotest() 315 printf("Child exit status = %d from child group %d\n", in dotest() 316 status >> in dotest() 428 int status; cleanup() local [all...] |
H A D | msgstress02.c | 89 int count, status; in main() local 182 if ((wait(&status)) > 0) { in main() 183 if (status >> 8 != PASS) { in main() 185 "Child exit status = %d", in main() 186 status >> 8); in main() 237 int i, count, status, exit_status; in dotest() local 288 if ((wait(&status)) > 0) { in dotest() 289 if (status >> 8 != PASS) { in dotest() 290 printf("Child exit status = %d from child group %d\n", in dotest() 291 status >> in dotest() 393 int status; cleanup() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 4-2.c | 67 int status; /* error code */ member 173 td->status = ret; in tf() 184 td->status = ret; in tf() 206 int status; in main() local 425 td->status = 0; in main() 543 waitpid(child_pr[k], &status, 0); in main() 552 if (WIFSIGNALED(status)) { in main() 555 WTERMSIG(status)); in main() 560 if (WIFEXITED(status)) { in main() 561 ret |= WEXITSTATUS(status); in main() [all...] |
/third_party/python/Tools/c-analyzer/c_analyzer/ |
H A D | analyze.py | 270 status = None 273 status = 'okay' 276 status = 'okay' 289 if status is None: 290 status = 'okay' if types.get(mtype) else 'oops' 292 status = 'okay' 295 status = 'okay' 300 status = 'okay' 302 status = ' okay' if status [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | fuzzer.cpp | 299 auto status = Status::kComplete; in Run() local 303 status = Status::kFuzzerPassLedToInvalidModule; in Run() 310 status = Status::kModuleTooBig; in Run() 322 status = Status::kTransformationLimitReached; in Run() 331 status = Status::kFuzzerStuck; in Run() 340 status = Status::kComplete; in Run() 346 if (status != Status::kFuzzerPassLedToInvalidModule) { in Run() 352 status = Status::kFuzzerPassLedToInvalidModule; in Run() 358 is_valid_ = status != Status::kFuzzerPassLedToInvalidModule; in Run() 359 return {status, static_cas in Run() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | fuzzer.cpp | 299 auto status = Status::kComplete; in Run() local 303 status = Status::kFuzzerPassLedToInvalidModule; in Run() 310 status = Status::kModuleTooBig; in Run() 322 status = Status::kTransformationLimitReached; in Run() 331 status = Status::kFuzzerStuck; in Run() 340 status = Status::kComplete; in Run() 346 if (status != Status::kFuzzerPassLedToInvalidModule) { in Run() 352 status = Status::kFuzzerPassLedToInvalidModule; in Run() 358 is_valid_ = status != Status::kFuzzerPassLedToInvalidModule; in Run() 359 return {status, static_cas in Run() [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | toolutil.cpp | 90 UErrorCode status=U_ZERO_ERROR; in getCurrentYear() local 94 cal = ucal_open(NULL, -1, NULL, UCAL_TRADITIONAL, &status); in getCurrentYear() 95 ucal_setMillis(cal, ucal_getNow(), &status); in getCurrentYear() 96 currentYear = ucal_get(cal, UCAL_YEAR, &status); in getCurrentYear() 130 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { in findDirname() argument 131 if(U_FAILURE(*status)) return NULL; in findDirname() 159 *status = U_BUFFER_OVERFLOW_ERROR; in findDirname() 185 uprv_mkdir(const char *pathname, UErrorCode *status) { in uprv_mkdir() argument 201 *status = U_FILE_ACCESS_ERROR; in uprv_mkdir() 204 *status in uprv_mkdir() [all...] |
/third_party/spirv-tools/source/fuzz/ |
H A D | fuzzer.cpp | 299 auto status = Status::kComplete; in Run() local 303 status = Status::kFuzzerPassLedToInvalidModule; in Run() 310 status = Status::kModuleTooBig; in Run() 322 status = Status::kTransformationLimitReached; in Run() 331 status = Status::kFuzzerStuck; in Run() 340 status = Status::kComplete; in Run() 346 if (status != Status::kFuzzerPassLedToInvalidModule) { in Run() 352 status = Status::kFuzzerPassLedToInvalidModule; in Run() 358 is_valid_ = status != Status::kFuzzerPassLedToInvalidModule; in Run() 359 return {status, static_cas in Run() [all...] |
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | hiappevent_ffi.cpp | 260 auto [status, userId] = HiAppEventImpl::GetUserId(std::string(name)); in FfiOHOSHiAppEventGetUserId() 261 if (status != 0) { in FfiOHOSHiAppEventGetUserId() 263 ret.code = status; in FfiOHOSHiAppEventGetUserId() 267 ret.code = status; in FfiOHOSHiAppEventGetUserId() 295 auto [status, propertyId] = HiAppEventImpl::GetUserProperty(std::string(name)); in FfiOHOSHiAppEventgetUserProperty() 296 if (status != 0) { in FfiOHOSHiAppEventgetUserProperty() 298 ret.code = status; in FfiOHOSHiAppEventgetUserProperty() 302 ret.code = status; in FfiOHOSHiAppEventgetUserProperty() 340 return ReTakeNext{.status = -1, .event = RetAppEventPackage{0}}; in FfiOHOSHiAppEventTakeNext() 344 ret.status in FfiOHOSHiAppEventTakeNext() [all...] |
/base/global/i18n/frameworks/intl/src/ |
H A D | measure_data.cpp | 538 int status = ComputeValue(baseValues[0], measSys, numerator); in ComputeValue() local 539 if (!status) { in ComputeValue() 543 status = ComputeValue(baseValues[1], measSys, denominator); in ComputeValue() 544 if (!status) { in ComputeValue() 580 bool status = (indexFirst >= 0); in ConvertByte() local 581 size_t indexSecond = status ? static_cast<size_t>(indexFirst) : 0; in ConvertByte() 602 if (status) { in ConvertByte() 625 bool status = (indexFirst >= 0); in ConvertDate() local 626 size_t indexSecond = status ? static_cast<size_t>(indexFirst) : 0; in ConvertDate() 644 if (status) { in ConvertDate() 678 int status = ComputeValue(fromUnit, fromMeasSys, fromFactors); Convert() local [all...] |
/base/sensors/sensor/vibration_convert/interfaces/js/src/ |
H A D | vibrator_convert_js.cpp | 49 napi_status status = napi_define_class(env, className, sizeof(className), in CreateInstance() local 51 CHKCP((status == napi_ok), "napi_define_class failed"); in CreateInstance() 64 status = napi_reference_ref(env, vConvert->contextRef_, &refCount); in CreateInstance() 65 if (status != napi_ok) { in CreateInstance() 82 napi_status status = napi_wrap(env, thisVar, vConvert, [](napi_env env, void *data, void *hin) { in ConvertAudioJsConstructor() local 87 if (status != napi_ok) { in ConvertAudioJsConstructor() 155 napi_status status = napi_get_cb_info(env, info, &argc, args, &thisArg, nullptr); in ConvertAudioToHapticConstructor() local 156 if ((status != napi_ok) || (argc < 1)) { in ConvertAudioToHapticConstructor() 185 napi_status status = napi_get_cb_info(env, info, &argc, args, &thisArg, nullptr); in GetAudioAttribute() local 186 if (status ! in GetAudioAttribute() 219 napi_status status = napi_get_cb_info(env, info, &argc, args, &thisArg, nullptr); GetAudioData() local 262 napi_status status = napi_get_cb_info(env, info, &argc, args, &thisArg, nullptr); ConvertAudioToHaptic() local [all...] |
/base/web/webview/test/unittest/ohos_adapter/sensor_adapter_impl_test/ |
H A D | sensor_adapter_impl_test.cpp | 207 auto status = g_sensorAdapter->SubscribeOhosSensor(id, temp); in HWTEST_F() local 208 EXPECT_EQ(status, SENSOR_PARAMETER_ERROR); in HWTEST_F() 211 status = g_sensorAdapter->SubscribeOhosSensor(id, temp); in HWTEST_F() 212 EXPECT_EQ(status, SENSOR_PARAMETER_ERROR); in HWTEST_F() 215 status = g_sensorAdapter->SubscribeOhosSensor(id, temp); in HWTEST_F() 216 EXPECT_EQ(status, SENSOR_SUCCESS); in HWTEST_F() 229 auto status = g_sensorAdapter->RegistOhosSensorCallback(id, callbackAdapter); in HWTEST_F() local 230 EXPECT_EQ(status, SENSOR_PARAMETER_ERROR); in HWTEST_F() 233 status = g_sensorAdapter->RegistOhosSensorCallback(id, callbackAdapter); in HWTEST_F() 234 EXPECT_EQ(status, SENSOR_SUCCES in HWTEST_F() 246 auto status = g_sensorAdapter->UnsubscribeOhosSensor(id); HWTEST_F() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_hfp_hf_server.cpp | 70 void OnRegistrationStatusChanged(const RawAddress& device, int status) override 72 HILOGI("addr: %{public}s, status: %{public}d", GET_ENCRYPT_ADDR(device), status); 73 observers_->ForEach([device, status](IBluetoothHfpHfObserver* observer) { 74 observer->OnRegistrationStatusChanged(device, status); 78 void OnRoamingStatusChanged(const RawAddress& device, int status) override 80 HILOGI("addr: %{public}s, status: %{public}d", GET_ENCRYPT_ADDR(device), status); 81 observers_->ForEach([device, status](IBluetoothHfpHfObserver* observer) { 82 observer->OnRoamingStatusChanged(device, status); [all...] |
/foundation/distributeddatamgr/preferences/frameworks/js/napi/system_storage/src/ |
H A D | napi_system_storage.cpp | 117 void Complete(napi_env env, napi_status status, void *data) in Complete() argument 120 if (status != napi_ok) { in Complete() 201 napi_status status = napi_create_string_utf8(env, resource, NAPI_AUTO_LENGTH, &resourceName); in Operate() local 202 if (status != napi_ok) { in Operate() 203 LOG_ERROR("Operate get resourceName failed, status = %{public}d", status); in Operate() 207 status = napi_create_promise(env, &context->deferred, &ret); in Operate() 208 if (status != napi_ok) { in Operate() 209 LOG_ERROR("Operate create promise failed, status = %{public}d", status); in Operate() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fbex_test/ |
H A D | fbex_test.cpp | 352 uint32_t status = PARAMS_1; in HWTEST_F() local 355 EXPECT_EQ(fbex.ReadESecretToKernel(userIdToFbe, status, nullBuffer, VALID_SIZE, isFbeSupport), -EINVAL); in HWTEST_F() 357 status = UNLOCK_STATUS; in HWTEST_F() 358 int ret = fbex.ReadESecretToKernel(userIdToFbe, status, nullBuffer, VALID_SIZE, isFbeSupport); in HWTEST_F() 365 ret = fbex.ReadESecretToKernel(userIdToFbe, status, eBuffer.data, VALID_SIZE, isFbeSupport); in HWTEST_F() 371 ret = fbex.ReadESecretToKernel(userIdToFbe, status, eBuffer.data, VALID_SIZE, isFbeSupport); in HWTEST_F() 377 ret = fbex.ReadESecretToKernel(userIdToFbe, status, eBuffer.data, VALID_SIZE, isFbeSupport); in HWTEST_F() 397 uint32_t status = PARAMS_1; in HWTEST_F() local 398 EXPECT_EQ(fbex.WriteESecretToKernel(userIdToFbe, status, nullptr, VALID_SIZE), -EINVAL); in HWTEST_F() 400 status in HWTEST_F() [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | dmlib_lite.py | 145 status = True 178 status = False 183 if not status and command.startswith("uname"): 186 return result, status, error_message 198 result, status, error_message = LiteHelper.parser_hcp_test_suite_execute_log(com, start_time, timeout, 202 result, status, error_message = LiteHelper.parser_common_execute(com, start_time, timeout, input_command, 208 if not status and command.startswith("uname"): 210 return result, status, error_message 217 status = True 243 status [all...] |
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/ |
H A D | jsvm_utils.cpp | 76 JSVM_Status status = OH_JSVM_IsObject(env, exception, &isObject); in PrintException() local 77 CHECK_FATAL(status == JSVM_OK, "[bug] [%s]", call); in PrintException() 82 status = OH_JSVM_GetNamedProperty(env, exception, "stack", &stack); in PrintException() 83 CHECK_FATAL(status == JSVM_OK, "[bug] [%s]", call); in PrintException() 91 status = OH_JSVM_GetNamedProperty(env, exception, "message", &stack); in PrintException() 92 CHECK_FATAL(status == JSVM_OK, "[bug] [%s]", call); in PrintException() 103 JSVM_Status status = OH_JSVM_GetLastErrorInfo(env, &errorInfo); in CheckErrorAndException() local 104 CHECK_FATAL(status == JSVM_OK, "[bug] [%s]", call); in CheckErrorAndException() 106 "[bug] return status (%d) is not equal to errorInfo status ( in CheckErrorAndException() [all...] |
/test/xts/acts/kernel_lite/process_posix/src/ |
H A D | ProcessTest.cpp | 423 int status = 0; in HWTEST_F() local 424 int pidChild = (int)wait(&status); in HWTEST_F() 426 EXPECT_TRUE(WIFEXITED(status)); in HWTEST_F() 427 EXPECT_EQ(WEXITSTATUS(status), childReturn); in HWTEST_F() 445 int status = 0; in HWTEST_F() local 446 int pidChild = (int)wait(&status); in HWTEST_F() 448 EXPECT_TRUE(WIFSIGNALED(status)); in HWTEST_F() 449 EXPECT_EQ(WTERMSIG(status), SIGABRT); in HWTEST_F() 468 int status = 0; in HWTEST_F() local 469 int pidChild = (int)waitpid(pid, &status, in HWTEST_F() 492 int status = 0; HWTEST_F() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | tls_securetransport.c | 259 OSStatus status = func(__VA_ARGS__); \ 260 if (status != noErr) { \ 262 av_log(h, AV_LOG_ERROR, #func ": Error %i\n", (int)status); \ 295 OSStatus status = SSLHandshake(c->ssl_context); in tls_open() local 296 if (status == errSSLServerAuthCompleted) { in tls_open() 320 status = errSSLWouldBlock; // so we call SSLHandshake again in tls_open() 323 status = errSSLXCertChainInvalid; in tls_open() 326 status = errSSLBadCert; in tls_open() 332 if (status == noErr) { in tls_open() 334 } else if (status ! in tls_open() 347 map_ssl_error(OSStatus status, size_t processed) map_ssl_error() argument [all...] |