/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_pixel_map_napi_kits.cpp | 35 static bool makeUndefined(napi_env env, napi_value* value) in makeUndefined() argument 38 napi_get_undefined(env, value); in makeUndefined() 44 static bool isUndefine(napi_env env, napi_value value) in isUndefine() argument 47 napi_typeof(env, value, &res); in isUndefine() 424 PixelMapNapi* PixelMapNapi_Unwrap(napi_env env, napi_value value) in PixelMapNapi_Unwrap() argument 427 napi_typeof(env, value, &valueType); in PixelMapNapi_Unwrap() 432 napi_status status = napi_unwrap(env, value, reinterpret_cast<void**>(&pixelMapNapi)); in PixelMapNapi_Unwrap()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | photo_map_operations.cpp | 54 static int32_t InsertAnalysisAsset(const DataShareValuesBucket &value) in InsertAnalysisAsset() argument 75 int32_t albumId = value.Get(PhotoMap::ALBUM_ID, isValid); in InsertAnalysisAsset() 79 int32_t assetId = value.Get(PhotoMap::ASSET_ID, isValid); in InsertAnalysisAsset() 174 for (const auto &value : values) { in AddAnaLysisPhotoAssets() 175 int ret = InsertAnalysisAsset(value); in AddAnaLysisPhotoAssets() 186 for (const auto &value : values) { in AddAnaLysisPhotoAssets() 187 int32_t albumId = value.Get(PhotoMap::ALBUM_ID, isValid); in AddAnaLysisPhotoAssets()
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_root_scene_session.cpp | 79 bool NapiIsCallable(napi_env env, napi_value value) in NapiIsCallable() argument 82 napi_is_callable(env, value, &result); in NapiIsCallable() 104 napi_value value = argv[1]; in OnRegisterCallback() local 105 if (value == nullptr || !NapiIsCallable(env, value)) { in OnRegisterCallback() 111 if (IsCallbackRegistered(env, cbType, value)) { in OnRegisterCallback() 127 napi_create_reference(env, value, 1, &result); in OnRegisterCallback()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/nbdelegate_fuzzer/ |
H A D | nbdelegate_fuzzer.cpp | 117 entry.value = std::vector<uint8_t>(data, data + size); in CreateEntries() 162 void TestCRUD(const Key &key, const Value &value, KvStoreNbDelegate *kvNbDelegatePtr) in TestCRUD() argument 165 kvNbDelegatePtr->PutLocal(key, value); in TestCRUD() 168 kvNbDelegatePtr->Put(key, value); in TestCRUD() 169 kvNbDelegatePtr->Put(key, value); in TestCRUD() 223 Value value = std::vector<uint8_t>(data, data + size); in FuzzCURD() local 228 TestCRUD(key, value, kvNbDelegatePtr); in FuzzCURD()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_space_management_test.cpp | 199 Value value; in HWTEST_F() local 201 DistributedDBToolsUnitTest::GetRandomKeyValue(value, DBConstant::MAX_VALUE_SIZE); in HWTEST_F() 202 EXPECT_EQ(g_kvNbDelegatePtr->Put(key, value), OK); in HWTEST_F() 253 Value value; in HWTEST_F() local 255 DistributedDBToolsUnitTest::GetRandomKeyValue(value, DBConstant::MAX_VALUE_SIZE); in HWTEST_F() 257 EXPECT_EQ(g_kvNbDelegatePtr->Put(key, value), OK); in HWTEST_F() 267 EXPECT_EQ(g_kvDelegatePtr->Put(key, value), OK); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_device_kv_store.cpp | 88 JSUtil::KvStoreVariant value; in Get() member 111 OHOS::DistributedKv::Value value; in Get() 115 Status status = kvStore->Get(key, value); in Get() 117 ctxt->value = isSchemaStore ? value.ToString() : JSUtil::Blob2VariantValue(value); in Get() 122 ctxt->status = JSUtil::SetValue(env, ctxt->value, result); in Get()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | rdb_delegate.cpp | 229 resultSetCallingPids.Compute(callingPid, [](const uint32_t &, int32_t &value) { in Query() 230 ++value; in Query() 245 resultSetCallingPids.ComputeIfPresent(callingPid, [](const uint32_t &, int32_t &value) { in Query() 246 --value; in Query() 247 return value > 0; in Query() 312 resultSetCallingPids.ForEach([&logStr](const uint32_t &key, const int32_t &value) { in IsLimit() 313 logStr += std::to_string(key) + ":" + std::to_string(value) + ";"; in IsLimit()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output/ |
H A D | dsoftbus_output_plugin.cpp | 157 Status DsoftbusOutputPlugin::GetParameter(Tag tag, ValueType &value) in GetParameter() argument 162 value = res->second; in GetParameter() 168 Status DsoftbusOutputPlugin::SetParameter(Tag tag, const ValueType &value) in SetParameter() argument 172 ParseChannelDescription(Plugin::AnyCast<std::string>(value), ownerName_, peerDevId_); in SetParameter() 175 dumpFlag_.store(Plugin::AnyCast<bool>(value)); in SetParameter() 178 reDumpFlag_.store(Plugin::AnyCast<bool>(value)); in SetParameter() 180 paramsMap_.insert(std::pair<Tag, ValueType>(tag, value)); in SetParameter()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dsoftbus_input/ |
H A D | dsoftbus_input_plugin.cpp | 179 Status DsoftbusInputPlugin::GetParameter(Tag tag, ValueType &value) in GetParameter() argument 184 value = res->second; in GetParameter() 190 Status DsoftbusInputPlugin::SetParameter(Tag tag, const ValueType &value) in SetParameter() argument 194 ParseChannelDescription(Plugin::AnyCast<std::string>(value), ownerName_, peerDevId_); in SetParameter() 197 dumpFlag_.store(Plugin::AnyCast<bool>(value)); in SetParameter() 200 reDumpFlag_.store(Plugin::AnyCast<bool>(value)); in SetParameter() 202 paramsMap_.insert(std::pair<Tag, ValueType>(tag, value)); in SetParameter()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_dfx.c | 243 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in WaitFileHeaderTimeoutEvent() 264 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in DFileServerCreateEvent() 286 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in DFileClientCreateEvent() 308 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in DFileSendFileBeginEvent() 330 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in PeerShuttedEvent() 352 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in TransferCompleteEvent() 374 if (strcpy_s(transParam->value.str, DFile_EVENT_NAME_LEN, valueStr) != NSTACKX_EOK) { in AcceptSocketEvent()
|
/third_party/ffmpeg/libavcodec/ |
H A D | v4l2_m2m_enc.c | 53 static inline void v4l2_set_ext_ctrl(V4L2m2mContext *s, unsigned int id, signed int value, const char *name, int log_warning) in v4l2_set_ext_ctrl() argument 64 ctrl.value = value; in v4l2_set_ext_ctrl() 71 av_log(s->avctx, AV_LOG_DEBUG, "Encoder: %s = %d\n", name, value); in v4l2_set_ext_ctrl() 74 static inline int v4l2_get_ext_ctrl(V4L2m2mContext *s, unsigned int id, signed int *value, const char *name, int log_warning) in v4l2_get_ext_ctrl() argument 95 *value = ctrl.value; in v4l2_get_ext_ctrl()
|
/third_party/glfw/src/ |
H A D | monitor.c | 198 // Allocates red, green and blue value arrays of the specified size 208 // Frees the red, green and blue value arrays and clears the struct 479 _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value %f", gamma); in glfwSetGamma() 491 float value; in glfwSetGamma() local 494 value = i / (float) (original->size - 1); in glfwSetGamma() 496 value = powf(value, 1.f / gamma) * 65535.f + 0.5f; in glfwSetGamma() 497 // Clamp to value range in glfwSetGamma() 498 value = fminf(value, 6553 in glfwSetGamma() [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | rgb.c | 93 * See if the next pixel is a cached value... in cupsRGBDoGray() 213 * See if the next pixel is a cached value... in cupsRGBDoRGB() 338 if (!attr->value || sscanf(attr->value, "%d%d%d", &cube_size, &num_channels, in cupsRGBLoad() 342 attr->value ? attr->value : "(null)"); in cupsRGBLoad() 351 attr->value); in cupsRGBLoad() 372 else if (!attr->value) in cupsRGBLoad() 374 fputs("ERROR: Bad cupsRGBSample value!\n", stderr); in cupsRGBLoad() 377 else if (sscanf(attr->value, " in cupsRGBLoad() [all...] |
/third_party/gn/src/gn/ |
H A D | rust_project_writer.cc | 50 // "unix", // "atomic" value config options 51 // "rust_panic=\"abort\""", // key="value" config options 54 // "label": "//path/target:value", // GN target for the crate 126 // capture the current value in FindArgValue() 132 // end hasn't been reached, this current argument is the desired value. in FindArgValue() 145 auto value = arg.substr(prefix.size()); in FindArgValueAfterPrefix() local 146 return std::make_optional(value); in FindArgValueAfterPrefix() 158 auto value = arg.substr(prefix.size()); in FindAllArgValuesAfterPrefix() local 159 values.push_back(value); in FindAllArgValuesAfterPrefix() 205 crate.SetCompilerTarget(compiler_target.value()); in AddTarget() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | DecimalQuantity_DualStorageBCD.java | 130 private static int getVisibleFractionCount(String value) { in getVisibleFractionCount() argument 131 int decimalPos = value.indexOf('.') + 1; in getVisibleFractionCount() 135 return value.length() - decimalPos; in getVisibleFractionCount() 153 protected void setDigitPos(int position, byte value) { in setDigitPos() argument 157 bcdBytes[position] = value; in setDigitPos() 161 bcdBytes[position] = value; in setDigitPos() 164 bcdLong = bcdLong & ~(0xfL << shift) | ((long) value << shift); in setDigitPos()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | bidiconf.cpp | 91 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseLevels() local 93 || value>(UBIDI_MAX_EXPLICIT_LEVEL+1)) { in parseLevels() 98 levels[levelsCount++]=(UBiDiLevel)value; in parseLevels() 99 directionBits|=(1<<(value&1)); in parseLevels() 110 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseOrdering() local 111 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=0 && *end!=';') || value>=1000) { in parseOrdering() 116 ordering[orderingCount++]=(int32_t)value; in parseOrdering() 386 Field 1: A value representing the paragraph direction, as follows: 391 - a negative number whose absolute value is taken as paragraph level; 597 errln("\nError on line %d: Wrong level value a in checkLevels() [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | bytestriebuilder.cpp | 31 * Note: This builder implementation stores (bytes, value) pairs with full copies 66 int32_t getValue() const { return value; } in getValue() 87 int32_t value; member in BytesTrieElement 109 value=val; in setTo() 148 BytesTrieBuilder::add(StringPiece s, int32_t value, UErrorCode &errorCode) { in add() argument 176 elements[elementsLength++].setTo(s, value, *strings, errorCode); in add() 463 BytesTrieBuilder::writeValueAndType(UBool hasValue, int32_t value, int32_t node) { in writeValueAndType() argument 466 offset=writeValueAndFinal(value, false); in writeValueAndType()
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
H A D | PseudoLocales.java | 50 * by English speaking developers. For example, the CLDR value "Hello World" will be turned into 236 // Look for any attribute in the path with "narrow" in its value. Since "narrow" values 262 protected CldrValue filter(CldrValue value) { in filter() argument 263 CldrPath path = value.getPath(); in filter() 274 checkArgument(value.getValue().equals("latn")); in filter() 275 return value; in filter() 278 CldrValue defaultReturnValue = isResolved ? value : null; in filter() 283 String fullPath = value.getFullPath(); in filter() 296 String text = createMessage(value.getValue(), IS_PATTERN_PATH.test(path)); in filter() 305 // representations of the exemplar characters that could appear in the value [all...] |
H A D | IcuTextWriter.java | 100 // Before closing, the "cursor" is at the end of the last value written. in writeTo() 102 // After opening the value will be ready for the next value to be written. in writeTo() 237 for (RbValue value : values) { in appendValues() 238 if (value.isSingleton()) { in appendValues() 239 // Single-value array: print normally. in appendValues() 240 printElements(out, value, format); in appendValues() 244 printElements(out, value, format); in appendValues() 304 private static void printValue(PrintWriter out, String value, FormatOptions format) { in printValue() argument 306 out.append('"').append(value) in printValue() [all...] |
/third_party/mesa3d/include/GL/ |
H A D | glx.h | 210 int attrib, int *value ); 241 int attribute, int *value ); 265 unsigned int *value ); 277 int *value ); 288 typedef int (* PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); 296 typedef void (* PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); 301 typedef int (* PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
|
/third_party/mesa3d/src/egl/main/ |
H A D | eglcontext.c | 255 * (without a suffix) which has the same value as the KHR token, in _eglParseContextAttribList() 343 /* Canonicalize value to EGL_TRUE/EGL_FALSE definitions */ in _eglParseContextAttribList() 355 * default value for EGL_CONTEXT_PRIORITY_LEVEL_IMG is in _eglParseContextAttribList() 429 * Since the value is ignored, only validate the setting if the version in _eglParseContextAttribList() 443 * is greater than 3.2, and the value for attribute in _eglParseContextAttribList() 461 * the value for attribute in _eglParseContextAttribList() 658 * EGL_BACK_BUFFER or EGL_SINGLE_BUFFER may be returned. The value in _eglQueryContextRenderBuffer() 664 * reflected in the returned value, which only describes the buffer in _eglQueryContextRenderBuffer() 674 _eglQueryContext(_EGLContext *c, EGLint attribute, EGLint *value) in _eglQueryContext() argument 676 if (!value) in _eglQueryContext() [all...] |
/third_party/mesa3d/src/gallium/tools/trace/ |
H A D | diff_state.py | 85 value = node[name] 87 self.visit(value) 115 value = node[i] 117 self.visit(value) 275 def isMultilineString(self, value): 276 return isinstance(value, str) and '\n' in value
|
/third_party/node/lib/internal/crypto/ |
H A D | webidl.js | 61 function toNumber(value, opts = kEmptyObject) { 62 switch (typeof value) { 64 return value; 74 return Number(value); 98 // Per ES spec, typeof returns an implemention-defined value that is not 316 `value '${S}' is not a valid enum value of type ${name}.`, 346 const val = converter(res.value, {
|
/third_party/node/lib/internal/ |
H A D | worker.js | 108 function setEnvironmentData(key, value) { 109 if (value === undefined) 112 environmentData.set(key, value); 121 data.forEach((value, key) => { 122 environmentData.set(key, value); 188 ({ 0: key, 1: value }) => { env[key] = `${value}`; }, 277 // Use this to cache the Worker's loopStart value once available.
|
/third_party/node/src/ |
H A D | heap_utils.cc | 84 Node* V8Node(const Local<Value>& value) override { 85 std::unique_ptr<JSGraphJSNode> n { new JSGraphJSNode(isolate_, value) }; 126 Local<Value> value; in CreateObject() local 136 if (!String::NewFromUtf8(isolate_, name_str.c_str()).ToLocal(&value) || in CreateObject() 137 obj->Set(context, name_string, value).IsNothing() || in CreateObject() 153 value = static_cast<JSGraphJSNode*>(n.get())->JSValue(); in CreateObject() 154 if (obj->Set(context, value_string, value).IsNothing()) in CreateObject()
|