/foundation/multimedia/audio_lite/test/unittest/ |
D | audiolite_test.cpp | 56 AudioCapturerInfo info; variable 57 info.inputSource = AUDIO_MIC; 58 info.audioFormat = AUDIO_DEFAULT; 59 info.sampleRate = 8000; 60 info.channelCount = 1; 61 info.bitRate = 8000; 62 info.streamType = TYPE_MEDIA; 63 info.bitWidth = BIT_WIDTH_16; 64 audioCapturer->SetCapturerInfo(info); 68 …uint32_t framesize = static_cast<uint32_t>((frameCnt * info.channelCount * info.bitWidth) / sizeof… [all …]
|
/foundation/graphic/standard/interfaces/kits/napi/graphic/window_hap/entry/src/main/js/default/ |
D | app.js | 21 console.info('1') 22 console.info('onCreate begin') 23 console.info('window: ' + window) 24 console.info('window.getTopWindow: ' + window.getTopWindow) 25 console.info('window.getTopWindow(): ' + window.getTopWindow()) 27 console.info('2') 29 console.info('wnd: ' + wnd) 30 console.info('wnd.resetSize: ' + wnd.resetSize) 32 console.info('3') 33 console.info('wnd.resetSize(200, 200): ' + wnd.resetSize(200, 200)) [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
D | js_canvas_renderer.h | 50 static RefPtr<CanvasPath2D> JsMakePath2D(const JSCallbackInfo& info); 53 …void ParseImageData(const JSCallbackInfo& info, ImageData& imageData, std::vector<uint32_t>& array… 55 void JsFillRect(const JSCallbackInfo& info); 56 void JsStrokeRect(const JSCallbackInfo& info); 57 void JsClearRect(const JSCallbackInfo& info); 58 void JsFillText(const JSCallbackInfo& info); 59 void JsStrokeText(const JSCallbackInfo& info); 60 void JsMeasureText(const JSCallbackInfo& info); 61 void JsMoveTo(const JSCallbackInfo& info); 62 void JsLineTo(const JSCallbackInfo& info); [all …]
|
D | js_view_abstract.h | 81 static void JsScale(const JSCallbackInfo& info); 82 static void JsScaleX(const JSCallbackInfo& info); 83 static void JsScaleY(const JSCallbackInfo& info); 84 static void JsOpacity(const JSCallbackInfo& info); 85 static void JsTranslate(const JSCallbackInfo& info); 86 static void JsTranslateX(const JSCallbackInfo& info); 87 static void JsTranslateY(const JSCallbackInfo& info); 88 static void JsRotate(const JSCallbackInfo& info); 89 static void JsRotateX(const JSCallbackInfo& info); 90 static void JsRotateY(const JSCallbackInfo& info); [all …]
|
D | js_canvas_path.cpp | 26 void JSCanvasPath::JsPath2DSetTransform(const JSCallbackInfo& info) in JsPath2DSetTransform() argument 28 if (info.Length() == 6) { in JsPath2DSetTransform() 29 if (info[0]->IsNumber()) { in JsPath2DSetTransform() 36 JSViewAbstract::ParseJsDouble(info[0], scaleX); in JsPath2DSetTransform() 37 JSViewAbstract::ParseJsDouble(info[1], skewX); in JsPath2DSetTransform() 38 JSViewAbstract::ParseJsDouble(info[2], skewY); in JsPath2DSetTransform() 39 JSViewAbstract::ParseJsDouble(info[3], scaleY); in JsPath2DSetTransform() 40 JSViewAbstract::ParseJsDouble(info[4], translateX); in JsPath2DSetTransform() 41 JSViewAbstract::ParseJsDouble(info[5], translateY); in JsPath2DSetTransform() 49 void JSCanvasPath::JsPath2DMoveTo(const JSCallbackInfo& info) in JsPath2DMoveTo() argument [all …]
|
D | js_canvas_renderer.cpp | 47 inline Rect GetJsRectParam(const JSCallbackInfo& info) in GetJsRectParam() argument 50 if (info.Length() != 4) { in GetJsRectParam() 58 JSViewAbstract::ParseJsDouble(info[0], x); in GetJsRectParam() 59 JSViewAbstract::ParseJsDouble(info[1], y); in GetJsRectParam() 60 JSViewAbstract::ParseJsDouble(info[2], width); in GetJsRectParam() 61 JSViewAbstract::ParseJsDouble(info[3], height); in GetJsRectParam() 143 void JSCanvasRenderer::JsCreateLinearGradient(const JSCallbackInfo& info) in JsCreateLinearGradient() argument 148 if (info[0]->IsNumber() && info[1]->IsNumber() && info[2]->IsNumber() in JsCreateLinearGradient() 149 && info[3]->IsNumber()) { in JsCreateLinearGradient() 154 JSViewAbstract::ParseJsDouble(info[0], x0); in JsCreateLinearGradient() [all …]
|
D | js_select.h | 24 static void Create(const JSCallbackInfo& info); 29 static void Font(const JSCallbackInfo& info); 30 static void FontColor(const JSCallbackInfo& info); 31 static void SelectedOptionBgColor(const JSCallbackInfo& info); 32 static void SelectedOptionFont(const JSCallbackInfo& info); 33 static void SelectedOptionFontColor(const JSCallbackInfo& info); 34 static void OptionBgColor(const JSCallbackInfo& info); 35 static void OptionFont(const JSCallbackInfo& info); 36 static void OptionFontColor(const JSCallbackInfo& info); 37 static void OnSelected(const JSCallbackInfo& info); [all …]
|
D | js_textinput.h | 28 static void Create(const JSCallbackInfo& info); 29 static void SetType(const JSCallbackInfo& info); 30 static void SetPlaceholderColor(const JSCallbackInfo& info); 31 static void SetPlaceholderFont(const JSCallbackInfo& info); 32 static void SetEnterKeyType(const JSCallbackInfo& info); 33 static void SetCaretColor(const JSCallbackInfo& info); 34 static void SetFontSize(const JSCallbackInfo& info); 36 static void SetTextColor(const JSCallbackInfo& info); 38 static void SetFontFamily(const JSCallbackInfo& info); 39 static void SetInputFilter(const JSCallbackInfo& info); [all …]
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
D | lnn_node_info.c | 25 bool LnnHasDiscoveryType(const NodeInfo *info, DiscoveryType type) in LnnHasDiscoveryType() argument 27 if (info == NULL || type >= DISCOVERY_TYPE_COUNT) { in LnnHasDiscoveryType() 31 if (((uint32_t)info->discoveryType & (1 << (uint32_t)type)) != 0) { in LnnHasDiscoveryType() 37 const char *LnnGetDeviceUdid(const NodeInfo *info) in LnnGetDeviceUdid() argument 39 if (info == NULL) { in LnnGetDeviceUdid() 42 return info->deviceInfo.deviceUdid; in LnnGetDeviceUdid() 45 int32_t LnnSetDeviceUdid(NodeInfo *info, const char *udid) in LnnSetDeviceUdid() argument 47 if (info == NULL || udid == NULL) { in LnnSetDeviceUdid() 50 if (strncpy_s(info->deviceInfo.deviceUdid, UDID_BUF_LEN, udid, strlen(udid)) != EOK) { in LnnSetDeviceUdid() 57 int32_t LnnSetDiscoveryType(NodeInfo *info, DiscoveryType type) in LnnSetDiscoveryType() argument [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/gap/ |
D | gap_task_common.c | 25 GapRunTaskBlockInfo *info = ctx; in GapBlockInTaskProcess() local 26 if (info->func != NULL) { in GapBlockInTaskProcess() 27 info->func(info->ctx); in GapBlockInTaskProcess() 29 if (info->event != NULL) { in GapBlockInTaskProcess() 30 EventSet(info->event); in GapBlockInTaskProcess() 36 GapRunTaskUnBlockInfo *info = ctx; in GapUnBlockInTaskProcess() local 37 if (info != NULL) { in GapUnBlockInTaskProcess() 38 if (info->func != NULL) { in GapUnBlockInTaskProcess() 39 info->func(info->ctx); in GapUnBlockInTaskProcess() 41 if (info->free != NULL) { in GapUnBlockInTaskProcess() [all …]
|
/foundation/windowmanager/interfaces/kits/napi/window_runtime/window_napi/ |
D | js_window.h | 35 static NativeValue* Show(NativeEngine* engine, NativeCallbackInfo* info); 36 static NativeValue* Destroy(NativeEngine* engine, NativeCallbackInfo* info); 37 static NativeValue* Hide(NativeEngine* engine, NativeCallbackInfo* info); 38 static NativeValue* MoveTo(NativeEngine* engine, NativeCallbackInfo* info); 39 static NativeValue* Resize(NativeEngine* engine, NativeCallbackInfo* info); 40 static NativeValue* SetWindowType(NativeEngine* engine, NativeCallbackInfo* info); 41 static NativeValue* SetWindowMode(NativeEngine* engine, NativeCallbackInfo* info); 42 static NativeValue* GetProperties(NativeEngine* engine, NativeCallbackInfo* info); 43 static NativeValue* RegisterWindowCallback(NativeEngine* engine, NativeCallbackInfo* info); 44 static NativeValue* UnregisterWindowCallback(NativeEngine* engine, NativeCallbackInfo* info); [all …]
|
/foundation/communication/dsoftbus/core/authentication/src/ |
D | auth_common.c | 96 if (strcpy_s(key, size, option->info.brOption.brMac) != EOK) { in AuthGetDeviceKey() 103 if (strcpy_s(key, size, option->info.bleOption.bleMac) != EOK) { in AuthGetDeviceKey() 110 if (strcpy_s(key, size, option->info.ipOption.ip) != EOK) { in AuthGetDeviceKey() 132 … if (strcpy_s(option->info.brOption.brMac, BT_MAC_LEN, connInfo->info.brInfo.brMac) != EOK) { in AuthConvertConnInfo() 139 … if (strcpy_s(option->info.bleOption.bleMac, BT_MAC_LEN, connInfo->info.bleInfo.bleMac) != EOK || in AuthConvertConnInfo() 140 memcpy_s(option->info.bleOption.deviceIdHash, UDID_HASH_LEN, in AuthConvertConnInfo() 141 connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN) != EOK) { in AuthConvertConnInfo() 147 if (strcpy_s(option->info.ipOption.ip, IP_LEN, connInfo->info.ipInfo.ip) != EOK) { in AuthConvertConnInfo() 151 option->info.ipOption.port = connInfo->info.ipInfo.port; in AuthConvertConnInfo() 162 int32_t ConvertAuthConnInfoToOption(const AuthConnInfo *info, ConnectOption *option) in ConvertAuthConnInfoToOption() argument [all …]
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
D | fillp_frame.c | 35 FILLP_LOGDBG("item refcnt: %d, seq: %d", refCnt, frameItem->info.seqNum); in FillpFrameItemHold() 42 FILLP_LOGDBG("free frame item of seq: %d", frameItem->info.seqNum); in FillpFrameItemPut() 57 frameItem->info = *frame; in FillpFrameItemAlloc() 95 struct FrameInfo *info = FILLP_NULL_PTR; in FillpFrameAddItem() local 97 if (item->frame == FILLP_NULL_PTR || !FILLP_FRAME_IS_VIDEO(item->frame->info.frameType)) { in FillpFrameAddItem() 101 info = &item->frame->info; in FillpFrameAddItem() 104 FillpFrameAddItemStats(h, info->frameType, item->frame->fragSize, in FillpFrameAddItem() 113 return info->frameType; in FillpFrameAddItem() 123 const struct FrameInfo *info, FILLP_UINT32 fragSize, FILLP_BOOL firstPkt) in FillpFrameTxInitItem() argument 125 …if (item->frame != FILLP_NULL_PTR && info != FILLP_NULL_PTR && FILLP_FRAME_IS_VIDEO(info->frameTyp… in FillpFrameTxInitItem() [all …]
|
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_rdb/include/ |
D | napi_rdb_predicates.h | 39 static napi_value New(napi_env env, napi_callback_info info); 40 …d::shared_ptr<NativeRdb::RdbPredicates> GetNativePredicates(napi_env env, napi_callback_info info); 42 static napi_value EqualTo(napi_env env, napi_callback_info info); 43 static napi_value NotEqualTo(napi_env env, napi_callback_info info); 44 static napi_value BeginWrap(napi_env env, napi_callback_info info); 45 static napi_value EndWrap(napi_env env, napi_callback_info info); 46 static napi_value Or(napi_env env, napi_callback_info info); 47 static napi_value And(napi_env env, napi_callback_info info); 48 static napi_value Contains(napi_env env, napi_callback_info info); 49 static napi_value BeginsWith(napi_env env, napi_callback_info info); [all …]
|
D | napi_rdb_store.h | 40 static napi_value Initialize(napi_env env, napi_callback_info info); 41 static napi_value Delete(napi_env env, napi_callback_info info); 42 static napi_value Update(napi_env env, napi_callback_info info); 43 static napi_value Insert(napi_env env, napi_callback_info info); 44 static napi_value Query(napi_env env, napi_callback_info info); 45 static napi_value QuerySql(napi_env env, napi_callback_info info); 46 static napi_value ExecuteSql(napi_env env, napi_callback_info info); 47 static napi_value Backup(napi_env env, napi_callback_info info); 48 static napi_value Count(napi_env env, napi_callback_info info); 49 static napi_value Replace(napi_env env, napi_callback_info info); [all …]
|
/foundation/resourceschedule/device_usage_statistics/interfaces/test/unittest/device_usage_statistics_jsunittest/ |
D | device_usage_statistics_jsunit.test.js | 25 console.info('beforeAll called') 32 console.info('afterAll called') 39 console.info('beforeEach called') 46 console.info('afterEach caled') 56 … console.info('----------------------DeviceUsageStatisticsJsTest001---------------------------'); 59 console.info('BUNDLE_ACTIVE isIdleState promise success.'); 63 console.info('BUNDLE_ACTIVE isIdleState promise failure.'); 76 … console.info('----------------------DeviceUsageStatisticsJsTest002---------------------------'); 80 console.info('BUNDLE_ACTIVE isIdleState callback failure.'); 84 console.info('BUNDLE_ACTIVE isIdleState callback success.'); [all …]
|
/foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/transient_task_jsunittest/ |
D | transient_task_jsunit.test.js | 24 console.info('beforeAll caled') 31 console.info('afterAll caled') 38 console.info('beforeEach caled') 45 console.info('afterEach caled') 55 console.info('----------------------TransientTaskJsTest001---------------------------'); 57 var info = backgroundTaskManager.requestSuspendDelay("test", callback); 58 if (info.requestId != -1) { 59 …console.info('TransientTaskJsTest001 backgroundTaskManager success, requestId:' + info.requestId); 61 backgroundTaskManager.cancelSuspendDelay(info.requestId) 75 console.info('----------------------TransientTaskJsTest002---------------------------'); [all …]
|
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_dataability/include/ |
D | napi_data_ability_predicates.h | 41 static napi_value New(napi_env env, napi_callback_info info); 42 …d_ptr<NativeRdb::DataAbilityPredicates> GetNativePredicates(napi_env env, napi_callback_info info); 43 static napi_value EqualTo(napi_env env, napi_callback_info info); 44 static napi_value NotEqualTo(napi_env env, napi_callback_info info); 45 static napi_value BeginWrap(napi_env env, napi_callback_info info); 46 static napi_value EndWrap(napi_env env, napi_callback_info info); 47 static napi_value Or(napi_env env, napi_callback_info info); 48 static napi_value And(napi_env env, napi_callback_info info); 49 static napi_value Contains(napi_env env, napi_callback_info info); 50 static napi_value BeginsWith(napi_env env, napi_callback_info info); [all …]
|
/foundation/ace/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/timerthread/ |
D | timer_thread.cpp | 77 TimerInfo *info = const_cast<TimerInfo *>(listIterator.next()); in Traverse() local 78 if (info->remain > 0) { in Traverse() 79 info->remain -= TIMER_STEP; in Traverse() 81 UserCallbackFunc func = (UserCallbackFunc)(info->userCallback); in Traverse() 82 func(info->userData); in Traverse() 83 if (info->isPeriodic) { in Traverse() 84 info->remain = info->delay; in Traverse() 87 delete info; in Traverse() 88 info = nullptr; in Traverse() 100 auto info = new TimerInfo(); in StartTimerTaskInner() local [all …]
|
/foundation/communication/dsoftbus/sdk/discovery/service/src/ |
D | client_disc_service.c | 26 static int32_t PublishInfoCheck(const PublishInfo *info) in PublishInfoCheck() argument 28 if ((info->mode != DISCOVER_MODE_PASSIVE) && (info->mode != DISCOVER_MODE_ACTIVE)) { in PublishInfoCheck() 33 if ((info->medium < AUTO) || (info->medium > COAP)) { in PublishInfoCheck() 38 if ((info->freq < LOW) || (info->freq > SUPER_HIGH)) { in PublishInfoCheck() 43 if ((info->capabilityData == NULL) && (info->dataLen != 0)) { in PublishInfoCheck() 48 if (info->dataLen == 0) { in PublishInfoCheck() 52 if ((info->dataLen > MAX_CAPABILITYDATA_LEN) || in PublishInfoCheck() 53 (strlen((char *)(info->capabilityData)) >= MAX_CAPABILITYDATA_LEN)) { in PublishInfoCheck() 61 static int32_t SubscribeInfoCheck(const SubscribeInfo *info) in SubscribeInfoCheck() argument 63 if ((info->mode != DISCOVER_MODE_PASSIVE) && (info->mode != DISCOVER_MODE_ACTIVE)) { in SubscribeInfoCheck() [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/frameworks/jskitsimpl/distributeddata/include/ |
D | js_query.h | 32 static napi_value New(napi_env env, napi_callback_info info); 35 static napi_value Reset(napi_env env, napi_callback_info info); 36 static napi_value EqualTo(napi_env env, napi_callback_info info); 37 static napi_value NotEqualTo(napi_env env, napi_callback_info info); 38 static napi_value GreaterThan(napi_env env, napi_callback_info info); 39 static napi_value LessThan(napi_env env, napi_callback_info info); 40 static napi_value GreaterThanOrEqualTo(napi_env env, napi_callback_info info); 41 static napi_value LessThanOrEqualTo(napi_env env, napi_callback_info info); 42 static napi_value IsNull(napi_env env, napi_callback_info info); 43 static napi_value InNumber(napi_env env, napi_callback_info info); [all …]
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/ |
D | lnn_node_info.h | 89 const char *LnnGetDeviceUdid(const NodeInfo *info); 90 int32_t LnnSetDeviceUdid(NodeInfo *info, const char *udid); 91 bool LnnHasDiscoveryType(const NodeInfo *info, DiscoveryType type); 92 int32_t LnnSetDiscoveryType(NodeInfo *info, DiscoveryType type); 93 int32_t LnnClearDiscoveryType(NodeInfo *info, DiscoveryType type); 94 bool LnnIsNodeOnline(const NodeInfo *info); 95 void LnnSetNodeConnStatus(NodeInfo *info, ConnectStatus status); 96 const char *LnnGetBtMac(const NodeInfo *info); 97 void LnnSetBtMac(NodeInfo *info, const char *mac); 98 const char *LnnGetWiFiIp(const NodeInfo *info); [all …]
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
D | lnn_async_callback_utils.c | 38 AsyncCallbackInfo *info = NULL; in AsyncCallbackHandler() local 44 info = (AsyncCallbackInfo *)msg->obj; in AsyncCallbackHandler() 45 if (info == NULL) { in AsyncCallbackHandler() 49 if (info->callback == NULL) { in AsyncCallbackHandler() 53 info->callback(info->cbPara); in AsyncCallbackHandler() 58 AsyncCallbackInfo *info = NULL; in FreeAsyncCallbackMessage() local 64 info = (AsyncCallbackInfo *)msg->obj; in FreeAsyncCallbackMessage() 65 SoftBusFree(info); in FreeAsyncCallbackMessage() 86 AsyncCallbackInfo *info = NULL; in CreateAsyncCallbackInfo() local 88 info = SoftBusCalloc(sizeof(AsyncCallbackInfo)); in CreateAsyncCallbackInfo() [all …]
|
/foundation/ace/napi/native_engine/impl/quickjs/native_value/ |
D | quickjs_native_external.cpp | 24 NativeObjectInfo* info = NativeObjectInfo::CreateNewInstance(); in QuickJSNativeExternal() local 25 if (info != nullptr) { in QuickJSNativeExternal() 26 info->engine = engine; in QuickJSNativeExternal() 27 info->nativeObject = value; in QuickJSNativeExternal() 28 info->callback = callback; in QuickJSNativeExternal() 29 info->hint = hint; in QuickJSNativeExternal() 33 engine->GetContext(), info, in QuickJSNativeExternal() 35 auto info = reinterpret_cast<NativeObjectInfo*>(data); in QuickJSNativeExternal() local 36 if (info != nullptr) { in QuickJSNativeExternal() 37 info->callback(info->engine, info->nativeObject, info->hint); in QuickJSNativeExternal() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/avrcp_ct/ |
D | avrcp_ct_connection.cpp | 152 const AvrcCtConnectInfo *info = nullptr; in GetConnectInfo() local 156 info = &iter->second; in GetConnectInfo() 159 return info; in GetConnectInfo() 168 for (auto &info : infos_) { in GetRawAddress() local 169 if (info.second.connectId_ == connectId) { in GetRawAddress() 170 addr = info.second.btAddr_; in GetRawAddress() 187 [](const std::pair<std::string, AvrcCtConnectInfo> &info){return info.second.btAddr_;}); in GetDeviceAddresses() argument 236 AvrcCtConnectInfo *info = GetConnectInfo(rawAddr.GetAddress()); in GetConnectId() local 237 if (info != nullptr) { in GetConnectId() 238 connectId = info->connectId_; in GetConnectId() [all …]
|