/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
D | printer_info_test.cpp | 47 OHOS::Print::PrinterInfo info; variable 48 info.Dump(); 59 OHOS::Print::PrinterInfo info; variable 60 info.SetPrinterId("001"); 61 EXPECT_EQ("001", info.GetPrinterId()); 72 OHOS::Print::PrinterInfo info; variable 73 info.SetPrinterName("OpenHarmony"); 74 EXPECT_EQ("OpenHarmony", info.GetPrinterName()); 85 OHOS::Print::PrinterInfo info; variable 86 info.SetPrinterIcon(0); [all …]
|
D | print_extension_info_test.cpp | 49 OHOS::Print::PrintExtensionInfo info; variable 51 inf = info; 52 info.Dump(); 63 OHOS::Print::PrintExtensionInfo info; variable 64 info.SetExtensionId("id-1234"); 65 EXPECT_EQ(info.GetExtensionId(), "id-1234"); 76 OHOS::Print::PrintExtensionInfo info; variable 77 info.SetVendorId("vid-1234"); 78 EXPECT_EQ(info.GetVendorId(), "vid-1234"); 89 OHOS::Print::PrintExtensionInfo info; variable [all …]
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
D | running_status_log_util.cpp | 29 std::string info { "TOOMANYQUERYRULES " }; in LogTooManyQueryRules() local 30 info.append(std::to_string(rules.size())).append(LOG_DETAIL_CONCAT); in LogTooManyQueryRules() 31 info.append("RULES=["); in LogTooManyQueryRules() 33 info.append("{"); in LogTooManyQueryRules() 34 info.append(rule.domain).append(RULE_ITEM_CONCAT); in LogTooManyQueryRules() 36 info.append("["); in LogTooManyQueryRules() 38 info.append(eventName).append(RULE_ITEM_CONCAT); in LogTooManyQueryRules() 40 info.erase(info.end() - 1); in LogTooManyQueryRules() 41 info.append("]").append(RULE_ITEM_CONCAT); in LogTooManyQueryRules() 43 info.append(std::to_string(rule.ruleType)); in LogTooManyQueryRules() [all …]
|
/base/sensors/sensor/interfaces/plugin/src/ |
D | sensor_system_js.cpp | 22 napi_value SubscribeAccelerometer(napi_env env, napi_callback_info info) in SubscribeAccelerometer() argument 25 return Subscribe(env, info, SENSOR_TYPE_ID_ACCELEROMETER, SUBSCRIBE_CALLBACK); in SubscribeAccelerometer() 28 napi_value UnsubscribeAccelerometer(napi_env env, napi_callback_info info) in UnsubscribeAccelerometer() argument 31 return Unsubscribe(env, info, SENSOR_TYPE_ID_ACCELEROMETER); in UnsubscribeAccelerometer() 34 napi_value SubscribeCompass(napi_env env, napi_callback_info info) in SubscribeCompass() argument 37 return Subscribe(env, info, SENSOR_TYPE_ID_ORIENTATION, SUBSCRIBE_COMPASS); in SubscribeCompass() 40 napi_value UnsubscribeCompass(napi_env env, napi_callback_info info) in UnsubscribeCompass() argument 43 return Unsubscribe(env, info, SENSOR_TYPE_ID_ORIENTATION); in UnsubscribeCompass() 46 napi_value SubscribeProximity(napi_env env, napi_callback_info info) in SubscribeProximity() argument 49 return Subscribe(env, info, SENSOR_TYPE_ID_PROXIMITY, SUBSCRIBE_CALLBACK); in SubscribeProximity() [all …]
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
D | napi_webview_controller.h | 47 static napi_value JsConstructor(napi_env env, napi_callback_info info); 49 static napi_value InitializeWebEngine(napi_env env, napi_callback_info info); 51 static napi_value SetHttpDns(napi_env env, napi_callback_info info); 53 static napi_value SetWebDebuggingAccess(napi_env env, napi_callback_info info); 55 static napi_value InnerGetWebDebuggingAccess(napi_env env, napi_callback_info info); 57 static napi_value SetWebId(napi_env env, napi_callback_info info); 59 static napi_value InnerJsProxy(napi_env env, napi_callback_info info); 61 static napi_value InnerGetCustomeSchemeCmdLine(napi_env env, napi_callback_info info); 63 static napi_value AccessForward(napi_env env, napi_callback_info info); 65 static napi_value AccessBackward(napi_env env, napi_callback_info info); [all …]
|
/base/usb/usb_manager/test/native/js_unittest/ |
D | UsbFunctionsJsunitEx.test.js | 25 console.info('begin test getversion :' + Version) 31 console.info('usb case setPortRoles return: ' + data); 33 console.info('usb case setPortRoles error : ' + error); 41 console.info('beforeEach: *************Usb Unit Test Case*************'); 45 console.info('afterEach: *************Usb Unit Test Case*************'); 58 console.info('usb usb_function_to_string_test_01 begin'); 60 console.info('usb case maskCode : ' + usb.NONE); 63 …console.info('usb case maskCode ' + maskCode + ' usbFunctionsToString return int: ' + strMaskCode); 64 console.info('usb usb_function_to_string_test_01 : PASS'); 73 console.info('usb usb_function_to_string_test_02 begin'); [all …]
|
D | UsbCoreJsunitEx.test.js | 27 console.info('begin test getversion :' + Version) 33 console.info('usb case setPortRolesEx return: ' + data); 35 console.info('usb case setPortRolesEx error : ' + error); 43 console.info('beforeEach: *************Usb Unit Test CaseEx*************'); 46 console.info('afterEach: *************Usb Unit Test CaseEx*************'); 59 console.info('usb connect_device_02 begin'); 61 console.info('usb case get_device_list is null') 69 console.info('usb 02 requestRight error:' + error); 71 console.info('usb 02 requestRight end:'); 81 console.info('usb connectDevice fail:' + err); [all …]
|
D | UsbFunctionsJsunit.test.js | 26 console.info('begin test getversion :' + Version) 32 console.info('usb case setPortRoles return: ' + data); 34 console.info('usb case setPortRoles error : ' + error); 41 console.info('beforeEach: *************Usb Unit Test Case*************'); 44 console.info('afterEach: *************Usb Unit Test Case*************'); 56 console.info('usb get_current_functions_test_01 begin'); 58 console.info('usb case getCurrentFunctions return: ' + maskCode); 61 console.info('usb case usbFunctionsToString return str: ' + strMaskCode); 63 console.info('usb case strMaskCode usbFunctionsFromString return int: ' + nMaskCode); 65 console.info('usb get_current_functions_test_01 : PASS'); [all …]
|
D | UsbCoreJsunit.test.js | 27 console.info('begin test getversion :' + Version) 33 console.info('usb case setPortRoles return: ' + data); 35 console.info('usb case setPortRoles error : ' + error); 43 console.info('afterEach: *************Usb Unit Test Case*************'); 46 console.info('beforeEach: *************Usb Unit Test Case*************'); 61 console.info('usb get_device_01 begin'); 64 console.info('usb case get_devices list is null') 69 console.info('usb case getDevices ret length: ' + gDeviceList.length); 70 console.info('usb get_devices_test_01: PASS'); 80 console.info('usb has_right_01 begin'); [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
D | faultlogger_client_unittest.cpp | 55 auto info = CreateFaultLogInfo(now, getuid(), FaultLogType::CPP_CRASH, "faultlogtest0"); variable 56 ReportCppCrashEvent(&info); 91 auto info = CreateFaultLogInfo(now, getuid(), FaultLogType::CPP_CRASH, "faultlogtest1"); in __anonb2b276460102() local 92 AddFaultLog(info); in __anonb2b276460102() 133 auto info = result->Next(); variable 134 if (info == nullptr) { 138 info->GetStringFaultType(); 153 FaultLogInfo info; variable 154 info.SetId(123); 155 ASSERT_EQ(info.GetId(), 123); [all …]
|
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_perf/ |
D | WallpaperSyncApiPerfJsunit.test.js | 24 console.info('beforeAll'); 28 console.info('afterAll'); 40 let info = "on_performance_test_001 averageTime:"; 43 }, info); 55 let info = "getColorsSync_performance_test_001 averageTime:"; 58 }, info); 69 let info = "getColorsSync_performance_test_002 averageTime:"; 72 }, info); 83 let info = "getIdSync_performance_test_001 averageTime:"; 86 }, info); [all …]
|
/base/telephony/call_manager/services/call/src/ |
D | ott_call_connection.cpp | 27 AppExecFwk::PacMap info; in Answer() local 28 PackCellularCallInfo(requestInfo, info); in Answer() 30 OttCallRequestId::OTT_REQUEST_ANSWER, info); in Answer() 35 AppExecFwk::PacMap info; in HangUp() local 36 PackCellularCallInfo(requestInfo, info); in HangUp() 38 OttCallRequestId::OTT_REQUEST_HANG_UP, info); in HangUp() 43 AppExecFwk::PacMap info; in Reject() local 44 PackCellularCallInfo(requestInfo, info); in Reject() 46 OttCallRequestId::OTT_REQUEST_REJECT, info); in Reject() 51 AppExecFwk::PacMap info; in HoldCall() local [all …]
|
/base/global/i18n/interfaces/js/kits/include/ |
D | i18n_addon.h | 47 static napi_value GetSystemLanguages(napi_env env, napi_callback_info info); 48 static napi_value GetSystemCountries(napi_env env, napi_callback_info info); 49 static napi_value GetSystemCountriesWithError(napi_env env, napi_callback_info info); 50 static napi_value IsSuggested(napi_env env, napi_callback_info info); 51 static napi_value IsSuggestedWithError(napi_env env, napi_callback_info info); 52 static napi_value GetDisplayLanguage(napi_env env, napi_callback_info info); 53 static napi_value GetDisplayLanguageWithError(napi_env env, napi_callback_info info); 54 static napi_value GetDisplayCountry(napi_env env, napi_callback_info info); 55 static napi_value GetDisplayCountryWithError(napi_env env, napi_callback_info info); 56 static napi_value GetSystemLanguage(napi_env env, napi_callback_info info); [all …]
|
/base/inputmethod/imf/test/unittest/napi_test/src/ |
D | InputMethodWithAttachTest.js | 21 console.info('beforeAll called'); 25 console.info('afterAll called'); 29 console.info('beforeEach called'); 42 console.info('afterEach called'); 54 …console.info('************* inputmethod_with_attach_test_showTextInput_001 Test start*************… 58 … console.info(`inputmethod_with_attach_test_showTextInput_001 result: ${JSON.stringify(err)}`); 62 console.info('inputmethod_with_attach_test_showTextInput_001 callback success'); 75 …console.info('************* inputmethod_with_attach_test_showTextInput_002 Test start*************… 78 console.info('inputmethod_with_attach_test_showTextInput_002 promise success'); 82 … console.info(`inputmethod_with_attach_test_showTextInput_002 result: ${JSON.stringify(error)}`); [all …]
|
/base/sensors/sensor/interfaces/plugin/include/ |
D | sensor_system_js.h | 21 napi_value SubscribeAccelerometer(napi_env env, napi_callback_info info); 22 napi_value UnsubscribeAccelerometer(napi_env env, napi_callback_info info); 23 napi_value SubscribeCompass(napi_env env, napi_callback_info info); 24 napi_value UnsubscribeCompass(napi_env env, napi_callback_info info); 25 napi_value SubscribeProximity(napi_env env, napi_callback_info info); 26 napi_value UnsubscribeProximity(napi_env env, napi_callback_info info); 27 napi_value SubscribeLight(napi_env env, napi_callback_info info); 28 napi_value UnsubscribeLight(napi_env env, napi_callback_info info); 29 napi_value SubscribeStepCounter(napi_env env, napi_callback_info info); 30 napi_value UnsubscribeStepCounter(napi_env env, napi_callback_info info); [all …]
|
/base/request/request/frameworks/native/src/ |
D | parcel_helper.cpp | 22 void ParcelHelper::UnMarshal(MessageParcel &data, TaskInfo &info) in UnMarshal() argument 24 UnMarshalBase(data, info); in UnMarshal() 25 if (!UnMarshalFormItem(data, info)) { in UnMarshal() 28 if (!UnMarshalFileSpec(data, info)) { in UnMarshal() 31 UnMarshalProgress(data, info); in UnMarshal() 32 if (!UnMarshalMapProgressExtras(data, info)) { in UnMarshal() 35 if (!UnMarshalMapExtras(data, info)) { in UnMarshal() 38 info.version = static_cast<Version>(data.ReadUint32()); in UnMarshal() 39 if (!UnMarshalTaskState(data, info)) { in UnMarshal() 44 void ParcelHelper::UnMarshalBase(MessageParcel &data, TaskInfo &info) in UnMarshalBase() argument [all …]
|
/base/global/resource_management/interfaces/js/innerkits/core/include/ |
D | resource_manager_addon.h | 28 #define GET_PARAMS(env, info, num) \ argument 33 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data) 67 … static napi_value AddonGetResource(napi_env env, napi_callback_info info, const std::string& name, 70 static napi_value GetString(napi_env env, napi_callback_info info); 72 static napi_value GetStringArray(napi_env env, napi_callback_info info); 74 static napi_value GetMedia(napi_env env, napi_callback_info info); 76 static napi_value GetMediaBase64(napi_env env, napi_callback_info info); 78 static napi_value ProcessNoParam(napi_env env, napi_callback_info info, const std::string &name, 81 static napi_value GetConfiguration(napi_env env, napi_callback_info info); 83 static napi_value GetDeviceCapability(napi_env env, napi_callback_info info); [all …]
|
D | resource_manager_napi_sync_impl.h | 37 …virtual napi_value GetResource(napi_env env, napi_callback_info info, const std::string &functionN… 43 static napi_value GetStringSync(napi_env env, napi_callback_info info); 45 static napi_value GetStringByNameSync(napi_env env, napi_callback_info info); 47 static napi_value GetBoolean(napi_env env, napi_callback_info info); 49 static napi_value GetBooleanByName(napi_env env, napi_callback_info info); 51 static napi_value GetNumber(napi_env env, napi_callback_info info); 53 static napi_value GetNumberByName(napi_env env, napi_callback_info info); 55 static napi_value GetDrawableDescriptor(napi_env env, napi_callback_info info); 57 static napi_value GetDrawableDescriptorByName(napi_env env, napi_callback_info info); 59 static napi_value GetColorSync(napi_env env, napi_callback_info info); [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/ |
D | ExampleJsunit.test.js | 24 console.info('FaultlogJsTest beforeAll called') 31 console.info('FaultlogJsTest afterAll called') 38 console.info('FaultlogJsTest beforeEach called') 45 console.info('FaultlogJsTest afterEach called') 65 …console.info("---------------------------FaultlogJsException_001----------------------------------… 68 console.info("FaultlogJsException_001 ret1 == " + ret1); 70 console.info('ret1 assertEqual(undefined) ' + a); 73 console.info("FaultlogJsException_001 ret2 == " + ret2); 77 console.info("FaultlogJsException_001 ret3 == " + ret3); 82 console.info(err); [all …]
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_addon.cpp | 187 napi_value ResourceManagerAddon::New(napi_env env, napi_callback_info info) in New() argument 189 GET_PARAMS(env, info, 1); in New() 192 napi_get_new_target(env, info, &target); in New() 200 napi_value ResourceManagerAddon::Release(napi_env env, napi_callback_info info) in Release() argument 209 napi_value ResourceManagerAddon::AddonGetResource(napi_env env, napi_callback_info info, const std:… in AddonGetResource() argument 212 auto addon = ResMgrDataContext::GetResourceManagerAddon(env, info); in AddonGetResource() 216 return addon->napiContext_->ContextGetResource(env, info, name, type); in AddonGetResource() 220 napi_value ResourceManagerAddon::GetString(napi_env env, napi_callback_info info) in GetString() argument 222 return AddonGetResource(env, info, "GetString", FunctionType::ASYNC); in GetString() 225 napi_value ResourceManagerAddon::GetStringArray(napi_env env, napi_callback_info info) in GetStringArray() argument [all …]
|
/base/security/device_security_level/services/dslm/ |
D | dslm_fsm_process.c | 52 static bool CheckTimesAndSendCredRequest(DslmDeviceInfo *info, bool enforce); 53 static void StopSendDeviceInfoRequestTimer(DslmDeviceInfo *info); 54 static void ProcessSendDeviceInfoCallback(DslmDeviceInfo *info, DslmInfoChecker checker); 67 static void RefreshNotifyList(DslmDeviceInfo *info); 68 static void RefreshHistoryList(DslmDeviceInfo *info); 99 static void StopSendDeviceInfoRequestTimer(DslmDeviceInfo *info) in StopSendDeviceInfoRequestTimer() argument 101 if (info->timeHandle != 0) { in StopSendDeviceInfoRequestTimer() 102 UtilsStopTimerTask(info->timeHandle); in StopSendDeviceInfoRequestTimer() 103 info->timeHandle = 0; in StopSendDeviceInfoRequestTimer() 107 static void StartSendDeviceInfoRequestTimer(DslmDeviceInfo *info) in StartSendDeviceInfoRequestTimer() argument [all …]
|
D | dslm_hievent.c | 38 void ReportHiEventInfoSync(const DslmDeviceInfo *info) in ReportHiEventInfoSync() argument 40 if (info == NULL) { in ReportHiEventInfoSync() 47 if (info->lastResponseTime >= info->lastRequestTime) { in ReportHiEventInfoSync() 48 event.costTime = (int32_t)(info->lastResponseTime - info->lastRequestTime); in ReportHiEventInfoSync() 51 event.retCode = (int32_t)info->result; in ReportHiEventInfoSync() 52 event.secLevel = (int32_t)info->credInfo.credLevel; in ReportHiEventInfoSync() 54 event.targetVersion = info->version; in ReportHiEventInfoSync() 55 …if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventInfoSync() 59 event.credType = info->credInfo.credType; in ReportHiEventInfoSync() 63 void ReportHiEventAppInvoke(const DslmDeviceInfo *info) in ReportHiEventAppInvoke() argument [all …]
|
/base/telephony/state_registry/frameworks/js/napi/include/ |
D | update_contexts.h | 33 CallStateContext &operator=(const CallStateUpdateInfo &info) 35 callState = info.callState_; 36 phoneNumber = info.phoneNumber_; 43 SignalListContext &operator=(SignalUpdateInfo &info) 45 signalInfoList = info.signalInfoList_; 52 NetworkStateContext &operator=(const NetworkStateUpdateInfo &info) 54 networkState = info.networkState_; 63 SimStateContext &operator=(const SimStateUpdateInfo &info) 65 cardType = info.type_; 66 simState = info.state_; [all …]
|
/base/telephony/cellular_call/vendor/ims/services/ims_call/src/ |
D | ims_call.cpp | 44 HRilRadioResponseInfo info; in Dial() local 49 imsCallCallback_->DialResponse(slotId, info); in Dial() 59 HRilRadioResponseInfo info; in HangUp() local 64 imsCallCallback_->HangUpResponse(slotId, info); in HangUp() 74 HRilRadioResponseInfo info; in RejectWithReason() local 79 imsCallCallback_->RejectWithReasonResponse(slotId, info); in RejectWithReason() 89 HRilRadioResponseInfo info; in Answer() local 94 imsCallCallback_->AnswerResponse(slotId, info); in Answer() 103 HRilRadioResponseInfo info; in HoldCall() local 108 imsCallCallback_->HoldCallResponse(slotId, info); in HoldCall() [all …]
|
/base/powermgr/powermgr_lite/utils/src/ |
D | power_mgr_timer_util.c | 64 PowerTimerInfo *info = (PowerTimerInfo *)v.sival_ptr; in TimerHandle() local 65 if (info == NULL) { in TimerHandle() 69 if (info->timerCb != NULL) { in TimerHandle() 70 info->timerCb(info->data); in TimerHandle() 76 PowerTimerInfo *info = (PowerTimerInfo *)malloc(sizeof(PowerTimerInfo)); in PowerMgrCreateTimer() local 77 if (info == NULL) { in PowerMgrCreateTimer() 81 (void)memset_s(info, sizeof(PowerTimerInfo), 0, sizeof(PowerTimerInfo)); in PowerMgrCreateTimer() 82 info->isRunning = FALSE; in PowerMgrCreateTimer() 83 info->whenMsec = whenMsec; in PowerMgrCreateTimer() 84 info->intervalMsec = intervalMsec; in PowerMgrCreateTimer() [all …]
|